/* v4 : couleur d'accent bleue, polices fidèles aux références, titres sans coupures,
   animations plus rapides et mieux gérées, nouveaux composants (planche contact, texte qui s'éclaire).
   Chargé en dernier : il prime sur v3. */

:root {
  --signal: #3340f2;        /* fonds (texte crème dessus : 5,5:1) */
  --signal-ink: #2832d9;    /* texte et italiques sur crème */
  --signal-light: #8e99ff;  /* texte et italiques sur noir */
  --brass: #3340f2;
  --brass-text: #2832d9;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
}
::selection { background: var(--signal); color: var(--cream); }

/* ---------- Polices : Archivo (esprit Helvetica de Yohann Truminski) pour titres et interface,
   Mukta (Sezen June) pour les textes, Tinos italique (Times de Yohann Truminski) pour les accents ---------- */
h1, h2, h3, h4, .brand, .label, .eyebrow, .nav__link, .nav__cta, .btn, .menu-btn, .chip, .text-link, .strip__track,
.hero__controls, .hero__side, .hero__count, .work-card__meta, .work__hint, .foot__row, .foot__legal, .credits strong,
.reperes strong, .facts dt, .fan__cap, .fan__side, .lb__cap, .frame__no, .offer__from, .film__no, .film__cat, .film__hint,
.nav.is-open .nav__link, .site-status, .cta-bar .btn {
  font-family: var(--font-display);
}
h1, h2 { font-stretch: 88%; letter-spacing: -0.05em; }
.manifesto__title, .break__big, .foot__big, .hero__name { font-stretch: 88%; }
h1 em, h2 em, h3 em, .foot__big em { font-stretch: 100%; }

/* ---------- Titres mot à mot : plus de coupures sur les accents ni sur l'italique ---------- */
.split .wm { padding: 0.34em 0.16em 0.22em; margin: -0.34em -0.16em -0.22em; }
.split .wm__i { transform: translateY(125%); transition: transform 800ms var(--ease-out) calc(var(--i, 0) * 45ms); }

/* ---------- Apparitions : plus vives, jamais lentes ---------- */
.reveal { transform: translateY(24px); transition: opacity 700ms var(--ease-out) var(--rd, 0ms), transform 700ms var(--ease-out) var(--rd, 0ms); }
.reveal--clip picture { transition: clip-path 800ms var(--ease-out) var(--rd, 0ms); }
.reveal--clip picture img { transform: scale(1.12); transition: transform 1000ms var(--ease-out) var(--rd, 0ms); }
.reveal--clip .work-card__meta { transition: opacity 500ms ease calc(var(--rd, 0ms) + 350ms), transform 600ms var(--ease-out) calc(var(--rd, 0ms) + 350ms); }
.reveal--clip .work-card__zoom { transition: scale 450ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--rd, 0ms) + 600ms); }

/* ---------- Survols : seulement avec une souris ---------- */
.btn:hover, .offer:hover, .process__list li:hover .process__n, .nav__cta:hover span,
.work-card:hover .work-card__zoom, .work-card:hover .work-card__frame { transform: none; }
.work-card:hover .work-card__zoom { background: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .offer:hover { transform: translateY(-6px); }
  .process__list li:hover .process__n { transform: translateX(8px); }
  .nav__cta:hover span { transform: translate(3px, -3px); }
  .work-card:hover .work-card__frame { transform: translateY(-6px); }
  .work-card:hover .work-card__zoom { transform: rotate(90deg); background: var(--signal); color: var(--cream); }
}
.btn, .nav__cta, .hero__enter i { transition-property: background-color, color, border-color, transform, translate; transition-duration: 200ms, 200ms, 200ms, 450ms, 450ms; transition-timing-function: var(--ease-out); }

/* ---------- Couleur d'accent : bandeau, pied de page, prestations ---------- */
.strip { background: var(--signal); color: var(--cream); }
.site-footer { background: var(--signal); color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--cream); }
.foot__big, .foot__big em, .foot__row a, .foot__legal { color: var(--cream); }
.foot__row { border-top-color: rgba(238, 233, 223, 0.6); }
.offer--mariage { background: var(--signal); color: var(--cream); }
.offer--mariage .btn--ghost { color: var(--cream); border-color: var(--cream); }
.offer--mariage .btn--ghost:hover { background: rgba(238, 233, 223, 0.14); }
.work h2 em, .avis-band h1 em, .break em { color: var(--signal-light); }
.work-card:hover .work-card__meta span:last-child { color: var(--signal-light); }
.avis-band .eyebrow { color: var(--cream); }

/* ---------- Accueil : l'ouverture se range en défilant (animations liées au défilement) ---------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__content { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .hero__stage { animation: hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-out { to { translate: 0 -12vh; opacity: 0.1; } }
    @keyframes hero-zoom { to { scale: 1.1; } }
  }
}

/* ---------- Composant : la planche contact (photos qui défilent de côté pendant qu'on descend) ---------- */
.film { background: var(--ink); color: var(--cream); view-timeline: --film block; }
.film :focus-visible { outline-color: var(--cream); }
.film__head { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: var(--sp-2); }
.film__head h2 { font-size: clamp(2.5rem, 1rem + 5vw, 5rem); color: var(--cream); }
.film__head h2 em { color: var(--signal-light); }
.film__viewport { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
.film__viewport::-webkit-scrollbar { display: none; }
.film__track { display: flex; gap: clamp(0.75rem, 1.6vw, 1.25rem); width: max-content; align-items: flex-start; padding-bottom: var(--sp-3); }
.film__frame { display: grid; gap: 0.6rem; padding: 0; margin: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; font: inherit; }
.film__frame picture, .film__img { display: block; }
.film__img { height: clamp(14rem, 52vh, 32rem); width: auto; max-width: none; background: #191919; }
.film__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; }
.film__cat { color: #b9b3a8; }
.film__frame:focus-visible { outline: var(--focus); outline-offset: 5px; }
.film__foot { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.film__bar { flex: 1; height: 2px; background: rgba(238, 233, 223, 0.25); overflow: hidden; }
.film__bar span { display: block; height: 100%; background: var(--signal-light); transform-origin: 0 50%; transform: scaleX(0.04); }
.film__hint { margin: 0; max-width: none; font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; color: #b9b3a8; white-space: nowrap; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .film { height: 280vh; }
    .film__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-content: center; overflow: hidden; }
    .film__viewport { overflow: visible; padding-inline: 0; align-self: center; min-width: 0; }
    .film__track { padding-inline: var(--gutter); animation: film-slide linear both; animation-timeline: --film; animation-range: cover 26.3% cover 73.7%; }
    .film__img { height: clamp(14rem, 50vh, 30rem); }
    .film__bar span { animation: film-bar linear both; animation-timeline: --film; animation-range: cover 26.3% cover 73.7%; }
    .film__hint { display: none; }
    @keyframes film-slide { from { translate: 0 0; } to { translate: calc(-100% + 100vw) 0; } }
    @keyframes film-bar { to { transform: scaleX(1); } }
  }
}

/* ---------- Composant : texte qui s'éclaire mot à mot en défilant ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sw { color: var(--ink-2); animation: sw-lit linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 1.4%) entry calc(36% + var(--i, 0) * 1.4%); }
    @keyframes sw-lit { to { color: var(--ink); } }
  }
}

/* Mode maquette (?mockup) : tout est affiché, sans animation, pour prendre des captures fidèles */
html.mockup *, html.mockup *::before, html.mockup *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
html.mockup .film { height: auto !important; }
html.mockup .film__sticky { position: static !important; height: auto !important; }
html.mockup .film__track { animation: none !important; translate: none !important; }
html.mockup body::before { display: none !important; }
html.mockup .cta-bar { display: none !important; }

/* ---------- Grille des travaux : 3 / 3 / 4 photos, rangées pleines, léger décalage ---------- */
@media (min-width: 800px) {
  .work__grid { grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .work-card:nth-child(-n+6) { grid-column: span 4; }
  .work-card:nth-child(n+7) { grid-column: span 3; }
  .work-card:nth-child(1), .work-card:nth-child(4), .work-card:nth-child(7), .work-card:nth-child(10) { margin-top: 0; }
  .work-card:nth-child(2), .work-card:nth-child(5), .work-card:nth-child(8) { margin-top: clamp(2rem, 4vw, 4rem); }
  .work-card:nth-child(3), .work-card:nth-child(6), .work-card:nth-child(9) { margin-top: clamp(1rem, 2vw, 2rem); }
  .work-card:nth-child(n+7) { grid-row: auto; }
}

/* ---------- En-tête de l'accueil : une fois la page défilée, fond plein (plus de texte qui se mélange aux photos) ---------- */
.page-home .site-header.is-scrolled { mix-blend-mode: normal; background: rgba(10, 10, 10, 0.94); color: var(--cream); border-bottom-color: rgba(238, 233, 223, 0.2); }

/* ---------- Formulaire : bloc « Votre événement » ---------- */
.event-fields { border: 0; border-left: 3px solid var(--signal); margin: 0 0 var(--sp-3); padding: 0 0 0 var(--sp-3); min-width: 0; }
.event-fields[hidden] { display: none; }
.event-fields legend { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: 0.5rem; }
.info-strip__item[hidden] { display: none; }

/* ---------- Verset du pied de page ---------- */
.foot__verse { margin: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); max-width: 40rem; }
.foot__verse blockquote { margin: 0; }
.foot__verse p { margin: 0; max-width: none; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1.3; color: var(--cream); }
.foot__verse figcaption { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); opacity: 0.9; }

/* ---------- Grille des travaux : 3 rangées de 3 (portraits / mode / mariage) ---------- */
@media (min-width: 800px) {
  .work-card:nth-child(n) { grid-column: span 4; }
  .work-card:nth-child(n+7) { margin-top: 0; }
}

/* ---------- Conditions générales de vente et de réservation ---------- */
.cgv { max-width: 46rem; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.cgv h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 0.4rem; }
.cgv__marque { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-small); margin: 0 0 var(--sp-3); }
.cgv p { margin: 0 0 0.9rem; max-width: none; }
.cgv__toc { margin: var(--sp-3) 0 var(--sp-4); padding: var(--sp-3); background: rgba(10, 10, 10, 0.04); border-left: 3px solid var(--signal); }
.cgv__toc ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: var(--sp-4); }
.cgv__toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.cgv__art { padding-top: var(--sp-3); scroll-margin-top: 6rem; }
.cgv h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.cgv h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 1.2rem 0 0.5rem; color: var(--signal-ink); }
.cgv ul { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.cgv li { margin-bottom: 0.45rem; }

/* ---------- Accueil : « Le photographe » avec son portrait, juste après le manifeste ---------- */
.about-teaser__photo { margin: 0; max-width: 26rem; }
.about-teaser__photo picture, .about-teaser__img { display: block; width: 100%; height: auto; background: #191919; }
.about-teaser__body { display: grid; gap: var(--sp-3); align-content: center; }
@media (min-width: 900px) {
  .about-teaser__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-6); align-items: center; }
}
.about-teaser__body h2 { max-width: 17ch; }
.hero [hidden] { display: none !important; }
.hero__name { font-size: min(clamp(3.75rem, 2rem + 11.5vw, 11.5rem), calc((100vw - 3rem) / 5.2)); }
@media (max-width: 899px) { .hero__enter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

/* ---------- Corrections téléphone ---------- */
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.devis { grid-template-columns: minmax(0, 1fr); }
.devis__list a { flex-wrap: wrap; }
@media (min-width: 900px) { .devis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
@media (max-width: 700px) { .rail__filters { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; } .rail__filters .chip { min-height: 2.75rem; margin: 0; } }
