/* MG Webmarketing — site d'agence, papier ivoire, bandes charbon, pointe jaune du logo */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-800-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: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-800-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+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-600-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* palette de la charte */
  --papier: #f5f4f0;      /* ivoire */
  --blanc: #ffffff;
  --encre: #111114;       /* charbon */
  --texte: #26272b;
  --sourdine: #55575d;    /* texte secondaire sur clair (AA) */
  --filet: #d9d5c9;
  --doux: #eceae3;
  --gris: #a7a7b0;        /* texte secondaire sur charbon */
  --clair-sombre: #e6e6ea;/* texte courant sur charbon */
  --charbon-2: #1c1c21;
  --charbon-3: #2c2c33;
  --jaune: #ffd83d;       /* la pointe du logo */
  --erreur: #b3261e;

  --f-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-texte: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --t-court: 160ms;
  --t-moyen: 240ms;

  --wrap: 1200px;
  --gout: clamp(20px, 4vw, 40px);
  --r: 4px;
  --pointe: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papier); color: var(--texte); font: 400 17.5px/1.65 var(--f-texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 800; color: var(--encre); line-height: 1; letter-spacing: 0; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.6vw, 84px); line-height: .96; }
h2 { font-size: clamp(38px, 4.4vw, 60px); }
h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.05; }
::selection { background: var(--jaune); color: var(--encre); }
input, button, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 2px; }
.sombre :focus-visible, .entete :focus-visible, .pied :focus-visible { outline-color: var(--jaune); }
.num { font-variant-numeric: tabular-nums; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gout); }
.lien-evitement { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--jaune); color: var(--encre); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.lien-evitement:focus { top: 12px; }

/* ---------- la pointe : triangle jaune du logo ---------- */
.pointe { position: relative; }
.pointe::after { content: ""; position: absolute; top: 0; right: 0; width: var(--pointe); height: var(--pointe); background: var(--jaune);
  clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width var(--t-moyen) var(--ease-out), height var(--t-moyen) var(--ease-out); pointer-events: none; }
.puce-pointe { display: inline-block; width: 10px; height: 10px; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); flex: none; }
.sombre .puce-pointe { background: var(--jaune); }

/* ---------- barre de progression ---------- */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--jaune); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- en-tête ---------- */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--encre); color: var(--blanc); transition: box-shadow var(--t-moyen) var(--ease-out); }
.entete.defile { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.entete .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.marque { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.marque img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; font-size: 15px; font-weight: 500; color: #dcdce0; text-decoration: none; transition: color var(--t-court) ease; }
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 2px; background: var(--jaune); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-moyen) var(--ease-out); }
@media (hover: hover) { .nav a:hover { color: var(--blanc); } .nav a:hover::after { transform: scaleX(1); } }
.nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav a.btn, .nav a.btn:hover { color: var(--encre); }
.nav .btn::after { display: none; }
.menu-bouton { display: none; }
@media (max-width: 960px) {
  .menu-bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #3a3a42; border-radius: var(--r); background: transparent; color: var(--blanc); font-weight: 600; font-size: 15px; cursor: pointer; }
  .menu-bouton:active { transform: scale(.97); }
  .menu-bouton svg { width: 18px; height: 18px; }
  .nav { display: none; }
  .entete.ouvert .nav { display: flex; position: fixed; inset: 76px 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gout) 32px; background: var(--encre); overflow: auto; }
  .entete.ouvert .nav a { min-height: 64px; padding: 0; font-family: var(--f-titre); font-weight: 800; font-size: 38px; color: var(--blanc); border-bottom: 1px solid var(--charbon-3); }
  .entete.ouvert .nav a::after { display: none; }
  .entete.ouvert .nav a[aria-current="page"] { color: var(--jaune); }
  .entete.ouvert .nav .btn { margin: 24px 0 0; font-family: var(--f-texte); font-size: 17px; font-weight: 600; min-height: 56px; justify-content: center; border: 0; color: var(--encre); }
}
body.menu-ouvert { overflow: hidden; }

/* ---------- boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1.5px solid var(--encre); border-radius: var(--r); background: transparent; color: var(--encre); font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform var(--t-court) var(--ease-out), background-color var(--t-court) ease, color var(--t-court) ease; }
.btn:active { transform: scale(.97); }
.btn--plein { background: var(--encre); color: var(--blanc); }
.btn--jaune { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.btn--plein::after, .btn--jaune::after { content: ""; position: absolute; top: -1.5px; right: -1.5px; width: 12px; height: 12px; background: var(--jaune);
  clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width var(--t-moyen) var(--ease-out), height var(--t-moyen) var(--ease-out); }
.btn--jaune::after { background: var(--blanc); }
@media (hover: hover) {
  .btn:hover { background: var(--encre); color: var(--blanc); }
  .btn--plein:hover { background: #2a2a31; }
  .btn--jaune:hover { background: #ffe066; color: var(--encre); }
  .btn--plein:hover::after, .btn--jaune:hover::after { width: 18px; height: 18px; }
  .sombre .btn:not(.btn--jaune):hover { background: var(--blanc); color: var(--encre); }
}
.sombre .btn:not(.btn--jaune) { border-color: var(--blanc); color: var(--blanc); }
.btn--petit { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.plus { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1.5px no-repeat; transition: background-size var(--t-moyen) var(--ease-out); }
.plus svg { width: 16px; height: 16px; transition: transform var(--t-court) var(--ease-out); }
@media (hover: hover) { .plus:hover svg { transform: translateX(3px); } }

/* ---------- apparition (seulement si le script tourne) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .stg > * { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.js .stg.in > * { opacity: 1; transform: none; }
.js .stg.in > :nth-child(2) { transition-delay: 60ms; } .js .stg.in > :nth-child(3) { transition-delay: 110ms; }
.js .stg.in > :nth-child(4) { transition-delay: 150ms; } .js .stg.in > :nth-child(5) { transition-delay: 185ms; } .js .stg.in > :nth-child(n+6) { transition-delay: 215ms; }
/* titre mot à mot */
.decoupe .m { display: inline-block; opacity: 0; transform: translateY(.45em); animation: mot 640ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
@keyframes mot { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec--blanc { background: var(--blanc); border-block: 1px solid var(--filet); }
.sombre { background: var(--encre); color: var(--clair-sombre); }
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }
.sombre p { color: #c9c9cf; }
.tete { margin-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 16px; }
.tete h2 { max-width: 20ch; }
.tete p { color: var(--sourdine); font-size: 18px; margin: 0; }
.sombre .tete p { color: var(--gris); }
.chapo { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #3a3b40; }
.sombre .chapo { color: #d4d4d9; }
mark { background: var(--jaune); color: var(--encre); padding: 0 .2em; font-weight: 600; }

/* ---------- héros ---------- */
.heros { position: relative; overflow: hidden; }
.heros::before { content: ""; position: absolute; top: 0; right: 0; width: min(42vw, 620px); aspect-ratio: 1; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 100% 100%); z-index: 0; }
.heros .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(calc(100svh - 76px), 820px); padding-block: clamp(40px, 6vw, 72px); }
.heros h1 { margin-bottom: 24px; }
.heros h1 em { font-style: normal; position: relative; }
.nw { white-space: nowrap; }
.heros h1 em::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .2em; background: var(--jaune); z-index: -1; transform: scaleX(0); transform-origin: 0 50%; animation: surligne 700ms var(--ease-out) 900ms forwards; }
@keyframes surligne { to { transform: scaleX(1); } }
.heros .chapo { margin-bottom: 30px; max-width: 46ch; }
.preuves { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; color: #3a3b40; }
.preuves li { display: inline-flex; align-items: center; gap: 8px; }

.scene { position: relative; width: 100%; aspect-ratio: 1.08 / 1; max-height: 70svh; }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 500ms var(--ease-out); }
.scene.gl-pret canvas { opacity: 1; }
.scene__repli { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 300ms ease; }
.scene.gl-pret .scene__repli { opacity: 0; visibility: hidden; }

/* maquette HTML (repli du héros) */
.maquette { width: min(92%, 520px); background: var(--blanc); border: 2px solid var(--encre); border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(17,17,20,.45); overflow: hidden; }
.maquette__barre { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--encre); }
.maquette__barre span { background: #2a2a31; color: #d0d0d6; font-size: 12px; padding: 3px 12px; border-radius: 3px; }
.maquette__corps { padding: 22px; display: grid; gap: 12px; }
.maquette__corps i { display: block; height: 14px; background: var(--encre); border-radius: 2px; }
.maquette__corps i.c { width: 60%; } .maquette__corps i.g { background: var(--doux); width: 80%; height: 10px; }
.maquette__corps b { justify-self: start; background: var(--encre); color: var(--blanc); font-size: 13px; padding: 9px 14px; border-radius: 3px; }
.maquette__cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.maquette__cartes u { height: 64px; background: var(--papier); border: 1px solid var(--filet); border-radius: 3px; }

.etiquette-prix { position: absolute; left: 0; bottom: 8%; z-index: 2; display: grid; gap: 2px; padding: 14px 18px 12px; background: var(--encre); color: var(--blanc); border-radius: var(--r); box-shadow: 0 20px 40px -20px rgba(17,17,20,.6); }
.etiquette-prix small { font-size: 12px; color: var(--gris); font-weight: 500; }
.etiquette-prix b { font-family: var(--f-titre); font-weight: 800; font-size: 44px; line-height: 1; color: var(--jaune); font-variant-numeric: tabular-nums; }

/* ---------- repères chiffrés ---------- */
.reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--encre); border-bottom: 1px solid var(--filet); }
.reperes > div { padding: 22px 22px 22px 0; display: grid; gap: 4px; }
.reperes > div + div { padding-left: 22px; border-left: 1px solid var(--filet); }
.reperes b { font-family: var(--f-titre); font-weight: 800; font-size: 34px; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
.reperes span { font-size: 15px; color: var(--sourdine); }

/* ---------- services (accueil) ---------- */
.services { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.services__pile { display: grid; gap: 20px; }
.carte { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r);
  transition: transform var(--t-moyen) var(--ease-out), box-shadow var(--t-moyen) var(--ease-out), border-color var(--t-moyen) ease; }
.carte p { color: var(--sourdine); margin: 0; }
.carte .plus { margin-top: auto; align-self: flex-start; }
a.carte, .carte--lien { text-decoration: none; color: inherit; }
@media (hover: hover) { .carte--lien:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(17,17,20,.45); border-color: #c9c4b5; } .carte--lien:hover .plus svg { transform: translateX(3px); } }
.carte--sombre { background: var(--encre); border-color: var(--encre); color: var(--clair-sombre); }
.carte--sombre h3 { color: var(--blanc); }
.carte--sombre p { color: #c9c9cf; }
.carte .prix { font-family: var(--f-titre); font-weight: 800; font-size: clamp(56px, 6vw, 88px); line-height: .9; color: var(--encre); font-variant-numeric: tabular-nums; }
.carte--sombre .prix { color: var(--jaune); }
.carte .prix small { font-size: .38em; margin-right: .2em; vertical-align: .6em; color: inherit; }
.carte--grande { padding: clamp(28px, 4vw, 52px); }
.liste { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.liste li { display: flex; gap: 10px; align-items: baseline; }
.liste li::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); transform: translateY(-1px); }
.carte:not(.carte--sombre) .liste li::before { background: var(--encre); }

/* ---------- étapes (frise qui se dessine au défilement) ---------- */
.etapes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: e; --p: 0; }
.etapes::before, .etapes::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; }
.etapes::before { background: var(--filet); }
.etapes::after { background: var(--encre); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.etapes li { position: relative; counter-increment: e; padding-top: 64px; }
.etapes li::before { content: counter(e); position: absolute; top: 0; left: 0; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; background: var(--papier); border: 2px solid var(--encre); border-radius: 50%;
  font-family: var(--f-titre); font-weight: 800; font-size: 24px; color: var(--encre); transition: background-color var(--t-moyen) ease, color var(--t-moyen) ease; }
.sec--blanc .etapes li::before { background: var(--blanc); }
.etapes li.atteint::before { background: var(--encre); color: var(--jaune); }
.etapes h3 { font-size: 26px; margin-bottom: 8px; }
.etapes p { font-size: 15.5px; color: var(--sourdine); margin: 0; }
.etapes .gratuit { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; background: var(--jaune); color: var(--encre); padding: 2px 8px; border-radius: 2px; }

/* ---------- bandeau sombre avec coupes en biais ---------- */
.biais { clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 calc(100% - 56px)); padding-block: clamp(120px, 12vw, 170px); margin-block: -28px; position: relative; z-index: 1; }
.bande-prix { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.gros-prix { display: grid; justify-items: end; gap: 6px; }
.gros-prix small { font-size: 15px; color: var(--gris); }
.gros-prix b { font-family: var(--f-titre); font-weight: 800; font-size: clamp(110px, 14vw, 210px); line-height: .82; color: var(--jaune); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gros-prix b span { font-size: .4em; color: var(--blanc); margin-left: .08em; }

/* ---------- appel final ---------- */
.appel { text-align: left; }
.appel .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.appel h2 { font-size: clamp(44px, 6vw, 84px); max-width: 14ch; }
.appel p { margin: 16px 0 0; }

/* ---------- bandeau « réalisation » ---------- */
.bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 30px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: var(--r); }
.bandeau b { font-family: var(--f-titre); font-weight: 800; font-size: 26px; color: var(--encre); display: block; line-height: 1.1; }
.bandeau span { color: var(--sourdine); }

/* ---------- pied ---------- */
.pied { background: var(--encre); color: #cfcfd5; border-top: 4px solid var(--jaune); padding-block: 64px 28px; font-size: 15.5px; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.pied__logo img { width: 230px; }
.pied p { color: #b9b9c0; margin-top: 16px; max-width: 36ch; }
.pied h2 { font-family: var(--f-texte); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: 10px; line-height: 1.3; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a, .pied li span { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
@media (hover: hover) { .pied li a:hover { color: var(--blanc); text-decoration: underline; } }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--charbon-3); color: var(--gris); font-size: 13.5px; }
.a-completer { background: #fff1b0; color: var(--encre); padding: 0 .3em; border-radius: 2px; font-weight: 600; white-space: nowrap; }

/* ---------- en-tête des pages intérieures ---------- */
.ptete { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 110px) clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--filet); }
.ptete::before { content: ""; position: absolute; top: 0; right: 0; width: min(24vw, 300px); aspect-ratio: 1; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ptete .wrap { position: relative; }
.ptete h1 { max-width: 15ch; margin-bottom: 20px; }
.ptete p { font-size: clamp(18px, 1.5vw, 21px); color: #3a3b40; margin: 0; max-width: 54ch; }
.ptete .boutons { margin-top: 26px; }

/* ---------- services (page) ---------- */
.service { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--filet); }
.service:nth-child(even) .service__visuel { order: -1; }
.service h2 { margin-bottom: 14px; }
.service .prix-ligne { font-family: var(--f-titre); font-weight: 800; font-size: 30px; color: var(--encre); margin: 0 0 14px; }
.service .prix-ligne span { background: var(--jaune); padding: 0 .25em; }
.service .liste { margin-top: 18px; }
.service .plus { margin-top: 22px; }
.mini { position: relative; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 10px; overflow: hidden; box-shadow: 0 34px 60px -38px rgba(17,17,20,.55);
  transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .service:hover .mini { transform: translateY(-4px); } }
.mini__barre { height: 30px; background: var(--encre); display: flex; align-items: center; padding: 0 12px; }
.mini__barre span { background: #2a2a31; color: #c9c9cf; font-size: 11px; padding: 2px 10px; border-radius: 3px; }
.mini__corps { padding: 22px; display: grid; gap: 12px; min-height: 280px; align-content: start; }
.mini .l { height: 12px; border-radius: 2px; background: var(--encre); }
.mini .l.g { background: var(--doux); height: 9px; }
.mini .boutonm { justify-self: start; font-size: 12px; font-weight: 600; background: var(--encre); color: var(--blanc); padding: 7px 12px; border-radius: 3px; }
.mini .grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini .produit { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--filet); border-radius: 4px; }
.mini .produit i { display: block; aspect-ratio: 1; background: var(--doux); border-radius: 3px; position: relative; }
.mini .produit:nth-child(2) i { background: #e5e2d8; } .mini .produit:nth-child(3) i { background: #ddd9cd; }
.mini .produit b { font-family: var(--f-titre); font-size: 16px; color: var(--encre); }
.mini .panier { position: absolute; top: 44px; right: 14px; background: var(--jaune); color: var(--encre); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 3px; animation: panier 3.2s var(--ease-out) infinite; }
@keyframes panier { 0%, 55% { transform: translateY(0); } 62% { transform: translateY(-5px); } 70%, 100% { transform: translateY(0); } }
.mini .recherche { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--filet); border-radius: 24px; padding: 9px 14px; font-size: 13px; color: var(--sourdine); }
.mini .recherche svg { width: 14px; height: 14px; }
.mini .resultat { display: grid; gap: 4px; padding: 12px; border-radius: 6px; border: 1px solid var(--filet); }
.mini .resultat.top { border: 1.5px solid var(--encre); background: #fffbe6; }
.mini .resultat small { font-size: 11px; color: var(--sourdine); }
.mini .resultat b { font-size: 14px; color: var(--encre); }
.mini .ecrit { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--encre); width: 0; animation: ecrit 3.6s steps(28) infinite; }
@keyframes ecrit { 0% { width: 0; } 45%, 85% { width: 28ch; } 100% { width: 28ch; } }

.inclus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--encre); }
.inclus > div { padding: 24px 24px 8px 0; }
.inclus > div + div { padding-left: 24px; border-left: 1px solid var(--filet); }
.inclus h3 { margin-bottom: 8px; }
.inclus p { color: var(--sourdine); }

/* ---------- tarifs ---------- */
.formules { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: stretch; }
.formules .carte--sombre { transform: translateY(-14px); }
.badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; background: var(--jaune); color: var(--encre); padding: 4px 10px; border-radius: 2px; }

.estimateur { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.panneau { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.groupe { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.groupe legend { font-family: var(--f-titre); font-weight: 800; font-size: 26px; color: var(--encre); padding: 0; margin-bottom: 8px; }
.formule-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.radio-carte { position: relative; }
.radio-carte input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.radio-carte label { display: grid; gap: 2px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--filet); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-court) ease, background-color var(--t-court) ease, transform var(--t-court) var(--ease-out); }
.radio-carte label:active { transform: scale(.98); }
.radio-carte strong { font-family: var(--f-titre); font-weight: 800; font-size: 30px; color: var(--encre); line-height: 1; }
.radio-carte span { font-size: 14.5px; color: var(--sourdine); }
.radio-carte input:checked + label { border-color: var(--encre); background: #fffbe6; box-shadow: inset 0 0 0 1px var(--encre); }
.radio-carte input:focus-visible + label { outline: 3px solid var(--encre); outline-offset: 3px; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--doux); }
.opt label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.opt label b { display: block; color: var(--encre); font-weight: 600; }
.opt label small { display: block; color: var(--sourdine); font-size: 14px; }
.opt input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid var(--encre); border-radius: 3px; background: var(--blanc); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-court) ease; }
.opt input[type="checkbox"]::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--jaune); border-bottom: 2.5px solid var(--jaune); transform: rotate(-45deg) translate(1px, -1px) scale(.5); opacity: 0; transition: transform var(--t-court) var(--ease-out), opacity var(--t-court) ease; }
.opt input[type="checkbox"]:checked { background: var(--encre); }
.opt input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.opt__prix { font-family: var(--f-titre); font-weight: 800; font-size: 22px; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pas { display: inline-flex; align-items: center; border: 1.5px solid var(--encre); border-radius: var(--r); }
.pas button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--encre); transition: background-color var(--t-court) ease; }
@media (hover: hover) { .pas button:hover { background: var(--doux); } }
.pas button:active svg { transform: scale(.85); }
.pas button svg { width: 16px; height: 16px; transition: transform var(--t-court) var(--ease-out); }
.pas button[disabled] { opacity: .35; cursor: not-allowed; }
.pas output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; }
.pas output.bump { animation: bump 220ms var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-3px); } }
.opt .pas { grid-column: 1 / -1; justify-self: start; margin-left: 34px; }
.opt .pas[hidden] { display: none; }
[data-bloc-pages] .pas { grid-column: auto; margin-left: 0; justify-self: end; }

.resume { position: sticky; top: 92px; display: grid; gap: 16px; }
.resume .scene { aspect-ratio: 1.35 / 1; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); max-height: none; }
.feuilles-repli { display: flex !important; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 24px; }
.feuilles-repli i { font-style: normal; width: 84px; height: 110px; padding: 30px 8px 8px; background: var(--blanc); border: 1.5px solid var(--encre); border-top-width: 14px; border-radius: 3px; font-family: var(--f-titre); font-weight: 800; font-size: 15px; color: var(--encre); box-shadow: 0 10px 20px -14px rgba(17,17,20,.5); }
.total { padding: 24px 26px; background: var(--encre); color: var(--clair-sombre); border-radius: var(--r); }
.total h3 { color: var(--blanc); font-size: 26px; margin-bottom: 10px; }
.total ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.total li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--charbon-3); }
.total li b { font-variant-numeric: tabular-nums; color: var(--blanc); white-space: nowrap; }
.total li.nouveau { animation: entre 320ms var(--ease-out); }
@keyframes entre { from { opacity: 0; transform: translateX(-8px); } }
.total__note { font-size: 13px; color: var(--gris); }
.total__mt { font-family: var(--f-titre); font-weight: 800; font-size: clamp(64px, 6vw, 84px); line-height: .95; color: var(--jaune); font-variant-numeric: tabular-nums; }
.total__mt small { font-size: .45em; color: var(--blanc); }
.total__mt .des { font-size: .36em; color: var(--blanc); margin-right: .15em; }
.total__mensuel { margin: 6px 0 0; font-size: 15px; color: var(--clair-sombre); }
.total .btn { width: 100%; margin-top: 18px; }

.tableau { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--filet); font-size: 15.5px; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tbl thead th { background: var(--encre); color: var(--blanc); font-family: var(--f-titre); font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.tbl td:first-child { font-weight: 600; color: var(--encre); white-space: nowrap; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; cursor: pointer; font-weight: 600; font-size: 18px; color: var(--encre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: var(--encre); clip-path: polygon(0 0, 100% 0, 100% 100%); transition: transform var(--t-moyen) var(--ease-out), background-color var(--t-moyen) ease; transform: rotate(135deg); }
.faq details[open] summary::after { transform: rotate(-45deg); background: var(--jaune); }
.faq details p { color: var(--sourdine); padding-bottom: 18px; margin: 0; }
.faq details[open] p { animation: ouvre 260ms var(--ease-out); }
@keyframes ouvre { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- réalisations / cas client ---------- */
.projet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.projet .scene { aspect-ratio: 1.35 / 1; max-height: none; }
.projet .scene__repli { place-items: center; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.puces li { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border: 1.5px solid var(--encre); border-radius: 2px; color: var(--encre); }

.cadre { background: var(--encre); border-radius: 10px; padding: 0 8px 8px; box-shadow: 0 40px 70px -40px rgba(17,17,20,.55); }
.cadre__barre { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 6px; }
.cadre__barre span { background: #2a2a31; color: #c9c9cf; font-size: 12px; padding: 3px 12px; border-radius: 3px; }
.cadre img { border-radius: 4px; width: 100%; }
.cadre--tel { border-radius: 28px; padding: 10px; max-width: 290px; }
.cadre--tel img { border-radius: 20px; }
.devoile { clip-path: inset(0 0 0 0); }
.js .devoile.rv { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-out); }
.js .devoile.rv.in { clip-path: inset(0 0 0 0); }

.faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--encre); margin-top: 40px; }
.faits > div { padding: 20px 20px 0 0; display: grid; gap: 4px; }
.faits > div + div { padding-left: 20px; border-left: 1px solid var(--filet); }
.faits b { font-family: var(--f-titre); font-weight: 800; font-size: 40px; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
.faits span { color: var(--sourdine); font-size: 15px; }
.deux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.galerie figure { margin: 0; }
.galerie figure:first-child { grid-column: 1 / -1; }
.galerie figcaption { margin-top: 12px; font-size: 15px; color: var(--sourdine); }
.role { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: r; }
.role li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--filet); counter-increment: r; }
.role li::before { content: counter(r); width: 44px; height: 44px; display: grid; place-items: center; background: var(--encre); color: var(--jaune); font-family: var(--f-titre); font-weight: 800; font-size: 22px; border-radius: 50%; }
.role b { display: block; color: var(--encre); font-size: 18px; margin-bottom: 4px; }
.role span { color: var(--sourdine); }
.note-brouillon { margin-top: 28px; padding: 20px 22px; background: #fffbe6; border: 1.5px solid var(--encre); border-radius: var(--r); }
.note-brouillon b { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 22px; color: var(--encre); margin-bottom: 4px; }

/* ---------- à propos ---------- */
.valeurs { display: grid; gap: 0; border-top: 2px solid var(--encre); }
.valeurs > div { display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.valeurs h3 { font-size: 32px; }
.valeurs p { margin: 0; color: var(--sourdine); }
.parcours { list-style: none; margin: 0; padding: 0 0 0 28px; display: grid; gap: 26px; position: relative; }
.parcours::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--filet); }
.parcours li { position: relative; }
.parcours li::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; background: var(--encre); clip-path: polygon(0 0, 100% 0, 0 100%); }
.parcours li:first-child::before { background: var(--jaune); }
.parcours b { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 26px; color: var(--encre); line-height: 1.1; }
.parcours em { display: block; font-style: normal; font-weight: 600; color: var(--texte); margin: 2px 0 6px; }
.parcours span { color: var(--sourdine); }

/* ---------- contact / formulaires ---------- */
.formulaire { display: grid; gap: 16px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.champ label { display: block; font-weight: 600; font-size: 15px; color: var(--encre); margin-bottom: 6px; }
.champ label span { font-weight: 400; color: var(--sourdine); }
.champ input, .champ textarea, .champ select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfcabd; border-radius: var(--r); background: var(--blanc); font-size: 16px; transition: border-color var(--t-court) ease, box-shadow var(--t-court) ease; }
.champ textarea { min-height: 150px; resize: vertical; }
@media (hover: hover) { .champ input:hover, .champ textarea:hover, .champ select:hover { border-color: #8f8b80; } }
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--jaune); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.erreur { color: var(--erreur); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.erreur:empty { display: none; }
.double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.statut { margin: 0; font-weight: 500; }
.statut:empty { display: none; }
.statut:not(:empty) { padding: 14px 16px; background: #fffbe6; border-left: 0; border: 1.5px solid var(--encre); border-radius: var(--r); }
.contact-infos { display: grid; gap: 20px; }
.contact-infos .carte p { color: var(--texte); }
.courriel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.courriel b { font-size: 19px; color: var(--encre); user-select: all; }
.copier { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- mentions ---------- */
.legal h2 { font-size: clamp(30px, 3vw, 40px); margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal dl { display: grid; grid-template-columns: 18ch minmax(0, 1fr); margin: 0; max-width: 780px; border-top: 1px solid var(--filet); }
.legal dt, .legal dd { padding: 12px 0; border-bottom: 1px solid var(--filet); margin: 0; }
.legal dt { font-weight: 600; color: var(--encre); }

/* ---------- retour en haut ---------- */
.haut { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: var(--r); background: var(--encre); color: var(--jaune); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--t-moyen) var(--ease-out), transform var(--t-moyen) var(--ease-out); }
.haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut:active { transform: scale(.95); }
.haut svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .etapes { grid-template-columns: 1fr; gap: 0; }
  .etapes::before, .etapes::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .etapes::after { transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .etapes li { padding: 0 0 28px 72px; min-height: 76px; }
  .formules { grid-template-columns: 1fr; }
  .formules .carte--sombre { transform: none; }
}
@media (max-width: 900px) {
  .heros .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 8px; }
  .heros::before { width: 60vw; }
  .scene { max-height: none; }
  .services, .bande-prix, .estimateur, .projet, .deux, .service, .appel .wrap { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__visuel { order: 0; }
  .gros-prix { justify-items: start; }
  .resume { position: static; }
  .reperes, .faits { grid-template-columns: 1fr 1fr; }
  .reperes > div:nth-child(3), .faits > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .reperes > div:nth-child(n+3), .faits > div:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .inclus { grid-template-columns: 1fr; }
  .inclus > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--filet); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__logo { grid-column: 1 / -1; }
  .biais { clip-path: polygon(0 0, 100% 28px, 100% 100%, 0 calc(100% - 28px)); padding-block: 96px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .boutons .btn { width: 100%; }
  .double, .formule-choix, .galerie { grid-template-columns: 1fr; }
  .valeurs > div { grid-template-columns: 1fr; gap: 4px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .pied__grille { grid-template-columns: 1fr; gap: 28px; }
  .etiquette-prix { bottom: 2%; padding: 10px 14px 9px; }
  .etiquette-prix b { font-size: 34px; }
  .cadre--tel { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .rv, .js .stg > *, .decoupe .m { opacity: 1 !important; transform: none !important; }
  .js .devoile.rv { clip-path: none !important; }
  .mini .ecrit { width: 28ch; border-right: 0; }
}

.deux--form { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .deux--form { grid-template-columns: 1fr; } }
.carte--sombre.carte--lien, a.carte--sombre { color: var(--clair-sombre); }
.carte--sombre .plus { color: var(--blanc); }
.galerie .cadre:not(.cadre--tel) img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.galerie figure:first-child .cadre img { aspect-ratio: 16 / 8; }
.galerie .cadre--tel img { aspect-ratio: auto; }

/* barre du total sur téléphone (Tarifs) */
.barre-total { display: none; }
@media (max-width: 900px) {
  .barre-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(var(--gout), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gout), env(safe-area-inset-left, 0px));
    background: var(--encre); color: var(--blanc); border-top: 3px solid var(--jaune); transform: translateY(110%); transition: transform var(--t-moyen) var(--ease-out); }
  .barre-total.visible { transform: none; }
  .barre-total__mt { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--f-titre); font-weight: 800; font-size: 32px; color: var(--jaune); font-variant-numeric: tabular-nums; }
  .barre-total__mt small { font-family: var(--f-texte); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
  body.a-barre .haut { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* --- passe de corrections --- */
@media (max-width: 900px) {
  .heros__texte { display: contents; }
  .heros h1 { order: 1; margin-bottom: 4px; }
  .heros .scene { order: 2; aspect-ratio: 1.3 / 1; margin-bottom: 12px; }
  .heros .chapo { order: 3; }
  .heros .boutons { order: 4; }
  .heros .preuves { order: 5; }
}
.etapes li::before { content: counter(e, decimal-leading-zero); border-radius: 2px; font-size: 22px; }
.etapes li.atteint::before { box-shadow: inset -10px 10px 0 -6px var(--jaune); }
.role li::before { border-radius: 2px; }
.service__visuel { perspective: 1400px; }
.mini { transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; transition: none; }
.mini__corps { transform-style: preserve-3d; }
.mini__corps > *, .mini .panier { transform: translateZ(var(--z, 0px)); }
.mini__corps > :nth-child(even) { transform: translateZ(calc(var(--z, 0px) * 1.6)); }
.mini .boutonm, .mini .resultat.top { transform: translateZ(calc(var(--z, 0px) * 2.2)); box-shadow: 0 14px 24px -14px rgba(17,17,20,.5); }
@media (hover: hover) { .service:hover .mini { transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 0deg)) translateY(-4px); } }
.bareme-mini { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.bareme-mini li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--doux); font-size: 15.5px; }
.bareme-mini li span:first-child { flex: 1; }
.bareme-mini li b { font-family: var(--f-titre); font-weight: 800; font-size: 20px; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mini, .mini__corps > * { transform: none !important; } }
.carte--sombre h2, .carte--sombre h3 { color: var(--blanc); }

/* l'étiquette de prix ne couvre plus la scène */
.heros .etiquette-prix { left: -3%; bottom: -5%; }
@media (max-width: 900px) {
  .heros .scene { margin-bottom: 0; }
  .heros .etiquette-prix { position: static; order: 2; justify-self: start; margin: -6px 0 14px; display: inline-grid; grid-auto-flow: column; align-items: baseline; gap: 12px; }
}
.feuilles-repli i { width: 100px; height: 128px; font-size: 18px; }
.heros__visuel { position: relative; }
@media (max-width: 900px) {
  .heros__visuel { order: 2; display: grid; }
  .heros__visuel .scene { order: 0; }
}

/* ===== passe mobile ===== */
/* menu : apparition douce, liens en léger décalé */
@media (max-width: 960px) {
  .entete.ouvert .nav a { animation: menu-lien 260ms var(--ease-out) both; }
  .entete.ouvert .nav a:nth-child(2) { animation-delay: 30ms; } .entete.ouvert .nav a:nth-child(3) { animation-delay: 55ms; }
  .entete.ouvert .nav a:nth-child(4) { animation-delay: 75ms; } .entete.ouvert .nav a:nth-child(5) { animation-delay: 90ms; } .entete.ouvert .nav a:nth-child(6) { animation-delay: 105ms; }
}
@keyframes menu-lien { from { opacity: 0; transform: translateY(-6px); } }
/* le bouton « haut » ne couvre pas le texte sur téléphone */
@media (max-width: 600px) { .haut { display: none; } }
/* très petits écrans : le titre peut se couper */
@media (max-width: 380px) { h1 { font-size: 40px; } .nw { white-space: normal; } }
/* tableau des tarifs en fiches sur téléphone */
@media (max-width: 600px) {
  .tableau { overflow: visible; }
  .tbl { min-width: 0; border: 0; background: none; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { display: block; margin-bottom: 12px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); padding: 14px 16px; }
  .tbl td { display: block; padding: 4px 0; border: 0; white-space: normal; }
  .tbl td:first-child { font-family: var(--f-titre); font-weight: 800; font-size: 22px; padding-bottom: 6px; }
  .tbl td:nth-child(2)::before { content: "Compris : "; font-weight: 600; color: var(--encre); }
  .tbl td:nth-child(3)::before { content: "En plus : "; font-weight: 600; color: var(--encre); }
  .tbl td[colspan]::before { content: none; }
}
.copier { min-height: 44px; }
.badge { font-size: 13px; }
@media (max-width: 600px) { .feuilles-repli { gap: 6px; padding: 12px; } .feuilles-repli i { width: 64px; height: 84px; padding: 24px 5px 5px; font-size: 13px; border-top-width: 10px; } }
@media (prefers-reduced-motion: reduce) { .entete.ouvert .nav a { animation: none; } }

/* passe animations */
@media (prefers-reduced-motion: reduce) { .mini .panier, .mini .ecrit { animation: none !important; } .mini .ecrit { width: auto; } }
/* le canevas du héros déborde de sa boîte pour que l'éclatement ne soit jamais coupé */
@media (min-width: 901px) { .heros .scene canvas { inset: -10% -8% -24% -8%; width: 116% !important; height: 134% !important; pointer-events: none; } }

/* ===== V2 : récit des cinq étapes ===== */
/* par défaut (sans 3D) : une liste lisible, comme en V1 */
.recit__scene { display: none; }
.recit__etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--encre); }
.recit__etapes li { position: relative; padding: 22px 0 22px 76px; border-bottom: 1px solid var(--filet); }
.recit__num { position: absolute; left: 0; top: 22px; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--encre); border-radius: 2px;
  font-family: var(--f-titre); font-weight: 800; font-size: 22px; color: var(--encre); background: var(--blanc); transition: background-color var(--t-moyen) ease, color var(--t-moyen) ease; }
.recit__etapes h3 { font-size: 28px; margin-bottom: 6px; }
.recit__etapes p { color: var(--sourdine); margin: 0; }
.recit__etapes .gratuit { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; background: var(--jaune); color: var(--encre); padding: 2px 8px; border-radius: 2px; }

/* avec la 3D : la scène reste à l'écran, les étapes défilent à côté */
.recit--3d { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.recit--3d .recit__scene { display: block; position: sticky; top: 92px; height: min(76svh, 640px); }
.recit--3d .recit__scene .scene { aspect-ratio: auto; height: 100%; max-height: none; }
.recit--3d .recit__etapes { border-top: 0; padding-block: 8svh 26svh; }
.recit--3d .recit__etapes li { min-height: 46svh; display: flex; flex-direction: column; justify-content: center; border-bottom: 0; opacity: .32; transition: opacity 300ms var(--ease-out); }
.recit--3d .recit__etapes li.actif { opacity: 1; }
.recit--3d .recit__etapes li.actif .recit__num { background: var(--encre); color: var(--jaune); }
@media (max-width: 900px) {
  .recit--3d { grid-template-columns: 1fr; gap: 0; }
  .recit--3d .recit__scene { top: 64px; height: 40svh; z-index: 2; background: var(--blanc); margin-inline: calc(-1 * var(--gout)); padding-inline: var(--gout); border-bottom: 1px solid var(--filet); }
  .recit--3d .recit__etapes { padding-block: 4svh 30svh; }
  .recit--3d .recit__etapes li { min-height: 44svh; justify-content: flex-start; padding-top: 4svh; }
}

/* ===== V2 : onglets du site qu'on parcourt ===== */
.projet__ecran { display: grid; gap: 14px; min-width: 0; }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.onglets button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--encre); border-radius: var(--r); background: transparent; color: var(--encre); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color var(--t-court) ease, color var(--t-court) ease, transform var(--t-court) var(--ease-out); }
.onglets button:active { transform: scale(.97); }
.onglets button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
@media (hover: hover) { .onglets button:not([aria-pressed="true"]):hover { background: var(--doux); } }

.recit__etapes .gratuit { align-self: flex-start; }

/* ===== V3 : trouvé · compris · contacté (sous la scène de l'accueil) ===== */
.phases { display: flex; justify-content: center; gap: 6px 22px; margin: 6px 0 0; font-family: var(--f-titre); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #b9b5aa; }
.phases[hidden] { display: none; }
.phases span { position: relative; padding-bottom: 6px; transition: color 300ms var(--ease-out); }
.phases span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--jaune); transform: scaleX(0); transform-origin: 0 50%; transition: transform 400ms var(--ease-out); }
.phases span.actif { color: var(--encre); }
.phases span.actif::after { transform: scaleX(1); }
@media (max-width: 900px) { .phases { order: 2; font-size: 19px; margin: -4px 0 10px; } }

/* ===== V3 : Tarifs sur téléphone ===== */
.total-mini, .total-fin { display: none; }
@media (max-width: 900px) {
  /* l'estimateur passe avant les formules */
  main:has(#estimateur) { display: flex; flex-direction: column; }
  main:has(#estimateur) > section:first-child { order: -2; }
  main:has(#estimateur) > #estimateur { order: -1; }
  .estimateur { display: flex; flex-direction: column; gap: 14px; }
  /* l'aperçu reste en haut pendant qu'on compose */
  .resume { order: -1; position: sticky; top: 64px; z-index: 6; gap: 0; background: var(--blanc); margin-inline: calc(-1 * var(--gout)); padding: 8px var(--gout) 10px; border-bottom: 1px solid var(--filet); box-shadow: 0 12px 20px -18px rgba(17,17,20,.35); }
  .resume .scene { aspect-ratio: auto; height: 21svh; min-height: 150px; border: 0; }
  .resume .total { display: none; }
  .total-mini { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px; background: var(--encre); color: var(--blanc); border-radius: var(--r); text-decoration: none; }
  .total-mini > span:first-child { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
  .total-mini b { font-family: var(--f-titre); font-weight: 800; font-size: 30px; line-height: 1; color: var(--jaune); font-variant-numeric: tabular-nums; margin-left: auto; }
  .total-mini b [data-des] { font-size: .55em; color: var(--blanc); }
  .total-mini__lien { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
  .total-fin { display: block; margin-top: 18px; }
  .sec#estimateur { padding-top: 40px; }
  /* formules compactes */
  .formules .carte { padding: 20px; gap: 6px; }
  .formules .liste, .formules .carte > p:not(.prix) { display: none; }
  .formules .carte .prix { font-size: 46px !important; }
  .formules { gap: 12px; }
  .formules .carte--options .liste { display: grid; }
}

/* ===== V3 : le site qu'on parcourt ===== */
.consigne { margin: 0; font-size: 14.5px; color: var(--sourdine); }
.consigne--tactile { display: none; }
@media (hover: none), (pointer: coarse) { .consigne--souris { display: none; } .consigne--tactile { display: block; } }
.projet--defile .scene { cursor: ns-resize; }
@media (max-width: 900px) { .total-mini { width: 100%; box-sizing: border-box; } }
@media (max-width: 900px) { .estimateur > .resume { width: calc(100% + 2 * var(--gout)); max-width: none; align-self: center; margin-inline: 0; } }

/* le bouton « Devis gratuit » garde son texte foncé, même quand c'est la page en cours (Contact) */
.nav a.btn[aria-current="page"], .entete.ouvert .nav a.btn[aria-current="page"] { color: var(--encre); }
.nav a.btn[aria-current="page"]::after { display: none; }

/* les panneaux collants se calent sous l'en-tête (76 px), sans passer dessous */
@media (max-width: 900px) {
  .recit--3d .recit__scene { top: 76px; }
  .resume { top: 76px; }
}

.phases { align-items: baseline; gap: 6px 14px; }
.phases i { font-style: normal; color: #c9c5b8; font-weight: 600; }
@media (max-width: 900px) { .phases { font-size: 17px; gap: 4px 8px; } }
@media (max-width: 360px) { .phases { font-size: 15px; } }

/* étapes inactives : atténuées par la couleur (contraste AA conservé) plutôt que par l'opacité */
.recit--3d .recit__etapes li { opacity: 1; }
.recit--3d .recit__etapes li:not(.actif) h3,
.recit--3d .recit__etapes li:not(.actif) p { color: #6a6c72; transition: color 300ms var(--ease-out); }
.recit--3d .recit__etapes li:not(.actif) .recit__num { color: #6a6c72; border-color: #b9bac0; }
.recit--3d .recit__etapes li:not(.actif) .gratuit { background: #efeee9; color: #55575d; }

/* les trois mots du héros deviennent des commandes : clic = aller à l'étape, flèche = étape suivante */
.phases { align-items: center; }
.phases button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  position: relative; min-height: 44px; padding: 6px 2px 10px; transition: color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.phases button::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 3px; background: var(--jaune); transform: scaleX(0); transform-origin: 0 50%; transition: transform 400ms var(--ease-out); }
.phases button.actif { color: var(--encre); }
.phases button.actif::after { transform: scaleX(1); }
@media (hover: hover) { .phases button[data-mot]:hover { color: #55575d; } .phases button.actif:hover { color: var(--encre); } }
.phases button:active { transform: scale(.97); }
.phases button:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.phases .phases__suite { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-left: 6px; color: var(--encre);
  border: 2px solid var(--encre); border-radius: 2px; }
.phases .phases__suite::after { display: none; }
@media (hover: hover) { .phases .phases__suite:hover { background: var(--jaune); } }
.phases { color: #707177; }   /* mots inactifs : contraste ≥ 4,5:1 sur ivoire, ce sont des boutons */
.phases i { color: #8d8e93; }
.phases i { align-self: center; line-height: 1; transform: translateY(-2px); }
@media (max-width: 900px) { .phases { gap: 2px 6px; flex-wrap: nowrap; } .phases .phases__suite { margin-left: 2px; } }
@media (max-width: 400px) { .phases i { display: none; } .phases { justify-content: space-between; } }
.statut--ok:not(:empty) { background: #eef8ea; border-color: #2d6a1f; }
.statut--erreur:not(:empty) { background: #fdeceb; border-color: #a3271b; }
.statut:focus { outline: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire { position: relative; }
.formulaire button[disabled] { opacity: .6; cursor: progress; }
