/* Site constructeurs AXODIM (v3, 3 déc. ; 4 déc. : TRACIM devient AXODIM) — couleurs, police et tracé du guide de marque (identite-axodim/final/GUIDE.md) */
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../vendor/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../vendor/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* (3 déc.) couleurs AXODIM : bleu ardoise seule couleur vive, encre, noir, blanc cassé, blanc */
  --bleu: #34608F;
  --bleu-fonce: #254769;
  --bleu-pale: #7FA3CC;   /* le trait du tracé sur fond foncé (guide : « bleu pâle sur foncé ») */
  --noir: #0A0C10;
  --fond: #F3F2EE;
  --fond-2: #FFFFFF;
  --blanc: #FFFFFF;
  --texte: #111214;
  --texte-2: #5F6368;
  --filet: rgba(17, 18, 20, 0.08);
  --filet-fort: rgba(17, 18, 20, 0.14);
  --sauge: var(--bleu); /* nom historique : c'est le bleu ardoise */
  --sauge-fonce: var(--bleu-fonce);
  --sombre: var(--noir);
  --clair: #F3F2EE;
  --clair-2: rgba(243, 242, 238, 0.66);
  --erreur: #A8321F;
  --marge: 40px;
  --large: 1240px;
  --rayon: 28px;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --glisse: cubic-bezier(0.65, 0, 0.35, 1);
  --touche: cubic-bezier(0.2, 0.8, 0.2, 1);
  --police: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (max-width: 767px) { :root { --marge: 20px; --rayon: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 18px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.bloque { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sauge); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(52, 96, 143, 0.28); }
[hidden] { display: none !important; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--texte); color: #fff; padding: 10px 16px; border-radius: 999px; }
.evitement:focus { top: 16px; }

.enveloppe { width: min(var(--large), calc(100% - 2 * var(--marge))); margin-inline: auto; }
.centre { text-align: center; }
.section { position: relative; padding: 168px 0; scroll-margin-top: 90px; }
.section h2 { scroll-margin-top: 110px; }
/* (tour 3) deux sections claires qui se suivent : un seul grand blanc entre elles, pas deux */
/* (30 nov.) serrer ce qui va ensemble (problème → comment ça marche ; démo → fonctions → exemples) ; le grand air reste avant la démo et avant le prix */
.probleme { padding-bottom: 72px; }
.demo { padding-bottom: 112px; }
.questions { padding-bottom: 104px; }
.contact { padding-top: 104px; }
@media (max-width: 767px) { .section { padding: 72px 0; } .probleme, .questions { padding-bottom: 56px; } .contact { padding-top: 56px; } body { font-size: 17px; } }

/* ——— Typographie ——— */
.h1 { font-size: clamp(46px, 7.2vw, 108px); text-wrap: balance; line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
.h2 { font-size: clamp(36px, 4.6vw, 68px); text-wrap: balance; line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
/* (3 déc.) étiquette de rubrique : capitales espacées, précédée de la lame (parallélogramme bleu ardoise à 45°, le bout de la barre du T) */
.surtitre, .etiquette { font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; color: var(--bleu-fonce); }
.surtitre { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 12px; }
.surtitre::before { content: ""; flex: none; width: 20px; height: 9px; background: var(--bleu); clip-path: polygon(45.45% 0, 100% 0, 54.55% 100%, 0 100%); }
.chapeau { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--texte-2); letter-spacing: -0.012em; max-width: 34em; margin-top: 28px; }
.petit { font-size: 13px; color: var(--texte-2); line-height: 1.5; }
.chiffres { font-variant-numeric: tabular-nums; }
.entete--centre { text-align: center; }
.entete--centre .chapeau { margin-inline: auto; }

/* titres coupés en mots sous masque */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.mot__i { display: inline-block; will-change: transform; }

/* ——— Verre ——— */
.verre { -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid rgba(255, 255, 255, 0.55); }
.verre--clair { background: rgba(255, 255, 255, 0.64); border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 60px -30px rgba(17, 18, 20, 0.25); }
.verre--fume { background: rgba(18, 20, 22, 0.36); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.pastille { display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; }

/* ——— Bouton « Envoyer un plan » ——— */
.btn-plan {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px 0 28px;
  border-radius: 999px; background: var(--bleu); color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; will-change: transform; transition: background-color 0.3s var(--touche), box-shadow 0.3s var(--touche);
  box-shadow: 0 10px 30px -14px rgba(37, 71, 105, 0.55);
}
.btn-plan:hover { background: var(--bleu-fonce); }
.btn-plan .fleche { width: 16px; height: 16px; flex: none; }
.btn-plan:hover .fleche, .btn-plan:focus-visible .fleche { animation: fleche-glisse 0.55s var(--sortie); }
@keyframes fleche-glisse { 0% { transform: none; opacity: 1; } 40% { transform: translateX(10px); opacity: 0; } 41% { transform: translateX(-10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn-plan--barre { height: 42px; padding: 0 16px 0 20px; font-size: 15px; box-shadow: none; }
.btn-plan--plein { width: 100%; justify-content: center; height: 58px; font-size: 17px; margin-top: 8px; }
.btn-plan--plein:disabled { opacity: 0.6; cursor: progress; }
.lien-plan { display: inline-flex; align-items: center; gap: 8px; margin-top: 56px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; border-bottom: 1px solid var(--filet-fort); padding-bottom: 4px; transition: border-color 0.3s var(--touche), gap 0.3s var(--touche); }
.lien-plan:hover { border-color: var(--texte); gap: 12px; }

/* ——— 0. Barre du haut ——— */
.barre { position: fixed; z-index: 60; top: 14px; left: 0; right: 0; pointer-events: none; }
.barre__verre {
  pointer-events: auto; margin-inline: auto; width: min(1240px, calc(100% - 24px)); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 11px 0 22px; border-radius: 999px;
  background: rgba(243, 242, 238, 0.66); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 40px -24px rgba(17, 18, 20, 0.35);
  transition: width 0.6s var(--sortie), height 0.6s var(--sortie), background-color 0.4s var(--touche), border-color 0.4s var(--touche), color 0.4s var(--touche);
}
.barre.resserree .barre__verre { width: min(900px, calc(100% - 24px)); height: 54px; }
.barre__marque { flex: none; height: 38px; margin-left: -6px; }
.barre__nav { display: flex; gap: 30px; font-size: 15px; color: var(--texte-2); }
.barre__nav a { transition: color 0.25s var(--touche); }
.barre__nav a:hover { color: var(--texte); }
.barre__progression { position: fixed; top: 0; left: 0; right: 0; height: 2px; }
.barre__progression span { display: block; height: 100%; background: var(--sauge); transform-origin: left; transform: scaleX(0); }
.barre.sur-sombre .barre__verre { background: rgba(10, 12, 16, 0.42); border-color: rgba(255, 255, 255, 0.12); color: var(--clair); box-shadow: none; }
.barre.sur-sombre .barre__nav { color: var(--clair-2); }
.barre.sur-sombre .barre__nav a:hover { color: #fff; }

@media (max-width: 960px) { .barre__nav a:not(.barre__nav-demo) { display: none; } .barre__nav { margin-left: auto; margin-right: -8px; } }
@media (max-width: 767px) {
  .barre { top: 10px; }
  .barre__verre, .barre.resserree .barre__verre { height: 52px; padding: 0 7px 0 16px; width: calc(100% - 20px); }
  .btn-plan--barre { height: 38px; padding: 0 14px 0 16px; font-size: 14px; }
  .barre__marque { height: 36px; margin-left: -8px; }
  .barre__verre { gap: 12px; }
  .barre__nav { margin-right: 0; font-size: 14px; }
}
@media (max-width: 430px) {
  .barre__verre, .barre.resserree .barre__verre { padding-left: 14px; }
  .btn-plan--barre { padding: 0 13px; }
  .btn-plan--barre .fleche { display: none; }
}
@media (max-width: 350px) { .barre__nav-demo { display: none; } }

/* accueil vide (en attendant l'animation) */
#accueil { position: relative; background: var(--sombre); color: var(--clair); }
#accueil:empty { min-height: 100svh; }

/* ——— 2. Le problème ——— */
.probleme__grille { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.points { margin-top: 44px; border-top: 1px solid var(--filet); }
.points li { padding: 20px 0; border-bottom: 1px solid var(--filet); }
.points h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.points p { margin-top: 4px; color: var(--texte-2); }
/* (3 déc.) la maison coupée à 67,4° (guide : « sur l'image, il coupe ») : le vrai plan au trait à gauche, la maison rendue à droite,
   une fente entre les deux. Le trait et l'image sont posés dans le même cadre 1600 x 900 (celui de la maquette) : le trait tombe sur l'image. */
.volet { position: relative; aspect-ratio: 1 / 1; border-radius: var(--rayon); overflow: hidden; background: var(--blanc); isolation: isolate; container-type: size; --k: 0.98; }
.volet__plan, .volet__photo { position: absolute; inset: 0; }
/* le cadre : la maison (668 x 517 px du cadre, centrée en 1066, 438) occupe --k de la largeur de la boîte */
.volet__cadre {
  position: absolute; width: calc(100cqw * 1600 / 668 * var(--k)); height: calc(100cqw * 900 / 668 * var(--k));
  left: calc(50cqw - 100cqw * 1066 / 668 * var(--k)); top: calc(50cqh - 100cqw * 438 / 668 * var(--k));
}
.volet__cadre > svg, .volet__cadre > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.volet__cadre text { font-family: var(--police); }
.volet__photo { clip-path: polygon(110% 0, 110% 0, 110% 100%, 110% 100%); }
.volet__fente { position: absolute; inset: 0; pointer-events: none; }
.volet__legendes { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; }
.volet__legende { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 11.5px; transition: opacity 0.4s var(--touche); }
.volet__legende--visite { opacity: 0; }
.volet.est-coupe .volet__legende--visite { opacity: 1; }
@media (max-width: 900px) {
  .probleme__grille { grid-template-columns: 1fr; }
  .volet { aspect-ratio: 1 / 1; --k: 0.9; }   /* (3 déc., correction 2) carré, la maison à 90 % de la largeur */
}

/* ——— Avant, pendant et après le rendez-vous (#usage) ——— */
.fil { margin-top: 0; }
.fil__titre { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; max-width: 16em; }
.fil__corps { position: relative; margin-top: 72px; }
.fil__piste { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--filet); border-radius: 2px; }
.fil__ligne { position: absolute; inset: 0; background: var(--sauge); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.fil__etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.etape { position: relative; padding-top: 48px; }
.etape__point { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--fond); border: 1.5px solid var(--filet-fort); transition: background-color 0.4s var(--touche), border-color 0.4s var(--touche), box-shadow 0.4s var(--touche); }
.etape h4 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; color: var(--texte-2); transition: color 0.4s var(--touche); }
.etape p { margin-top: 10px; color: var(--texte-2); max-width: 22em; }
.etape.allumee .etape__point { background: var(--sauge); border-color: var(--sauge); box-shadow: 0 0 0 6px rgba(52, 96, 143, 0.16); }
.etape.allumee h4 { color: var(--texte); }

@media (max-width: 900px) {
  .fil__titre { font-size: 26px; }
  .etape h4 { font-size: 20px; }
  .etape p { font-size: 16px; }
  .fil__corps { margin-top: 26px; }
  .fil__piste { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .fil__ligne { transform-origin: top; transform: scaleY(0); }
  .fil__etapes { grid-template-columns: 1fr; gap: 24px; }
  .etape p { margin-top: 6px; }
  .etape { padding: 0 0 0 44px; }
  .etape__point { top: 6px; }
}

/* ——— 4. Démonstration (section sombre) ——— */
.demo { background: var(--sombre); color: var(--clair); overflow-x: clip; }   /* (3 déc.) le tracé du titre (0,5 em de chaque côté) dépassait de 3 px l'écran du téléphone */
.demo .surtitre { color: var(--bleu-pale); }
.demo .surtitre::before { background: var(--bleu-pale); }
.demo .chapeau { color: var(--clair-2); }
.demo__cadre {
  position: relative; margin: 72px auto 0; width: min(1240px, calc(100% - 2 * var(--marge)));
  aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #000; color: #fff; isolation: isolate;
  transform-origin: 50% 30%;
}
.demo__affiche, .demo__affiche picture, .demo__affiche img { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo__affiche img { object-fit: cover; transition: transform 1.2s var(--sortie), filter 0.6s var(--glisse); }
.demo__cadre:not(.charge):hover .demo__affiche img { transform: scale(1.025); }
.demo__cadre.charge .demo__affiche img { filter: brightness(0.8); }
.demo__affiche::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 38% at 50% 54%, rgba(0, 0, 0, 0.42), transparent 100%); }
/* (30 nov.) une fois la visite prête, la couche du bouton et l'affiche ne doivent plus rien capter : sans cela l'iframe ne reçoit aucun clic */
.demo__cadre.prete .demo__centre, .demo__cadre.prete .demo__affiche { pointer-events: none; }
.demo__centre { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.demo__bouton {
  display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px 0 26px; border-radius: 999px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em; transition: background-color 0.3s var(--touche), transform 0.3s var(--touche);
}
.demo__bouton:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.02); }
.demo__porte { width: 20px; height: 20px; }
.demo__poids { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.demo__capsule { position: relative; width: min(420px, 100%); height: 64px; border-radius: 999px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 16px; font-weight: 500; }
.demo__pourcent { font-variant-numeric: tabular-nums; }
.demo__ligne { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--clair); transform-origin: left; transform: scaleX(0); }
.demo__astuce { margin-top: 24px; min-height: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.78); max-width: 32em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.demo__paysage { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.demo__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; opacity: 0; transition: opacity 0.8s var(--glisse); background: #000; }
.demo__iframe.visible { opacity: 1; }
.demo__quitter { position: absolute; z-index: 3; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; }
.demo__quitter svg { width: 18px; height: 18px; }
.demo__quitter::after {
  content: attr(data-bulle); position: absolute; right: 0; top: calc(100% + 8px); white-space: nowrap;
  background: rgba(16, 18, 20, 0.86); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.25s var(--touche), transform 0.25s var(--touche);
}
.demo__quitter:hover::after, .demo__quitter:focus-visible::after { opacity: 1; transform: none; }
.demo__fidele { margin: 32px auto 0; width: calc(100% - 2 * var(--marge)); max-width: 40em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; letter-spacing: -0.01em; color: var(--clair); text-align: center; text-wrap: balance; }
.demo__poids-tel { display: none; }
@media (max-width: 767px) { .demo__poids-tel { display: inline; } .demo__fidele { margin-top: 24px; } }
.demo__mention { margin: 16px auto 0; width: calc(100% - 2 * var(--marge)); font-size: 13px; color: rgba(244, 243, 239, 0.5); text-align: center; }
@media (max-width: 767px) {
  .demo__cadre { aspect-ratio: 4 / 5; margin-top: 48px; }
  .demo__bouton { padding: 0 24px 0 20px; height: 58px; font-size: 17px; }
}
.demo-plein { position: fixed; inset: 0; z-index: 90; background: #000; }
.demo-plein .demo__cadre { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; transform: none !important; }
/* la croix se range sous la rangée d'onglets des pièces de la visite (en haut), pour ne jamais cacher le dernier onglet */
.demo__cadre.charge .demo__quitter { top: 78px; right: 14px; }
.demo-plein .demo__quitter, .demo-plein .demo__cadre.charge .demo__quitter { top: calc(74px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); }

/* ——— 5. Ce que ça vous rapporte ——— */
.rapporte__haut { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.rapporte__haut .entete { position: sticky; top: 140px; }
.atouts { border-top: 1px solid var(--filet); }
.atouts li { padding: 26px 0; border-bottom: 1px solid var(--filet); }
.atouts h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.atouts p { margin-top: 6px; color: var(--texte-2); }

.scene {
  position: relative; width: min(1320px, calc(100% - 2 * var(--marge))); height: 700px; margin: 96px auto 0;
  border-radius: 40px; background: linear-gradient(180deg, #EFEEE8, #E9E8E1); perspective: 1600px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: clamp(48px, 8vw, 128px);
}
.appareil { position: relative; transform-style: preserve-3d; will-change: transform; }
.appareil__flotte { will-change: transform; }
.appareil img { width: 100%; height: 100%; object-fit: cover; }

/* téléphone : la visite au nom du constructeur */
.telephone { width: 262px; flex: none; z-index: 2; }
.telephone__corps { padding: 3.6%; border-radius: 15% / 7%; background: #0B0B0C; box-shadow: 0 0 0 1px #2E2F31, 0 0 0 2.5px #D3D2CD, 0 50px 90px -40px rgba(17, 18, 20, 0.6); }
.telephone__ecran { position: relative; aspect-ratio: 390 / 844; border-radius: 12.5% / 5.8%; overflow: hidden; background: #ddd; }
.telephone__ilot { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.6%; border-radius: 999px; background: #000; }
.telephone__entete { position: absolute; top: 8.4%; left: 50%; transform: translateX(-50%); width: 46%; padding: 3% 7%; border-radius: 14px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.6); display: flex; }
.appareil .telephone__entete img { width: 100%; height: auto; object-fit: contain; }
.telephone__piece { position: absolute; bottom: 4.5%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; color: #fff; background: rgba(20, 22, 22, 0.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.2); font-variant-numeric: tabular-nums; }

/* message reçu */
.message { width: 340px; flex: none; z-index: 1; }
.message__carte { padding: 18px; border-radius: 26px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, 0.35); }
.message__de { display: flex; align-items: center; gap: 10px; }
.message__avatar { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--filet); display: grid; place-items: center; padding: 4px; }
.appareil .message__avatar img { width: 100%; height: auto; object-fit: contain; }
.message__de > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.message__de strong { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.message__de small { font-size: 11.5px; color: var(--texte-2); }
.message__bulle { margin-top: 14px; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: #ECEBE6; font-size: 14.5px; line-height: 1.35; letter-spacing: -0.01em; }
.message__lien { margin-top: 8px; border-radius: 16px; overflow: hidden; background: #ECEBE6; }
.message__lien img { aspect-ratio: 16 / 9; height: auto; }
.message__lien-texte { display: flex; flex-direction: column; padding: 10px 14px 12px; line-height: 1.25; }
.message__lien-texte strong { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.message__lien-texte small { margin-top: 3px; font-size: 11.5px; color: var(--texte-2); }

@media (max-width: 1100px) and (min-width: 768px) { .scene { height: 640px; } .telephone { width: 236px; } .message { width: 300px; } }
@media (max-width: 900px) {
  .rapporte__haut { grid-template-columns: 1fr; gap: 48px; }
  .rapporte__haut .entete { position: static; }
}
@media (max-width: 767px) {
  .scene {
    height: auto; margin-top: 56px; padding: 24px 16px 32px; border-radius: 28px; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; align-items: center;
  }
  .telephone { grid-column: 2; grid-row: 1; width: auto; padding: 0 4px; }
  .message { grid-column: 1; grid-row: 1; width: auto; min-width: 0; }
  .message__carte { padding: 10px; border-radius: 18px; }
  .message__de { gap: 7px; }
  .message__avatar { width: 30px; height: 30px; border-radius: 8px; padding: 3px; }
  .message__de strong { font-size: 11.5px; }
  .message__de small { font-size: 10px; }
  .message__bulle { margin-top: 10px; padding: 8px 10px; font-size: 12px; border-radius: 14px 14px 14px 5px; }
  .message__lien { border-radius: 12px; }
  .message__lien-texte { padding: 7px 9px 9px; }
  .message__lien-texte strong { font-size: 11px; }
  .message__lien-texte small { font-size: 9.5px; }
  .telephone__piece { font-size: 9.5px; padding: 4px 9px; }
  .telephone__entete { border-radius: 9px; }
  /* l'ombre longue du téléphone se coupait au bord de sa colonne (rectangle visible) : ombre courte sur téléphone */
  .telephone__corps { box-shadow: 0 0 0 1px #2E2F31, 0 0 0 2px #D3D2CD, 0 16px 28px -18px rgba(17, 18, 20, 0.55); }
  /* (3 déc., correction 8) pas de calque figé ni de contexte 3D sur téléphone : le texte et l'écran restent nets à 390 px */
  .scene { perspective: none; }
  .appareil { transform-style: flat; will-change: auto; }
  .appareil__flotte { will-change: auto; }
}

/* ——— 6. Tarifs ——— */
.tarifs { background: var(--blanc); }
.tarifs__grille { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; margin-top: 72px; }
.carte-prix { border-radius: 32px; padding: clamp(28px, 4.4vw, 60px); background: var(--fond); border: 1px solid var(--filet); }
.carte-prix__a { color: var(--bleu-fonce); }
.carte-prix__offre { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--filet-fort); font-size: 16px; line-height: 1.45; color: var(--texte); }
.carte-prix__inclus { margin-top: 32px; font-size: 14px; font-weight: 500; color: var(--texte-2); }
.carte-prix__prix { margin-top: 6px; font-size: clamp(60px, 7vw, 100px); line-height: 1; letter-spacing: -0.05em; font-weight: 500; white-space: nowrap; }
.carte-prix__ht { font-size: 0.32em; letter-spacing: -0.01em; color: var(--texte-2); font-weight: 500; }
.carte-prix__par { margin-top: 10px; font-size: 17px; color: var(--texte-2); }
.inclus { margin: 12px 0 28px; border-top: 1px solid var(--filet-fort); }
.inclus li { padding: 15px 0; border-bottom: 1px solid var(--filet-fort); font-size: 17px; }
.pack { margin: 28px auto 0; max-width: 100%; text-align: center; font-size: 17px; color: var(--texte-2); }
.pack strong { color: var(--texte); font-weight: 600; }
.annee { margin: 14px auto 0; text-align: center; font-size: 15px; color: var(--texte-2); }
.tarifs .centre { margin-top: 48px; }
@media (max-width: 900px) { .tarifs__grille { grid-template-columns: 1fr; margin-top: 48px; } }
@media (max-width: 767px) { .carte-prix__prix { font-size: clamp(52px, 15vw, 60px); } .carte-prix__offre { font-size: 15px; } .inclus li { font-size: 16px; } }

/* ——— 7. Questions ——— */
.questions__grille { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.questions__tete { position: sticky; top: 140px; }
.questions__tete .lien-plan { margin-top: 40px; }
.accordeons { border-top: 1px solid var(--filet); }
.acc { border-bottom: 1px solid var(--filet); }
.acc h3 { font: inherit; }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; text-align: left; font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.acc__signe { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--filet-fort); transition: background-color 0.3s var(--touche), border-color 0.3s var(--touche); }
.acc__signe::before, .acc__signe::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.45s var(--sortie); }
.acc__signe::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__q[aria-expanded="true"] .acc__signe { background: var(--texte); border-color: var(--texte); color: #fff; }
.acc__q[aria-expanded="true"] .acc__signe::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__q:hover .acc__signe { border-color: var(--texte); }
.acc__r { overflow: hidden; }
.acc__r p { padding: 0 64px 30px 0; color: var(--texte-2); max-width: 36em; }
@media (max-width: 900px) {
  .questions__grille { grid-template-columns: 1fr; gap: 40px; }
  .questions__tete { position: static; }
  .questions__tete .lien-plan { display: none; }
  .acc__r p { padding-right: 0; }
}

/* ——— 8. Contact ——— */
.contact__grille { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact .chapeau { margin-top: 24px; }
/* le fondateur, mis en avant près du formulaire */
.signature {
  display: flex; align-items: flex-start; gap: 18px; margin-top: 36px; padding: 22px 24px; max-width: 30em;
  border-radius: 24px; background: var(--blanc); border: 1px solid var(--filet);
}
.signature__photo { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--fond-2); }
.signature__photo img { width: 100%; height: 100%; object-fit: cover; }
.signature__nom { display: flex; flex-direction: column; line-height: 1.3; }
.signature__nom strong { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.signature__nom > span { color: var(--texte-2); font-size: 15px; }
.signature__phrase { margin-top: 12px; font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--texte); }
@media (max-width: 767px) { .signature { padding: 18px; gap: 14px; margin-top: 28px; } .signature__photo { width: 50px; height: 50px; } .signature__phrase { font-size: 16px; } }
.contact__image { margin-top: 48px; width: min(100%, 360px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.media__int { width: 100%; height: 100%; }
.media__int img { width: 100%; height: 100%; object-fit: cover; }
.formulaire, .merci { border-radius: 32px; padding: clamp(24px, 3.4vw, 44px); background: var(--blanc); border: 1px solid var(--filet); }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.champ { margin-bottom: 18px; }
.champ label, .champ .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.005em; }
.facultatif { color: var(--texte-2); font-weight: 400; }
.champ input:not([type="file"]), .champ textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--filet-fort); background: var(--fond);
  font: inherit; font-size: 16px; color: var(--texte); transition: border-color 0.25s var(--touche), box-shadow 0.25s var(--touche), background-color 0.25s var(--touche);
}
.champ textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--sauge); background: #fff; box-shadow: 0 0 0 4px rgba(52, 96, 143, 0.2); }
.champ.erreur input, .champ.erreur textarea { border-color: var(--erreur); }
.champ.erreur .depot { border-color: var(--erreur); }
.champ__erreur { font-size: 13px; color: var(--erreur); min-height: 0; margin-top: 6px; }
.champ__erreur:empty { display: none; }
.champ__aide { margin-top: 8px; font-size: 13px; color: var(--texte-2); }
.depot__zone { position: relative; }
.champ .depot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 20px; border-radius: 16px; border: 1.5px dashed rgba(17, 18, 20, 0.2); background: var(--fond); text-align: center; font-size: 15px; color: var(--texte-2); transition: border-color 0.25s var(--touche), background-color 0.25s var(--touche); }
.depot svg { width: 26px; height: 26px; color: var(--texte); margin-bottom: 6px; }
.depot strong { color: var(--texte); font-weight: 600; }
.depot small { font-size: 12.5px; }
.depot__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.depot__zone:hover .depot, .depot.survol { border-color: var(--sauge); background: #EEF2F6; }
.depot__zone:focus-within .depot { border-color: var(--sauge); box-shadow: 0 0 0 4px rgba(52, 96, 143, 0.2); }
.depot__fichier { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #EEF2F6; border: 1px solid rgba(52, 96, 143, 0.4); font-size: 15px; }
.depot__fichier svg { width: 22px; height: 22px; flex: none; }
.depot__fichier span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot__fichier button { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.merci { text-align: center; padding-block: 72px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__erreur { margin-top: 14px; font-size: 14px; color: var(--erreur); text-align: center; }
.formulaire__erreur:empty { display: none; }
.formulaire__erreur a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.merci:focus { outline: none; }
.merci__coche { width: 56px; height: 56px; color: var(--sauge-fonce); margin: 0 auto 20px; }
.merci h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.merci p { margin-top: 10px; color: var(--texte-2); }
@media (max-width: 900px) {
  .contact__grille { grid-template-columns: 1fr; gap: 48px; }
  .contact__image { display: none; }
}
@media (max-width: 520px) { .champs-2 { grid-template-columns: 1fr; } }

/* ——— 9. Bas de page ——— */
.pied { border-top: 1px solid var(--filet); padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--texte-2); overflow: hidden; }
.pied__haut { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; margin-bottom: 48px; }
.pied__logo { width: clamp(220px, 26vw, 340px); }
.pied__signature { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--texte); padding-left: calc(clamp(220px, 26vw, 340px) * 40 / 651.67); }
.pied__grille { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--filet); }
.pied a:hover { color: var(--texte); }

/* ——— (30 nov.) 1 bis. Première maison réalisée pour ISM : une seule ligne calme, beaucoup d'air ——— */
.confiance { padding: 76px 0 0; }
.probleme { padding-top: 136px; }
.confiance__ligne { display: flex; align-items: center; justify-content: center; gap: 28px; padding-bottom: 76px; border-bottom: 1px solid var(--filet); text-align: center; }
.confiance__sur { white-space: nowrap; }
.confiance__filet { flex: none; width: 1px; height: 32px; background: var(--filet-fort); }
.confiance__logo { flex: none; width: auto; height: 50px; filter: grayscale(1) contrast(1.1); opacity: 0.86; transition: filter 0.5s var(--touche), opacity 0.5s var(--touche); }
.confiance__ligne:hover .confiance__logo { filter: none; opacity: 1; }
.confiance__avis { margin: 0; max-width: 30em; text-align: left; }
.confiance__avis p { font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--texte); text-wrap: balance; margin: 0; }
.confiance__avis footer { margin-top: 8px; font-size: 13px; color: var(--texte-2); }
.confiance__phrase { font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--texte-2); text-wrap: balance; }
@media (max-width: 767px) {
  .confiance { padding-top: 52px; }
  .probleme { padding-top: 64px; }
  .confiance__ligne { flex-direction: column; gap: 14px; padding-bottom: 52px; }
  .confiance__filet { display: none; }
  .confiance__logo { height: 44px; margin-block: 4px; }
  .confiance__phrase { font-size: 16px; max-width: 20em; }
  .confiance__avis { text-align: center; max-width: 20em; }
  .confiance__avis p { font-size: 16px; }
}

/* ——— (30 nov.) espacements autour de « Votre nom sur chaque visite » (les cartes des fonctions ont laissé place à #fonctions, plus bas) ——— */
.rapporte { padding-top: 88px; padding-bottom: 120px; }
@media (max-width: 767px) {
  .rapporte { padding-top: 48px; padding-bottom: 72px; }
  .demo { padding-bottom: 64px; }
}

/* ——— Mouvement réduit : tout visible ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .volet__photo { clip-path: none; }
  .volet__bord { display: none; }
  .fil__ligne { transform: none; }
}

/* case CGV du formulaire */
.champ--cgv { margin-top: 4px; }
.formulaire .champ label.case { display: flex; margin: 0; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--texte); cursor: pointer; }
.formulaire .champ .case input { flex: none; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; box-shadow: none; border: 1.5px solid var(--filet-fort); border-radius: 6px; background: var(--fond); display: grid; place-content: center; cursor: pointer; transition: background-color 0.2s var(--touche), border-color 0.2s var(--touche); }
.formulaire .champ .case input::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.formulaire .champ .case input:checked { background: var(--texte); border-color: var(--texte); }
.formulaire .champ .case input:checked::after { opacity: 1; }
.formulaire .champ .case input:focus-visible { outline: 2px solid var(--sauge); outline-offset: 2px; }
.case a { text-decoration: underline; text-underline-offset: 3px; }
.formulaire .champ--cgv.erreur .case input { border-color: #B4532A; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   (1er déc.) « Comment ça marche » (#comment, vue éclatée en couches) et « Fonctionnalités » (#fonctions)
   Repris des prototypes essais/couches/ (etapes.css, fonctionnalites.css, partie « le dessin » de commun.css).
   La couleur (--accent*) ne sert qu'à ces deux sections ; le reste de la page utilise --sauge, passé au même bleu ardoise le 2 déc.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --gris-trait: #A9ACA6;
  --accent: #34608F; --accent-fonce: #254769; --accent-aplat: #DEE4E8; --accent-clair: #ECEFF0; --accent-rvb: 52, 96, 143;
}
/* (3 déc.) les variantes ?couleur=1|2 (tuile, vert cèdre) sont retirées : le bleu ardoise est la seule couleur vive d'AXODIM */

/* variables de couleur animables (transitions des couches) */
@property --trait { syntax: '<color>'; inherits: true; initial-value: #34373A; }
@property --dessus { syntax: '<color>'; inherits: true; initial-value: #2A2C2E; }
@property --fx { syntax: '<color>'; inherits: true; initial-value: #FAFAF7; }
@property --fz { syntax: '<color>'; inherits: true; initial-value: #EFEEE9; }
@property --md { syntax: '<color>'; inherits: true; initial-value: #F7F6F2; }
@property --appui { syntax: '<color>'; inherits: true; initial-value: #E4E3DE; }
@property --vitre { syntax: '<color>'; inherits: true; initial-value: rgba(250, 250, 247, 0.4); }
@property --hachure { syntax: '<color>'; inherits: true; initial-value: #C9CAC4; }
@property --sol { syntax: '<color>'; inherits: true; initial-value: rgba(250, 250, 247, 0); }
@property --encre { syntax: '<color>'; inherits: true; initial-value: #5F6368; }
@property --teinte { syntax: '<color>'; inherits: true; initial-value: rgba(52, 96, 143, 0); }

#comment :focus-visible, #fonctions :focus-visible { outline-color: var(--accent); }
#comment .surtitre, #fonctions .surtitre { color: var(--accent-fonce); margin-bottom: 0; }

/* ————— le dessin (traits épaissis d'un cran le 1er déc.) ————— */
.dessin { display: block; width: 100%; height: 100%; overflow: visible; }
.dessin * { vector-effect: non-scaling-stroke; }
.dessin .trait { fill: none; stroke: var(--trait); stroke-width: 1.25; stroke-linejoin: round; }
.dessin .trait--fin { stroke-width: 1; }
.dessin .trait--piece { stroke-width: 0.8; opacity: 0.7; }
.dessin .trait--tirets { stroke-dasharray: 3 3; stroke-width: 1; }
.dessin .f { stroke: var(--trait); stroke-width: 1.25; stroke-linejoin: round; }
.dessin .f-x { fill: var(--fx); }
.dessin .f-z { fill: var(--fz); }
.dessin .f-md { fill: var(--md); }
.dessin .f-appui { fill: var(--appui); }
.dessin .f-dessus { fill: var(--dessus); stroke: var(--dessus); }
.dessin .vitre { fill: var(--vitre); stroke-width: 1; }
.dessin .f-sol { fill: var(--sol); stroke: none; }
.dessin .p-mur { fill: var(--dessus); }
.dessin .e-mur { fill: none; stroke: var(--trait); stroke-width: 0.8; opacity: 0.55; }
.dessin .cote { fill: none; stroke: var(--trait); stroke-width: 0.9; }
.dessin .cote-valeur, .dessin .p-nom, .dessin .p-surface { fill: var(--encre); font-family: var(--police); font-variant-numeric: tabular-nums; }
.dessin .p-nom { font-weight: 500; letter-spacing: 0.01em; }
.dessin .p-surface { opacity: 0.75; }
.dessin .cote-valeur { font-weight: 500; }
.dessin .hachure { fill: none; stroke: var(--hachure); stroke-width: 0.8; }
.dessin .hachure--point { stroke-width: 1.2; stroke-linecap: round; }
.dessin .hachure--enduit { stroke-width: 0.5; }
.dessin .plaque-fond { fill: var(--fond); fill-opacity: var(--plaque-o, 0.9); stroke: var(--trait); stroke-width: 0.8; }
.dessin .plaque-teinte { fill: var(--teinte); stroke: none; }
.dessin .tache { fill: var(--teinte-tache, rgba(var(--accent-rvb), 0.22)); stroke: var(--trait); stroke-width: 0.75; }
.dessin .rayon { fill: none; stroke: var(--trait); stroke-width: 0.8; opacity: 0.8; }
.dessin .flaque { fill: none; stroke: var(--trait); stroke-width: 0.8; stroke-dasharray: 2 3; }
.dessin .lampe { fill: var(--fond); stroke: var(--trait); stroke-width: 1; }
/* étiquettes en capitales fines, traits de rappel */
.dessin .etiquette { font-family: var(--police); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--etiquette, #8E918C); }
.dessin .etiquette-n { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.dessin .rappel { fill: none; stroke: var(--etiquette-trait, #C4C6C1); stroke-width: 1; }
.dessin .rappel-point { fill: var(--etiquette-trait, #C4C6C1); }
.dessin .liaison { fill: none; stroke: #A9ACA6; stroke-width: 1; stroke-dasharray: 1.5 3.5; }

/* ————— A. Comment ça marche : les cinq couches, pilotées par le défilement ————— */
.couches { position: relative; height: 520svh; }
.couches__scene {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(340px, 34fr) 66fr;
  /* (1er déc.) la colonne de texte suit le bord gauche du conteneur des autres sections (1240 px) ; le dessin garde la place à droite */
  padding: 0 var(--marge) 0 max(var(--marge), calc((100% - var(--large)) / 2));
}
.couches__texte { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; max-width: 440px; }
/* sous la barre du haut (78 px) : l'en-tête descend de 56 à 104 px */
.couches__entete { position: absolute; top: 104px; left: 0; right: 0; }
.couches__titre { margin-top: 12px; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; max-width: 13em; }
.couches__etape { margin-top: 40px; }
.couches__etape > * { opacity: var(--fin, 1); }
.couches__n { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.couches__etape-titre { margin-top: 10px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.couches__phrase { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--texte-2); letter-spacing: -0.01em; max-width: 22em; min-height: 3em; }
.couches__reperes { display: flex; gap: 6px; margin-top: 40px; }
.couches__reperes li { width: 28px; height: 2px; background: var(--filet-fort); transition: background-color 0.5s var(--touche), width 0.5s var(--touche); }
.couches__reperes li.est-fait { background: var(--accent); }
.couches__reperes li.est-courant { width: 44px; }
.couches__liste { display: none; }

.couches__dessin { position: relative; min-width: 0; }
.couches__dessin .dessin { position: absolute; inset: 0; }
.couches__photo {
  position: absolute; left: 50%; top: 50%; width: min(92%, 980px); aspect-ratio: 3 / 2;
  border-radius: var(--rayon); overflow: hidden;
  opacity: 0; visibility: hidden; background: var(--fond-2);
  box-shadow: 0 30px 80px -40px rgba(17, 18, 20, 0.35);
}
.couches__photo picture, .couches__photo img { width: 100%; height: 100%; object-fit: cover; }
.couches__legende {
  position: absolute; left: 20px; bottom: 20px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--texte);
  background: rgba(255, 255, 255, 0.64); border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 60px -30px rgba(17, 18, 20, 0.25);
}

/* les couches : à venir en gris ; active en couleur pleine ; passées en trace */
.couche {
  --trait: var(--gris-trait); --dessus: #C4C6C0; --fx: #FAFAF7; --fz: #F5F4F0; --md: #FAFAF7; --appui: #F1F0EB;
  --vitre: rgba(250, 250, 247, 0.5); --hachure: #DCDDD8; --encre: #A9ACA7; --teinte: rgba(var(--accent-rvb), 0);
  --teinte-tache: rgba(var(--accent-rvb), 0.06);
  transition: --trait 0.6s var(--touche), --fx 0.6s var(--touche), --dessus 0.6s var(--touche), --fz 0.6s var(--touche), --md 0.6s var(--touche),
    --hachure 0.6s var(--touche), --encre 0.6s var(--touche), --teinte 0.6s var(--touche), --vitre 0.6s var(--touche);
}
.couche.est-active {
  --trait: var(--accent); --dessus: var(--accent); --fx: var(--accent-clair); --fz: var(--accent-aplat); --md: color-mix(in srgb, var(--accent) 10%, #FAFAF7);
  --hachure: rgba(var(--accent-rvb), 0.7); --encre: var(--accent-fonce); --teinte: rgba(var(--accent-rvb), 0.16); --vitre: rgba(var(--accent-rvb), 0.22);
  --teinte-tache: rgba(var(--accent-rvb), 0.42);
}
.dessin .couche.est-active .trait, .dessin .couche.est-active .f { stroke-width: 1.5; }
.dessin .couche.est-active .rayon { stroke: var(--accent); opacity: 1; }
.couche.est-passee {
  --trait: color-mix(in srgb, var(--accent) 50%, #BEC0BB); --dessus: color-mix(in srgb, var(--accent) 38%, #D3D4CF);
  --encre: color-mix(in srgb, var(--accent) 50%, #BEC0BB);
}
.couche .etiquette { fill: #A6A9A4; transition: fill 0.5s var(--touche); }
.couche .rappel { stroke: #CDCFCA; transition: stroke 0.5s var(--touche); }
.couche .rappel-point { fill: #CDCFCA; transition: fill 0.5s var(--touche); }
.couche.est-active .etiquette { fill: var(--accent-fonce); font-weight: 600; }
.couche.est-active .rappel { stroke: var(--accent); }
.couche.est-active .rappel-point { fill: var(--accent); }
.couche.est-passee .etiquette { fill: color-mix(in srgb, var(--accent-fonce) 65%, #A6A9A4); }
.couche.est-passee .rappel { stroke: var(--trait); }
.couche.est-passee .rappel-point { fill: var(--trait); }
/* (1er déc.) couche 04 Meubles : les meubles en aplat franc (dessus --accent, côtés et traits --accent-fonce) ; en trace, un remplissage léger */
.couche[data-couche="3"] .meuble .f { transition: fill 0.6s var(--touche), stroke 0.6s var(--touche); }
.dessin .couche[data-couche="3"].est-active .meuble .f { stroke: var(--accent-fonce); }
.dessin .couche[data-couche="3"].est-active .meuble .f-md { fill: var(--accent); }
.dessin .couche[data-couche="3"].est-active .meuble .f-x, .dessin .couche[data-couche="3"].est-active .meuble .f-z { fill: var(--accent-fonce); }
.dessin .couche[data-couche="3"].est-passee .meuble .f { fill: var(--accent-aplat); }
/* (1er déc.) couche 05 Lumière active : autant de couleur que les meubles (taches au sol en --accent plein, rayons --accent, lampes remplies, plaque --accent-aplat) */
.dessin .couche[data-couche="4"].est-active .tache { fill: var(--accent); stroke: var(--accent-fonce); }
.dessin .couche[data-couche="4"].est-active .lampe { fill: var(--accent); stroke: var(--accent-fonce); }
.dessin .couche[data-couche="4"].est-active .plaque-teinte { fill: var(--accent-aplat); }
/* (1er déc.) B, « 07 Vide ou meublée » : même mise en avant des meubles que la couche 04 de A */
#fonc-maquette .meuble .f { transition: fill 0.6s var(--touche), stroke 0.6s var(--touche); }
#fonc-maquette.est-meublee .meuble .f { stroke: var(--accent-fonce); }
#fonc-maquette.est-meublee .meuble .f-md { fill: var(--accent); }
#fonc-maquette.est-meublee .meuble .f-x, #fonc-maquette.est-meublee .meuble .f-z { fill: var(--accent-fonce); }
/* téléphone : le numéro de couche garde un liseré de papier, lisible même près d'un trait */
.dessin .etiquette-tel { paint-order: stroke; stroke: var(--fond); stroke-width: 3px; stroke-linejoin: round; }
.couche .seulement-active { opacity: 0; transition: opacity 0.5s var(--touche); }
.couche.est-active .seulement-active { opacity: 1; }
.couche .seulement-active .etiquette { font-size: 10px; letter-spacing: 0.16em; }

/* téléphone : le dessin en haut, le texte dessous */
@media (max-width: 767px) {
  .couches { height: 460svh; }
  .couches__scene { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding: 0 var(--marge); }
  .couches__texte { display: contents; }
  /* sous la barre du haut (62 px) : 22 px d'air sous la barre */
  .couches__entete { position: static; grid-row: 1; padding-top: 84px; }
  .couches__titre { font-size: 22px; margin-top: 6px; }
  .couches__dessin {
    grid-row: 2; margin: 0 calc(-1 * var(--marge)); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
  }
  .couches__reperes { grid-row: 3; margin: 6px 0 14px; }
  .couches__reperes li { width: 18px; }
  .couches__reperes li.est-courant { width: 30px; }
  .couches__etape { grid-row: 4; margin-top: 0; padding: 0 0 18px; min-height: 27svh; }
  .couches__n { font-size: 14px; }
  .couches__etape-titre { font-size: 34px; margin-top: 6px; }
  .couches__phrase { font-size: 16.5px; margin-top: 10px; }
  .couches__photo { width: calc(100% - 2 * var(--marge)); aspect-ratio: auto; height: calc(100% - 28px); box-shadow: 0 18px 40px -28px rgba(17, 18, 20, 0.35); }
  .couches__legende { left: 12px; bottom: 12px; font-size: 14px; }
}

/* mouvement réduit : tout est visible, sans défilement piloté */
.couches.est-statique { height: auto; }
.couches.est-statique .couches__scene { position: relative; height: auto; min-height: 100svh; overflow: visible; }
.couches.est-statique .couches__etape, .couches.est-statique .couches__reperes { display: none; }
.couches.est-statique .couches__liste { display: block; margin-top: 190px; }
.couches.est-statique .couches__liste li { padding: 14px 0; border-top: 1px solid var(--filet); }
.couches.est-statique .couches__liste b { display: block; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.couches.est-statique .couches__liste span { color: var(--accent-fonce); font-size: 14px; font-variant-numeric: tabular-nums; }
.couches.est-statique .couches__liste p { color: var(--texte-2); font-size: 16px; }
.couches.est-statique .couches__dessin { min-height: 100svh; display: flex; flex-direction: column; }
.couches.est-statique .couches__dessin .dessin { position: relative; inset: auto; height: 100svh; flex: none; }
.couches.est-statique .couches__photo { position: relative; left: auto; top: auto; transform: none; opacity: 1; visibility: visible; margin: 40px auto; }
@media (max-width: 767px) {
  .couches.est-statique .couches__texte { display: block; }
  .couches.est-statique .couches__liste { margin-top: 20px; }
  .couches.est-statique .couches__dessin { min-height: 70svh; }
}

/* ————— B. Fonctionnalités : la maison au trait, la fonctionnalité choisie en couleur ————— */
.fonc { position: relative; padding: 0 var(--marge); scroll-margin-top: 90px; }
.fonc__grille {
  display: grid; grid-template-columns: minmax(360px, 36fr) 64fr; gap: 40px;
  min-height: 100svh; max-width: 1600px; margin: 0 auto; align-items: center;
}
.fonc__colonne { padding: 84px 0 32px; }   /* (1er déc.) section posée en haut : le titre reste sous la barre (68 px) */
.fonc__h { margin-top: 14px; }
.fonc__liste { margin-top: 44px; border-top: 1px solid var(--filet); }
.fonc__item { position: relative; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--filet); }
.fonc__item::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--sortie);
}
.fonc__item.est-active::before { transform: scaleX(1); }
/* lecture automatique : le filet de l'item actif sert de jauge, il se remplit en 5 s */
.fonc__liste.en-lecture .fonc__item.est-active::before { transform: scaleX(0); transition: none; }
.fonc__liste.en-lecture .fonc__item.est-active.est-jauge::before { transform: scaleX(1); transition: transform 5s linear; }
.fonc__declencheur { flex: 1; display: flex; gap: 18px; align-items: baseline; text-align: left; padding: 10px 0; min-width: 0; }
.fonc__n { font-size: 13px; font-weight: 500; color: #A6A9A4; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; transition: color 0.4s var(--touche); }
/* (1er déc.) accordéon : seul l'item actif déplie sa phrase (hauteur animée en 0,35 s) */
.fonc__corps { display: grid; grid-template-rows: auto 0fr; min-width: 0; transition: grid-template-rows 0.35s var(--touche); }
.fonc__item.est-active .fonc__corps { grid-template-rows: auto 1fr; }
.fonc__titre { display: block; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: #8E918C; transition: color 0.4s var(--touche); }
.fonc__texte { display: block; min-height: 0; overflow: hidden; font-size: 15px; line-height: 1.45; color: var(--texte-2); opacity: 0; transition: opacity 0.35s var(--touche); }
.fonc__texte::before { content: ''; display: block; height: 3px; }
.fonc__item.est-active .fonc__n { color: var(--accent-fonce); }
.fonc__item.est-active .fonc__titre { color: var(--texte); }
.fonc__item.est-active .fonc__texte { opacity: 1; }
.fonc__vignette {
  position: relative; flex: none; width: 72px; height: 46px; border-radius: 8px; overflow: hidden;
  background: var(--fond-2); opacity: 0.55; filter: grayscale(1); transition: opacity 0.4s var(--touche), filter 0.4s var(--touche), transform 0.4s var(--touche);
}
.fonc__vignette img { width: 100%; height: 100%; object-fit: cover; }
.fonc__item.est-active .fonc__vignette, .fonc__vignette:hover, .fonc__vignette:focus-visible { opacity: 1; filter: none; }
.fonc__vignette:hover { transform: scale(1.04); }
.fonc__lecture {
  position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fonc__lecture::after { content: ''; position: absolute; left: 8.5px; top: 6.5px; border-left: 7px solid var(--texte); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

.fonc__dessin { position: relative; height: min(84svh, 820px); min-width: 0; }
.fonc__dessin .dessin { position: absolute; inset: 0; }
.dessin .surligne { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.dessin .surligne--fin { stroke-width: 1.25; }
.dessin .surligne--tirets { stroke-dasharray: 1.5 5; stroke-linecap: round; }
.dessin .aplat { fill: rgba(var(--accent-rvb), 0.32); stroke: var(--accent); stroke-width: 1; }
.dessin .aplat--plein { fill: rgba(var(--accent-rvb), 0.82); }
.dessin .point-sauge { fill: var(--accent); stroke: var(--fond); stroke-width: 1.5; }
.dessin .soleil { fill: var(--fond); stroke: var(--accent); stroke-width: 1.2; }
.dessin .soleil-coeur { fill: var(--accent); }
.dessin .halo { fill: url(#fonc-halo); }
.dessin .lampe-nuit { fill: var(--accent-aplat); stroke: var(--accent); stroke-width: 1; }
.dessin .etiquette-sauge { font-family: var(--police); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--accent-fonce); }
.dessin .heure { font-family: var(--police); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; fill: var(--accent-fonce); font-variant-numeric: tabular-nums; }
.dessin .ici-fond { fill: rgba(255, 255, 255, 0.86); stroke: rgba(var(--accent-rvb), 0.5); stroke-width: 1; }
.dessin .ici-texte { font-family: var(--police); font-size: 12.5px; font-weight: 500; fill: var(--accent-fonce); letter-spacing: -0.005em; }
.couche-plan { --trait: var(--accent); --dessus: var(--accent); --encre: var(--accent-fonce); }

/* lecteur vidéo (s'ouvre au clic sur une vignette ; rien n'est chargé avant) */
.lecteur { width: min(92vw, 1100px); padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; background: var(--noir); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.6); }
.lecteur::backdrop { background: rgba(243, 242, 238, 0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lecteur video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--noir); }
.lecteur__fermer {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; color: var(--texte);
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; place-items: center;
}
.lecteur__fermer svg { width: 16px; height: 16px; }

/* téléphone : la maquette collée en haut (sous la barre, 62 px), la liste défile dessous */
@media (max-width: 767px) {
  .fonc__grille { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .fonc__colonne { display: contents; padding: 0; }
  .fonc__entete { order: 0; padding: 56px 0 8px; }
  .fonc__dessin { order: 1; }
  .fonc__liste { order: 2; }
  /* (1er déc.) la maquette collée tout en haut : son fond (couleur de la page) passe aussi sous la barre (62 px), la liste disparaît derrière ;
     hauteur juste celle du dessin (largeur × 18,9 / 23,8), plus 24 px de dégradé vers le transparent en bas */
  .fonc__dessin {
    position: sticky; top: 0; z-index: 2; margin: 0 calc(-1 * var(--marge));
    height: calc(62px + (100vw - 16px) * 18.9 / 23.8 + 14px + 24px);
    background: linear-gradient(to bottom, var(--fond) calc(100% - 24px), rgba(243, 242, 238, 0));
  }
  .fonc__dessin .dessin { top: 62px; bottom: auto; height: calc(100% - 86px); }
  .fonc__liste { margin-top: 0; padding-bottom: 24px; }
  /* hauteur fixe : l'item qui se déplie ne décale pas les suivants pendant le défilement */
  .fonc__item { min-height: 140px; align-items: flex-start; padding-top: 4px; }
  .fonc__declencheur { padding: 14px 0; gap: 14px; }
  .fonc__titre { font-size: 20px; }
  .fonc__vignette { width: 76px; margin-top: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   (3 déc. ; 4 déc. : AXODIM) Identité AXODIM : le logo (le mot seul), le tracé de construction, l'ouverture
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
/* le logo : le fichier contient déjà sa zone de protection (2x autour du mot) ; jamais de symbole à côté */
.logo { position: relative; display: inline-block; isolation: isolate; aspect-ratio: 651.67 / 200; }
.logo__mot { position: relative; z-index: 1; display: block; width: auto; height: 100%; }
.pied__logo .logo__mot { width: 100%; height: auto; }
.barre .logo__mot--blanc, .barre.sur-sombre .logo__mot--encre { display: none; }
.barre.sur-sombre .logo__mot--blanc { display: block; }
/* le tracé derrière le mot : le vrai calque de construction (medias/marque/trace-*.svg), calé sur le mot du fichier logo,
   15 à 40 % d'opacité, fondu sur les bords ; petit (moins de 14 px par module), sans les fuyantes à 67,4° */
.logo__trace {
  position: absolute; z-index: 0; pointer-events: none;
  left: calc(-40 / 651.67 * 100%); top: calc(-52 / 200 * 100%); width: calc(731.67 / 651.67 * 100%); height: calc(304 / 200 * 100%);
  background: url('../medias/marque/trace-clair-petit.svg') center / 100% 100% no-repeat; opacity: 0.32;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent);
}
/* (3 déc., correction 3) dans la barre, le mot seul, net : à cette taille le tracé ne se lisait plus que comme des taches */
.barre .logo__trace { display: none; }
.pied__logo .logo__trace { background-image: url('../medias/marque/trace-clair.svg'); opacity: 0.36; }
@media (max-width: 600px) { .pied__logo .logo__trace { background-image: url('../medias/marque/trace-clair-petit.svg'); } }

/* le titre de la démonstration (fond sombre, centré) : le même calque derrière, discret, fondu sur les bords, jamais sous un texte courant
   (il reste dans la boîte du titre). (3 déc., correction 3) retiré des six titres sur fond clair : c'est le seul titre qui le garde */
.titre-trace { position: relative; isolation: isolate; }
.titre-trace::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -0.5em; right: -0.5em; top: -0.18em; bottom: -0.18em;
  background: url('../medias/marque/trace-clair.svg') left center / auto 150% no-repeat; opacity: 0.28;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 72%, transparent), linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 72%, transparent), linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-composite: intersect;
}
.entete--centre .titre-trace::before { background-position: center center; }
.demo .titre-trace::before { background-image: url('../medias/marque/trace-sombre.svg'); opacity: 0.34; }
@media (max-width: 767px) { .titre-trace::before { background-image: url('../medias/marque/trace-clair-petit.svg'); background-size: auto 140%; } .demo .titre-trace::before { background-image: url('../medias/marque/trace-sombre-petit.svg'); } }

/* l'ouverture (src/ouverture.js) : voile noir, le mot au centre ; ne capte aucun clic ; s'efface seul au bout de 3 s si le script manque */
.ouverture__voile { display: none; }
html.ouverture .ouverture__voile {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--noir);
  animation: ouverture-secours 0.4s ease 3s forwards;
}
.ouverture__mot { display: block; overflow: visible; will-change: transform; }
@keyframes ouverture-secours { to { opacity: 0; visibility: hidden; } }
