/* =========================================================================
   SOLORA STUDIO — Plein cadre
   The photograph fills the screen and nothing is allowed in front of it.
   Chrome floats, small and translucent. Set against the craft bar the
   client named: kevincogan.fr, carlasegues.fr, daynmoron.com.
   ========================================================================= */

/* --- Faces ------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('../fonts/martianmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('../fonts/martianmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------ */

:root {
  --ground:      #0b0b0c;
  --ground-lift: #131315;
  --ground-deep: #060607;

  --gold:      #f2c165;
  --gold-lift: #f8d491;
  --gold-deep: #c9a861;

  --white: #f2efe8;
  --grey:  #8d8b86;   /* 5.7:1 on ground */
  --quiet: #807e7a;   /* 4.8:1 sur le fond, 4.7:1 sur les cartes relevées */
  --rule:  #262523;

  --mono: 'Martian Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
}

/* --- Reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--quiet) var(--ground-deep);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

::selection { background: var(--gold); color: #12100c; }
:root { caret-color: var(--gold); accent-color: var(--gold); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ground-deep); }
::-webkit-scrollbar-thumb { background: var(--quiet); border: 3px solid var(--ground-deep); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* --- Type -------------------------------------------------------------- */

h1, h2, h3 { margin: 0; line-height: 1.06; text-wrap: balance; }
h2 { font-family: var(--mono); font-variation-settings: 'wdth' 87.5; font-weight: 600;
     font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); letter-spacing: -.01em; }
h3 { font-family: var(--mono); font-variation-settings: 'wdth' 87.5; font-weight: 600;
     font-size: clamp(1rem, .9rem + .5vw, 1.2rem); letter-spacing: -.005em; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.prose { color: var(--grey); }
.prose strong { color: var(--white); font-weight: 600; }

/* Small mono chrome: navigation, labels, captions, data, the phone number.
   This is the voice of the references, used on everything except running
   French prose, which a wide mono punishes. */
.mono {
  font-family: var(--mono);
  font-variation-settings: 'wdth' 87.5;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* --- Layout ------------------------------------------------------------ */

.shell { padding-inline: var(--gutter); }
.band  { padding-block: clamp(3.5rem, 8vh, 6rem); }
.band--wide { padding-block: clamp(5rem, 11vh, 8.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vh, 4rem); }

.opener { max-width: 54ch; margin-block-end: clamp(2rem, 5vh, 3.5rem); }
.opener p { color: var(--grey); margin-block-start: .9rem; }

/* --- The floating pill bar --------------------------------------------- */

.pilot {
  position: fixed;
  inset-block-start: clamp(.75rem, 2vw, 1.4rem);
  inset-inline: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.4rem, 1.5vw, 1rem);
  pointer-events: none;
}
.pilot > * { pointer-events: auto; }

.pilot__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  border-radius: 999px;
  background: rgba(14, 14, 15, .62);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(242, 239, 232, .1);
}
.pilot__nav a {
  display: block;
  padding: .55rem .95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pilot__nav a:hover, .pilot__nav a:focus-visible { background: rgba(242, 239, 232, .12); }

.pilot__mark {
  display: flex;
  align-items: center;
  flex: none;
  padding-inline: clamp(.5rem, 1.5vw, 1rem);
}
/* The light artwork the client supplied. No ring, no filter: the mark
   stands on its own over the photograph. */
.pilot__mark img {
  width: clamp(112px, 12vw, 158px);
  height: auto;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .55));
}

/* --- The stage: one photograph, edge to edge --------------------------- */

section[id] { scroll-margin-top: 7rem; }

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* `clip` et non `hidden` : le découpage est le même, mais `hidden` ferait
     de la section un conteneur défilable, et toute animation pilotée par le
     défilement à l'intérieur se calerait sur elle au lieu de la page. */
  overflow: clip;
  isolation: isolate;
}
.stage__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Legibility scrim. Heavier at the edges where the chrome and the footline
   sit, barely there across the middle where the picture has to breathe. */
.stage__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 48% at 50% 46%, rgba(11,11,12,.44) 0%, rgba(11,11,12,0) 100%),
    linear-gradient(to bottom,
      rgba(11,11,12,.74) 0%,
      rgba(11,11,12,.26) 24%,
      rgba(11,11,12,.30) 58%,
      rgba(11,11,12,.86) 100%);
}

.stage__say {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  padding: 7rem var(--gutter) 6rem;
}
.stage__name {
  font-family: var(--mono);
  font-variation-settings: 'wdth' 75;
  font-weight: 700;
  font-size: clamp(2.05rem, 1rem + 5.4vw, 5.2rem);
  letter-spacing: .01em;
  color: var(--white);
}
.stage__role { color: var(--gold); margin: 0; }
.stage__list { color: var(--white); margin: 0; }
.stage__place { color: #c8c5bf; margin: 0; }

.stage__foot {
  position: absolute;
  inset-block-end: clamp(1.5rem, 4vh, 3rem);
  inset-inline: var(--gutter);
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  color: var(--grey);
}

/* The call to action. Two buttons, a filled primary and a quiet ghost —
   the shape this category actually uses, and the one a visitor recognises
   as clickable without thinking about it. */
.acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-block-start: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--mono);
  font-variation-settings: 'wdth' 87.5;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 8px; overflow: visible; }
.btn svg line, .btn svg polyline { stroke: currentColor; stroke-width: 1.6; fill: none; }
.btn svg line { transition: transform .25s var(--ease); }
.btn:hover svg line, .btn:focus-visible svg line { transform: scaleX(1.45); }

.btn--gold { background: var(--gold); color: #12100c; }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--gold-lift); transform: translateY(-2px); }

.btn--ghost {
  color: var(--white);
  border-color: rgba(242, 239, 232, .34);
  background: rgba(11, 11, 12, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--white);
  background: rgba(242, 239, 232, .12);
  transform: translateY(-2px);
}

/* --- Services: three frames, nothing drawn over them ------------------- */

.trio { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 55rem) { .trio { grid-template-columns: repeat(3, 1fr); } }

.offer { display: flex; flex-direction: column; gap: 1rem; }
.offer__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ground-lift);
}
.offer__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.offer:hover .offer__frame img { transform: scale(1.03); }
.offer__tag {
  position: absolute;
  inset-block-end: .85rem;
  inset-inline-start: .85rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(11, 11, 12, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white);
}
.offer__deliver { color: var(--quiet); margin-block-start: .6rem; }

/* --- Films: the work, large ------------------------------------------- */

.film {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
  border-block-start: 1px solid var(--rule);
  align-items: center;
}
@media (min-width: 55rem) {
  .film { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .film--flip .film__still { order: 2; }
}
.film__still {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ground-lift);
  display: block;
}
.film__still img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.film__still:hover img { transform: scale(1.03); }
.film__title { margin-block-end: .8rem; }
.film__title a { display: inline-block; padding-block: .3rem; }
.film__title a { text-decoration: none; }
.film__title a:hover, .film__title a:focus-visible { color: var(--gold); }

.spec { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.1rem; margin-block: 1.1rem 1.3rem; }
.spec dt { color: var(--quiet); }
.spec dd { margin: 0; color: var(--grey); text-transform: none; letter-spacing: 0; }

.pull {
  display: inline-flex; align-items: center; gap: .6rem;
  padding-block: .4rem;
  text-decoration: none; color: var(--white); font-weight: 600; width: fit-content;
}
.pull svg { width: 22px; height: 8px; overflow: visible; }
.pull svg line, .pull svg polyline { stroke: var(--gold); stroke-width: 1.5; fill: none; }
.pull svg line { transition: transform .3s var(--ease); }
.pull:hover svg line, .pull:focus-visible svg line { transform: scaleX(1.5); }
.pull:hover, .pull:focus-visible { color: var(--gold); }

/* --- About ------------------------------------------------------------- */

.about { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 55rem) { .about { grid-template-columns: .68fr 1fr; } }
.about__frame { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- Testimony --------------------------------------------------------- */

.says { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 45rem) { .says { grid-template-columns: repeat(2, 1fr); } }
.say {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--ground-lift);
  margin: 0;
}
.say blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.say blockquote p { max-width: none; }
.say figcaption { color: var(--quiet); margin-block-start: auto; font-family: var(--sans); font-size: .85rem; letter-spacing: 0; text-transform: none; }
.say figcaption b { color: var(--white); font-weight: 600; display: block; }

/* --- Foot -------------------------------------------------------------- */

.foot {
  border-block-start: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center;
  color: var(--quiet);
}
.foot a { color: var(--quiet); text-decoration: none; padding-block: .35rem; }
.foot a:hover, .foot a:focus-visible { color: var(--white); text-decoration: underline; }
.foot__spacer { margin-inline-start: auto; }
.backlink { display: inline-flex; align-items: center; gap: .55rem; }

/* --- Project pages ----------------------------------------------------- */

.masthead { padding-block-start: calc(88px + clamp(2.5rem, 8vh, 5rem)); }
.masthead h1 {
  font-family: var(--mono); font-variation-settings: 'wdth' 87.5; font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); letter-spacing: -.01em; max-width: 20ch;
}
.masthead .mono { color: var(--quiet); margin-block-end: 1.1rem; text-transform: none; letter-spacing: .01em; }

/* Ouverture d'une page projet : la même scène que l'accueil, un peu moins
   haute pour qu'on devine la suite, et le titre posé en bas à gauche,
   là où l'œil finit de lire la photo. */
.stage--project { min-height: 86svh; place-items: end start; }
/* Voile propre aux pages projet : l'accueil centre son texte et assombrit le
   milieu, ici le titre est en bas à gauche. On ne touche donc qu'au haut
   (pour la barre de navigation) et au coin où se pose le titre ; le reste de
   la photographie reste tel qu'elle a été prise. */
.stage--project .stage__scrim {
  background:
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(11,11,12,.72) 0%, rgba(11,11,12,0) 100%),
    linear-gradient(to bottom,
      rgba(11,11,12,.55) 0%,
      rgba(11,11,12,0) 18%,
      rgba(11,11,12,0) 62%,
      rgba(11,11,12,.55) 100%);
}
.stage--project .stage__say {
  align-items: flex-start;
  text-align: left;
  padding: 0 var(--gutter) clamp(2.5rem, 9vh, 5.5rem);
}
.stage__title {
  font-family: var(--mono); font-variation-settings: 'wdth' 87.5; font-weight: 700;
  font-size: clamp(1.7rem, 1rem + 2.9vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.01em;
  max-width: 22ch;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6), 0 1px 4px rgba(0, 0, 0, .45);
}

.frames { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 55rem) {
  .frames { grid-template-columns: repeat(6, 1fr); }
  .frames > * { grid-column: span 3; }
  .frames > .frames__tall { grid-column: span 2; }
  .frames > .frames__wide { grid-column: span 4; }
}
.frames figure { margin: 0; }
.frames img { width: 100%; border-radius: 14px; }
.frames figcaption { color: var(--quiet); margin-block-start: .6rem; font-family: var(--sans); font-size: .85rem; letter-spacing: 0; text-transform: none; }

/* --- Thumb dock on a phone --------------------------------------------- */

.dock {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
  display: none;
  border-block-start: 1px solid var(--rule);
  background: rgba(11, 11, 12, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dock a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .95rem .5rem; text-decoration: none;
  font-family: var(--mono); font-variation-settings: 'wdth' 87.5;
  font-variant-numeric: tabular-nums; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.dock a:first-child { background: var(--gold); color: #12100c; }
.dock a:last-child { color: var(--white); }

/* --- Narrow ------------------------------------------------------------ */

@media (max-width: 54.99rem) {
  .pilot { inset-block-start: auto; inset-block-end: 4.2rem; }
  .pilot__nav a { padding: .5rem .7rem; font-size: .7rem; }
  .pilot__mark img { width: 116px; }
  .dock { display: flex; }
  body { padding-block-end: 52px; }
  .masthead { padding-block-start: clamp(2.5rem, 8vh, 5rem); }
  .stage__say { padding-block: 5rem 10rem; }
  .stage__foot { inset-block-end: calc(52px + 1.4rem); }
  .stage--project .stage__say { padding-block: 0 calc(52px + 2.5rem); }
}

/* --- Menu on a phone ---------------------------------------------------
   Four pill links plus the mark overflow 375px from both ends. Below the
   breakpoint the pills give way to one round button and a full-screen
   sheet, which is what the reference sites do at this width.
   ---------------------------------------------------------------------- */

.burger {
  display: none;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 232, .18);
  background: rgba(14, 14, 15, .62);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
  padding: 0;
}
.burger__bars { display: grid; gap: 4px; width: 17px; }
.burger__bars i { display: block; height: 1.5px; background: var(--white); border-radius: 2px; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(8, 8, 9, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  text-align: center;
}
.menu[data-open='true'] { display: grid; }
.menu__list { display: flex; flex-direction: column; gap: 1.6rem; padding: 2rem; }
.menu__list a {
  font-family: var(--mono);
  font-variation-settings: 'wdth' 87.5;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.menu__list a:last-child { color: var(--gold); }
.menu__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu__close {
  position: absolute;
  inset-block-start: 1.25rem; inset-inline-end: 1.25rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 232, .18);
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 54.99rem) {
  .pilot {
    inset-block-start: clamp(.75rem, 2vw, 1.4rem);
    inset-block-end: auto;
    justify-content: space-between;
    padding-inline: var(--gutter);
  }
  .pilot__nav { display: none; }
  .burger { display: grid; }
}


/* =========================================================================
   LE FORMULAIRE
   Some people will not phone a stranger. The form is for them; the number
   stays beside it for everyone else.
   ========================================================================= */

.reach { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 55rem) { .reach { grid-template-columns: 1fr .85fr; } }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; }
.field > span {
  font-family: var(--mono); font-variation-settings: 'wdth' 87.5;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--grey);
}
.field > span i { color: var(--gold); font-style: normal; }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--white);
  background: var(--ground-lift);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6a6863; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a3835; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #17171a;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%),
                    linear-gradient(135deg, var(--grey) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2.5rem;
}
.field select option { background: var(--ground-lift); color: var(--white); }

.form__send { justify-self: start; margin-block-start: .4rem; }
.form__note { color: var(--quiet); font-size: .85rem; max-width: 46ch; }

/* The other way in, for people who would rather speak than type. */
.aside-call {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--ground-lift);
  display: grid;
  gap: .9rem;
}
.aside-call__tel {
  font-family: var(--mono); font-variation-settings: 'wdth' 75;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--gold); text-decoration: none; width: fit-content;
}
.aside-call__tel:hover, .aside-call__tel:focus-visible { color: var(--gold-lift); }
.aside-call a[href^='mailto'] { color: var(--grey); text-decoration: none; width: fit-content; }
.aside-call a[href^='mailto']:hover { color: var(--white); text-decoration: underline; }
.aside-call p { color: var(--grey); font-size: .92rem; }

/* --- Video ------------------------------------------------------------- */

.tube {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ground-lift);
  border: 1px solid var(--rule);
}
.tube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tube--vertical { aspect-ratio: 9 / 16; }
.tubes { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 48rem) { .tubes--three { grid-template-columns: repeat(3, 1fr); } }

/* --- Façade vidéo -------------------------------------------------------
   YouTube n'est contacté qu'au clic : rien ne part vers Google tant que le
   visiteur n'a rien demandé. L'affiche est une photo du tournage, pas une
   vignette YouTube — sinon la requête partirait quand même.
   ------------------------------------------------------------------------ */
.tube__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  background: none;
  display: grid; place-items: center;
}
.tube__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tube__cover::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 11, 12, .34);
  transition: background-color .3s var(--ease);
}
.tube__cover:hover::after, .tube__cover:focus-visible::after { background: rgba(11, 11, 12, .16); }
.tube__play {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(242, 193, 101, .94);
  transition: transform .3s var(--ease);
}
.tube__cover:hover .tube__play, .tube__cover:focus-visible .tube__play { transform: scale(1.08); }
.tube__play svg { width: 22px; height: 24px; margin-inline-start: 4px; fill: #12100c; }
.tube__label {
  position: absolute; z-index: 2;
  inset-block-end: .9rem; inset-inline-start: .9rem;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white);
}

/* --- Corrections du détecteur ------------------------------------------
   Les capitales sont faites pour les étiquettes courtes. Dès qu'une ligne
   devient une phrase, on la repasse en casse normale : c'est la forme des
   mots qui permet de lire, et les capitales la suppriment.
   ---------------------------------------------------------------------- */
.stage__foot,
.offer__deliver,
.form__note,
.masthead .mono {
  text-transform: none;
  letter-spacing: .01em;
}
.offer__deliver { font-family: var(--sans); font-size: .875rem; letter-spacing: 0; }
.stage__foot { font-size: .82rem; }

/* --- Lisibilité sur n'importe quelle photo -----------------------------
   Le texte de l'accueil doit tenir aussi bien sur une salle sombre que sur
   une dune en plein soleil. Une ombre portée discrète le rend indépendant
   de l'image : tu peux changer la photo d'accueil sans rien réajuster.
   ---------------------------------------------------------------------- */
.stage__name   { text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .4); }
.stage__role,
.stage__list,
.stage__place,
.stage__foot   { text-shadow: 0 1px 12px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .55); }
.pilot__mark img { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .8)) drop-shadow(0 0 3px rgba(0, 0, 0, .6)); }

/* Les titres de vidéo sont des titres, pas des étiquettes : « SYMPHONIE DES
   CONTRASTES · CAPTATION » en capitales se déchiffre au lieu de se lire. */
.tube__label { text-transform: none; letter-spacing: .01em; }


/* =========================================================================
   MOUVEMENT
   Au chargement : la photographie sort du noir et se pose, puis le texte
   arrive sous elle. Au défilement : la photo d'ouverture s'enfonce dans le
   noir quand on la quitte, et chaque image arrive en glissant. Le défilement
   ne pilote que le mouvement, jamais l'opacité : rien n'est voilé au repos.
   ========================================================================= */

@keyframes solora-reveal { from { opacity: 0; transform: scale(1.055); } }
@keyframes solora-rise   { from { opacity: 0; transform: translateY(12px); } }
@keyframes solora-sheet  { from { opacity: 0; transform: scale(1.03); } }

@media (prefers-reduced-motion: no-preference) {

  /* Le moment fort. Il s'exécute une fois, au chargement. L'état de repos est
     l'état final : si l'animation ne part pas, la page est déjà en place. */
  .stage__frame { animation: solora-reveal 1000ms var(--ease) backwards; }

  /* Le bloc central est une liste de lignes, et arrive comme telle.
     Retard total plafonné à 460 ms : au-delà, ce n'est plus une entrée,
     c'est une attente. */
  .stage__name  { animation: solora-rise 520ms var(--ease) 240ms backwards; }
  .stage__role  { animation: solora-rise 520ms var(--ease) 300ms backwards; }
  .stage__list  { animation: solora-rise 520ms var(--ease) 350ms backwards; }
  .stage__place { animation: solora-rise 520ms var(--ease) 400ms backwards; }
  .stage__say .acts { animation: solora-rise 520ms var(--ease) 460ms backwards; }
  .stage__foot  { animation: solora-rise 520ms var(--ease) 560ms backwards; }
  .stage__title { animation: solora-rise 560ms var(--ease) 260ms backwards; }

  /* Le menu s'ouvre depuis le bouton qui l'a appelé, et se referme plus vite
     qu'il ne s'ouvre. */
  .menu[data-open='true'] { animation: solora-sheet 260ms var(--ease); }
  .menu[data-open='true'] .menu__list a { animation: solora-rise 380ms var(--ease) backwards; }
  .menu__list a:nth-child(1) { animation-delay:  60ms; }
  .menu__list a:nth-child(2) { animation-delay: 100ms; }
  .menu__list a:nth-child(3) { animation-delay: 140ms; }
  .menu__list a:nth-child(4) { animation-delay: 180ms; }
  .menu__list a:nth-child(5) { animation-delay: 220ms; }

  /* La vignette passe la main au lecteur au lieu de disparaître d'un coup. */
  .tube__cover.is-handing-over { transition: opacity 200ms ease-out, transform 200ms var(--ease);
                                 opacity: 0; transform: scale(1.02); pointer-events: none; }

  /* Continuité entre les pages : la barre flottante ne cligne pas, et on
     passe d'une page à l'autre sans flash blanc. Ignoré sans dommage par les
     navigateurs qui ne savent pas encore le faire. */
  @view-transition { navigation: auto; }
  .pilot { view-transition-name: solora-pilot; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
}

/* Retour d'action : immédiat, et présent quelles que soient les préférences. */
.btn:active { transform: translateY(0) scale(.985); }
.tube__cover:active .tube__play { transform: scale(.96); }

/* Mouvement réduit : on retire le déplacement, on garde ce qui confirme une
   action — couleur, opacité, contour de focus, champ actif. */
@media (prefers-reduced-motion: reduce) {
  .offer__frame img, .film__still img { transition: none; }
  .offer:hover .offer__frame img, .film__still:hover img { transform: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
  .btn:active { transform: none; }
  .tube__cover:hover .tube__play, .tube__cover:focus-visible .tube__play { transform: none; }
  .pull:hover svg line, .pull:focus-visible svg line { transform: none; }
  .btn svg line { transition: none; }
}

/* --- La même thèse, répétée au défilement -------------------------------
   Une seule idée, celle de l'accueil : l'image se pose d'abord, le texte
   suit. Elle revient sur les prestations, les réalisations et les galeries
   de projet. Pas un effet différent par section, la même phrase répétée.
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {

  /* Quitter l'accueil doit répondre : la photographie s'enfonce dans le noir
     à mesure qu'on la dépasse. C'est le premier geste du visiteur. */
  .stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ground);
    opacity: 0;
    pointer-events: none;
  }

  @supports (animation-timeline: view()) {

    /* Seul le mouvement est piloté, jamais l'opacité : une photo ou un texte
       que le visiteur a sous les yeux sans avoir encore défilé doit être
       entièrement lisible. Au pire il est un peu décalé, jamais voilé. */
    @keyframes solora-plate  { from { transform: translateY(64px) scale(1.06); } }
    @keyframes solora-line   { from { transform: translateY(32px); } }
    @keyframes solora-sombre { to   { opacity: .9; } }

    .stage::after {
      animation-name: solora-sombre;
      animation-duration: auto;      /* c'est le défilement qui la pilote */
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: exit 0% exit 95%;
    }

    /* Plage longue : le mouvement doit durer assez pour se voir. */
    .offer__frame,
    .film__still,
    .about__frame,
    .frames figure,
    .tube {
      animation-name: solora-plate;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 20% entry 88%;
    }

    .offer__frame + div,
    .film__still + div,
    .about > div:last-child,
    .opener,
    .say,
    .aside-call__tel {
      animation-name: solora-line;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 34% entry 100%;
    }

    /* Les trois avis sont une liste : ils arrivent comme une liste. */
    .say:nth-child(2) { animation-range: entry 44% entry 110%; }
    .say:nth-child(3) { animation-range: entry 54% entry 120%; }
  }

  /* Firefox ne pilote pas encore d'animation au défilement. Même idée,
     posée par un observateur dans le script. */
  @supports not (animation-timeline: view()) {
    .js-scroll [data-arrive] {
      transform: translateY(46px);
      transition: transform 700ms var(--ease);
    }
    .js-scroll [data-arrive].is-in { transform: none; }
  }
}
