/* Page VadiSites et vitrine, identité B « ta photo dans ton nom » : mastic et noir, la seule couleur vient des photos.
   Barlow Condensed ExtraBold pour les titres, Barlow pour le texte. HTML et CSS simples, sans framework.
   Les décisions de design sont dans DESIGN.md, à la racine du dépôt. */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fond: #dedad3;        /* mastic */
  --surface: #d3cec6;     /* mastic foncé */
  --clair: #e8e7e3;       /* champs et cartes posées */
  --encre: #0a0a0a;
  --doux: #3d3a35;
  --sur-encre: #dedad3;
  --doux-encre: #b3ada4;
  --accent: #0a0a0a;      /* barre de progression (anime.js) */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texte: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --pas-1: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);   /* texte */
  --pas-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);     /* chapeau */
  --pas-3: clamp(1.9rem, 1.4rem + 2vw, 3rem);          /* sous-titre */
  --pas-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);      /* titre de partie */
  --pas-m: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);      /* intertitre condensé */
  --pas-5: clamp(4rem, 2.6rem + 5.6vw, 8.5rem);        /* grands chiffres */
  --pas-h1: clamp(2.3rem, (100vw - 32px) / 18.6, 4.15rem);   /* phrase d'accroche : la première phrase tient sur une ligne dès la tablette */
  --entete: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--texte); font-size: var(--pas-1); line-height: 1.55; color: var(--encre); background: var(--fond); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--sur-encre); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 800 var(--pas-4)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
h3 { font: 800 var(--pas-3)/0.95 var(--display); text-transform: uppercase; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.conteneur { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 150px) 0; }
.sombre { background: var(--encre); color: var(--sur-encre); }
.grille-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; }
.intro { max-width: 52ch; font-size: var(--pas-2); line-height: 1.4; }
.doux { color: var(--doux); }
.nowrap { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Boutons : rectangles nets, noirs ou cernés */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; font: 600 1.0625rem/1.2 var(--texte); text-decoration: none; border: 2px solid var(--encre); touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.bouton:active { transform: scale(0.97); }
.bouton--plein { background: var(--encre); color: var(--sur-encre); }
.bouton--clair { background: transparent; color: var(--encre); }
.sombre .bouton { border-color: var(--sur-encre); }
.sombre .bouton--plein { background: var(--sur-encre); color: var(--encre); }
.sombre .bouton--clair { color: var(--sur-encre); }
@media (hover: hover) and (pointer: fine) {
  .bouton--plein:hover { background: #2a2a2a; border-color: #2a2a2a; }
  .bouton--clair:hover { background: var(--encre); color: var(--sur-encre); }
  .sombre .bouton--plein:hover { background: #fff; border-color: #fff; }
  .sombre .bouton--clair:hover { background: var(--sur-encre); color: var(--encre); }
}

/* En-tête : une ligne, rien qui flotte */
.entete { position: sticky; top: 0; z-index: 30; background: var(--fond); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--entete); }
.marque { display: inline-flex; align-items: center; gap: 10px; font: 800 var(--pas-m)/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: 0.01em; }
.marque img { width: 34px; height: 34px; }
.nav { display: none; gap: 32px; font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }
.entete .bouton { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.entete .tel-texte { display: none; }

/* ------------------------------------------------------------------ Ouverture : le nom, sa photo au milieu */
.heros { padding: clamp(20px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); overflow: clip; }
.nom { display: flex; align-items: center; justify-content: center; gap: 0.08em; margin: 0 0 clamp(28px, 4.4vw, 64px); font: 800 min(15.4vw, 15.5rem)/0.8 var(--display); text-transform: uppercase; letter-spacing: -0.012em; white-space: nowrap; }
.nom .l { display: block; }
.nom .cadre { width: 1.62em; height: 0.74em; overflow: hidden; flex: none; background: var(--surface); }
.nom .cadre img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 28%; }
.heros-bas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: clamp(24px, 3vw, 40px); align-items: start; }
.heros h1 { grid-column: 1 / -1; font: 800 var(--pas-h1)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.012em; }
.heros h1 span { display: block; }
.heros .recherche { grid-column: 1 / span 5; }
.heros .faits { grid-column: 1 / span 5; }
.heros .cote { grid-column: 7 / -1; grid-row: 2 / span 2; display: grid; gap: 24px; }
.heros .cote > p { max-width: 40ch; font-size: var(--pas-2); line-height: 1.4; }

/* Le champ où s'écrivent les recherches de vrais clients. Ni le logo ni les couleurs de Google. */
.recherche { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 18px; border: 2px solid var(--encre); background: var(--clair); font: 500 var(--pas-2)/1 var(--texte); white-space: nowrap; overflow: hidden; }
.recherche .ic { width: 24px; height: 24px; }
.recherche-texte { min-width: 0; }
.curseur { display: none; width: 2px; height: 1.15em; background: var(--encre); margin-left: -9px; }
html.anime .curseur { display: block; animation: b-clignote 1s steps(1) infinite; }
@keyframes b-clignote { 50% { opacity: 0; } }

.faits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; }
.faits li { display: flex; align-items: center; gap: 12px; }
.faits li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--encre); }

/* ------------------------------------------------------------------ Le téléphone en 3D (assets/js/telephone.js)
   Un vrai objet en CSS 3D, sans bibliothèque : des tranches empilées font l'épaisseur, l'écran est fait d'images.
   --tw est sa largeur ; tout le reste en découle. Sans JavaScript, il est posé à plat, de face. */
.tel3d { --tw: 260px; --ep: calc(var(--tw) * 0.085); --rx: 0deg; --ry: 0deg; --ryn: 0; position: relative; flex: none; width: var(--tw); height: calc(var(--tw) * 2.071); perspective: calc(var(--tw) * 4.8); perspective-origin: 50% 40%; -webkit-user-select: none; user-select: none; }
.tel-pivot, .tel-corps, .tel-ecran { position: absolute; inset: 0; transform-style: preserve-3d; }
.js .tel-pivot { transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.tel-face, .tel-tranche { position: absolute; inset: 0; border-radius: calc(var(--tw) * 0.135); }
.tel-face { background: #0b0b0a; }
.tel-avant { transform: translateZ(calc(var(--ep) / 2)); }
.tel-dos { transform: translateZ(calc(var(--ep) / -2)) rotateY(180deg); background: #161615; display: none; }
.js .tel-dos { display: block; }
.tel-dos::before { content: ""; position: absolute; left: 9%; top: 4.2%; width: 30%; aspect-ratio: 1 / 2.05; border-radius: calc(var(--tw) * 0.07); background:
  radial-gradient(circle at 50% 18%, #050505 0 21%, #2b2a28 22% 27%, transparent 28%),
  radial-gradient(circle at 50% 50%, #050505 0 21%, #2b2a28 22% 27%, transparent 28%),
  radial-gradient(circle at 50% 82%, #050505 0 21%, #2b2a28 22% 27%, transparent 28%), #1d1d1b; }
.tel-dos img { position: absolute; left: 50%; top: 52%; width: 26%; height: auto; translate: -50% -50%; opacity: 0.92; }
.tel-tranche { border: calc(var(--tw) * 0.03) solid #1c1b1a; transform: translateZ(calc(var(--ep) * var(--k, 0))); }
.tel-ecran { left: calc(var(--tw) * 0.04); right: calc(var(--tw) * 0.04); top: calc(var(--tw) * 0.04); bottom: calc(var(--tw) * 0.04); transform: translateZ(calc(var(--ep) / 2 + 1px)); }
.tel-ecran img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; border-radius: calc(var(--tw) * 0.1); backface-visibility: hidden; -webkit-backface-visibility: hidden; -webkit-user-drag: none; }
/* L'objectif, au milieu en haut, et le reflet du verre qui glisse quand le téléphone tourne */
.tel-ecran::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 1.6%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: #050505; translate: -50% 0; transform: translateZ(1.5px); }
.tel-reflet { position: absolute; inset: 0; border-radius: calc(var(--tw) * 0.1); pointer-events: none; transform: translateZ(2px); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.13) 46%, rgba(255, 255, 255, 0.03) 54%, transparent 68%) calc(50% + var(--ryn) * 1.7%) 0 / 320% 100% no-repeat; }
.tel-ombre { position: absolute; left: 50%; top: 100%; width: 118%; height: calc(var(--tw) * 0.2); translate: -50% -32%; background: radial-gradient(closest-side, rgba(10, 10, 10, 0.34), rgba(10, 10, 10, 0)); pointer-events: none; }

/* ------------------------------------------------------------------ « Votre site, pièce par pièce »
   Sans animation : le téléphone ouvert en éclaté, immobile, et les quatre pièces en dessous. */
.pieces { position: relative; padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 8vw, 120px); overflow: clip; }
.pieces-scene { width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; gap: clamp(40px, 6vw, 72px); justify-items: center; }
.pieces .tel3d { --tw: min(52vw, 280px); margin: 0 auto; }
.js .pieces .tel3d { --rx: 9deg; --ry: -38deg; --ryn: -38; margin-block: calc(var(--tw) * 0.1); translate: 14% 0; }
.couche { --zc: 0; transform: translateZ(calc(var(--tw) * var(--zc))); will-change: transform, opacity; }
html.js:not(.anime) .couche[data-couche="onglets"] { --zc: 0.2; }
html.js:not(.anime) .couche[data-couche="carte"] { --zc: 0.4; }
html.js:not(.anime) .couche[data-couche="titre"] { --zc: 0.6; }
html.js:not(.anime) .couche[data-couche="entete"] { --zc: 0.8; }
html.js:not(.anime) .couche[data-couche="barre"] { --zc: 1; }
.tel-fiche { --fa: 1; --fd: 0; position: absolute; left: 0; top: 0; width: calc(var(--tw) * 0.86); height: auto; max-width: none; opacity: var(--fa); filter: drop-shadow(0 calc(var(--tw) * 0.04) calc(var(--tw) * 0.06) rgba(10, 10, 10, 0.28));
  transform: translate3d(calc(var(--tw) * (var(--fx, 0.95) + var(--fd) * 0.5)), calc(var(--tw) * var(--fy, 1.1)), calc(var(--tw) * var(--fz, 0.5))); will-change: transform, opacity; }
html:not(.js) .tel-fiche { display: none; }
html:not(.js) .config-scene { padding-bottom: calc(var(--tw) * 0.3); }
.pieces-textes { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
.piece-texte:first-child { grid-column: 1 / -1; }
.piece-texte h2 { font-size: var(--pas-4); }
.piece-texte h3 { font-size: var(--pas-3); margin: 0 0 12px; }
.piece-texte .num { display: block; font: 800 var(--pas-4)/0.8 var(--display); margin: 0 0 10px; }
.piece-texte p { max-width: 30ch; }
html:not(.anime) .si-anime { display: none; }
.choix-3d { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--doux); }
html.anime .choix-3d { display: none; }
.choix-animations[hidden] { display: none !important; }
.choix-animations button:not(.bouton) { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 10px 4px; margin: -10px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Avec les animations : la scène reste collée, le téléphone s'ouvre et se referme au rythme du défilement */
html.anime .pieces { height: 420vh; padding: 0; overflow: visible; }
html.anime .pieces-scene { position: sticky; top: var(--entete); height: calc(100vh - var(--entete)); height: calc(100svh - var(--entete)); width: 100%; display: block; overflow: clip; }
html.anime .pieces .tel3d { --tw: min(23vw, calc((100svh - var(--entete) - 150px) / 2.071), 330px); position: absolute; left: 67%; top: 50%; margin: 0; translate: -50% -50%; }
html.anime .pieces-textes { position: absolute; inset: 0; display: block; pointer-events: none; }
html.anime .piece-texte { position: absolute; left: max(16px, calc((100% - 1240px) / 2)); top: 20%; width: min(520px, 36vw); opacity: 0; will-change: opacity, transform; }
html.anime .piece-texte--visible { pointer-events: auto; }
html.anime .piece-texte h2 { font-size: var(--pas-4); margin: 0 0 16px; }
html.anime .piece-texte h3 { font-size: var(--pas-4); margin: 0 0 16px; }
html.anime .piece-texte .num { font-size: var(--pas-5); }
html.anime .piece-texte p { font-size: var(--pas-2); line-height: 1.35; max-width: 26ch; }
.pieces-jauge { display: none; }
html.anime .pieces-jauge { display: block; position: absolute; left: max(16px, calc((100% - 1240px) / 2)); bottom: 32px; width: min(240px, 40vw); height: 2px; background: rgba(10, 10, 10, 0.18); }
html.anime .pieces-jauge i { display: block; height: 100%; background: var(--encre); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ------------------------------------------------------------------ Trois étapes, en noir */
.etapes-zone h2 { max-width: 22ch; }
.etapes { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 40px; counter-reset: etape; }
.etapes li { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--sur-encre); }
.etapes li::before { counter-increment: etape; content: counter(etape); font: 800 var(--pas-5)/0.8 var(--display); }
.etapes h3 { font-size: var(--pas-m); }
.etapes p { color: var(--doux-encre); max-width: 38ch; }

/* ------------------------------------------------------------------ Les formules : on choisit, le téléphone tourne, le prix suit.
   Trois boutons radio, donc tout marche sans JavaScript ; telephone.js ajoute la rotation et le prix qui défile. */
.formules-zone .entete-zone { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.config { position: relative; display: grid; gap: 28px 16px; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 84px; }
.config-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.config-consigne { font-weight: 600; }
.config-onglets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--encre); }
.config-onglets label { position: relative; display: grid; gap: 2px; align-content: start; min-height: 68px; padding: 10px 12px; min-width: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background-color 180ms ease, color 180ms ease; }
.config-onglets label + label { border-left: 2px solid var(--encre); }
.config-onglets b { font: 800 var(--pas-m)/1 var(--display); text-transform: uppercase; }
.config-onglets span { font-weight: 500; font-variant-numeric: tabular-nums; }
.config-onglets small { font: 600 0.875rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
#f-essentiel:checked ~ .config-onglets label[for="f-essentiel"], #f-pro:checked ~ .config-onglets label[for="f-pro"], #f-premium:checked ~ .config-onglets label[for="f-premium"] { background: var(--encre); color: var(--sur-encre); }
#f-essentiel:focus-visible ~ .config-onglets label[for="f-essentiel"], #f-pro:focus-visible ~ .config-onglets label[for="f-pro"], #f-premium:focus-visible ~ .config-onglets label[for="f-premium"] { outline: 3px solid var(--encre); outline-offset: 3px; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .config-onglets label:hover { background: var(--surface); } }

.config-scene { --tw: min(46vw, 220px); --marge: calc(var(--tw) * 0.1); position: relative; display: grid; justify-items: center; align-content: start; padding: var(--marge) 0 12px; overflow: clip; touch-action: pan-y; }
.config-scene .tel3d { --tw: inherit; z-index: 1; }
.js .config-scene .tel3d { --rx: 7deg; --ry: 24deg; --ryn: 24; cursor: grab; }
.js .config-scene .tel3d.est-saisi { cursor: grabbing; }
.tel-ecran img[data-f] { opacity: 0; transition: opacity 160ms linear; }
#f-essentiel:checked ~ .config-scene img[data-f="essentiel"], #f-pro:checked ~ .config-scene img[data-f="pro"], #f-premium:checked ~ .config-scene img[data-f="premium"] { opacity: 1; }
/* Quand telephone.js pilote : l'écran change au moment où le téléphone montre son dos */
.config--js .tel-ecran img[data-f] { opacity: 0 !important; transition: none; }
.config--js .tel-ecran img[data-f].est-visible { opacity: 1 !important; }
/* Le plateau : un disque noir vu en perspective, qui tourne avec le téléphone */
.plateau { position: absolute; left: 50%; top: calc(var(--marge) + var(--tw) * 1.9); width: calc(var(--tw) * 1.9); height: calc(var(--tw) * 0.42); translate: -50% 0; border-radius: 50%; background: var(--encre); }
.plateau::before { content: ""; position: absolute; inset: 7% 4.5%; border-radius: 50%; border: 2px solid rgba(222, 218, 211, 0.28); }
.plateau::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(222, 218, 211, 0.16), rgba(222, 218, 211, 0)); }
.config-geste { position: relative; z-index: 2; display: none; align-items: center; gap: 8px; margin-top: calc(var(--tw) * 0.34); padding: 6px 12px; background: var(--encre); color: var(--sur-encre); font: 600 0.9375rem/1.2 var(--texte); }
.js .config-geste { display: inline-flex; }
.config-geste .ic { width: 16px; height: 16px; }

/* Le nom et le prix de la formule choisie (au-dessus du téléphone sur un petit écran), puis le détail */
.config-tetes, .config-panneaux { display: grid; }
.tete, .panneau { display: none; gap: 12px; align-content: start; }
#f-essentiel:checked ~ :is(.config-tetes, .config-panneaux) [data-f="essentiel"], #f-pro:checked ~ :is(.config-tetes, .config-panneaux) [data-f="pro"], #f-premium:checked ~ :is(.config-tetes, .config-panneaux) [data-f="premium"] { display: grid; }
.tete h3 { font-size: var(--pas-3); }
.tete .prix { font: 800 var(--pas-5)/0.82 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tete-style { font-weight: 600; }
.panneau .pour { font-weight: 600; font-size: var(--pas-2); line-height: 1.3; }
.liste-nette { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 12px; }
.liste-nette li { display: flex; gap: 12px; align-items: flex-start; }
.liste-nette li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.5em; background: currentColor; }
.panneau .actions { align-items: center; gap: 12px 24px; }
.lien-exemple { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.lien-exemple .ic { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lien-exemple:hover .ic { transform: translateX(4px); } }
.config-fictif { color: var(--doux); font-size: 0.9375rem; }
.options-ligne { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--encre); max-width: 70ch; }
.note-prix { margin-top: 20px; font-size: 0.9375rem; color: var(--doux); max-width: 70ch; }
.plus-loin { margin-top: 32px; }

/* ------------------------------------------------------------------ Qui je suis, avec les garanties */
.qui .photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: hidden; background: #1c1c1c; }
.qui .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.qui .droite { grid-column: 7 / -1; display: grid; gap: 28px; align-content: center; }
.qui .droite p.intro { max-width: 40ch; color: var(--doux-encre); }
.engagements { list-style: none; padding: 0; margin: 0; display: grid; }
.engagements li { display: grid; gap: 6px; padding: 22px 0; border-top: 2px solid var(--sur-encre); }
.engagements li:last-child { border-bottom: 2px solid var(--sur-encre); }
.engagements strong { font: 800 var(--pas-m)/1 var(--display); text-transform: uppercase; }
.engagements span { color: var(--doux-encre); }

/* ------------------------------------------------------------------ Questions */
.questions .conteneur { display: grid; gap: clamp(32px, 5vw, 64px) 16px; }
.questions h2 { max-width: 8ch; }
.faq { display: grid; max-width: 860px; }
.faq details { border-top: 2px solid var(--encre); }
.faq details:last-child { border-bottom: 2px solid var(--encre); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 800 var(--pas-m)/1.05 var(--display); text-transform: uppercase; touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 var(--pas-m)/1 var(--display); flex: none; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--doux); padding: 0 0 26px; max-width: 64ch; }

/* ------------------------------------------------------------------ Contact : le numéro en très grand */
.contact .conteneur { display: grid; gap: 28px; }
.contact h2 { max-width: 18ch; }
.contact .intro { color: var(--doux-encre); }
.contact .tel { font: 800 clamp(3.4rem, 1.4rem + 7.6vw, 7.6rem)/0.9 var(--display); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .contact .tel:hover { text-decoration: underline; text-decoration-thickness: 0.06em; } }
.contact .mail { font-size: var(--pas-2); font-weight: 500; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }

/* Pied de page */
.pied { padding: 48px 0 120px; font-size: 0.9375rem; color: var(--doux); }
.pied .conteneur { display: grid; gap: 10px; }
.pied span { max-width: 75ch; }
.pied strong { font: 800 var(--pas-m)/1 var(--display); text-transform: uppercase; color: var(--encre); }

/* Barre d'appel sur téléphone, cachée tant que le bouton du haut est à l'écran */
.barre-appel { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.barre-appel .bouton { width: 100%; outline: 2px solid var(--fond); }
.barre-appel.cachee { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ Mouvements propres à la page : le nom se forme, la photo s'ouvre */
html.anime .nom .l { animation: b-monte 900ms var(--ease-out) both; }
html.anime .nom .l + .cadre + .l { animation-delay: 120ms; }
html.anime .nom .cadre { animation: b-ouvre 1100ms var(--ease-in-out) 250ms both; }
html.anime .nom .cadre img { animation: b-lent 18s ease-in-out infinite alternate; }
html.anime .heros-bas h1 span { animation: b-monte 900ms var(--ease-out) 420ms both; }
html.anime .heros-bas h1 span + span { animation-delay: 520ms; }
html.anime .heros-bas .recherche, html.anime .heros-bas .cote > * { animation: b-monte 900ms var(--ease-out) 640ms both; }
html.anime .heros-bas .cote > * + * { animation-delay: 720ms; }
html.anime .heros-bas .cote > * + * + * { animation-delay: 800ms; }
@keyframes b-monte { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
@keyframes b-ouvre { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
@keyframes b-lent { from { transform: scale(1.04); } to { transform: scale(1.14); } }

/* ------------------------------------------------------------------ Vitrine : la vidéo au défilement (sequence.js), textes posés sur le mastic */
body.vadisites .sequence { --seq-fond: var(--fond); --seq-encre: var(--encre); --seq-accent: var(--doux); }
body.vadisites .seq-texte h2 { font-size: var(--pas-3); margin: 0 0 14px; }
body.vadisites .seq-texte .num { display: block; font: 800 var(--pas-5)/0.8 var(--display); margin: 0 0 10px; opacity: 1; }
body.vadisites .seq-texte p { font-size: var(--pas-2); line-height: 1.35; opacity: 1; max-width: 26ch; }
html.anime body.vadisites .sequence--active .seq-texte { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0; top: 22vh; width: min(520px, 36vw); }
html:not(.anime) body.vadisites .sequence-textes { width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; padding: 40px 0 clamp(72px, 9vw, 130px); }
html:not(.anime) body.vadisites .seq-texte { width: auto; margin: 0; }
html:not(.anime) body.vadisites .seq-texte:first-child { grid-column: 1 / -1; }
html:not(.anime) body.vadisites .seq-texte:first-child h2 { font-size: var(--pas-4); margin: 0; }
html:not(.anime) body.vadisites .seq-texte .num { font-size: var(--pas-4); }
html:not(.anime) body.vadisites .seq-texte p { font-size: var(--pas-1); max-width: 30ch; }
@media (max-width: 979px) { html:not(.anime) body.vadisites .sequence-textes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  html.anime body.vadisites .sequence--active .seq-texte { top: 0; bottom: auto; width: calc(100% - 32px); padding: 14px 0 16px; background: var(--seq-fond); }
  html.anime body.vadisites .sequence--active .seq-texte .num { float: left; margin: 0 12px 0 0; font-size: 3.1rem; }
  html.anime body.vadisites .sequence--active .seq-texte h2 { font-size: 2.1rem; margin-bottom: 8px; }
  html.anime body.vadisites .sequence--active .seq-texte p { font-size: 1.0625rem; }
}

/* ------------------------------------------------------------------ Largeurs */
@media (min-width: 760px) {
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .pieces-textes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .config-scene { --tw: min(30vw, 240px); }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .entete .tel-texte { display: inline; }
  .barre-appel { display: none; }
  .pied { padding-bottom: 48px; }
  .config { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; align-items: start; row-gap: 20px; }
  .config-scene { grid-column: 1 / span 6; grid-row: 1 / span 4; --tw: min(22vw, 300px, calc((100svh - 250px) / 2.071)); }
  .config-consigne, .config-onglets, .config-tetes, .config-panneaux { grid-column: 8 / -1; }
  .config-tetes { margin-top: 16px; }
  /* Version calme sur grand écran : les pièces à gauche, le téléphone ouvert à droite */
  html:not(.anime) .pieces-scene { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: center; justify-items: stretch; }
  html:not(.anime) .pieces .tel3d { grid-column: 8 / -1; grid-row: 1; justify-self: center; }
  html:not(.anime) .pieces-textes { grid-column: 1 / span 7; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
  html:not(.anime) .choix-3d { grid-column: 1 / -1; }
  .questions .conteneur { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .questions h2 { grid-column: 1 / span 4; position: sticky; top: 104px; }
  .faq { grid-column: 6 / -1; max-width: none; }
}
@media (max-width: 979px) {
  .qui .photo, .qui .droite { grid-column: 1 / -1; }
  .qui .droite { margin-top: 36px; }
  .heros .recherche, .heros .cote, .heros .faits { grid-column: 1 / -1; grid-row: auto; }
  .heros .recherche { max-width: 460px; }
  html.anime .pieces .tel3d { --tw: min(30vw, calc((100svh - var(--entete) - 150px) / 2.071), 300px); left: 70%; }
  html.anime .piece-texte { width: min(420px, 44vw); }
}
@media (max-width: 760px) {
  :root { --entete: 60px; }
  .nom { flex-direction: column; gap: 12px; margin-bottom: 24px; font-size: 23vw; }
  .nom .cadre { width: calc(100vw - 32px); height: auto; aspect-ratio: 2 / 1; }
  .nom .cadre img { object-position: 50% 24%; }
  .heros .cote .actions .bouton { flex: 1 1 100%; }
  .heros h1 span { display: inline; }
  .qui .photo { max-width: 420px; }
  .js .pieces .tel3d { translate: 16% 0; }
  .config { gap: 20px 16px; }
  .config-onglets label { min-height: 60px; padding: 8px 12px; }
  .tete { gap: 8px; }
  .config-scene { --tw: min(36vw, 190px); }
  .tel-fiche { --fx: 0.74; --fy: 1.22; --fz: 0.6; }
  /* La scène collée, sur téléphone : le texte en haut, le téléphone en dessous */
  html.anime .pieces { height: 400vh; }
  html.anime .pieces .tel3d { --tw: min(48vw, calc((100svh - var(--entete) - 330px) / 2.071)); left: 58%; top: auto; bottom: 104px; translate: -50% 0; }
  html.anime .piece-texte { top: 0; left: 16px; width: calc(100% - 32px); padding: 14px 0 0; }
  html.anime .piece-texte .num { float: left; margin: 0 12px 0 0; font-size: 3.1rem; }
  html.anime .piece-texte h2, html.anime .piece-texte h3 { font-size: 2.1rem; margin-bottom: 8px; }
  html.anime .piece-texte p { font-size: 1.0625rem; max-width: none; }
  html.anime .pieces-jauge { bottom: 86px; left: 16px; width: 72px; }
}
