:root {
  color-scheme: light dark;
  --fond: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --bord: #d7dfda;
  --texte: #14211c;
  --doux: #5b6b64;
  --accent: #0f766e;
  --accent-texte: #ffffff;
  --accent-doux: #ccefe9;
  --ko: #b42318;
  --rayon: 12px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0e1412;
    --surface: #151d1a;
    --surface-2: #1c2723;
    --bord: #2c3a35;
    --texte: #e6efeb;
    --doux: #9db0a8;
    --accent: #2dd4bf;
    --accent-texte: #06201c;
    --accent-doux: #133b35;
    --ko: #f97066;
  }
}

* { 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.4rem, 3vw, 1.9rem); margin: 0 0 1rem; }
h3 { margin: 0 0 .75rem; }
main > section { max-width: 1120px; margin: 0 auto; padding: 2.5rem 16px; }

/* Bascule de langue : html[data-langue] choisit les blocs .fr ou .en */
html[data-langue="fr"] .en, html[data-langue="en"] .fr { display: none !important; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 1rem 16px; flex-wrap: wrap; }
.marque { color: var(--texte); text-decoration: none; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-texte); font-size: 1.1rem; }
.entete nav { display: flex; gap: 1rem; align-items: center; }
.entete nav a { color: var(--doux); text-decoration: none; }
.entete nav a:hover { color: var(--texte); }
.langue { border: 1px solid var(--bord); background: var(--surface); color: var(--texte); border-radius: 8px; padding: .2rem .6rem; font-weight: 700; cursor: pointer; }

.hero { padding-top: 1.5rem !important; padding-bottom: 1rem !important; }
.surtitre { color: var(--accent); font-weight: 700; margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 0 1rem; max-width: 22ch; }
.hero h1 em { font-style: normal; background: var(--accent-doux); padding: 0 .2em; border-radius: 6px; }
.chapo { font-size: 1.1rem; max-width: 62ch; color: var(--texte); }
.atouts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.atouts span[aria-hidden] { color: var(--accent); font-weight: 800; }

.outil { padding-top: 0 !important; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; margin-bottom: 1rem; }
.depot { display: grid; gap: .3rem; place-items: center; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--bord); border-radius: var(--rayon); cursor: pointer; background: var(--surface-2); }
.depot.survol, .depot:hover { border-color: var(--accent); }
.depot input { max-width: 100%; }
.exemples { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; color: var(--doux); }

.bouton { display: inline-block; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.bouton:hover { border-color: var(--accent); }
.bouton.principal { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.bouton[aria-disabled="true"], .bouton:disabled { opacity: .55; cursor: not-allowed; }
.petit-bouton { padding: .25rem .65rem; font-size: .9rem; }
.lien { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.petit { font-size: .88rem; }
.doux { color: var(--doux); }

.ligne-infos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.reglages { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
label { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
select, input[type="text"], input[type="number"] { font: inherit; color: var(--texte); background: var(--surface); border: 1px solid var(--bord); border-radius: 8px; padding: .3rem .5rem; max-width: 100%; }
input[type="number"] { width: 7.5rem; }
.case { display: flex; flex-wrap: nowrap; gap: .45rem; align-items: center; margin: .3rem 0; }
.case > input[type="radio"], .case > input[type="checkbox"] { flex: none; }

.tableau-defilant { overflow: auto; max-height: 420px; border: 1px solid var(--bord); border-radius: 8px; margin: .5rem 0 1rem; }
#apercu { border-collapse: collapse; font: 13px/1.4 var(--mono); white-space: nowrap; }
#apercu th, #apercu td { border-bottom: 1px solid var(--bord); padding: .3rem .6rem; text-align: left; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
#apercu thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
#apercu td.num, #apercu th.num { color: var(--doux); text-align: right; }
.actions-ligne { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 0; }

.grille-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
fieldset { border: 1px solid var(--bord); border-radius: 10px; padding: .75rem 1rem 1rem; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
legend { font-weight: 700; padding: 0 .35rem; }
.condition { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.condition input[type="text"] { width: 10rem; }
.colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 .75rem; max-height: 220px; overflow: auto; width: 100%; }
.colonnes label { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; }

progress { width: 100%; height: 14px; accent-color: var(--accent); }
.liens { list-style: none; padding: 0; display: grid; gap: .4rem; }
.liens a { font-weight: 600; }
.encart-pro { border: 1px solid var(--accent); background: var(--accent-doux); border-radius: 10px; padding: .75rem 1rem; margin-top: .75rem; }
.erreur { color: var(--ko); font-weight: 600; }

.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.offre { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; }
.offre.pro { border: 2px solid var(--accent); }
.offre ul { padding-left: 1.1rem; }
.prix { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.licence input { width: min(100%, 26rem); font-family: var(--mono); }

#faq details { background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: .6rem 1rem; margin-bottom: .5rem; }
#faq summary { cursor: pointer; font-weight: 600; }
#limites li { margin-bottom: .5rem; }

.pied { text-align: center; color: var(--doux); padding: 2rem 16px; border-top: 1px solid var(--bord); }

.juridique { max-width: 780px; margin: 0 auto; padding: 1rem 16px 3rem; }
.juridique blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: .25rem 1rem; background: var(--surface); }

@media (max-width: 560px) {
  .entete nav { gap: .7rem; font-size: .95rem; }
  .condition input[type="text"] { width: 100%; }
}
