/* Port Sûr. Charte : marque/CHARTE.md (source des couleurs : marque/marque.json).
   Écume claire, encre bleu du large, un seul jaune "phare" pour agir. Titres en Archivo étendu.
   Polices hébergées ici (OFL), aucun appel externe. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  font-weight: 400 600; font-display: swap; }

:root {
  --bg: #F7F6F1;          /* écume */
  --bg-2: #ECEEE8;        /* brume */
  --card: #FFFFFF;
  --ink: #0E2233;         /* large */
  --ink-2: #55606A;       /* gris */
  --line: #D8DCD3;        /* trait */
  --accent: #FFC83D;      /* phare : fonds, boutons, symbole. Jamais en texte sur clair */
  --accent-ink: #0E2233;  /* texte sur phare (10,5:1) */
  --link: #0B6371;        /* chenal (6,4:1 sur écume) */
  --accent-soft: #FFF0C2;
  --ok: #1E7A4C;
  --warn: #8A5A00;
  --bad: #B4232C;
  --ok-soft: #E3F2EA; --warn-soft: #FBF0D9; --bad-soft: #F9E3E4;
  --code-bg: #ECEEE8;
  --code-ink: #0E2233;
  --night: #0E2233;
  --night-ink: #EEF1EC;
  --night-ink-2: #B7C4CE;
  --night-link: #6FD0DA;
  --radius: 18px;
  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1A26; --bg-2: #0F2030; --card: #12263A; --ink: #EEF1EC; --ink-2: #9FB2BF; --line: #23384A;
    --accent: #FFC83D; --accent-ink: #0E2233; --link: #6FD0DA; --accent-soft: #3A3216;
    --ok: #5FD39A; --warn: #FFB547; --bad: #FF8A80;
    --ok-soft: #12322A; --warn-soft: #33290F; --bad-soft: #3A1C22;
    --code-bg: #0F2030; --code-ink: #EEF1EC; --night: #07121B;
    color-scheme: dark; }
}
:root[data-theme="dark"] {
  --bg: #0B1A26; --bg-2: #0F2030; --card: #12263A; --ink: #EEF1EC; --ink-2: #9FB2BF; --line: #23384A;
  --accent: #FFC83D; --accent-ink: #0E2233; --link: #6FD0DA; --accent-soft: #3A3216;
  --ok: #5FD39A; --warn: #FFB547; --bad: #FF8A80;
  --ok-soft: #12322A; --warn-soft: #33290F; --bad-soft: #3A1C22;
  --code-bg: #0F2030; --code-ink: #EEF1EC; --night: #07121B;
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .5em; }
h3 { font-size: 1.32rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin-bottom: .35em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
.wrap { width: min(1024px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(692px, 100% - 44px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .78rem; padding-block: 12px 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* barre du haut */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); margin: 0; }
.logo img { height: 28px; width: auto; }
.logo:hover { text-decoration: none; }
.logo-mark { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); opacity: .85; font-size: .88rem; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a[aria-current] { opacity: 1; font-weight: 500; }
.nav a[href="/check-up-site/"] { color: var(--link); opacity: 1; font-weight: 700; }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 1.15rem; padding: 6px; cursor: pointer; }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 22px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.35rem; font-weight: 600; opacity: 1; padding: 10px 0; }
}

/* boutons et liens d'action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent);
  color: var(--accent-ink); border: 0; border-radius: 12px; padding: 12px 22px; font: 700 1.02rem var(--font);
  cursor: pointer; transition: filter .15s ease; box-shadow: inset 0 -3px 0 rgba(14,34,51,.18); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-sm { padding: 7px 16px; font-size: .88rem; }
.btn-lg { padding: 14px 30px; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: var(--link); padding-inline: 0; }
.btn-ghost::after { content: " ›"; }
.btn-ghost:hover { filter: none; text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 26px; }

/* sections */
.crumb { font-size: .78rem; color: var(--ink-2); padding-top: 16px; }
.crumb a { color: var(--ink-2); }
.crumb span { opacity: .6; }
.hero { padding: 72px 0 56px; text-align: center; }
.hero .narrow, .hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-inline: auto; }
.hero .cta-row { justify-content: center; }
.hero-grid { display: grid; gap: 40px; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--ink);
  background: var(--accent-soft); border-radius: 980px; padding: 6px 14px 6px 10px; margin-bottom: 18px; letter-spacing: -0.005em; }
.kicker::before { content: ""; width: 18px; height: 18px; flex: none; background: url(/assets/brand/favicon.svg) center / contain no-repeat; border-radius: 5px; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.38; color: var(--ink-2); max-width: 34ch; margin-top: 18px;
  font-weight: 400; letter-spacing: -0.02em; }
section.block { padding: 88px 0; }
section.alt { background: var(--bg-2); }
.pt0 { padding-top: 0 !important; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { margin-bottom: .45em; }
.note { background: var(--bg-2); padding: 16px 20px; border-radius: 14px; color: var(--ink); }
section.alt .note { background: var(--card); }
.source { font-size: .8rem; color: var(--ink-2); }
.m0 { margin: 0; } .mt { margin-top: 14px; }

/* tuiles */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; }
section:not(.alt) .card { background: var(--bg-2); }
.card p:last-child { margin: 0; }
.card .tag { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 !important; list-style: none; margin: 28px 0 0; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 28px; margin: 0; }
section:not(.alt) .steps li { background: var(--bg-2); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--link); margin-bottom: 6px; line-height: 1; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* tableaux */
.table-wrap { overflow-x: auto; border-radius: 14px; background: var(--card); margin: 18px 0; }
section:not(.alt) .table-wrap { background: var(--bg-2); }
table { border-collapse: collapse; width: 100%; min-width: 500px; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); vertical-align: top; }
th { font-weight: 600; font-size: .78rem; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* faq */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 20px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--ink-2); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding-bottom: 20px; color: var(--ink-2); max-width: 60ch; }

/* outils */
.widget { background: var(--bg-2); border-radius: 28px; padding: clamp(24px, 4vw, 44px); text-align: left; width: 100%; }
section.alt .widget { background: var(--card); }
.h-sm { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 18px; }
.q { margin-bottom: 22px; }
.q-label { font-weight: 600; margin-bottom: 10px; display: block; font-size: .95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px;
  padding: 11px 16px; font: 400 .95rem var(--font); cursor: pointer; transition: border-color .15s ease; }
.choice:hover { border-color: var(--ink-2); }
.choice[aria-pressed="true"] { border: 2px solid var(--accent); padding: 10px 15px; }
.result { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--bg); display: none; }
.result.show { display: block; }
select, .field input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: .88rem; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cli { background: var(--bg); color: var(--code-ink); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  font: 500 .86rem/1.75 var(--mono); overflow-x: auto; white-space: pre; margin: 18px 0 0; }
.copy { margin-top: 14px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 20px; }
.stat { background: var(--bg); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--ink-2); }
.verdict { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--bg); }



/* encart d'offre */
.offer-cta { margin: 56px 0; padding: 44px 32px; border-radius: 28px; background: var(--bg-2); text-align: center; }
section.alt .offer-cta { background: var(--card); }
.offer-cta .eyebrow { font-size: .95rem; font-weight: 600; color: var(--link); margin: 0 0 6px; }
.offer-cta-title { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 10px; }
.offer-cta .muted { max-width: 46ch; margin: 0 auto; }
.offer-cta .cta-row { justify-content: center; margin-top: 18px; }

/* page produit */
.buy { display: grid; gap: 4px; justify-items: center; margin-top: 26px; }
.price-tag { font-size: 1.1rem; color: var(--ink); margin: 0 0 14px; }
.buy .source { margin: 14px 0 0; max-width: 44ch; text-align: center; }
.product-shot { margin: 56px auto 0; width: 100%; border-radius: 28px; background: var(--bg-2);
  padding: clamp(28px, 6vw, 72px) 20px 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(12px, 3vw, 32px); }
.product-shot img { width: min(300px, 44%); border-radius: 6px 6px 0 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.product-shot img + img { margin-top: 48px; }
.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; text-align: left; }
.fact { background: var(--card); border-radius: var(--radius); padding: 28px; }
.fact b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 10px; }
.fact span { color: var(--ink-2); font-size: .95rem; }
.pages { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 28px; }
.pages figure { margin: 0; }
.pages img { border-radius: 10px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); width: 100%; }
.pages figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.badge { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }

/* à propos */
.me { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.me img { border-radius: var(--radius); }
@media (max-width: 760px) { .me { grid-template-columns: 1fr; } .me img { max-width: 180px; } }

/* bas de page : la nuit, avec le motif de la marque */
.foot { background: var(--night); color: var(--night-ink-2); font-size: .82rem; padding-top: 48px; position: relative; overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: 0; background: url(/assets/brand/motif.svg) center / cover no-repeat;
  opacity: .5; pointer-events: none; }
.foot > .wrap { position: relative; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px;
  border-bottom: 1px solid #23384A; }
.foot-in p { margin: 0 0 6px; max-width: 60ch; }
.foot-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.foot-accroche { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.25rem; color: var(--night-ink); letter-spacing: -0.01em; }
.foot a { color: var(--night-ink); }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.foot .small { color: var(--night-ink-2); }
#bientot:target .btn { outline: 2px dashed var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- animations ----------
   Règle : le contenu est toujours visible au repos. Les animations ne font que l'amener. */

/* entrée du haut de page au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero .kicker, .hero .lead, .hero .cta-row, .hero .buy {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .kicker { animation-delay: .02s; }
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .18s; }
.hero .cta-row, .hero .buy { animation-delay: .28s; }
.hero .widget, .hero .product-shot { animation: fade 1s ease .35s both; }

/* apparition au scroll (navigateurs qui gèrent les animations liées au scroll, sinon rien ne bouge) */
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise-shot { from { transform: translateY(60px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  .card, .steps li, .fact, .table-wrap, section.block .widget, .pages figure, .offer-cta, .stats .stat, .verdict {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0px entry 140px; }
  .steps li:nth-child(2), .fact:nth-child(2), .pages figure:nth-child(2) { animation-range: entry 30px entry 170px; }
  .steps li:nth-child(3), .fact:nth-child(3), .pages figure:nth-child(3) { animation-range: entry 60px entry 200px; }
  .steps li:nth-child(4), .fact:nth-child(4) { animation-range: entry 90px entry 230px; }
  .product-shot img { animation: rise-shot linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  .product-shot img + img { animation-range: entry 0% cover 60%; }
}

/* micro-interactions */
.btn { transition: filter .15s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }
.choice { transition: border-color .15s ease, transform .15s ease; }
.choice:active { transform: scale(.97); }
.card, .fact, .pages img { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
@media (hover: hover) {
  .card:hover, .fact:hover { transform: translateY(-4px); }
  .pages img:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.35); }
}
.result.show { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.nav a { transition: opacity .15s ease; }

/* ouverture douce des questions (navigateurs récents) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
}

/* barre d'achat qui suit (page du kit) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.buybar.on { transform: none; }
.buybar-in { width: min(1024px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buybar-in strong { font-weight: 600; letter-spacing: -0.015em; }
.buybar-in span { color: var(--ink-2); font-size: .9rem; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .buybar { transform: none; display: none; }
  .buybar.on { display: block; }
}
body:has(.buybar.on) .foot { padding-bottom: 76px; }

/* boutique */
.offers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.offer { background: var(--bg-2); border-radius: 28px; padding: 36px 28px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; min-width: 0; }
.offer img { width: 62%; max-width: 210px; border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.4); margin-bottom: 26px; }
.offer-tag { font-size: .88rem; font-weight: 600; color: var(--link); margin: 0 0 4px; }
.offer-name { font-size: 1.9rem; margin: 0 0 8px; }
.offer-pitch { color: var(--ink-2); margin: 0 0 14px; max-width: 26ch; }
.offer-price { font-size: 1.15rem; font-weight: 600; margin: 0 0 16px; }
.offer-list { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); width: 100%;
  display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.offer-featured { outline: 2px solid var(--accent); outline-offset: -2px; }
.personas { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.persona { display: block; color: var(--ink); }
.persona:hover { text-decoration: none; }
.persona h3 { margin: 6px 0 10px; }
.persona .muted::after { content: " ›"; color: var(--link); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare td:first-child { font-weight: 500; }
.sheet { margin: 36px auto 0; max-width: 720px; }
.sheet img { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); width: 100%; }
.sheet figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 10px; text-align: center; }
@supports (animation-timeline: view()) {
  .offer, .persona { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0px entry 140px; }
  .offer:nth-child(2) { animation-range: entry 30px entry 170px; }
  .offer:nth-child(3) { animation-range: entry 60px entry 200px; }
}
@media (hover: hover) { .offer { transition: transform .35s cubic-bezier(.2,.7,.2,1); } .offer:hover { transform: translateY(-4px); } }

.buybar .btn { white-space: nowrap; }
@media (max-width: 420px) { .buybar-in span { display: block; margin: 0; } }

/* ---- corrections audit UX (10/10/2026) ---- */
/* liens dans le texte : pas seulement la couleur (WCAG 1.4.1) */
.prose p a, .prose li a, .steps p a, .faq a, .source a, .lead a, td a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* cibles tactiles : 24 px minimum partout (WCAG 2.5.8), 44 px pour les commandes (2.5.5) */
.nav a { padding-block: 14px; }
.burger { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; font-size: 1.4rem; }
@media (max-width: 760px) { .burger { display: inline-flex; } .nav a { padding-block: 12px; } }
.choice { min-height: 44px; }
.foot-nav a, .crumb a { display: inline-block; padding-block: 4px; }
.btn-sm { min-height: 36px; }
/* listes des offres : alignées à gauche pour être lues vite */
.offer-list { text-align: left; justify-items: start; padding-left: 4px; }
.offer-list li { padding-left: 22px; position: relative; color: var(--ink); }
.offer-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.offer-featured { outline: none; }
.badge-best { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 980px; padding: 3px 10px; margin-bottom: 8px; }
.was { text-decoration: line-through; color: var(--ink-2); font-weight: 400; margin-right: 6px; }
.compare td:not(:first-child) { color: var(--ink); }
.compare .no { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* entrée de page plus courte : le contenu est lisible plus vite */
.hero .kicker, .hero .lead, .hero .cta-row, .hero .buy { animation-duration: .5s; }
.hero .lead { animation-delay: .1s; } .hero .cta-row, .hero .buy { animation-delay: .16s; }
.top .logo { display: inline-block; padding-block: 10px; }

.reassure { font-size: .8rem; color: var(--ink-2); margin: 10px 0 0; }
.tool-upsell { text-align: center; color: var(--ink-2); margin: 0; }
.tool-upsell a { text-decoration: underline; text-underline-offset: 3px; }
.field { position: relative; }
section.block.pt0:has(.tool-upsell) { padding-block: 8px 48px; }

/* Photos des cartes "Pour qui ?" : pleine largeur en haut de carte, format fixe 3:2 (pas de saut de mise en page) */
.persona { overflow: hidden; }
.card-photo { display: block; width: calc(100% + 60px); max-width: none; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; margin: -30px -30px 20px; background: var(--bg-2); }
section:not(.alt) .card-photo { background: var(--card); }
@media (prefers-reduced-motion: no-preference) {
  .card-photo { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .persona:hover .card-photo { transform: scale(1.04); }
}
@media (max-width: 600px) { .card-photo { aspect-ratio: 2 / 1; } }  /* moins de scroll sur mobile */

/* ---- identité Port Sûr ---- */
::selection { background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.05) saturate(1.05); }
.badge-best { color: var(--accent-ink); }
.offer-list li::before { background: var(--accent); }
.offer-cta { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
section.alt .offer-cta { background: var(--night); }
.offer-cta::before { content: ""; position: absolute; inset: 0; background: url(/assets/brand/motif.svg) center / cover no-repeat; opacity: .55; }
.offer-cta > * { position: relative; }
.offer-cta .eyebrow { color: var(--accent); }
.offer-cta .muted { color: var(--night-ink-2); }
.offer-cta-title { color: var(--night-ink); }
.offer-cta .btn-ghost { color: var(--night-link); }
.center .cta-row { justify-content: center; }
.prose .btn, .prose .btn:hover { text-decoration: none; }
.foot-in p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- audit UX complet (10/10/2026, 2e passe) ---- */
/* un élément sr-only dans un tableau défilant ne doit plus élargir la page (scroll horizontal sur mobile) */
.table-wrap { position: relative; }
/* pages intérieures : titre plus compact, l'outil remonte dans le premier écran */
.crumb ~ .hero { padding: 36px 0 40px; }
.crumb ~ .hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); max-width: 18ch; }
.crumb ~ .hero .lead { margin-top: 14px; }
/* 404 */
main > .hero:only-child { padding: 96px 0 104px; }
/* grilles de cartes suivies d'un paragraphe : de l'air */
.steps + p, .steps + .note { margin-top: 28px; }
/* facteurs (pas une suite) : pas de numéros */
.steps-plain li::before { content: none; }
/* titre de l'à propos : séparé du texte */
.me h1 { margin-bottom: .45em; }
/* flèches d'action jamais seules en début de ligne */
.persona .muted::after { content: "\00a0›"; }
.btn-ghost::after { content: "\00a0›"; }
/* boutique : offre conseillée */
.offer { position: relative; }
.offer-pick { box-shadow: inset 0 0 0 2px var(--accent); }
.offer-flag { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 600; border-radius: 980px; padding: 3px 10px; }
.offer-pick img { margin-top: 18px; }
/* comparatif des kits : ligne d'achat */
.compare tfoot td { border-bottom: 0; padding-block: 16px; }
.compare tfoot .btn { padding-inline: 14px; }
/* couvertures sombres sur fond sombre : un liseré pour qu'elles restent visibles */
.offer img, .product-shot img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent), 0 24px 40px -24px rgba(0,0,0,.4); }
.badge-new { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 980px;
  background: var(--accent-soft); color: var(--ink); vertical-align: 1px; }
/* mobile : les tableaux "cartes" deviennent une pile de cartes, plus besoin de faire défiler */
@media (max-width: 640px) {
  table.cards { min-width: 0; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
  table.cards td::before { content: attr(data-label); color: var(--ink-2); font-size: .8rem; font-weight: 500; }
  table.cards td:first-child { grid-template-columns: 1fr; font-weight: 600; font-size: 1.02rem; padding-bottom: 6px; }
  table.cards td:first-child::before, table.cards td[data-label="Lien"]::before { content: none; }
  table.cards td[data-label="Lien"] { grid-template-columns: 1fr; padding-top: 8px; }
  /* comparatif des kits : 5 colonnes qui tiennent dans l'écran */
  table.compare { min-width: 0; font-size: .8rem; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare td:first-child { padding-left: 12px; }
  .compare tfoot .btn { padding-inline: 8px; font-size: .74rem; min-height: 32px; }
}
td .btn, td .btn:hover { text-decoration: none; }
@media (max-width: 640px) {
  .compare tfoot { display: none; }
  .compare td:first-child, .compare th:first-child { width: 38%; }
  .compare th, .compare td { padding: 10px 4px; }
}
/* pied de page toujours en bas, même sur une page courte */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.lead-free { margin: 16px 0 0; font-size: .95rem; color: var(--ink-2); }
.lead-free a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.offer-cta .lead-free { color: var(--night-ink-2); font-size: .9rem; }
.offer-cta .lead-free a { color: var(--night-link); }

/* ---------- Port Sûr : bandeau sombre (accueil, check-up) ---------- */
.hero-dark { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.hero-dark::before { content: ""; position: absolute; inset: 0; background: url(/assets/brand/motif.svg) center / cover no-repeat;
  opacity: .6; pointer-events: none; }
.hero-dark > * { position: relative; }
.hero-dark h1 { color: var(--night-ink); }
.hero-dark .lead { color: var(--night-ink-2); }
.hero-dark .kicker { background: rgba(255, 200, 61, .14); color: var(--night-ink); }
.hero-dark a:not(.btn) { color: var(--night-link); }
.hero-dark .source, .hero-dark .checkup-hint { color: var(--night-ink-2); }
.crumb ~ .hero-dark { margin-top: 12px; }

/* formulaire du check-up */
.checkup { width: min(620px, 100%); margin: 30px auto 0; text-align: left; }
.checkup-label { display: block; font-weight: 700; margin-bottom: 10px; }
.checkup-row { display: flex; gap: 10px; background: var(--card); border-radius: 16px; padding: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, .45); }
.checkup-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.1rem var(--mono);
  padding: 12px 12px; border-radius: 10px; }
.checkup-row input::placeholder { color: var(--ink-2); opacity: 1; }
.checkup-row input:focus-visible { outline: 2px solid var(--link); outline-offset: 0; }
.checkup-row .btn { flex: none; min-height: 48px; }
.checkup-row .btn[disabled] { opacity: .75; cursor: progress; }
.checkup-hint { font-size: .88rem; margin: 12px 4px 0; color: var(--ink-2); }
.hero-dark .checkup-label { color: var(--night-ink); }
@media (max-width: 480px) { .checkup-row { flex-direction: column; } .checkup-row .btn { width: 100%; } }

/* résultat du check-up */
.checkup-out { width: min(820px, 100%); margin: 0 auto; scroll-margin-top: 70px; }
.cu-loading, .cu-error { padding: 22px 24px; border-radius: 16px; background: var(--bg-2); margin: 0; }
.cu-loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px;
  background: var(--accent); vertical-align: 1px; animation: ping 1s ease-in-out infinite alternate; }
@keyframes ping { from { transform: translateX(0); } to { transform: translateX(14px); } }
.cu-error { background: var(--bad-soft); color: var(--ink); }
.cu-head { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: 22px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); margin-bottom: 26px; }
.cu-grade { flex: none; width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center;
  font: 800 2.8rem/1 var(--display); font-stretch: 112%; color: #fff; }
.cu-grade-A { background: #1E7A4C; } .cu-grade-B { background: #2F6E2A; }
.cu-grade-C { background: #8A5A00; } .cu-grade-D { background: #A2421A; } .cu-grade-E { background: #B4232C; }
.cu-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 4px; overflow-wrap: anywhere; }
.cu-title:focus { outline: none; }
.cu-score { font-weight: 700; margin: 0; }
.cu-count { color: var(--ink-2); margin: 2px 0 0; font-size: .95rem; }
.cu-group { font-size: 1.15rem; margin: 30px 0 12px; }
.cu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cu-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); }
.cu-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.cu-bad .cu-icon { background: var(--bad-soft); color: var(--bad); }
.cu-warn .cu-icon { background: var(--warn-soft); color: var(--warn); }
.cu-ok .cu-icon { background: var(--ok-soft); color: var(--ok); }
.cu-info .cu-icon { background: var(--bg-2); color: var(--ink-2); font-family: var(--mono); }
.cu-bad { box-shadow: inset 4px 0 0 var(--bad), 0 0 0 1px var(--line); }
.cu-warn { box-shadow: inset 4px 0 0 var(--warn), 0 0 0 1px var(--line); }
.cu-item-title { font-weight: 700; margin: 3px 0 4px; }
.cu-detail { margin: 0; color: var(--ink-2); font-size: .95rem; }
.cu-value { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--code-bg); color: var(--code-ink);
  font-size: .78rem; overflow-wrap: anywhere; }
.cu-fix { margin-top: 8px; font-size: .95rem; }
.cu-fix summary { cursor: pointer; color: var(--link); font-weight: 700; min-height: 24px; }
.cu-fix p { margin: 6px 0 0; }
.cu-cta { margin-top: 30px; padding: 28px; border-radius: 22px; background: var(--night); color: var(--night-ink); }
.cu-cta-title { font: 800 1.35rem/1.2 var(--display); font-stretch: 112%; margin: 0 0 8px; }
.cu-cta p { color: var(--night-ink-2); }
.cu-cta .cu-cta-title { color: var(--night-ink); }
.cu-cta .btn-ghost { color: var(--night-link); }
.cu-share { font-size: .82rem; color: var(--ink-2); margin-top: 16px; }
.btn-link { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--link); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; min-height: 24px; }

/* exemple de résultat (accueil) */
.cu-demo { width: min(820px, 100%); margin: 0 auto; }
figure.cu-demo { margin-block: 0; }
.cu-demo .cu-head { margin-bottom: 14px; }
.demo-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }

/* générateur DNS */
.gen-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.field small { font-weight: 400; color: var(--ink-2); }
.field input, .field select { font-weight: 400; }
.gen-warn { margin-top: 14px; }

/* offres */
.offer-period { font-size: .95rem; font-weight: 400; color: var(--ink-2); }
.offer-for { font-size: .9rem; color: var(--ink-2); margin: 0 0 14px; }
.duo { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 22px 0 0;
  font-size: .9rem; color: var(--night-ink-2); }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.offer-cta .btn-ghost::after, .cu-cta .btn-ghost::after { color: inherit; }
.price-big { font: 800 clamp(2.2rem, 5vw, 3rem)/1 var(--display); font-stretch: 112%; margin: 6px 0 4px; }
.offer-name { font-stretch: 112%; }
.lead.center { margin-inline: auto; text-align: center; }
/* les prix et notes en Archivo : Atkinson barre ses zéros, peu lisible sur un prix */
.persona .muted, .price-tag, .cu-score, .buybar-in span, .offer-for { font-family: var(--display); font-stretch: 100%; }
@media (max-width: 520px) {
  .cu-head { padding: 18px; gap: 14px; }
  .cu-grade { width: 56px; height: 56px; font-size: 2rem; border-radius: 14px; }
  .cu-title { font-size: 1.15rem; }
  .cu-item { grid-template-columns: 28px 1fr; gap: 10px; padding: 14px; }
  .cu-icon { width: 26px; height: 26px; }
}
section.alt .offer { background: var(--card); }
.offer-pick { padding-top: 58px; }
.offer-pick img { margin-top: 0; }
.widget .note { background: var(--card); font-size: .95rem; }
section.alt .widget .note { background: var(--bg-2); }
/* logo en texte (sites clients sans logo) */
.logo-text { font: 800 1.15rem/1 var(--display); font-stretch: 112%; color: var(--ink); letter-spacing: -0.01em; }
.logo-text-foot { color: var(--night-ink); font-size: 1.4rem; margin: 0 0 14px; }
