/* ==========================================================================
   V3 — « San Francisco, matcha ». Crème chaud, encre forêt, serif éditoriale,
   accent matcha pour l'action, abricot pour la chaleur. Grain léger.
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/fonts/geist-latin.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --fond: #F5F2EA;
  --papier: #FFFDF8;
  --avoine: #ECE6D8;
  --encre: #1C2620;
  --texte: #39433C;
  --doux: #747A70;
  --trait: #E2DCCD;
  --matcha: #5E7D4C;
  --matcha-vif: #7FA266;
  --matcha-pale: #DFE7D2;
  --sauge: #AFC0A0;
  --abricot: #EA8253;
  --peche: #F5C4A3;
  --froid: #A9BFC6;
  --foret: #1F2C24;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rayon: 24px;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ombre: 0 1px 2px rgba(28, 38, 32, .04), 0 12px 40px -18px rgba(28, 38, 32, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16.5px/1.62 var(--sans);
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
/* Grain papier, très léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.6vw, 124px); }
h2 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--matcha); }
h3 { margin: 0; font-size: 19px; font-weight: 550; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
sup { font-size: .6em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doux { color: var(--doux); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--doux); max-width: 34em; }
section { padding: clamp(80px, 11vw, 150px) 0; }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--matcha-pale); }

/* Sur-titre en mono, avec pastille */
.sur { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.sur::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--matcha-vif); box-shadow: 0 0 0 4px var(--matcha-pale); }
.pastille {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--papier); border: 1px solid var(--trait); box-shadow: var(--ombre);
  font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--texte); text-decoration: none;
}
.pastille i { width: 7px; height: 7px; border-radius: 50%; background: var(--matcha-vif); box-shadow: 0 0 0 3px var(--matcha-pale); animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 6px rgba(127, 162, 102, .12); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 24px; border-radius: 999px; border: 0;
  font: 500 15.5px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  background: var(--encre); color: var(--papier);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(28,38,32,.2), 0 8px 24px -10px rgba(28,38,32,.5);
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); background: #0F1612; }
.btn .fl { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: -8px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 13px; transition: transform .3s var(--ease); }
.btn:hover .fl { transform: translateX(2px); }
.btn.clair { background: var(--papier); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait), 0 1px 2px rgba(28,38,32,.05); }
.btn.clair:hover { background: #fff; }
.btn.clair .fl { background: var(--avoine); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- En-tête flottant ---------- */
.tete { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.tete .wrap { position: relative; }
.tete .barre {
  display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--papier) 70%, transparent); border: 1px solid transparent;
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.tete.scrolle .barre { border-color: var(--trait); box-shadow: var(--ombre); background: color-mix(in srgb, var(--papier) 82%, transparent); }
.marque { display: flex; align-items: center; text-decoration: none; }
.marque img { height: 28px; width: auto; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--doux); transition: color .2s, background .2s; }
.nav a:hover { color: var(--encre); background: rgba(28,38,32,.04); }
.nav a[aria-current] { color: var(--encre); background: var(--avoine); }
.tete .btn { padding: 11px 18px; font-size: 14.5px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--encre); margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 100px) 0 0; text-align: center; }
.hero .wrap { display: grid; justify-items: center; }
.hero h1 { margin-top: 28px; max-width: 11ch; }
.hero .lead { margin-top: 26px; max-width: 30em; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.cadre {
  width: 100%; margin-top: clamp(56px, 7vw, 96px); padding: 10px; border-radius: 34px;
  background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 40px 100px -50px rgba(60, 50, 30, .35);
}
.scene {
  position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 8.4; background: var(--avoine);
  isolation: isolate; text-align: left;
}
.scene img { width: 100%; height: 100%; object-fit: cover; }
/* Calques thermiques : stratifié → homogène */
.scene::before, .scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; transition: opacity 2.4s var(--ease); }
.scene::before { background: linear-gradient(180deg, rgba(234,130,83,.82) 0%, rgba(245,196,163,.55) 36%, rgba(255,253,248,0) 60%, rgba(150,180,192,.7) 100%); opacity: 1; }
.scene::after { background: linear-gradient(180deg, rgba(245,190,150,.38), rgba(240,200,165,.34)); opacity: 0; }
.scene[data-etat="avec"]::before { opacity: 0; }
.scene[data-etat="avec"]::after { opacity: 1; }
.flux { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s .6s; }
.scene[data-etat="avec"] .flux { opacity: 1; }
.flux path { fill: none; stroke: rgba(255,253,248,.8); stroke-width: 1.6; stroke-dasharray: 5 13; animation: descend 1.8s linear infinite; }
@keyframes descend { to { stroke-dashoffset: -36; } }
.temp {
  position: absolute; left: clamp(14px, 3vw, 28px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,253,248,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -10px rgba(28,38,32,.35);
}
.temp span { font: 400 clamp(24px, 2.8vw, 36px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.temp small { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.temp.haut { top: clamp(14px, 3vw, 28px); }
.temp.bas { bottom: clamp(14px, 3vw, 28px); }
.temp i { width: 9px; height: 9px; border-radius: 50%; background: var(--abricot); transition: background 1.6s; }
.temp.bas i { background: #7FA3B0; }
.scene[data-etat="avec"] .temp i { background: var(--matcha-vif); }
.bascule {
  position: absolute; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 2;
  display: flex; padding: 4px; border-radius: 999px; background: rgba(28,38,32,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.bascule button { border: 0; background: none; color: rgba(255,253,248,.78); font: 500 13.5px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.bascule button[aria-pressed="true"] { background: var(--papier); color: var(--encre); }

/* ---------- Bande de preuves ---------- */
.preuves { padding: 40px 0 0; }
.preuves ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--doux); }
.preuves li { display: flex; align-items: center; gap: 8px; }
.preuves li::before { content: "✓"; color: var(--matcha); }

/* ---------- Bento de faits ---------- */
.faits { padding: clamp(80px, 10vw, 130px) 0 0; }
.faits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.faits li { padding: 26px 24px 24px; border-radius: var(--rayon); background: var(--papier); border: 1px solid var(--trait); display: grid; gap: 28px; align-content: space-between; min-height: 176px; }
.faits b { display: block; font: 400 clamp(46px, 4.6vw, 64px)/.9 var(--serif); letter-spacing: -.02em; }
.faits span { display: block; font-size: 14.5px; color: var(--doux); }
.faits li:nth-child(2) { background: var(--matcha-pale); border-color: transparent; }
.faits li:nth-child(2) b { color: var(--matcha); }

/* ---------- Titres de section ---------- */
.titre { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.titre.centre { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Simulateur ---------- */
.simu {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 10px; padding: 10px;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 34px; box-shadow: 0 40px 100px -50px rgba(60,50,30,.3);
}
.simu > form { padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 26px; align-content: start; }
.champ { display: grid; gap: 10px; }
.champ > label, .champ > .lbl, .reglette label { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.champ .aide { font-size: 13px; color: var(--doux); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--avoine); border-radius: 999px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 11px 8px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--doux); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg input:checked + label { background: var(--papier); color: var(--encre); box-shadow: 0 1px 2px rgba(28,38,32,.08), 0 4px 12px -6px rgba(28,38,32,.2); }
.seg input:focus-visible + label { outline: 2px solid var(--matcha); outline-offset: 1px; }
.entree { position: relative; }
.entree input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--trait); background: var(--fond); -moz-appearance: textfield; appearance: textfield;
  font: 500 17px/1.2 var(--sans); color: var(--encre); font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s, background .2s;
}
.entree input::-webkit-outer-spin-button, .entree input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.entree input::placeholder { color: #B3AFA3; }
.entree input:focus { outline: 0; border-color: var(--matcha); background: var(--papier); box-shadow: 0 0 0 4px var(--matcha-pale); }
.entree input:disabled { color: var(--doux); }
.entree .u { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--mono); color: var(--doux); pointer-events: none; }
.reglette { display: flex; justify-content: space-between; align-items: baseline; }
.reglette output { font: 400 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sauge), var(--matcha)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sauge), var(--matcha)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 2px 8px rgba(28,38,32,.25); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 2px 8px rgba(28,38,32,.25); }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--doux); cursor: pointer; }
.coche input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--matcha); flex: none; }

.res {
  position: relative; padding: clamp(26px, 3.6vw, 42px); border-radius: 26px; background: var(--foret); color: var(--papier);
  display: grid; align-content: start; gap: 28px; overflow: hidden; isolation: isolate;
}
.res::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(234,130,83,.5), transparent); filter: blur(10px); }
.res::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; left: -220px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(127,162,102,.45), transparent); filter: blur(10px); }
.res .eti { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,253,248,.55); }
.montant { margin-top: 14px; font: 400 clamp(64px, 7.4vw, 104px)/.9 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reste { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,253,248,.08); border: 1px solid rgba(255,253,248,.1); font-size: 13.5px; }
.reste::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--matcha-vif); box-shadow: 0 0 0 3px rgba(127,162,102,.25); }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 16px; overflow: hidden; background: rgba(255,253,248,.1); }
.details div { padding: 14px 16px; background: color-mix(in srgb, var(--foret) 92%, white); }
.details dt { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,253,248,.5); }
.details dd { margin: 8px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.res .note { font-size: 13px; color: rgba(255,253,248,.55); }
.ko { display: grid; gap: 14px; }
.ko h3 { font: 400 40px/1 var(--serif); }
.ko ul { margin: 0; padding-left: 18px; color: rgba(255,253,248,.8); display: grid; gap: 8px; }

.lead-form { display: grid; gap: 10px; padding-top: 26px; border-top: 1px solid rgba(255,253,248,.12); }
.lead-form > p b { font: 400 26px/1.1 var(--serif); }
.lead-form .duo { gap: 10px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,253,248,.14); background: rgba(255,253,248,.06);
  color: var(--papier); font: 400 15.5px/1.2 var(--sans); transition: border-color .2s, background .2s;
}
.lead-form input::placeholder { color: rgba(255,253,248,.42); }
.lead-form input:focus { outline: 0; border-color: var(--sauge); background: rgba(255,253,248,.1); }
.lead-form .coche { color: rgba(255,253,248,.58); font-size: 12.5px; }
.lead-form .coche input { accent-color: var(--matcha-vif); }
.lead-form .btn { background: var(--papier); color: var(--encre); margin-top: 6px; }
.lead-form .btn .fl { background: var(--matcha-pale); }
.lead-form .btn:hover { background: #fff; }
.lead-msg { font-size: 14px; min-height: 1.4em; }
.lead-msg.ok { color: var(--sauge); }
.lead-msg.err { color: var(--peche); }

/* ---------- Étapes ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; gap: 14px; align-content: start; padding: 28px 28px 32px; border-radius: var(--rayon); background: var(--papier); border: 1px solid var(--trait); }
.etapes li::before { content: "0" counter(e); font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--matcha); padding-bottom: 36px; }
.etapes h3 { font: 400 36px/1 var(--serif); letter-spacing: -.01em; }
.etapes p { color: var(--doux); font-size: 15.5px; }

/* ---------- Secteurs (cartes photo) ---------- */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tuile { display: grid; gap: 16px; text-decoration: none; color: var(--encre); }
.tuile .img { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; background: var(--avoine); }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tuile:hover img { transform: scale(1.035); }
.tuile div:last-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.tuile h3 { font: 400 30px/1 var(--serif); }
.tuile span { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--doux); transition: color .2s; }
.tuile:hover span { color: var(--matcha); }

/* ---------- Bloc image + texte ---------- */
.duplex { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.duplex > img { border-radius: 32px; background: var(--avoine); }
.liste { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--trait); }
.liste li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.liste li b { font-weight: 500; }
.liste li span { color: var(--doux); text-align: right; }
.coches li b { display: flex; align-items: center; gap: 12px; }
.coches li b::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--matcha-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E7D4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- Tableau barèmes ---------- */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; background: var(--papier); border: 1px solid var(--trait); border-radius: 20px; overflow: hidden; }
.tableau th, .tableau td { padding: 15px 18px; text-align: right; border-bottom: 1px solid var(--trait); }
.tableau th:first-child, .tableau td:first-child { text-align: left; }
.tableau thead th { font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--doux); background: color-mix(in srgb, var(--avoine) 45%, var(--papier)); }
.tableau tbody th { font-weight: 500; }
.tableau tbody tr:last-child td, .tableau tbody tr:last-child th { border-bottom: 0; }
.scroll-x { overflow-x: auto; border-radius: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq details:first-of-type { border-top: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17.5px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--avoine); font-size: 18px; font-weight: 400; line-height: 1; color: var(--texte); transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--matcha-pale); }
.faq details > div { padding: 0 48px 24px 0; color: var(--doux); max-width: 44em; }
.faq details > div p + p { margin-top: 12px; }
.faq-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-cols .titre { position: sticky; top: 110px; margin: 0; }
.faq-cols .faq { margin: 0; max-width: none; }

/* ---------- Article (pages de contenu) ---------- */
.fil { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--doux); padding-top: 24px; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fil li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--encre); }
.page-tete { padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 72px); }
.page-tete h1 { font-size: clamp(46px, 6.6vw, 92px); max-width: 18ch; }
.nobr { white-space: nowrap; }
.page-tete .lead { margin-top: 24px; }
.page-tete .doux { font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.prose { max-width: 700px; color: var(--texte); font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: clamp(34px, 3.6vw, 46px); margin: 72px 0 20px; color: var(--encre); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 10px; color: var(--encre); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--matcha); }
.prose strong { color: var(--encre); font-weight: 600; }
.prose .liste, .prose .liste li { padding-left: 0; margin-bottom: 0; }
.prose .tableau { margin: 24px 0 32px; font-size: 15px; }
.prose .scroll-x { margin: 24px 0 32px; }
.prose .scroll-x .tableau { margin: 0; }
.encart { margin: 32px 0; padding: 26px 28px; border-radius: var(--rayon); background: var(--matcha-pale); }
.encart p:last-child { margin-bottom: 0; }
.formule { font: italic 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif) !important; letter-spacing: -.01em; color: var(--encre) !important; }
.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 110px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.aside { position: sticky; top: 104px; display: grid; gap: 14px; padding: 28px; border-radius: 28px; background: var(--foret); color: var(--papier); overflow: hidden; isolation: isolate; }
.aside::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(234,130,83,.45), transparent); }
.aside p { color: rgba(255,253,248,.68); font-size: 14.5px; }
.aside b { font: 400 32px/1.02 var(--serif); }
.aside .btn { background: var(--papier); color: var(--encre); margin-top: 6px; }
.aside .btn .fl { background: var(--matcha-pale); }
.liens-int { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 18px; }
.liens-int a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--papier); border: 1px solid var(--trait); text-decoration: none; font-weight: 500; transition: transform .3s var(--ease), border-color .3s; }
.liens-int a:hover { transform: translateY(-2px); border-color: var(--sauge); }

/* ---------- Appel final ---------- */
.final { padding: 0 0 clamp(80px, 10vw, 140px); }
.final .bloc {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(64px, 9vw, 130px) var(--pad);
  text-align: center; background: var(--foret); color: var(--papier); display: grid; justify-items: center; gap: 26px;
}
.final .bloc::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: 50%; top: -55%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(234,130,83,.55), rgba(245,196,163,.12) 60%, transparent); filter: blur(20px); }
.final .bloc::after { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; left: -10%; bottom: -70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127,162,102,.4), transparent); filter: blur(20px); }
.final h2 { max-width: 13ch; font-size: clamp(44px, 6vw, 84px); }
.final h2 em { color: var(--peche); }
.final .btn { background: var(--papier); color: var(--encre); }
.final .btn .fl { background: var(--matcha-pale); }
.final p { color: rgba(255,253,248,.65); }

/* ---------- Pied ---------- */
.pied { padding: 72px 0 0; font-size: 14px; color: var(--doux); overflow: hidden; }
.pied .grille { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.pied .grille img { height: 28px; width: auto; }
.pied h2 { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre); margin-bottom: 16px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pied a { text-decoration: none; transition: color .2s; }
.pied a:hover { color: var(--encre); }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--trait); font: 500 12px/1.4 var(--mono); letter-spacing: .02em; }
.pied .geant { margin: 24px 0 -0.24em; font: 400 clamp(96px, 23vw, 320px)/1 var(--serif); letter-spacing: -.04em; text-align: center; color: transparent; background: linear-gradient(180deg, var(--avoine), color-mix(in srgb, var(--avoine) 30%, var(--fond))); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ---------- Prise de rendez-vous (/rendez-vous/) ---------- */
.rdv { min-height: 420px; scroll-margin-top: 110px; }
.rdv .c-matcha { --c: var(--matcha-vif); } .rdv .c-abricot { --c: var(--abricot); } .rdv .c-foret { --c: #3F5A47; }
.rdv .c-ciel { --c: #7FA7B5; } .rdv .c-prune { --c: #9A6B86; }
.rdv-charge { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--doux); font: 500 13px/1 var(--mono); }
.rdv-charge span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--trait); border-top-color: var(--matcha); animation: rdv-tourne .8s linear infinite; }
@keyframes rdv-tourne { to { transform: rotate(360deg); } }
.rdv-vide { padding: clamp(28px, 4vw, 48px); background: var(--papier); border: 1px solid var(--trait); border-radius: 30px; display: grid; gap: 14px; justify-items: start; }
.rdv-grand { font: 400 clamp(32px, 4vw, 48px)/1 var(--serif); }
.rdv-eti { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }

.rdv-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rdv-type {
  position: relative; display: grid; gap: 8px; align-content: start; text-align: left; padding: 28px 28px 30px; min-height: 200px;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 26px; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(28,38,32,.04); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.rdv-type:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--trait)); box-shadow: var(--ombre); }
.rdv-pastille { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); margin-bottom: 12px; }
.rdv-type-titre { font: 400 32px/1.02 var(--serif); letter-spacing: -.01em; }
.rdv-type-meta { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--doux); }
.rdv-type-desc { margin-top: 6px; font-size: 15px; color: var(--texte); max-width: 36ch; }
.rdv-type-fl { position: absolute; right: 22px; top: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--avoine); transition: transform .35s var(--ease), background .35s; }
.rdv-type:hover .rdv-type-fl { transform: translateX(3px); background: var(--matcha-pale); }

.rdv-carte {
  display: grid; grid-template-columns: minmax(250px, .62fr) 1.38fr; gap: 10px; padding: 10px;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 34px; box-shadow: 0 40px 100px -50px rgba(60,50,30,.3);
}
.rdv-panneau {
  position: relative; display: grid; align-content: start; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 26px;
  background: var(--foret); color: var(--papier); overflow: hidden; isolation: isolate;
}
.rdv-panneau::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -220px; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, transparent), transparent); filter: blur(10px); }
.rdv-panneau .rdv-eti { color: rgba(255,253,248,.55); }
.rdv-titre { font: 400 clamp(32px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -.015em; }
.rdv-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: rgba(255,253,248,.82); }
.rdv-meta li { display: flex; align-items: center; gap: 10px; }
.rdv-meta i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,253,248,.08); font-style: normal; font-size: 12px; }
.rdv-desc { font-size: 14.5px; color: rgba(255,253,248,.66); }
.rdv-recap, .rdv-ancien { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255,253,248,.08); border: 1px solid rgba(255,253,248,.1); font-size: 14.5px; }
.rdv-recap b { font-weight: 550; }
.rdv-recap span { font: 400 26px/1 var(--serif); }
.rdv-ancien b { font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(255,253,248,.4); }
.rdv-retour { justify-self: start; padding: 0; border: 0; background: none; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: rgba(255,253,248,.6); cursor: pointer; }
.rdv-retour:hover { color: var(--papier); }
.rdv-retour.sombre { color: var(--doux); } .rdv-retour.sombre:hover { color: var(--encre); }

.rdv-cal { display: grid; grid-template-columns: 1fr 210px; gap: clamp(18px, 3vw, 36px); padding: clamp(18px, 3vw, 34px); align-items: start; }
.rdv-cal > .rdv-charge { grid-column: 1 / -1; }
.rdv-mois { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rdv-mois h3 { font: 400 30px/1 var(--serif); letter-spacing: -.01em; font-weight: 400; }
.rdv-mois div { display: flex; gap: 6px; }
.rdv-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--trait); background: var(--papier); font-size: 20px; line-height: 1; color: var(--encre); cursor: pointer; transition: background .2s; }
.rdv-nav:hover:not([disabled]) { background: var(--avoine); }
.rdv-nav[disabled] { opacity: .35; cursor: default; }
.rdv-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rdv-js { text-align: center; padding-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--doux); }
.rdv-j {
  position: relative; aspect-ratio: 1; max-height: 52px; border: 0; border-radius: 50%; background: none;
  font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; color: #B9B4A6; cursor: default; transition: background .2s, color .2s, transform .2s var(--ease);
}
.rdv-j.libre { background: var(--matcha-pale); color: var(--encre); cursor: pointer; }
.rdv-j.libre:hover { background: color-mix(in srgb, var(--matcha-pale) 60%, var(--sauge)); }
.rdv-j.choisi { background: var(--encre); color: var(--papier); }
.rdv-j.auj::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.rdv-info { margin-top: 16px; font-size: 14px; color: var(--doux); }
.rdv-heures h4 { margin: 4px 0 16px; font: 550 15px/1.3 var(--sans); }
.rdv-liste { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.rdv-h {
  padding: 13px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--matcha) 35%, var(--trait)); background: var(--papier);
  font: 500 15px/1 var(--mono); color: var(--matcha); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.rdv-h:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }

.rdv-form { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 36px); }
.rdv-form h3 { font: 400 34px/1 var(--serif); font-weight: 400; }
.rdv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rdv-champ { display: grid; gap: 8px; }
.rdv-champ label, .rdv-annul label { font: 500 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.rdv-champ input, .rdv-champ textarea, .rdv-annul textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--trait); background: var(--fond);
  font: 400 16px/1.35 var(--sans); color: var(--encre); resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s;
}
.rdv-champ input:focus, .rdv-champ textarea:focus, .rdv-annul textarea:focus { outline: 0; border-color: var(--matcha); background: var(--papier); box-shadow: 0 0 0 4px var(--matcha-pale); }
.rdv-champ [aria-invalid="true"] { border-color: var(--abricot); }
.rdv-champ textarea::placeholder, .rdv-annul textarea::placeholder { color: #B3AFA3; }
.rdv-pm { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rdv-form .btn { justify-self: start; margin-top: 4px; }
.rdv-msg { min-height: 1.4em; font-size: 14px; color: #B5532A; }

.rdv-ok {
  position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 48px);
  background: var(--papier); border: 1px solid var(--trait); border-radius: 34px; box-shadow: 0 40px 100px -50px rgba(60,50,30,.3);
}
.rdv-ok h2 { font-size: clamp(44px, 6vw, 80px); }
.rdv-coche { width: 58px; height: 58px; border-radius: 50%; background: var(--matcha-pale); position: relative; margin-bottom: 6px; }
.rdv-coche::after { content: ""; position: absolute; left: 21px; top: 15px; width: 12px; height: 22px; border: solid var(--matcha); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.rdv-quand { font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); }
.rdv-quand.barre { text-decoration: line-through; text-decoration-color: var(--abricot); color: var(--doux); }
.rdv-lieu { font: 500 13px/1.4 var(--mono); color: var(--doux); }
.rdv-ok .doux { max-width: 46ch; font-size: 14.5px; }
.rdv-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 8px; }
.rdv-lien { padding: 6px; border: 0; background: none; font: 500 13px/1 var(--mono); color: var(--doux); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.rdv-lien:hover { color: var(--encre); }
.rdv-annul { display: grid; gap: 10px; width: min(100%, 520px); text-align: left; margin-top: 10px; }
.rdv-annul .rdv-actions { justify-content: flex-start; }
.rdv-pied { margin-top: 18px; font-size: 13px; }

/* ---------- Apparition au défilement ---------- */
.rv { opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.rv.vu { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .simu, .duplex, .deux-col, .faq-cols, .rdv-carte { grid-template-columns: 1fr; }
  .aside { position: relative; top: auto; }
  .faq-cols .titre { position: static; }
  .faits ul { grid-template-columns: repeat(2, 1fr); }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .tuiles .tuile:first-child { grid-column: 1 / -1; }
  .tuiles .tuile:first-child .img { aspect-ratio: 16 / 10; }
  .pied .grille { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .etapes li::before { padding-bottom: 12px; }
}
@media (max-width: 760px) {
  .tete { padding: 10px 0; }
  .tete .barre { padding: 0 6px 0 18px; }
  .nav { position: absolute; top: calc(100% + 8px); left: var(--pad); right: var(--pad); flex-direction: column; gap: 0; padding: 8px; border-radius: 24px; background: var(--papier); border: 1px solid var(--trait); box-shadow: var(--ombre); transform: translateY(-6px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav a { padding: 14px 16px; font-size: 17px; color: var(--encre); border-radius: 16px; }
  .tete.ouvert .nav { transform: none; opacity: 1; pointer-events: auto; }
  .tete.ouvert .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .tete.ouvert .burger span:nth-child(2) { opacity: 0; }
  .tete.ouvert .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .burger { display: block; }
  .tete .btn { display: none; }
  .cadre { padding: 6px; border-radius: 26px; }
  .scene { aspect-ratio: 4 / 5; border-radius: 20px; }
  .scene img { object-position: 50% 30%; }
  .simu { padding: 6px; border-radius: 28px; }
  .res { border-radius: 22px; }
  .faits li { min-height: 150px; padding: 20px; }
  .tuiles { grid-template-columns: 1fr; }
  .tuiles .tuile .img, .tuiles .tuile:first-child .img { aspect-ratio: 16 / 11; }
  .duo { grid-template-columns: 1fr; }
  .lead-form .duo { grid-template-columns: 1fr; }
  .rdv-duo { grid-template-columns: 1fr; }
  .rdv-carte { padding: 6px; border-radius: 28px; }
  .rdv-cal { grid-template-columns: 1fr; padding: 16px 8px 20px; }
  .rdv-liste { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); max-height: none; }
  .rdv-type-titre { font-size: 28px; }
  .liste li { flex-direction: column; gap: 2px; }
  .liste li span { text-align: left; }
  .coches li span { padding-left: 34px; }
  .pied .grille > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}
