/* =========================================================================
   STYLE.css — Portfolio photo minimaliste
   Palette noir/blanc, la couleur vient des photos. Beaucoup de respiration.
   Design original inspiré des principes des portfolios éditoriaux modernes.
   ========================================================================= */

/* Police "PP Mori" (Pangram Pangram Foundry).
   Dépose les fichiers dans /fonts (voir fonts/LISEZ-MOI.txt).
   Tant qu'ils sont absents, le site retombe sur la police système en repli.
   Les poids 300 (titres fins) sont rendus par l'Extralight, 500 par le Regular. */
@font-face {
  font-family: "PP Mori";
  src: url("../fonts/PPMori-Extralight.woff2") format("woff2"),
       url("../fonts/PPMori-Extralight.woff") format("woff"),
       url("../fonts/PPMori-Extralight.otf") format("opentype");
  font-weight: 200;              /* la plus fine (Extralight) → sert aussi aux titres en 300 */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Mori";
  src: url("../fonts/PPMori-Regular.woff2") format("woff2"),
       url("../fonts/PPMori-Regular.woff") format("woff"),
       url("../fonts/PPMori-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Mori";
  src: url("../fonts/PPMori-SemiBold.woff2") format("woff2"),
       url("../fonts/PPMori-SemiBold.woff") format("woff"),
       url("../fonts/PPMori-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf8;          /* fond clair, chaud et discret (au lieu du blanc pur) */
  --fg: #171717;          /* texte principal sur fond clair */
  --text: #3d3d3d;        /* corps de texte / paragraphes */
  --muted: #6b6b6b;       /* texte secondaire : légendes, notes, méta */
  --line: #e8e8e8;
  --bg-dark: #1a1a1a;     /* surfaces sombres (au lieu du noir pur) */
  --fg-dark: #f2f2f0;     /* texte principal sur fond sombre */
  --overlay: rgba(0, 0, 0, 0.28);
  --max: 1500px;
  --gap: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "PP Mori", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;          /* pas de glisser-déposer de l'image */
  user-select: none;                /* pas de sélection */
  -webkit-user-select: none;
}

/* Transition de page : fondu doux à l'arrivée, fondu de sortie au clic (voir main.js). */
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-fade-in 0.45s var(--ease) both; }
body.is-leaving { animation: none; opacity: 0; transition: opacity 0.28s var(--ease); }

/* Page contact : le formulaire apparaît en fondu-flou, comme l'ouverture d'un projet dans le book. */
@keyframes contact-blur-in { from { opacity: 0; filter: blur(13px); } to { opacity: 1; filter: blur(0); } }
body[data-page="contact"] { animation: contact-blur-in 0.6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  body, body[data-page="contact"] { animation: none; }
  body.is-leaving { transition: none; opacity: 1; }
}

a { color: inherit; text-decoration: none; }

/* ---------- Écran de chargement (splash) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Fond : halo radial doux au centre → dégradé vers un noir profond sur les bords */
  background: radial-gradient(125% 90% at 50% 38%, #2c2c2c 0%, #1a1a1a 48%, #0e0e0e 100%);
  color: var(--fg-dark);
  transition: opacity 0.6s var(--ease);   /* fondu de sortie (après 3 s d'affichage) */
}
.splash.hide { opacity: 0; pointer-events: none; }
/* Nom calé en haut à gauche : même padding que le header, mêmes proportions que le logo,
   pour qu'il occupe exactement la place du logo (transition fluide vers la navbar). */
.splash-inner { padding: 22px 28px; text-align: left; }
.splash-name {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Mentions sous le nom (« Photographe », « Strasbourg »…) : apparition lente en cascade.
   Même format que le texte courant du site : PP Mori, 16 px, casse d'origine. */
.splash-sub {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(242, 242, 240, 0.82);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.splash-sub.show { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .splash-inner { padding: 16px 18px; }   /* aligné sur le header en mobile */
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* logo à gauche, menu à droite */
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Bouton unique "Retourner sur le site" */
.site-return {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.site-return:hover { color: var(--fg); }

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav-ig { display: inline-flex; align-items: center; }
.nav-ig svg { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero / intro accueil ---------- */
.intro {
  text-align: center;
  padding: 70px 24px 40px;
}
.intro h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.intro p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Grille de catégories (page Book) : mosaïque déstructurée ---------- */
.grid {
  columns: 2;                    /* mosaïque : chaque image garde son format */
  column-gap: var(--gap);
  max-width: none;               /* pleine largeur : pas de plafond ni de centrage */
  margin: 0;
  /* la marge basse des tuiles est rognée en colonnes → padding bas explicite = même écart */
  padding: var(--gap);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  break-inside: avoid;           /* une tuile n'est jamais coupée entre 2 colonnes */
  margin: 0 0 var(--gap);
  background: #f2f2f2;
}
.tile img {
  width: 100%;
  height: auto;                  /* format naturel respecté → hauteurs variées */
  transition: transform 1.2s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(10%);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;                    /* pas de voile par défaut */
  transition: opacity 0.45s var(--ease);
}
/* Au survol (desktop) : l'image se floute et s'assombrit, le titre apparaît */
@media (hover: hover) {
  .tile:hover img { transform: scale(1.04); filter: grayscale(30%) blur(6px); }
  .tile:hover::after { opacity: 0.4; }
  .tile:hover .tile-title { opacity: 1; transform: none; letter-spacing: 0.22em; }
}
/* Sur tactile : le 1er tap ajoute .is-revealed (aperçu persistant : flou + titre) ;
   le 2e tap sur la même image ouvre le projet (géré en JS). Plus de « hover collant ». */
@media (hover: none) {
  .tile.is-revealed img { transform: scale(1.04); filter: grayscale(30%) blur(6px); }
  .tile.is-revealed::after { opacity: 0.4; }
  .tile.is-revealed .tile-title { opacity: 1; transform: none; letter-spacing: 0.22em; }
}

.tile-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 40px);   /* marge pour que le titre ne touche pas les bords */
  color: var(--fg-dark);
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;                    /* titre caché par défaut... */
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), letter-spacing 0.6s var(--ease);
}
/* Le titre est révélé au survol (desktop) ou à l'appui (tactile) — voir les media queries hover ci-dessus. */

/* ---------- Book : barre de filtres horizontale ---------- */
.filterbar {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.filter {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.filter:hover { color: var(--fg); }
.filter.active { color: var(--fg); }
.filter.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--fg);
}

/* Book : défilement HORIZONTAL plein écran (filmstrip) */
body[data-page="home"] {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;              /* pas de scroll vertical de page */
}
body[data-page="home"] main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;                 /* indispensable pour que la bande scrolle */
}
.gallery.book-gallery {
  flex: 1 1 auto;
  min-height: 0;
  columns: auto;                 /* annule la mosaïque */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;           /* carousel centré verticalement */
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;                    /* pleine largeur, bord à bord */
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox : masque la barre de défilement */
  -ms-overflow-style: none;       /* anciens Edge/IE */
  /* Fondu des photos aux extrémités gauche/droite de la bande */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.gallery.book-gallery::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge */
.gallery.book-gallery { cursor: grab; }            /* invite au cliquer-glisser */
.gallery.book-gallery.grabbing { cursor: grabbing; scroll-behavior: auto; }
.gallery.book-gallery.grabbing img { pointer-events: none; } /* glisse sans accrocher */
.gallery.book-gallery img { -webkit-user-drag: none; user-select: none; }
.gallery.book-gallery figure {
  flex: 0 0 auto;
  height: 84%;                   /* un peu de respiration → carousel centré */
  margin: 0;
}
.gallery.book-gallery img {
  height: 100%;
  width: auto;                   /* largeur selon le format de la photo */
  max-width: none;
  object-fit: cover;
}

/* Révélation au scroll (fondu + montée) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Titre du projet au survol + zoom appuyé */
.book-gallery figure { position: relative; }
.book-gallery figure:hover img { transform: scale(1.05); }
.cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 18px 16px;
  color: var(--fg-dark);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.book-gallery figure:hover .cap { opacity: 1; transform: none; }

/* ---------- Galerie (page catégorie) ---------- */
/* ---------- Page projet : texte fixe à gauche, images qui défilent à droite ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  max-width: var(--max);
  margin: 0 auto;
  gap: clamp(28px, 5vw, 70px);
  padding: 0 var(--gap);
  align-items: start;
}
.project-aside {
  position: sticky;
  top: calc(var(--header-h, 64px) + 40px);
  align-self: start;
  padding: 40px 0 60px;
  text-align: left;
}
.project-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Panneau de gauche : fondu au changement de projet */
.aside-info { transition: opacity 0.6s var(--ease); }
.aside-info.changing { opacity: 0; }

/* Flux d'images : défilement vertical interne, on aperçoit les images
   voisines (elles dépassent), floutées et fondues en blanc aux extrémités. */
.project-stream {
  height: calc(100dvh - var(--header-h, 64px));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;                 /* barre masquée */
  -ms-overflow-style: none;
  /* Voile blanc : fondu fin en haut et en bas de la colonne */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.project-stream::-webkit-scrollbar { display: none; }
/* Espace de fin : permet à la dernière image de se centrer, sans voile en bas */
.proj-end-spacer { height: calc((100dvh - var(--header-h, 64px)) * 0.12); }
.project-stream figure.zoomable { cursor: zoom-in; }
.project-stream figure {
  margin: 0;
  height: 84%;                           /* grandes images */
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-stream img,
.project-stream video {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(13px);                    /* flou par défaut... */
  transition: opacity 0.7s var(--ease), filter 0.55s var(--ease), transform 0.9s var(--ease);
}
.project-stream img.loaded,
.project-stream video.loaded { opacity: 1; }
.project-stream figure.focused img,
.project-stream figure.focused video { filter: blur(0); }   /* ...net au centre */
.project-stream figure.focused:hover img { transform: scale(1.02); }

/* Projet à une seule image : pas de défilement, pas de voile ni de flou */
.project-stream.single {
  overflow: hidden;
  scroll-snap-type: none;
  -webkit-mask-image: none;
          mask-image: none;
}
.project-stream.single figure { height: 100%; }
.project-stream.single img { filter: none; }

/* Verrou de scroll quand tout tient à l'écran */
body.no-scroll { overflow: hidden; }

/* Écran de transition entre deux projets */
.proj-gap {
  height: 90%;                 /* distance de scroll pour la transition */
  scroll-snap-align: center;
  /* Fond transparent : le bas se fond en blanc (voile), comme le haut —
     plus de bande noire. L'écran noir nommé est géré par .proj-overlay. */
}
.proj-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;                 /* au-dessus du header, sous la lightbox */
  background: var(--bg-dark);
  color: var(--fg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.proj-overlay.show { opacity: 1; visibility: visible; }
.proj-overlay-name {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
}

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project-aside {
    position: static;
    padding: 24px 0 16px;
  }
  /* Sur mobile : défilement normal de la page, sans voile ni flou */
  .project-stream {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .project-stream figure { height: auto; margin-bottom: var(--gap); }
  .project-stream img,
  .project-stream video { filter: none; width: 100%; height: auto; }
  /* Projet à une seule image : pas de traitement particulier en mobile */
  .project-stream.single { overflow: visible; }
  .project-stream.single figure { height: auto; }
}

/* Bouton « Revenir en haut de page » — uniquement en vue mobile (page projet) */
.to-top { display: none; }
@media (max-width: 860px) {
  .to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--fg);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .to-top.show { opacity: 1; visibility: visible; transform: none; }
}

/* Bouton retour en haut à gauche de la page projet */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.back-btn:hover { color: var(--fg); }
.back-btn .back-arrow {
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}
.back-btn:hover .back-arrow { transform: translateX(-4px); }
.back-btn { margin-bottom: 24px; }

/* Fiche projet (colonne de gauche) : description puis crédits, alignés à gauche */
.project-desc {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin: 26px 0 0;              /* espace sous le titre */
}
.project-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.project-keywords .kw {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Crédits : sous la description, séparés par une ligne horizontale */
.project-credits {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.project-credits-title {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-credits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.project-credits li { display: flex; gap: 16px; font-size: 14px; }
.cred-role {
  min-width: 140px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 2px;
}
.cred-name { color: var(--fg); }

@media (max-width: 720px) {
  .project-credits li { flex-direction: column; gap: 2px; }
  .cred-role { min-width: 0; }
}

.gallery {
  columns: 2;
  column-gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--gap) 60px;
}
.gallery figure {
  margin: 0 0 var(--gap);
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease), opacity 0.8s var(--ease);
  opacity: 0;
}
.gallery img.loaded { opacity: 1; }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Lightbox : photos du projet empilées verticalement ---------- */
/* À l'ouverture, la navbar disparaît et la visionneuse occupe tout l'écran */
body.lightbox-open .site-header { display: none; }
/* Fort flou du CONTENU de la page derrière la visionneuse — fiable, sans dépendre
   de backdrop-filter (qui ne s'applique pas toujours selon le navigateur). */
body.lightbox-open main { filter: blur(32px); }
.lightbox {
  position: fixed;
  inset: 0;                              /* plein écran */
  z-index: 100;
  /* La page derrière reste perceptible, sous un flou marqué */
  background: rgba(250, 250, 248, 0.6);
  -webkit-backdrop-filter: blur(200px) saturate(130%);
          backdrop-filter: blur(200px) saturate(130%);
  /* Fondu doux à l'ouverture / fermeture */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }

/* Conteneur scrollable : les photos à la suite, une sous l'autre */
.lb-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 44px);
  padding: clamp(24px, 5vh, 60px) 24px;
  scrollbar-width: thin;
}
.lb-item { margin: 0; }
.lb-item img,
.lb-item video {
  max-width: 80vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.lb-item img.loaded,
.lb-item video.loaded { opacity: 1; }

@media (max-width: 720px) {
  .lb-item img,
  .lb-item video { max-width: 92vw; max-height: 84vh; }
}

/* Bouton "Fermer" (texte), en haut à droite */
.lb-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 4;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 6px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.3s var(--ease);
}
.lb-close:hover { color: #000; }

/* ---------- Studio : photo plein écran en haut ---------- */
.studio-cover {
  position: relative;
  height: calc(100dvh - var(--header-h, 64px));
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
/* Sur mobile : le cadre suit le ratio de l'image (16:9) → image entière, non rognée */
@media (max-width: 720px) {
  .studio-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Écart régulier entre chaque section de la page Studio (comme les tuiles du Book) */
.studio { display: flex; flex-direction: column; gap: var(--gap); }

/* Le Studio (intro) : titre + présentation (texte + repères "Basé à…"), en haut de page */
.sec.sec-studio-intro { padding: clamp(48px, 8vh, 110px) 28px clamp(40px, 6vh, 72px); }
.studio-intro-title {
  margin: 0;
  font-weight: 300;                 /* rendu en Extralight PP Mori, comme les autres grands titres */
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: 0.04em;
  color: var(--fg);
}
.studio-desc-inner { max-width: none; margin: 0; text-align: left; }
.studio-desc-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;   /* description à gauche, « Basé à… » à droite */
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  margin-top: 24px;
}
.studio-desc-text p { color: var(--text); font-size: 16px; line-height: 1.8; margin: 0 0 18px; }

/* Galerie du studio : grande image pleine largeur + rangée de 3 en dessous */
.sec.sec-studio-gallery {
  padding: 0 28px clamp(40px, 6vh, 80px);
  display: grid;
  gap: 14px;
}
.studio-gallery-wide img { width: 100%; height: auto; display: block; }
.studio-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.studio-gallery-row img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
@media (max-width: 620px) {
  .studio-gallery-row { grid-template-columns: 1fr; }
  .studio-gallery-row img { aspect-ratio: 4 / 3; }
}

/* ---------- Page À propos : colonne de texte centrée (façon magazine) ---------- */
.about-editorial {
  background: var(--bg);
  padding-top: clamp(70px, 12vh, 150px);
  padding-bottom: clamp(80px, 14vh, 180px);
}
.about-col {
  max-width: 560px;
  margin: 0 auto;
}
.about-block { margin: 0 0 clamp(30px, 4vh, 46px); }
.about-block-title {
  margin: 0 0 18px;
  font-weight: 300;                 /* police du site (PP Mori Extralight), comme les autres titres */
  font-size: clamp(17px, 1.9vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.about-block p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.about-block p:last-child { margin-bottom: 0; }

/* Bloc contact en bas de page */
.about-contact { margin-top: 0; }  /* même écart que celui entre les sections (marge basse du bloc précédent) */
.about-contact-email {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--fg);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-contact-block { margin-top: 26px; }
.about-contact-label {
  margin: 0 0 6px;
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.about-contact-block p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.about-contact-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lien fléché minimaliste : texte en capitales + ligne se terminant par une flèche */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.arrow-link-line {
  position: relative;
  display: block;
  width: 54px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.arrow-link-line::after {   /* pointe de flèche */
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.arrow-link:hover .arrow-link-line { width: 74px; }
/* Boutons CTA (Studio + Prestations) : flèche nettement plus longue, qui s'étire loin au survol */
.studio-cta-link .arrow-link-line,
.presta-cta-link .arrow-link-line { width: 90px; }
.studio-cta-link:hover .arrow-link-line,
.presta-cta-link:hover .arrow-link-line { width: 190px; }

@media (max-width: 760px) {
  .studio-desc-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Page "Le Studio" : sections ---------- */
.sec { padding: clamp(50px, 7vw, 90px) 28px; scroll-margin-top: 84px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.facts li { display: flex; gap: 18px; font-size: 14px; }
.fact-label {
  min-width: 110px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 2px;
}

/* ================= Page Prestations ================= */
/* Bandeau final sombre (appel à l'action) */
.presta-cta {
  margin-top: clamp(48px, 9vh, 100px);   /* espace entre la grille des prestations et le bandeau */
  background: var(--bg-dark);
  color: var(--fg-dark);
  text-align: center;
  padding: clamp(60px, 10vh, 110px) 28px;
}
.presta-cta-title {
  color: var(--fg-dark);
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.presta-cta-text { color: rgba(255, 255, 255, 0.7); max-width: 520px; margin: 0 auto 34px; line-height: 1.6; }

/* =========================================================================
   Page Prestations — grille façon boutique + fiche détaillée
   ========================================================================= */

/* --- Grille (liste des prestations) --- */
.pshop-title {                            /* même format que le titre « Le Studio » : à gauche, PP Mori Extralight */
  text-align: left;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: 0.04em;
  color: var(--fg);
  margin: 0;
  padding: clamp(48px, 8vh, 110px) 28px clamp(24px, 4vh, 40px);
}
.pshop-desc {                             /* même format ET même largeur de ligne que « Le Studio » */
  max-width: 60%;                         /* ≈ colonne de gauche de l'intro Studio (1.6fr / 2.6fr) */
  margin: 0 0 clamp(30px, 5vh, 52px);
  padding: 0 28px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}
@media (max-width: 760px) { .pshop-desc { max-width: 100%; } }
.pshop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.pshop-card { display: block; color: inherit; }
.pshop-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ececea;
}
.pshop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease);
}
.pshop-card:hover .pshop-media img { transform: scale(1.04); }
.pshop-name {
  margin: 14px 0 4px;
  padding: 0 16px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
}
.pshop-price {
  margin: 0 0 8px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) { .pshop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pshop-grid { grid-template-columns: 1fr; } }  /* mobile : cartes empilées */

/* --- Fiche d'une prestation --- */
.pdetail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}
.pdetail-media { margin: 0; background: #ececea; }
.pdetail-media img { width: 100%; height: auto; display: block; }
.pdetail-info {
  position: sticky;
  top: calc(var(--header-h, 64px) + 24px);
  padding: clamp(28px, 3.5vw, 60px);
  max-width: 560px;
}
.pdetail-back {
  display: inline-block;
  margin-bottom: clamp(20px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  transition: color 0.3s var(--ease);
}
.pdetail-back:hover { color: var(--fg); }
.pdetail-title {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--fg);
}
.pdetail-price {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
}
.pdetail-btn {
  display: block;
  width: 100%;
  padding: 17px;
  background: var(--fg);
  color: var(--fg-dark);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pdetail-btn:hover { background: transparent; color: var(--fg); }
.pdetail-hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.pdetail-details {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.pd-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pd-toggle-icon { font-size: 18px; line-height: 1; }
.pd-blocks { display: none; padding-bottom: 10px; }
.pdetail-details.open .pd-blocks { display: block; }
.pd-intro { color: var(--text); font-size: 15px; line-height: 1.75; margin: 0 0 22px; }
.pd-block { margin: 0 0 22px; }
.pd-block-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.pd-list { margin: 0; padding-left: 18px; }
.pd-list li { color: var(--text); font-size: 14px; line-height: 1.6; margin: 0 0 7px; }
.pd-note-line { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 6px; }

/* --- Autres prestations (bas de fiche) --- */
.presta-related {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 70px) clamp(14px, 2vw, 26px) clamp(30px, 5vw, 60px);
}
.presta-related-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--fg);
}
.presta-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 900px) { .presta-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .pdetail { grid-template-columns: 1fr; }
  .pdetail-info { position: static; max-width: none; }
}

/* ---------- CTA page "Le Studio" : texte + bouton centrés et empilés, sans fond ni filet ---------- */
.studio-cta {
  padding: clamp(48px, 8vh, 96px) 28px clamp(52px, 9vh, 104px);
  text-align: center;
}
/* Mobile : titre « Tout commence par une intention » + texte alignés à gauche */
@media (max-width: 760px) {
  .studio-cta { text-align: left; }
  .studio-cta-row { align-items: flex-start; }
}
.studio-cta-title {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.studio-cta-row {
  display: flex;
  flex-direction: column;   /* texte d'abord, bouton en dessous */
  align-items: center;
  gap: clamp(22px, 3vw, 32px);
}
.studio-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  max-width: 560px;
}
.studio-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 42px;
  background: var(--fg);
  color: var(--fg-dark);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.studio-cta-btn:hover { background: transparent; color: var(--fg); }

/* ---------- Contenu texte (contact) ---------- */
.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.page h1 {
  font-weight: 300;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 30px;
}
.page p { color: var(--text); }
.page a.inline { border-bottom: 1px solid var(--fg); }

/* Page contact : split plein écran — colonne gauche noire, formulaire à droite.
   Tout tient dans la hauteur du viewport (aucun scroll de page). */
body[data-page="contact"] { min-height: 100dvh; display: flex; flex-direction: column; }
/* L'en-tête flotte (transparent, hors flux) : le panneau noir monte jusqu'en haut. */
body[data-page="contact"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  justify-content: flex-end;   /* un seul bouton, à droite */
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
body[data-page="contact"] main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;        /* la fenêtre remplit toute la hauteur */
}
body[data-page="contact"] .page.contact-window {
  /* Offset haut commun aux deux volets : titre (gauche) et étapes (droite) au
     même niveau, descendus pour occuper l'espace (et dégager l'en-tête flottant). */
  --pane-top: max(calc(var(--header-h, 70px) + 44px), 17vh);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;                  /* aucun cadre : le noir atteint les bords */
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  grid-template-rows: minmax(0, 1fr);  /* colonnes pleine hauteur, sans déborder */
  align-items: stretch;
}
.contact-aside {
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--pane-top) clamp(30px, 3.5vw, 60px) clamp(28px, 4vh, 56px);
  min-height: 0;
  overflow-y: auto;
}
.contact-main {
  padding: var(--pane-top) clamp(28px, 4vw, 60px) clamp(26px, 3.5vh, 52px);
  min-width: 0;                /* laisse le formulaire rétrécir proprement */
  min-height: 0;
  overflow-y: auto;            /* filet de sécurité sur très petits écrans */
}
.contact-main > * { width: 100%; }
.contact-aside-inner { width: 100%; }

/* Sur desktop, on fige la hauteur au viewport : rien ne dépasse, pas de scroll. */
@media (min-width: 821px) {
  body[data-page="contact"] { height: 100dvh; overflow: hidden; }
}
.contact-aside-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.contact-aside .contact-aside-title {
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--fg-dark);
  margin: 0 0 12px;   /* titre calé sur l'offset haut → aligné avec les étapes à droite */
}
.contact-aside .contact-aside-desc { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.6; }

/* Résumé en accordéon par étape (panneau gauche) */
.recap-acc { margin-top: 24px; } /* respiration entre la mini-description et la 1re ligne de l'accordéon */
.recap-sec { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.recap-sec-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s var(--ease);
}
.recap-sec.is-done .recap-sec-head { color: rgba(255, 255, 255, 0.68); }
.recap-sec.is-open .recap-sec-head { color: var(--fg-dark); }
/* Chevron indiquant l'état plié / déplié */
.recap-sec-chevron {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  opacity: 0.7;
}
.recap-sec.is-open .recap-sec-chevron { transform: rotate(-135deg); }
/* Corps repliable à HAUTEUR RÉSERVÉE fixe : les lignes se remplissent dans un
   espace déjà prévu → rien ne bouge quand on saisit ; transition douce à l'ouverture. */
.recap-sec-body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease);
}
.recap-sec.is-open .recap-sec-body { height: calc(var(--rows, 3) * 36px + 14px); }
/* Dernière section (le message) : hauteur libre pour afficher le texte en entier
   sans troncature — étant en bas, l'agrandir ne décale aucune autre section. */
.recap-sec:last-child .recap-sec-body {
  height: auto;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.recap-sec:last-child.is-open .recap-sec-body { height: auto; grid-template-rows: 1fr; }
.recap-sec:last-child .recap-list { min-height: 0; overflow: hidden; }
/* Le message : label au-dessus, texte en pleine largeur en dessous (lecture aisée). */
.recap-sec:last-child .recap-row { grid-template-columns: 1fr; gap: 4px; padding: 8px 0 4px; }
.recap-list { margin: 0; padding: 0; }
.recap-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  min-height: 34px;
  padding: 6px 0;
}
.recap-row dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.recap-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}
.contact-aside .contact-aside-mail { margin-top: 34px; color: rgba(255, 255, 255, 0.55); font-size: 14px; line-height: 1.8; }
.contact-aside .contact-aside-mail .inline { color: var(--fg-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.contact-aside .muted-note { color: rgba(255, 255, 255, 0.5); }
.contact-main .brief-form { margin-top: 0; } /* aligné en haut avec le panneau */
@media (max-width: 820px) {
  body[data-page="contact"] .page.contact-window { grid-template-columns: 1fr; grid-template-rows: auto; --pane-top: calc(var(--header-h, 64px) + 14px); }
  .contact-aside-inner { position: static; }
  .contact-aside .recap-acc { display: none; }        /* mobile : ne garder que le titre */
  .contact-aside .contact-aside-desc { display: none; } /* mobile : masquer le sous-titre « Choisissez une prestation… » */
}

/* Formulaire de contact : champs empilés (une seule colonne, pleine largeur) */
.brief-form {
  grid-template-columns: 1fr;
  gap: 18px;
}
/* Paires côte à côte (Nom/Prénom, Email/Téléphone, Prestation/Budget) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }

/* Champ "Autre" qui apparaît sous un select */
.field-extra { margin-top: 12px; }

/* Case "À définir" en ligne sous le sélecteur de date */
.brief-form .check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
}
.brief-form .check-inline input { width: auto; }

/* Budget indicatif : non modifiable (rempli automatiquement) */
.brief-form input[readonly] {
  color: var(--muted);
  background: #fafafa;
  cursor: default;
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; margin-top: 30px; }
.form label {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.form input, .form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;   /* marge autour du texte saisi (plus collé au champ) */
  font: inherit;
  color: var(--fg);
  background: transparent;
  transition: border-color 0.3s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--fg);
}
/* Champ au format incorrect : soulignement rouge (en plus du message sous le champ) */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #c0392b; }
.form textarea { resize: vertical; min-height: 120px; }
.form button {
  justify-self: start;
  margin-top: 10px;
  padding: 13px 34px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--fg-dark);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.form button:hover { background: transparent; color: var(--fg); }

/* ---------- Formulaire de brief / devis ---------- */
.brief-form .field { display: grid; gap: 6px; }
.brief-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  font: inherit;
  color: var(--fg);
  background: transparent;
}
.brief-form select:focus { outline: none; border-color: var(--fg); }

/* Champ téléphone : indicatif (liste déroulante compacte) + numéro côte à côte */
.phone-group { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.phone-group .phone-code { width: auto; min-width: 96px; }

/* Champ date : icône calendrier interactive placée à GAUCHE (plus simple à viser) */
.brief-form input[type="date"] { position: relative; padding-left: 30px; }
.brief-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
  padding: 0;
  cursor: pointer;
}
.field-hint { font-size: 14px; color: var(--muted); letter-spacing: 0; text-transform: none; line-height: 1.5; }
.field-hint.is-ok { color: #2e7d5b; }   /* compteur atteint le minimum requis */
.field-error {
  font-size: 12px;
  color: #c0392b;
  letter-spacing: 0;
  text-transform: none;
  min-height: 0;
}
.field input:invalid { box-shadow: none; } /* pas de style natif agressif */

/* Case de consentement : label horizontal, non capitalisé */
.field-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
}
.field-consent input { width: auto; margin-top: 3px; }

/* Honeypot anti-robot : invisible pour les humains, present pour les bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.muted-note { color: var(--muted); font-size: 13px; }

/* Message d'état (confirmation / erreur) */
.form-status { margin: 4px 0 0; font-size: 14px; }
.form-status.is-ok {
  color: #1e7e46;
  background: #eef8f1;
  border: 1px solid #cfe9d8;
  padding: 14px 16px;
  border-radius: 4px;
}
.form-status.is-err { color: #c0392b; }
.brief-form.sent .form-submit { display: none; }

/* ---------- Formulaire en étapes (wizard) ---------- */
/* Barre de progression : 1 Coordonnées → 2 Projet → 3 Demande */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center; /* étapes centrées (groupe compact au milieu) */
  gap: 10px;
  list-style: none;
  margin: 0 auto 60px;   /* respiration entre les étapes et les champs */
  padding: 0;
  counter-reset: none;
}
.form-steps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto; /* largeur du contenu : libellé jamais tronqué */
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
/* Trait de liaison entre deux étapes : long, pour espacer les étapes lisibles */
.form-steps-item:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;              /* le trait absorbe l'espace : la barre ne déborde jamais de la colonne */
  width: auto;
  min-width: 12px;
  max-width: 120px;
  height: 1px;
  background: var(--line);
  transition: background 0.3s var(--ease);
}
.form-steps-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.form-steps-lbl {
  font-size: 15px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-steps-item.is-active { color: var(--fg); }
.form-steps-item.is-active .form-steps-num {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--fg-dark);
}
.form-steps-item.is-done { color: var(--fg); }
.form-steps-item.is-done .form-steps-num { border-color: var(--fg); }
.form-steps-item.is-done::after { background: var(--fg); }
@media (max-width: 560px) {
  .form-steps-lbl { display: none; } /* on garde uniquement les numéros sur mobile */
}

/* Une étape : masquée par défaut, révélée quand active */
.form-step { display: none; }
.form-step.is-active {
  display: grid;
  gap: 18px;
  animation: step-in 0.45s var(--ease) both;
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
/* Boutons de navigation Précédent / Suivant / Envoyer */
.form-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.form-next, .form-submit { margin-left: auto; } /* poussés à droite */
.form-prev {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.form-prev:hover { background: transparent; border-color: var(--fg); color: var(--fg); }
/* Bouton Suivant / Envoyer désactivé tant que l'étape n'est pas valide */
.form-next:disabled, .form-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--fg);
  color: var(--fg-dark);
}
.form-next:disabled:hover, .form-submit:disabled:hover { background: var(--fg); color: var(--fg-dark); }

/* ---------- Pop-up de confirmation (après envoi) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
  animation: modal-fade 0.3s var(--ease) both;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 34px 30px;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: modal-pop 0.35s var(--ease) both;
}
.modal-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eef8f1;
  color: #1e7e46;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.modal-title { margin: 0 0 10px; font-weight: 300; font-size: 24px; letter-spacing: 0.04em; }
.modal-text { margin: 0 0 14px; color: var(--text); line-height: 1.6; }
.modal-ref {
  margin: 0 0 26px;
  padding: 10px 14px;
  background: #f2f2f0;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal-btn {
  padding: 12px 26px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--fg);
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-dl { background: var(--fg); color: var(--fg-dark); }
.modal-dl:hover { background: transparent; color: var(--fg); }
.modal-close { background: transparent; color: var(--fg); }
.modal-close:hover { background: var(--fg); color: var(--fg-dark); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 40px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
/* Icône Instagram centrée dans le footer (le © reste à gauche) */
.site-footer .fnav { display: flex; gap: 24px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Liens légaux (à droite du footer) */
.site-footer .fnav-legal { display: flex; flex-wrap: wrap; gap: 10px 20px; }
/* Mobile : Instagram sur la 1re ligne, à droite du « © 2026 … » ; liens légaux en dessous */
@media (max-width: 600px) {
  .site-footer .fnav { position: static; transform: none; order: 2; margin-left: auto; }
  .site-footer .fnav-legal { order: 3; flex-basis: 100%; }
}

/* ---------- Pages légales (mentions légales, politique de confidentialité) ---------- */
.sec.legal { padding-top: clamp(60px, 10vh, 120px); }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal-title {
  margin: 0 0 8px;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.04em;
  color: var(--fg);
}
.legal-updated { margin: 0 0 clamp(30px, 5vh, 48px); color: var(--muted); font-size: 14px; }
.legal-inner h2 {
  margin: clamp(28px, 4vw, 40px) 0 12px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.legal-inner p { color: var(--text); font-size: 16px; line-height: 1.8; margin: 0 0 14px; }
.legal-inner .placeholder { color: var(--muted); font-style: italic; }
.site-footer a, .site-footer span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.site-footer a:hover { color: var(--fg); }
/* Icône Instagram dans le footer (à la place du mot "Instagram") */
.site-footer .fnav-ig { display: inline-flex; align-items: center; }
.site-footer .fnav-ig svg { display: block; width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
/* Menu en burger dès la tablette (le menu complet ne tient plus proprement) */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* Tablette : réglages intermédiaires */
@media (max-width: 900px) {
  .lightbox img { max-width: 84vw; max-height: 70vh; }
}

/* Mobile */
@media (max-width: 720px) {
  .site-header { padding: 16px 18px; }
  .grid, .gallery { grid-template-columns: 1fr; columns: 1; }
  .intro { padding: 50px 20px 20px; }
  /* Fondu des bords du Book réduit sur petit écran */
  .gallery.book-gallery {
    padding: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
}

/* ---------- Accessibilité : réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .gallery img { opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cap { opacity: 1 !important; transform: none !important; }
}
