/* Akvido — feuille de style unique.
   Palette : eau profonde sur fond clair et froid.
   Les couleurs de qualité reprennent la sémantique européenne
   (Excellent / Bonne / Suffisante / Insuffisante). */

:root {
  --bg:        #F0F4F6;
  --surface:   #FFFFFF;
  --surface-2: #E4ECEF;
  --ink:       #0E1A20;
  --muted:     #4C606B;
  --faint:     #7B8D97;
  --line:      #D4DFE4;
  --accent:    #0B5A73;
  --accent-2:  #0E7391;
  --accent-sk: #0B5A7314;
  --on-accent: #FFFFFF;

  --q-exc:  #1F6FB2;
  --q-good: #2E7D52;
  --q-suff: #8F6A14;
  --q-poor: #A03A2B;
  --q-none: #7B8D97;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(14,26,32,.05), 0 12px 30px -20px rgba(14,26,32,.35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0A1216;
    --surface:   #121C21;
    --surface-2: #19252B;
    --ink:       #E3EBEF;
    --muted:     #9AACB5;
    --faint:     #71838D;
    --line:      #23323A;
    --accent:    #4FBAD8;
    --accent-2:  #6ECBE4;
    --accent-sk: #4FBAD81A;
    --on-accent: #06171E;
    --q-exc:  #6BA6DC;
    --q-good: #5FB585;
    --q-suff: #D3A653;
    --q-poor: #DE7A66;
    --q-none: #71838D;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -20px rgba(0,0,0,.9);
  }
}

:root[data-theme="dark"] {
  --bg:        #0A1216;
  --surface:   #121C21;
  --surface-2: #19252B;
  --ink:       #E3EBEF;
  --muted:     #9AACB5;
  --faint:     #71838D;
  --line:      #23323A;
  --accent:    #4FBAD8;
  --accent-2:  #6ECBE4;
  --accent-sk: #4FBAD81A;
  --on-accent: #06171E;
  --q-exc:  #6BA6DC;
  --q-good: #5FB585;
  --q-suff: #D3A653;
  --q-poor: #DE7A66;
  --q-none: #71838D;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -20px rgba(0,0,0,.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.017em; text-wrap: balance; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.sr, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
  padding: 8px 14px; background: var(--accent); color: var(--on-accent); z-index: 50;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- en-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1080px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
}
.brand-name { font-weight: 680; letter-spacing: -.02em; font-size: 18px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; }
.lang {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 2px;
  border: 1px solid var(--line);
}
.lang.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- héros ---------- */
.hero { padding: 78px 0 56px; }
.hero-in { display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
h1 { font-size: clamp(31px, 5.4vw, 50px); font-weight: 660; max-width: 17ch; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.micro { font-size: 13.5px; color: var(--faint); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 580; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

.stats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13.5px; color: var(--faint); }

/* ---------- outil de recherche ---------- */
.tool { padding: 8px 0 60px; }
.panes { display: grid; gap: 18px; }
@media (min-width: 820px) { .panes { grid-template-columns: 1fr 1fr; } }
.pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.pane h2 { font-size: 20px; font-weight: 640; }
.hint { font-size: 14.5px; color: var(--muted); }
.find { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.find input {
  flex: 1 1 200px; min-width: 0; padding: 11px 13px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.find input::placeholder { color: var(--faint); }
.find .micro { flex-basis: 100%; }
.out:empty { display: none; }
.out { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }

.res {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px;
}
.res-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-name { font-weight: 620; }
.res-meta { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.res-params { font-size: 13.5px; color: var(--muted); }
.msg { font-size: 14.5px; color: var(--muted); }
.msg.err { color: var(--q-poor); }

.q {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 2px; white-space: nowrap; text-transform: uppercase;
}
.q-exc  { color: var(--q-exc);  background: color-mix(in srgb, var(--q-exc) 12%, transparent); }
.q-good { color: var(--q-good); background: color-mix(in srgb, var(--q-good) 12%, transparent); }
.q-suff { color: var(--q-suff); background: color-mix(in srgb, var(--q-suff) 14%, transparent); }
.q-poor { color: var(--q-poor); background: color-mix(in srgb, var(--q-poor) 12%, transparent); }
.q-none { color: var(--q-none); background: color-mix(in srgb, var(--q-none) 14%, transparent); }

.spark { display: inline-flex; gap: 2px; align-items: flex-end; }
.spark i { width: 5px; height: 12px; border-radius: 1px; display: block; }

/* ---------- bandes ---------- */
.band { padding: 62px 0; }
.band.alt { background: var(--surface-2); }
.band.tail { padding: 56px 0 72px; }
.h-sec { font-size: clamp(22px, 3.1vw, 30px); font-weight: 650; }
.sub { color: var(--muted); max-width: 62ch; margin-top: 10px; font-size: 17px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.step-n {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-sk); width: 28px; height: 24px; border-radius: 2px;
  display: grid; place-items: center;
}
.steps h3 { font-size: 17.5px; font-weight: 630; }
.steps p { color: var(--muted); font-size: 15.5px; }

.grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 9px;
}
.card h3 { font-size: 17px; font-weight: 630; }
.card p { color: var(--muted); font-size: 15px; }
.ic {
  width: 22px; height: 22px; background: var(--accent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-score { -webkit-mask-image: var(--i-score); mask-image: var(--i-score); }
.ic-map   { -webkit-mask-image: var(--i-map);   mask-image: var(--i-map); }
.ic-history { -webkit-mask-image: var(--i-hist); mask-image: var(--i-hist); }
.ic-alert { -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.ic-pfas  { -webkit-mask-image: var(--i-drop);  mask-image: var(--i-drop); }
.ic-book  { -webkit-mask-image: var(--i-book);  mask-image: var(--i-book); }
:root {
  --i-score: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9'/%3E%3C/svg%3E");
  --i-map:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --i-hist:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.5l3.5 2'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 15V10a6 6 0 10-12 0v5l-1.5 2.5h15L18 15z'/%3E%3Cpath d='M10 20a2 2 0 004 0'/%3E%3C/svg%3E");
  --i-drop:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.6 6 10.5A6 6 0 016 13.5C6 9.6 12 3 12 3z'/%3E%3C/svg%3E");
  --i-book:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 016.5 3H19v15H6.5A2.5 2.5 0 004 20.5z'/%3E%3Cpath d='M19 18v3H6.5'/%3E%3C/svg%3E");
}

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 15px; height: 15px;
  background: var(--accent); -webkit-mask-image: var(--i-score); mask-image: var(--i-score);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.note {
  margin-top: 30px; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.note h3 { font-size: 16px; font-weight: 640; }
.note p { color: var(--muted); font-size: 15.5px; }

/* ---------- tarifs ---------- */
.page-head { padding: 62px 0 12px; }
.page-head h1 { max-width: 22ch; }
.plans { display: grid; gap: 18px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.plan:nth-child(2) { border-color: var(--accent); border-width: 2px; }
.plan h2 { font-size: 20px; font-weight: 660; }
.plan-tag { color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0; }
.plan-price b { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.plan-price span { color: var(--faint); font-size: 14px; }
.plan .checks { margin-top: 4px; flex: 1; }
.plan .checks li { font-size: 15px; }
.plan .btn { text-align: center; margin-top: 6px; }
.micro.center { margin-top: 22px; }

.faq { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 590; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 16px; color: var(--muted); max-width: 68ch; }

/* ---------- comprendre ---------- */
.scale { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.scale li { display: flex; gap: 16px; align-items: flex-start; }
.grade {
  flex: none; width: 36px; height: 36px; border-radius: var(--radius);
  display: grid; place-items: center; font-weight: 750; font-size: 17px; color: #fff;
}
.g-A { background: var(--q-exc); }
.g-B { background: var(--q-good); }
.g-C { background: var(--q-suff); }
.g-D { background: #B4703A; }
.g-E { background: var(--q-poor); }
.scale p { color: var(--muted); font-size: 15.5px; }

.tscroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.muted { color: var(--faint); font-size: 14px; }

.sources { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sources li { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.sources b { font-size: 16px; }
.sources span { color: var(--muted); font-size: 14.5px; }
.sources em { color: var(--faint); font-size: 13.5px; font-style: normal; font-family: var(--mono); }

/* ---------- pied ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 42px 0; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; display: flex; flex-direction: column; gap: 18px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { color: var(--faint); font-size: 13px; }
