@font-face {
  font-family: "Montserrat Sous-titres";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/polices/montserrat-latin-900-normal.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: "Montserrat Sous-titres";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/polices/montserrat-latin-ext-900-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --fond: #0b0b12;
  --surface: #15151f;
  --surface-2: #1d1d2a;
  --bord: #2b2b3b;
  --texte: #ececf3;
  --doux: #a3a3b8;
  --accent: #ffe600;
  --violet: #8b5cf6;
  --ok: #4ade80;
  --moyen: #fbbf24;
  --ko: #f87171;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
main > section { max-width: 1120px; margin: 0 auto; padding: 3rem 16px; }

.entete {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 1120px; margin: 0 auto; padding: 1rem 16px;
}
.marque { color: var(--texte); text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.marque .sous { color: var(--doux); font-weight: 600; }
.logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: #111; font-family: "Montserrat Sous-titres", sans-serif; font-weight: 900;
}
.entete nav { display: flex; gap: 1rem; }
.entete nav a { color: var(--doux); text-decoration: none; }
.entete nav a:hover { color: var(--texte); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; padding-top: 1.5rem !important; }
.surtitre { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: .5rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.chapo { color: var(--doux); font-size: 1.1rem; }
.chapo strong { color: var(--texte); }
.atouts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.atouts li { background: var(--surface-2); border: 1px solid var(--bord); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; }
.atouts li span { color: var(--ok); font-weight: 700; }
.demo { margin: 0; text-align: center; }
.demo canvas, .apercu canvas {
  width: 100%; max-width: 300px; aspect-ratio: 9 / 16; height: auto;
  border-radius: 20px; border: 1px solid var(--bord); background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.demo figcaption { color: var(--doux); font-size: .85rem; margin-top: .5rem; }

.bouton {
  display: inline-block; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  padding: .65rem 1.1rem; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bouton:hover:not(:disabled) { border-color: var(--doux); }
.bouton.principal { background: var(--accent); color: #111; border-color: var(--accent); }
.bouton.principal:hover:not(:disabled) { filter: brightness(1.07); }
.bouton:disabled, .bouton[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.bouton.discret { background: transparent; }

.outil { background: var(--surface); border-radius: 24px; border: 1px solid var(--bord); }
.compat { background: var(--surface-2); border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; color: var(--doux); }
.ok { color: var(--ok); font-weight: 700; }
.moyen { color: var(--moyen); font-weight: 700; }
.ko { color: var(--ko); font-weight: 700; }
.etape { margin-top: 2rem; }
.etape h3 { display: flex; align-items: center; gap: .6rem; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); font-size: .9rem; }
.depot {
  display: block; border: 2px dashed var(--bord); border-radius: var(--rayon); padding: 2rem 1rem;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.depot:hover, .depot.survol { border-color: var(--accent); background: rgba(255,230,0,.04); }
.depot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.depot small { color: var(--doux); }
.ligne-reglages { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--doux); }
label.case { flex-direction: row; align-items: center; }
select, input[type="text"], .segments input {
  background: var(--fond); color: var(--texte); border: 1px solid var(--bord); border-radius: 8px; padding: .55rem .7rem; font: inherit;
}
input[type="text"] { min-width: min(100%, 26rem); }
input[type="color"] { width: 3rem; height: 2.2rem; border: none; background: none; padding: 0; }
.etat { margin-top: 1rem; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
.etat p { margin: .4rem 0 0; color: var(--doux); }

.atelier { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
.apercu { text-align: center; }
.lecture { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; max-width: 300px; margin-inline: auto; }
.lecture input { flex: 1; }
.lecture .bouton { padding: .4rem .8rem; }
.panneau { min-width: 0; }
.styles { border: 1px solid var(--bord); border-radius: 10px; display: flex; gap: 1rem; flex-wrap: wrap; padding: .6rem 1rem; }
.styles label { flex-direction: row; align-items: center; color: var(--texte); }
.grille-reglages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem 1rem; margin: 1rem 0; }
.aide { color: var(--doux); font-size: .88rem; }
.segments { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow-y: auto; display: grid; gap: .35rem; }
.segments li { display: flex; gap: .5rem; align-items: center; border-radius: 8px; padding: 2px; }
.segments li.actif { background: rgba(255,230,0,.12); }
.segments input { flex: 1; min-width: 0; padding: .4rem .6rem; }
.horaire { background: none; border: 1px solid var(--bord); color: var(--doux); border-radius: 6px; font: .8rem ui-monospace, monospace; padding: .35rem .45rem; cursor: pointer; }
.exports { display: flex; flex-wrap: wrap; gap: .8rem; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 1.5rem; }
.carte.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.carte h3 { margin: 0; }
.prix { font-size: 2rem; font-weight: 800; margin: .5rem 0; }
.prix small { font-size: .9rem; color: var(--doux); font-weight: 500; }
.carte ul { padding-left: 1.2rem; }
.petit { font-size: .8rem; color: var(--doux); }
.licence { margin-top: 2rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 1.25rem 1.5rem; }
.licence h3 { margin: 0; }
.licence form { margin-top: .5rem; }

.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.trois p, .limites li, .faq p { color: var(--doux); }
.limites li { margin-bottom: .6rem; }
.limites strong { color: var(--texte); }
.faq details { border-bottom: 1px solid var(--bord); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.pied { border-top: 1px solid var(--bord); text-align: center; color: var(--doux); font-size: .85rem; padding: 2rem 16px; }
.pied a { color: var(--doux); }

/* Pages juridiques */
.juridique { max-width: 780px; margin: 0 auto; padding: 2rem 16px 4rem; }
.juridique p, .juridique li { color: #cfcfdc; }
.juridique blockquote { border-left: 3px solid var(--bord); margin: 1rem 0; padding: .2rem 1rem; }

/* Guides (pages d'atterrissage) */
.guide { max-width: 860px; margin: 0 auto; padding: 1rem 16px 3rem; }
.guide > article > section, .guide > section { padding: 1.5rem 0; max-width: none; }
.fil { color: var(--doux); font-size: .85rem; }
.fil a { color: var(--doux); }
.guide-tete.avec-demo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.guide h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0 1rem; }
.guide h1 em { font-style: normal; color: var(--accent); }
.guide p, .guide li { color: #cfcfdc; }
.guide strong { color: var(--texte); }
.bref { background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--accent); border-radius: var(--rayon); padding: 1rem 1.25rem !important; margin-top: 1rem; }
.bref h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.bref p { margin: 0; }
.etapes { padding-left: 1.4rem; }
.etapes li { margin-bottom: .6rem; }
.guide pre { background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 1rem; overflow-x: auto; font: .9rem/1.5 ui-monospace, monospace; color: var(--texte); }
.guide code { font-family: ui-monospace, monospace; }
.tableau { overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau th, .tableau td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { color: var(--doux); font-weight: 600; }
.appel { text-align: center; background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 1.5rem 1rem !important; margin-top: 1rem; }
.autres-guides ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.autres-guides li a { display: inline-block; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 999px; padding: .4rem .9rem; color: var(--texte); text-decoration: none; }
.autres-guides li a:hover { border-color: var(--accent); }
@media (max-width: 820px) {
  .guide-tete.avec-demo { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .demo canvas { max-width: 240px; }
  .atelier { grid-template-columns: 1fr; }
  .entete nav { gap: .7rem; font-size: .9rem; }
}
