/* Better Half Studio — feuille de style unique. */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-roman-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-300-latin.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ivoire: #f5f2ec;
  --encre: #1c1a17;
  --noir: #0d0c0b;
  --gris: #7d776d;
  --filet: rgba(28, 26, 23, .16);
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(20px, 5vw, 80px);
  --bloc: clamp(88px, 13vw, 190px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivoire); color: var(--encre); font: 300 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.005em; }
h1 em, .tete__nom em, .pied__nom em { font-style: italic; font-weight: 300; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.label, figcaption, .tete__nav, .tete__langue, .film__sous, .film__jouer, .heros__credit, .bouton, .lecteur__fermer {
  font: 400 .6875rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.label { color: var(--gris); }
.lien { text-decoration: none; border-bottom: 1px solid var(--filet); padding-bottom: 2px; transition: border-color .25s; }
.lien:hover { border-color: currentColor; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--ivoire); padding: 10px 16px; z-index: 20; }
.evitement:focus { left: 0; }

/* ----------------------------------------------------------- en-tête */
.tete { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 32px;
  padding: 26px var(--marge); color: #fff; }
.tete a { text-decoration: none; }
/* L'en-tête suit le défilement : transparent sur le héros, bandeau sombre ensuite (classe posée par site.js). */
.js .tete { position: fixed; transition: background-color .35s, padding .35s; }
.defile .tete { background: rgba(13, 12, 11, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 14px; padding-bottom: 14px; }
.menu-ouvert .tete { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
section[id] { scroll-margin-top: 56px; }
.tete__nom { font: 400 1.25rem/1 var(--serif); letter-spacing: .02em; margin-right: auto; white-space: nowrap; }
.tete__nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.tete__nav a, .tete__langue { opacity: .86; transition: opacity .2s; }
.tete__nav a:hover, .tete__langue:hover { opacity: 1; }
.tete__nav a[aria-current] { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
/* Bouton du menu sur téléphone : trois traits, qui deviennent une croix quand le menu est ouvert. */
.tete__menu { display: none; width: 44px; height: 44px; margin: -10px -9px -10px 0; padding: 14px 9px; background: none; border: 0; color: inherit; cursor: pointer; }
.tete__menu span { display: block; height: 1px; background: currentColor; transition: transform .3s, opacity .2s; }
.tete__menu span + span { margin-top: 7px; }
.menu-ouvert .tete__menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-ouvert .tete__menu span:nth-child(2) { opacity: 0; }
.menu-ouvert .tete__menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Pages intérieures : pas de film derrière l'en-tête, donc bandeau sombre dès le haut. */
.interne .tete { background: var(--noir); padding-top: 14px; padding-bottom: 14px; }
.interne main { padding-top: 58px; }
.interne .galerie { padding-top: var(--bloc); }
.tete__langue { border: 1px solid rgba(255, 255, 255, .5); padding: 7px 10px 6px; letter-spacing: .18em; }

/* ------------------------------------------------------------- héros */
.heros { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--noir); color: #fff; overflow: hidden;
  display: grid; place-items: center; text-align: center; }
.heros .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 12, 11, .42), rgba(13, 12, 11, .18) 35%, rgba(13, 12, 11, .5)); }
.heros__texte { position: relative; z-index: 1; padding: 0 var(--marge); }
.heros__texte .label { text-wrap: balance; color: rgba(255, 255, 255, .88); margin-bottom: clamp(18px, 2.4vw, 30px); }
.heros h1 { font-size: clamp(2.5rem, 7.4vw, 7rem); }
.heros__credit { position: absolute; z-index: 1; right: var(--marge); bottom: 24px; color: rgba(255, 255, 255, .7); font-size: .625rem; }

/* --------------------------------------------------------- manifeste */
.manifeste { max-width: 880px; margin: 0 auto; padding: var(--bloc) var(--marge); text-align: center; }
.manifeste__grand { font: 300 clamp(1.9rem, 4.2vw, 3.4rem)/1.16 var(--serif); margin-bottom: clamp(24px, 3vw, 40px); }
.manifeste p:not(.manifeste__grand) { max-width: 34em; margin: 0 auto; color: #4a463f; }
.manifeste p:not(.manifeste__grand) + p { margin-top: 1em; }

/* ------------------------------------------------------------ photos */
.photo { position: relative; }
.photo img { width: 100%; height: auto; background: #e6e1d8; }
figcaption { margin-top: 10px; color: var(--gris); font-size: .625rem; }
.pleine .photo img { max-height: 110vh; object-fit: cover; }
.pleine figcaption { padding: 0 var(--marge); }

.entete { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 96px); padding: 0 var(--marge); text-align: center; }
.entete h1, .entete h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.entete p { margin-top: 20px; color: #4a463f; }

/* --------------------------------------------------------------- duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start;
  max-width: 1280px; margin: 0 auto; padding: var(--bloc) var(--marge); }
.duo__bloc--film { margin-top: clamp(0px, 12vw, 180px); }
.duo .photo img, .duo__film { aspect-ratio: 4 / 5; object-fit: cover; }
.duo__film { position: relative; overflow: hidden; background: var(--noir); }
.duo__film .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo .label { margin-top: 28px; }
.duo h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 8px 0 16px; }
.duo p { max-width: 30em; }
.duo p + p { margin-top: 16px; }

/* ----------------------------------------------------------- galerie */
.galerie { padding: 0 var(--marge) var(--bloc); max-width: 1500px; margin: 0 auto; }
.rangee { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-bottom: clamp(28px, 3.6vw, 56px); }
.rangee .photo { flex: var(--r) 1 0%; min-width: 0; }
.rangee--seule { max-width: 1040px; margin-left: auto; margin-right: auto; }
.galerie__titre { margin: clamp(56px, 8vw, 110px) 0 clamp(24px, 3vw, 40px); text-align: center; font: 500 .78rem/1 var(--sans, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: #6d675d; }
.entete + .galerie__titre { margin-top: 0; }
.rangee:nth-child(odd) figcaption { text-align: right; }

/* ------------------------------------------------------------- films */
.films { background: var(--noir); color: #efeae2; padding: var(--bloc) var(--marge); }
.films .entete p { color: #b9b2a6; }
.films__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.4vw, 72px) clamp(14px, 2.2vw, 34px); max-width: 1500px; margin: 0 auto; }
.film--large { grid-column: 1 / -1; }
.film__lien { display: block; text-decoration: none; }
.film__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.film--large .film__image { aspect-ratio: 2.39; }
.film__image .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.film__lien:hover .boucle { transform: scale(1.025); }
.film__jouer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; border: 1px solid rgba(255, 255, 255, .7);
  padding: 12px 20px 11px; background: rgba(13, 12, 11, .28); opacity: 0; transition: opacity .3s; }
.film__lien:hover .film__jouer, .film__lien:focus-visible .film__jouer { opacity: 1; }
.film__titre { display: block; font: 300 clamp(1.4rem, 2.1vw, 1.9rem)/1.15 var(--serif); margin-top: 16px; }
.film__sous { display: block; margin-top: 6px; color: #9c958a; font-size: .625rem; }

/* ---------------------------------------------------------- approche */
.approche { padding: var(--bloc) var(--marge); max-width: 1280px; margin: 0 auto; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 1px solid var(--filet); padding-top: 22px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); font: 400 .6875rem/1 var(--sans); letter-spacing: .22em; color: var(--gris); }
.etapes h2 { font-size: 1.75rem; margin: 18px 0 12px; }
.etapes p { color: #4a463f; font-size: 1rem; }

/* ----------------------------------------------------------- contact */
.contact { padding: var(--bloc) var(--marge); }
/* Accueil : entrées vers les pages Photos et Films, puis liens vers l'approche et le contact. */
.entrees { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); max-width: 1500px; margin: 0 auto; padding: 0 var(--marge); }
.entree { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--noir); color: #fff; text-decoration: none; }
.entree__image, .entree .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.entree:hover .entree__image, .entree:hover .boucle { transform: scale(1.03); }
.entree__titre { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 12, 11, .28); font: 300 clamp(2rem, 4.6vw, 3.8rem)/1 var(--serif); }
.suite { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; padding: clamp(56px, 8vw, 110px) var(--marge) var(--bloc); }
.suite .bouton { margin-top: 0; }
.bouton { display: inline-block; margin-top: 18px; padding: 16px 30px 15px; border: 1px solid var(--encre); text-decoration: none; transition: background .25s, color .25s; }
.bouton:hover { background: var(--encre); color: var(--ivoire); }
.bouton--plein { background: var(--encre); color: var(--ivoire); cursor: pointer; }
.bouton--plein:hover { background: none; color: var(--encre); }
.bouton[disabled] { opacity: .45; cursor: default; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }

/* ------------------------------------------------------- rendez-vous */
.rdv { padding: var(--bloc) var(--marge); max-width: 860px; margin: 0 auto; }
.rdv__repli { text-align: center; }
.rdv__etape { border: 0; border-top: 1px solid var(--filet); margin: 0; padding: 34px 0 clamp(40px, 6vw, 64px); min-width: 0; }
.rdv__etape legend { float: left; width: 100%; padding: 0; margin-bottom: 30px; font: 300 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--serif); }
.rdv__etape legend + * { clear: both; }
.rdv__numero { display: block; margin-bottom: 14px; font: 400 .6875rem/1 var(--sans); letter-spacing: .22em; color: var(--gris); }
.rdv__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rdv__mode { position: relative; display: block; padding: 24px 22px 22px; border: 1px solid var(--filet); cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.rdv__mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rdv__mode-titre { display: block; font: 300 1.6rem/1.1 var(--serif); }
.rdv__mode-texte { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: #4a463f; }
.rdv__mode:hover { border-color: var(--encre); }
.rdv__mode:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--ivoire); }
.rdv__mode:has(input:checked) .rdv__mode-texte { color: #cfc8bc; }
.rdv__mode:has(input:focus-visible) { outline: 1px solid var(--encre); outline-offset: 4px; }
.rdv__jours { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rdv__jour { flex: 0 0 auto; min-width: 78px; padding: 14px 10px 12px; border: 1px solid var(--filet); background: none; color: inherit; text-align: center; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.rdv__jour span { display: block; font: 400 .625rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.rdv__jour strong { display: block; margin: 9px 0 7px; font: 300 2rem/1 var(--serif); }
.rdv__heures { display: flex; flex-wrap: wrap; gap: 10px; min-height: 48px; }
.rdv__heure { padding: 13px 20px 12px; border: 1px solid var(--filet); background: none; color: inherit; font: 400 .9375rem/1 var(--sans); letter-spacing: .06em; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.rdv__jour:hover, .rdv__heure:hover { border-color: var(--encre); }
.rdv__jour[aria-pressed="true"], .rdv__heure[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--ivoire); }
.rdv__jour[aria-pressed="true"] span { color: #cfc8bc; }
.rdv__note { margin-top: 18px; font-size: .8125rem; color: var(--gris); }
.rdv__resume { margin-bottom: 28px; font: 300 italic clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--serif); }
.rdv__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.champ label { display: block; font: 400 .6875rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.champ label span { letter-spacing: .04em; text-transform: none; }
.champ input, .champ textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--filet); border-radius: 0; background: none; color: inherit; font: 300 1.0625rem/1.5 var(--sans); transition: border-color .25s; }
.champ textarea { resize: vertical; min-height: 5.4em; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); }
.champ--large { margin-top: 26px; }
.champ__erreur, .rdv__erreur { display: block; min-height: 1.2em; margin-top: 6px; font-size: .8125rem; color: #8c2f1f; }
.rdv__erreur { margin: 18px 0 0; }
.rdv__piege { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.rdv__fin { text-align: center; padding: 20px 0 0; }
.rdv__fin:focus { outline: none; }
.rdv__fin h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.rdv__fin p { max-width: 30em; margin: 20px auto 0; color: #4a463f; }
.rdv__fin .bouton { margin: 14px 8px 0; }
.contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 860px; margin: 0 auto; text-align: center; }
.contact__personne { border-top: 1px solid var(--filet); padding-top: 26px; }
.contact__personne h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 10px 0 14px; }
.contact__personne a { text-decoration: none; overflow-wrap: anywhere; }
.contact__personne a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* -------------------------------------------------------------- pied */
.pied { background: var(--noir); color: #9c958a; text-align: center; padding: clamp(56px, 8vw, 100px) var(--marge); font-size: .875rem; }
.pied__nom { font: 300 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); color: #efeae2; margin-bottom: 22px; }
.pied p + p { margin-top: 10px; }
.pied a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ----------------------------------------------------------- lecteur */
.lecteur { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 7, 6, .96); color: #fff; }
.lecteur[open] { display: grid; place-items: center; }
.lecteur::backdrop { background: #080706; }
.lecteur__cadre { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lecteur__cadre iframe { width: 100%; height: 100%; border: 0; display: block; }
.lecteur__fermer { position: absolute; top: 20px; right: var(--marge); background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; padding: 10px 14px 9px; cursor: pointer; }

.perdu { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: var(--marge); }
.perdu h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.perdu h1 span { display: block; color: var(--gris); }

/* --------------------------------------------------------- téléphone */
@media (max-width: 860px) {
  /* Sans JavaScript : le menu reste affiché sous le nom. Avec : bouton « Menu » et panneau plein écran. */
  .tete { flex-wrap: wrap; gap: 18px 20px; }
  .tete__nav { order: 3; flex: 0 1 100%; min-width: 0; flex-wrap: wrap; gap: 10px 12px; justify-content: space-between; max-width: 420px; }
  .js .tete { flex-wrap: nowrap; }
  .js .tete__menu { display: block; position: relative; z-index: 2; }
  .js .tete__langue { position: relative; z-index: 2; }
  .js .tete__nom { position: relative; z-index: 2; }
  .js .tete__nav { position: fixed; inset: 0; z-index: 1; max-width: none; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 30px;
    background: var(--noir); font: 300 2.1rem/1.1 var(--serif); letter-spacing: 0; text-transform: none;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .js .tete__nav a { opacity: 1; }
  .menu-ouvert { overflow: hidden; }
  .menu-ouvert .tete { position: fixed; z-index: 30; }
  .menu-ouvert .tete__nav { opacity: 1; visibility: visible; }
  .etapes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .tete { padding: 20px var(--marge); }
  .tete__nom { font-size: 1.125rem; }
  .duo { grid-template-columns: 1fr; gap: 72px; }
  .duo__bloc--film { margin-top: 0; }
  .rangee { flex-direction: column; gap: 28px; margin-bottom: 28px; }
  .rangee .photo { flex: none; }
  .rangee:nth-child(odd) figcaption { text-align: left; }
  .films__grille { grid-template-columns: 1fr; }
  .entrees { grid-template-columns: 1fr; }
  .rdv__modes { grid-template-columns: 1fr; }
  .rdv__champs { grid-template-columns: 1fr; }
  .film--large .film__image { aspect-ratio: 16 / 9; }
  .film__jouer { opacity: 1; top: auto; left: 12px; bottom: 12px; transform: none; padding: 8px 12px 7px; font-size: .5625rem; }
  .etapes { grid-template-columns: 1fr; }
  .contact__grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film__image .boucle { transition: none; }
  .js .tete__nav, .js .tete { transition: none; }
}
