/* ─────────────────────────────────────────────────────────────
   Supprimer Fond Image — DA « Le damier »
   Papier chaud et encre ; le damier de la transparence comme motif ;
   UN accent vif, le vert chroma (celui de l'incrustation), réservé à
   l'essentiel : le bouton d'action, le « HD », le contour de sélection.
   Figtree auto-hébergée pour les titres et l'interface.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/figtree.woff2) format("woff2"); }

:root {
  --papier: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #FBF9F4;
  --encre: #17181C;
  --encre-douce: #5C584F;
  --encre-pale: #8A857A;
  --filet: #E4DFD3;
  --filet-fort: #CFC9BC;
  --chroma: #1BD37A;
  --chroma-texte: #0A7A43;   /* le vert lisible sur papier (AA) */
  --sur-chroma: #0D0E10;
  --damier-a: #FFFFFF;
  --damier-b: #E3DED3;
  --ombre: 0 1px 2px rgb(23 24 28 / .06), 0 12px 32px -12px rgb(23 24 28 / .18);
  --rayon: 18px;
  --rayon-petit: 12px;
  --titre: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #111214; --surface: #1A1B1F; --surface-2: #16171A; --encre: #F2EFE8; --encre-douce: #B3AEA3;
    --encre-pale: #8C877D; --filet: #2B2C31; --filet-fort: #3A3B42; --chroma-texte: #52E39C;
    --damier-a: #2A2B30; --damier-b: #222328; --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #111214; --surface: #1A1B1F; --surface-2: #16171A; --encre: #F2EFE8; --encre-douce: #B3AEA3;
  --encre-pale: #8C877D; --filet: #2B2C31; --filet-fort: #3A3B42; --chroma-texte: #52E39C;
  --damier-a: #2A2B30; --damier-b: #222328; --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.6 var(--texte); overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a, li a, .prose a { color: var(--chroma-texte); }
h1, h2, h3 { font-family: var(--titre); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; margin: 0 0 .5em; }
h1 i, h2 i, h3 i, .titre i { font-style: italic; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
:focus-visible { outline: 3px solid var(--chroma); outline-offset: 2px; border-radius: 6px; }
.evitement { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: var(--papier); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.evitement:focus { left: 8px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }
.surtitre { font: 600 .78rem/1.2 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); margin: 0 0 14px; display: inline-flex; gap: 8px; align-items: center; }
.surtitre::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: conic-gradient(var(--damier-b) 25%, var(--damier-a) 0 50%, var(--damier-b) 0 75%, var(--damier-a) 0); background-size: 5px 5px; border: 1px solid var(--filet-fort); }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--encre-douce); max-width: 60ch; }
.damier { background-color: var(--damier-a); background-image: conic-gradient(var(--damier-b) 25%, transparent 0 50%, var(--damier-b) 0 75%, transparent 0); background-size: 20px 20px; }

/* Boutons */
.btn { --bg: var(--encre); --fg: var(--papier); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 600 1rem/1.1 var(--texte); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-chroma { --bg: var(--chroma); --fg: var(--sur-chroma); box-shadow: 0 8px 22px -10px rgb(27 211 122 / .8); }
.btn-chroma:hover { box-shadow: 0 10px 26px -10px rgb(27 211 122 / .95); }
.btn-ligne { --bg: transparent; --fg: var(--encre); border-color: var(--filet-fort); }
.btn-ligne:hover { border-color: var(--encre); }
.btn-petit { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-large { width: 100%; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: .2em; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--papier) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--filet); }
.entete-in { width: min(var(--largeur), 100% - 32px); margin: auto; display: flex; align-items: center; gap: 18px; height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque .logo { width: 30px; height: 30px; flex: none; }
.mot { font: 700 1.02rem/1 var(--titre); letter-spacing: -.04em; }
.mot .point { color: var(--encre-pale); padding: 0 .06em; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .96rem; }
.nav a { text-decoration: none; color: var(--encre-douce); }
.nav a:hover { color: var(--encre); }
.bascule-theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 880px) { .nav { display: none; } .bascule-theme { margin-left: auto; } }
@media (max-width: 400px) { .mot { font-size: 1rem; } .entete-in { gap: 10px; } }

/* Sections */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-ligne { border-top: 1px solid var(--filet); }
.carte { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grille-3, .grille-2 { grid-template-columns: 1fr; } }

/* Apparitions douces */
.js .apparait { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .apparait { opacity: 1; transform: none; transition: none; } }

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 90px); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grille { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 6px; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero .chapo { margin: 18px 0 0; max-width: 34ch; }
.depot-hero { margin-top: 30px; max-width: 460px; border: 1.5px dashed var(--filet-fort); border-radius: 20px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.depot-hero:hover, .depot-hero.survol { border-color: var(--chroma); background: color-mix(in srgb, var(--chroma) 7%, transparent); }
.depot-hero:focus-within { outline: 2px solid var(--chroma); outline-offset: 3px; }
.depot-hero-aide { color: var(--encre-douce); font-size: .95rem; }
@media (pointer: coarse) { .si-souris { display: none; } }
.lien-discret { display: inline-block; margin-top: 16px; color: var(--encre-douce); font-size: .95rem; text-underline-offset: .2em; }
.lien-discret:hover { color: var(--encre); }
.hero .demo { width: 100%; max-width: 440px; justify-self: center; }
@media (max-width: 960px) { .hero .demo { max-width: 420px; } }

/* Démo de l'accroche */
.demo { padding: 0; }
.demo .demo-scene { border-radius: 22px; box-shadow: var(--ombre); }
.demo-scene { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.demo-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-poignee { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--chroma); cursor: ew-resize; z-index: 2; }
.demo-poignee span { position: absolute; top: 50%; left: -21px; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: var(--chroma); color: var(--sur-chroma); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .5); }
.demo-etiquette { position: absolute; top: 12px; z-index: 3; font: 600 .72rem/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgb(17 18 20 / .72); color: #fff; }
.demo-etiquette.g { left: 12px; } .demo-etiquette.d { right: 12px; }
.puce { min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--filet-fort); background: var(--surface); color: var(--encre); font: 500 .92rem/1 var(--texte); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.puce:hover { border-color: var(--encre); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.pastille-couleur { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .15); display: inline-block; }

/* Étapes */
.etapes { counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.etape { padding: 26px; position: relative; }
.etape::before { counter-increment: e; content: counter(e); font: italic 400 3rem/1 var(--titre); color: var(--chroma-texte); display: block; margin-bottom: 14px; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.galerie figure { margin: 0; }
.galerie .paire { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--filet); }
.galerie img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.galerie figcaption { font-size: .9rem; color: var(--encre-douce); margin-top: 8px; }
@media (max-width: 860px) { .galerie { grid-template-columns: 1fr; } }


/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; align-items: stretch; }
.tarif { padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.tarif h3 { margin: 0; font-size: 1.35rem; }
.tarif .prix { font: 400 2.5rem/1 var(--titre); }
.tarif .prix small { font: 400 1rem var(--texte); color: var(--encre-douce); }
.tarif .sous { color: var(--encre-douce); font-size: .93rem; min-height: 2.8em; }
.tarif ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 7px; font-size: .94rem; }
.tarif li { padding-left: 22px; position: relative; }
.tarif li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--chroma-texte); border-bottom: 2px solid var(--chroma-texte); transform: rotate(-45deg); }
.tarif .btn { margin-top: auto; }
.tarif-vedette { border: 2px solid var(--encre); }
.ruban { position: absolute; top: -13px; left: 22px; background: var(--chroma); color: var(--sur-chroma); font: 700 .74rem/1 var(--texte); letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.gratuit-note { margin-top: 18px; color: var(--encre-douce); font-size: .95rem; }
@media (max-width: 1040px) { .tarifs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tarifs { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 26px; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--titre); color: var(--encre-pale); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-douce); margin: 10px 0 0; }

/* Appel final */
.appel { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px; background: var(--encre); color: var(--papier); position: relative; overflow: hidden; }
.appel::before { content: ""; position: absolute; inset: 0; background-image: conic-gradient(rgb(255 255 255 / .05) 25%, transparent 0 50%, rgb(255 255 255 / .05) 0 75%, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.appel > * { position: relative; }
.appel h2 { color: inherit; }
.appel p { color: color-mix(in srgb, var(--papier) 72%, transparent); }
:root[data-theme="dark"] .appel { background: var(--surface); border: 1px solid var(--filet); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appel { background: var(--surface); border: 1px solid var(--filet); } }

/* Prose (pages de contenu, juridique) */
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.fil { font-size: .9rem; color: var(--encre-douce); margin-bottom: 18px; }
.fil a { color: inherit; }
.encart-outil { margin: 30px 0; padding: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.encart-outil p { margin: 0; }
.liens-lies { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.liens-lies a { padding: 14px 16px; text-decoration: none; }

/* Pied */
.pied { margin-top: 60px; border-top: 1px solid var(--filet); background: var(--surface-2); }
.pied-in { width: min(var(--largeur), 100% - 32px); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 28px; }
.pied-col { display: flex; flex-direction: column; gap: 9px; font-size: .95rem; }
.pied-col h2 { font: 600 .78rem/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--encre-pale); margin: 0 0 6px; }
.pied-col a, .pied-col .lien-bouton { color: var(--encre-douce); text-decoration: none; }
.pied-col a:hover, .pied-col .lien-bouton:hover { color: var(--encre); text-decoration: underline; }
.pied-marque p { color: var(--encre-douce); max-width: 32ch; }
.pied-autres { width: min(var(--largeur), 100% - 32px); margin: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--filet); font-size: .88rem; color: var(--encre-pale); }
.pied-autres a { color: var(--encre-douce); }
.pied-bas { width: min(var(--largeur), 100% - 32px); margin: auto; padding: 0 0 36px; font-size: .85rem; color: var(--encre-pale); }
@media (max-width: 860px) { .pied-in { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }

/* Formulaires */
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: .92rem; }
.champ input[type=email], .champ input[type=text] { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--filet-fort); background: var(--surface); color: var(--encre); font: 400 1rem var(--texte); width: 100%; }
.champ input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chroma) 45%, transparent); }
.champ .aide { font-size: .85rem; color: var(--encre-douce); }
.champ.erreur input { border-color: #C2362B; }
.message-erreur { color: #C2362B; font-size: .9rem; }
:root[data-theme="dark"] .message-erreur { color: #FF8A7F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .message-erreur { color: #FF8A7F; } }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--encre-douce); }
.case input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--encre); flex: none; }
.bandeau-info { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--chroma) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--chroma) 40%, transparent); font-size: .95rem; }

@font-face{font-family:Inter;src:url('/fonts/inter-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--titre:Inter,system-ui,sans-serif;--texte:Inter,system-ui,sans-serif}
body,h1,h2,h3{font-family:Inter,system-ui,sans-serif}
h1,h2{font-weight:500;letter-spacing:-.04em}h1 i,h2 i,h3 i{font-family:inherit;font-style:normal;color:var(--encre-douce)}
:root[data-theme="light"]{--papier:#fafafa;--surface-2:#f4f6f5;--encre-douce:#5a6460;--filet:#e1e6e3;--damier-b:#e3e9e6}
@media(prefers-color-scheme:light){:root{--papier:#fafafa;--surface-2:#f4f6f5;--encre-douce:#5a6460;--filet:#e1e6e3;--damier-b:#e3e9e6}}
.demo,.carte{box-shadow:none}.demo{border:1px solid var(--filet);border-radius:18px}
.btn-chroma{box-shadow:none;border-radius:12px}
.precision-moteur{display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-width:700px;margin:16px 0 24px;font-size:.875rem}
.precision-moteur select{border:1px solid var(--filet);border-radius:10px;background:var(--surface);color:var(--encre);padding:10px 12px;font:inherit}
.precision-moteur p{flex-basis:100%;color:var(--encre-douce);font-size:.8125rem;margin:0}

.entete .bascule-theme{flex-shrink:0;}
@media(max-width:420px){.entete-in{gap:10px;}.entete .marque{min-width:0;}.entete .marque span{font-size:14px;}}
