/* CleanMail — feuille de style unique
   Idée directrice : le tri postal. Des adresses sur papier, des tampons encreurs qui tranchent.
   Couleurs : papier froid, encre indigo, outremer pour l'action, trois encres de tampon. */

@font-face {
  font-family: "Bricolage";
  src: url(fonts/bricolage-grotesque-latin-wdth-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  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: "Bricolage";
  src: url(fonts/bricolage-grotesque-latin-ext-wdth-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  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;
}
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F3F4F7;
  --sheet: #FFFFFF;
  --ink: #171A3A;
  --ink-2: #4A4F72;
  --ink-3: #7C819F;
  --rule: #DCDFE8;
  --action: #3B3BEA;
  --action-dark: #2A2AC4;
  --ok: #17845A;
  --risk: #B86E00;
  --bad: #C42F3A;
  --dup: #6B7083;
  --ok-bg: #E4F3EC;
  --risk-bg: #FBF0DD;
  --bad-bg: #FAE6E8;
  --dup-bg: #ECEDF2;

  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --text: "Schibsted", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 18px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-dark); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 3px; }
::selection { background: #D9D9FF; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.inline { display: inline; margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--sheet); padding: 8px 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 78px); font-stretch: 80%; }
h2 { font-size: clamp(32px, 4.2vw, 52px); font-stretch: 82%; }
h3 { font-size: 22px; font-stretch: 92%; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 54ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--text); padding: 15px 22px; border-radius: var(--r-md);
  background: var(--action); color: #fff; border: 0; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--action-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 10px 14px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Barre du haut ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s4) clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: 0 auto; width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 750 22px/1 var(--display); font-stretch: 85%; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo { width: 30px; height: 30px; color: var(--ink); }
.topnav { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; justify-content: flex-end; }
.topnav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.topnav a:not(.btn):hover, .topnav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.quota-pill { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }
.topnav .link-btn { font-size: 15px; }

.flash { max-width: var(--wrap); margin: 0 auto var(--s4); padding: 12px 16px; border-radius: var(--r-md); font-weight: 500; width: calc(100% - 32px); }
.flash-ok { background: var(--ok-bg); color: #0E5E3F; }
.flash-error { background: var(--bad-bg); color: #8E1E27; }
.flash-info { background: #E6E7FB; color: #23238F; }

/* ---------- Tampons ---------- */
.stamp {
  display: inline-block; font: 800 13px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px 5px; border: 2px solid currentColor; border-radius: 4px; white-space: nowrap;
  transform: rotate(-3deg); background: transparent;
}
.stamp-valid { color: var(--ok); }
.stamp-risky { color: var(--risk); transform: rotate(2deg); }
.stamp-invalid { color: var(--bad); transform: rotate(-5deg); }
.stamp-duplicate { color: var(--dup); transform: rotate(1deg); }

/* ================================================================
   LANDING
   ================================================================ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.hero { padding: var(--s7) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lead { margin-bottom: var(--s6); }
.hero-actions { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: var(--s4); font-size: 14px; color: var(--ink-3); }

/* Le bac de tri : adresses qui reçoivent leur tampon */
.tray {
  background: var(--sheet); border-radius: var(--r-lg); padding: var(--s3) 0;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(23, 26, 58, .35);
  position: relative;
}
.tray-head { display: flex; justify-content: space-between; padding: var(--s3) var(--s5) var(--s4); font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.tray-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s4);
  padding: 13px var(--s5); border-bottom: 1px dashed var(--rule); min-height: 54px;
}
.tray-row:last-child { border-bottom: 0; }
.tray-mail { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-mail small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; white-space: normal; }
.tray-row .stamp { opacity: 0; }
.tray.is-live .tray-row .stamp { animation: thump .38s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--i) * 420ms + 500ms); }
.tray.is-live .tray-row small { opacity: 0; animation: fade .3s ease forwards; animation-delay: calc(var(--i) * 420ms + 650ms); }
@keyframes thump {
  0% { opacity: 0; transform: scale(1.9) rotate(-12deg); }
  70% { opacity: 1; transform: scale(.94) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot, -3deg)); }
}
@keyframes fade { to { opacity: 1; } }
.tray-row.d0 { --i: 0; } .tray-row.d1 { --i: 1; } .tray-row.d2 { --i: 2; } .tray-row.d3 { --i: 3; } .tray-row.d4 { --i: 4; } .tray-row.d5 { --i: 5; }
.tray-row .stamp-risky { --rot: 2deg; }
.tray-row .stamp-invalid { --rot: -5deg; }
.tray-row .stamp-duplicate { --rot: 1deg; }

/* Bande encre : la cascade */
.ink { background: var(--ink); color: #E9EAF5; padding: var(--s9) 0; }
.ink h2 { color: #fff; max-width: 16ch; }
.ink .lead { color: #B9BCD8; }
.cascade { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: c; }
.cascade li { position: relative; padding: var(--s5) var(--s5) var(--s5) 0; border-top: 2px solid #3A3E6B; }
.cascade li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #3A3E6B;
}
.cascade li:last-child::before { background: var(--bad); }
.cascade li:not(:last-child)::after { content: ""; position: absolute; top: -6px; right: 18px; border: 5px solid transparent; border-left: 8px solid #3A3E6B; }
.cascade strong { display: block; font: 750 26px/1.05 var(--display); font-stretch: 82%; color: #fff; margin: var(--s3) 0 var(--s2); }
.cascade span { font-size: 15.5px; color: #B9BCD8; display: block; max-width: 30ch; }
.ink-fact { margin-top: var(--s8); display: grid; grid-template-columns: auto 1fr; gap: var(--s6); align-items: center; padding-top: var(--s6); border-top: 1px solid #2D3060; }
.ink-fact b { font: 800 clamp(56px, 8vw, 104px)/.9 var(--display); font-stretch: 75%; color: #fff; letter-spacing: -0.03em; }
.ink-fact p { margin: 0; color: #D3D5EA; font-size: 18px; max-width: 58ch; }
.ink-fact cite { display: block; font-style: normal; color: #8A8EB5; font-size: 13.5px; margin-top: var(--s2); }

/* Contrôles : fiche de contrôle */
.section { padding: var(--s8) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: end; margin-bottom: var(--s7); }
.section-head p { margin: 0; color: var(--ink-2); }
.checks { width: 100%; border-collapse: collapse; background: var(--sheet); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.checks th, .checks td { text-align: left; padding: 18px var(--s5); border-bottom: 1px solid var(--rule); vertical-align: top; }
.checks thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); background: #FAFAFC; }
.checks tbody th { font-weight: 650; width: 26%; }
.checks td.ex { font-size: 14.5px; color: var(--ink-2); width: 30%; }
.checks td.res { width: 140px; text-align: right; }
.checks tr:last-child th, .checks tr:last-child td { border-bottom: 0; }
.checks-note { margin-top: var(--s5); font-size: 15px; color: var(--ink-2); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); counter-reset: st; }
.steps li { counter-increment: st; padding-top: var(--s5); border-top: 3px solid var(--ink); }
.steps li::before { content: counter(st); display: block; font: 800 40px/1 var(--display); font-stretch: 75%; color: var(--ink); margin-bottom: var(--s4); }
.steps li:last-child { border-top-color: var(--bad); }
.steps li:last-child::before { color: var(--bad); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { font-size: 15.5px; color: var(--ink-2); }

/* Sécurité : chronologie de vie d'un fichier */
.vault { background: var(--sheet); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); box-shadow: 0 1px 0 var(--rule); }
.vault h2 { font-size: clamp(30px, 3.6vw, 46px); }
.life { list-style: none; margin: 0; padding: 0; position: relative; }
.life::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ink) 75%, var(--bad)); }
.life li { position: relative; padding: 0 0 var(--s5) var(--s6); }
.life li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--ink); }
.life li:last-child { padding-bottom: 0; }
.life li:last-child::before { border-color: var(--bad); background: var(--bad); }
.life b { display: block; font-weight: 650; }
.life span { color: var(--ink-2); font-size: 15.5px; }

/* Tarifs */
.pricing-free { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; padding: var(--s5) var(--s6); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--ink); margin-bottom: var(--s5); }
.pricing-free p { margin: 0; }
.pricing-free strong { font: 750 24px/1.1 var(--display); font-stretch: 85%; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: stretch; }
.plan { background: var(--sheet); border-radius: var(--r-lg); padding: var(--s6); display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--rule); position: relative; }
.plan.featured { background: var(--ink); color: #E9EAF5; box-shadow: none; }
.plan.featured .plan-price, .plan.featured h3 { color: #fff; }
.plan.featured .plan-pitch, .plan.featured li { color: #C3C6E2; }
.plan.featured .stamp { position: absolute; top: 22px; right: 22px; color: #8BE0B9; }
.plan h3 { margin-bottom: var(--s2); }
.plan-pitch { color: var(--ink-2); font-size: 15.5px; margin-bottom: var(--s5); }
.plan-price { font: 800 54px/1 var(--display); font-stretch: 78%; letter-spacing: -0.03em; }
.plan-price small { font: 500 16px var(--text); letter-spacing: 0; color: var(--ink-3); }
.plan.featured .plan-price small { color: #9DA1C8; }
.plan ul { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan.featured li::before { border-color: #8BE0B9; }
.plan.featured .btn { background: #fff; color: var(--ink); }
.plan.featured .btn:hover { background: #DADBFF; }

.packs { margin-top: var(--s6); }
.packs-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.packs-head h3 { margin: 0; }
.packs-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tickets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--sheet); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--rule); overflow: hidden; }
.ticket { padding: var(--s5); border-right: 2px dashed var(--rule); display: flex; flex-direction: column; gap: var(--s2); }
.ticket:last-child { border-right: 0; }
.ticket .vol { font: 750 22px/1.1 var(--display); font-stretch: 85%; }
.ticket .price { font: 800 34px/1 var(--display); font-stretch: 78%; }
.ticket .unit { font-size: 13.5px; color: var(--ink-3); }
.ticket form, .ticket a.btn { margin-top: auto; }

/* FAQ */
.faq > * { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px/1 var(--display); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: var(--s4); }

.final { text-align: left; padding: var(--s9) 0; border-top: 1px solid var(--rule); }
.final-in { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); flex-wrap: wrap; }
.final h2 { max-width: 18ch; margin: 0; }

/* Pied de page */
.footer { border-top: 1px solid var(--rule); padding: var(--s6) 0; font-size: 14.5px; color: var(--ink-2); }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s6); align-items: center; }
.footer-in > div { display: flex; align-items: center; gap: 8px; }
.footer .logo { width: 22px; height: 22px; }
.footer nav { display: flex; gap: var(--s5); justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { color: var(--ink-2); }
.footer p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }

/* ================================================================
   APPLICATION
   ================================================================ */
.page { max-width: var(--wrap); margin: 0 auto; padding: var(--s5) clamp(16px, 4vw, 40px) var(--s8); width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0; }
.page-head p { margin: var(--s2) 0 0; color: var(--ink-2); }
.panel { background: var(--sheet); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 var(--rule); margin-bottom: var(--s5); }
.panel h2 { font-size: 26px; font-stretch: 88%; margin-bottom: var(--s3); }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s5); align-items: start; margin-bottom: var(--s5); }
.grid-2 > .panel { margin-bottom: 0; }

/* Dépôt */
.drop {
  border: 2px dashed #B9BDCF; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px) var(--s5); text-align: center;
  background: repeating-linear-gradient(0deg, transparent 0 31px, #EEF0F5 31px 32px), var(--sheet);
  transition: border-color .15s, background-color .15s; position: relative;
}
.drop.is-over { border-color: var(--action); background: #F3F3FF; }
.drop h2 { font-size: 30px; margin-bottom: var(--s2); }
.drop p { margin: 0 auto var(--s5); color: var(--ink-2); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .btn { position: relative; z-index: 1; pointer-events: none; }
.drop-meta { font-size: 13.5px; color: var(--ink-3); margin-top: var(--s4) !important; }
.upload-state { display: none; margin-top: var(--s5); text-align: left; }
.upload-state.is-on { display: block; }

.bar { height: 12px; border-radius: 99px; background: #E7E9F0; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--action); border-radius: inherit; transition: width .3s ease; }
.bar-split { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #E7E9F0; }
.bar-split i { display: block; height: 100%; width: 0; transition: width .4s ease; }
.bar-split .b-valid { background: var(--ok); }
.bar-split .b-risky { background: #E3A12F; }
.bar-split .b-invalid { background: var(--bad); }
.bar-split .b-duplicate { background: #A3A7BA; }

.quota { display: grid; gap: var(--s3); }
.quota dl { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s4); margin: 0; font-size: 15px; }
.quota dt { color: var(--ink-2); }
.quota dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.quota .big { font: 800 44px/1 var(--display); font-stretch: 78%; letter-spacing: -0.02em; }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th, .list td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.list thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.list td.r, .list th.r { text-align: right; font-variant-numeric: tabular-nums; }
.list tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--dup-bg); color: var(--ink-2); }
.tag-ok { background: var(--ok-bg); color: #0E5E3F; }
.tag-run { background: #E6E7FB; color: #23238F; }
.tag-bad { background: var(--bad-bg); color: #8E1E27; }
.empty { padding: var(--s6) 0; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* Analyse en cours / rapport */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: var(--s5) 0; }
.counter { padding: var(--s4) var(--s4) var(--s4) 0; border-top: 3px solid var(--rule); }
.counter .stamp { margin-bottom: var(--s3); }
.counter b { display: block; font: 800 40px/1 var(--display); font-stretch: 78%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counter .lbl { font-size: 14px; color: var(--ink-3); }
.counter.c-valid { border-top-color: var(--ok); }
.counter.c-risky { border-top-color: #E3A12F; }
.counter.c-invalid { border-top-color: var(--bad); }
.counter.c-duplicate { border-top-color: #A3A7BA; }
.progress-line { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); margin-bottom: var(--s2); }
.verdict { font: 750 clamp(26px, 3vw, 36px)/1.1 var(--display); font-stretch: 85%; margin: 0 0 var(--s3); max-width: 28ch; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.reasons li:last-child { border-bottom: 0; }
.reasons b { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot-valid { background: var(--ok); } .dot-risky { background: #E3A12F; } .dot-invalid { background: var(--bad); } .dot-duplicate { background: #A3A7BA; }

.download { display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: center; background: var(--ink); color: #E3E5F4; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: var(--s5); }
.download h2 { color: #fff; font-size: 28px; margin-bottom: var(--s2); }
.download p { margin: 0; color: #B9BCD8; }
.download .btn { background: #fff; color: var(--ink); }
.download .btn:hover { background: #DADBFF; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
.upsell { background: #FFF7E8; box-shadow: inset 0 0 0 1.5px #E9C88A; border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s5); display: flex; justify-content: space-between; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.upsell p { margin: 0; max-width: 60ch; }

/* Formulaires */
.auth { max-width: 440px; margin: var(--s6) auto var(--s8); padding: 0 var(--s4); width: 100%; }
.auth h1 { font-size: clamp(36px, 5vw, 50px); }
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { color: var(--ink-3); font-size: 13.5px; }
input[type=email], input[type=password], input[type=text], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  font: 400 16px/1.3 var(--text); padding: 13px 14px; border-radius: var(--r-md); border: 1.5px solid #C9CDDA; background: var(--sheet); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px #D9D9FF; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--action); }
.form > .btn-small { justify-self: start; }
.form-error { background: var(--bad-bg); color: #8E1E27; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; }
.form-foot { margin-top: var(--s5); font-size: 15px; color: var(--ink-2); }
.row-form { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: end; }
.row-form > * { flex: 1 1 140px; }
.row-form .btn { flex: 0 0 auto; }

/* Admin */
.tabs { display: flex; gap: var(--s2); border-bottom: 1px solid var(--rule); margin-bottom: var(--s5); flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-bottom: var(--s5); }
.kpi { background: var(--sheet); border-radius: var(--r-lg); padding: var(--s5); box-shadow: 0 1px 0 var(--rule); }
.kpi span { font-size: 14px; color: var(--ink-2); }
.kpi b { display: block; font: 800 38px/1.05 var(--display); font-stretch: 78%; margin-top: 6px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 99px; background: var(--paper); font-size: 14px; }
.chip form { display: inline; }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 99px; }
.chip button:hover { background: var(--bad-bg); color: var(--bad); }

.legal { max-width: 780px; }
.legal h2 { font-size: 32px; margin-top: var(--s7); }
.legal h3 { margin-top: var(--s5); }
.todo { background: #FFF3C4; padding: 0 4px; border-radius: 3px; }
.narrow { max-width: 640px; margin: var(--s8) auto; padding: 0 var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .vault, .grid-2, .section-head { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: 1fr 1fr; }
  .ticket:nth-child(2) { border-right: 0; }
  .ticket:nth-child(-n+2) { border-bottom: 2px dashed var(--rule); }
  .cascade, .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s6); }
  .cascade li:nth-child(2)::after { display: none; }
  .kpis, .counters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .topnav { justify-content: flex-start; gap: var(--s4); }
  .cascade, .steps, .tickets { grid-template-columns: 1fr; }
  .ticket { border-right: 0; border-bottom: 2px dashed var(--rule); }
  .cascade li::after { display: none; }
  .ink-fact { grid-template-columns: 1fr; gap: var(--s3); }
  .checks thead { display: none; }
  .checks tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
  .checks th, .checks td { border: 0; padding: 4px var(--s4); width: auto !important; }
  .checks td.ex { grid-column: 1 / -1; }
  .checks td.res { grid-row: 1; grid-column: 2; }
  .download { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .tray-row .stamp, .tray-row small { opacity: 1 !important; }
}

.log { background: var(--ink); color: #D7D9EE; padding: var(--s4); border-radius: var(--r-md); font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; max-height: 420px; overflow-y: auto; }

/* Options d'analyse */
.options { display: grid; gap: var(--s5); }
.options[hidden] { display: none; }
.options-file { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.options-file strong { display: block; font-size: 18px; word-break: break-all; }
.options fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.options legend { font: 750 20px/1.2 var(--display); font-stretch: 88%; margin-bottom: var(--s3); padding: 0; }
.options .check strong { color: var(--ink); }
.options input[type=file] { font: inherit; font-size: 15px; }
.radios { display: grid; gap: var(--s2); }
.drop[hidden] { display: none; }
.stamp-excluded { color: #5B3FA8; transform: rotate(-2deg); }
.counter.c-excluded { border-top-color: #7E62C9; }
.bar-split .b-excluded { background: #7E62C9; }
.dot-excluded { background: #7E62C9; }
.counters.has-5 { grid-template-columns: repeat(5, 1fr); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); }
.fact { padding-top: var(--s3); border-top: 2px solid var(--rule); }
.fact b { display: block; font: 800 30px/1.1 var(--display); font-stretch: 80%; font-variant-numeric: tabular-nums; }
.fact span { font-size: 14.5px; color: var(--ink-2); }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #E7E9F0; margin: var(--s2) 0; }
.split i { display: block; height: 100%; }
.split .s-pro { background: var(--ink); }
.split .s-perso { background: #9EA3C7; }
@media (max-width: 980px) { .counters.has-5 { grid-template-columns: 1fr 1fr; } }
.row-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.panel h3 { margin-top: var(--s5); }
.fact .split { margin-top: var(--s2); }

/* Rapport imprimable */
.print-bar { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.report-doc { max-width: 960px; }
.doc-head { display: flex; justify-content: space-between; gap: var(--s6); align-items: flex-start; border-bottom: 3px solid var(--ink); padding-bottom: var(--s5); margin-bottom: var(--s5); }
.doc-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--s2); }
.doc-head p { margin: 0; }
.doc-brand { display: flex; align-items: center; gap: 8px; font: 750 18px/1 var(--display); margin-bottom: var(--s4) !important; }
.doc-brand .logo { width: 24px; height: 24px; }
.grade { text-align: right; flex: 0 0 auto; }
.grade b { display: block; font: 800 64px/1 var(--display); font-stretch: 75%; }
.grade b small { font-size: 22px; color: var(--ink-3); }
.grade span { display: block; font-weight: 600; }
.doc-section { margin-bottom: var(--s6); break-inside: avoid; }
.doc-section h2 { font-size: 24px; font-stretch: 88%; margin-bottom: var(--s3); }
.doc-section h3 { font-size: 17px; margin: var(--s5) 0 var(--s2); }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.doc-foot { border-top: 1px solid var(--rule); padding-top: var(--s3); }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .footer, .print-bar, .skip, .flash { display: none !important; }
  .page { padding: 0; max-width: none; }
  .counter b { font-size: 28px; }
  .counters, .counters.has-5 { grid-template-columns: repeat(5, 1fr) !important; }
  .counters:not(.has-5) { grid-template-columns: repeat(4, 1fr) !important; }
  .doc-cols { grid-template-columns: 1fr 1fr !important; }
  .list th, .list td { padding: 5px 8px; }
  .doc-section { margin-bottom: var(--s5); }
  .doc-head { flex-direction: row !important; }
  .grade { text-align: right !important; }
  .bar-split, .bar-split i, .stamp, .split i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}
@media (max-width: 760px) { .doc-cols { grid-template-columns: 1fr; } .doc-head { flex-direction: column; } .grade { text-align: left; } }

.extras { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s5); }
.extras li { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.extras b { display: block; font: 750 18px/1.2 var(--display); font-stretch: 90%; margin-bottom: 6px; }
.extras span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 980px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .extras { grid-template-columns: 1fr; } }

.plan-volume { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--paper); font-size: 15.5px; }
.plan-volume strong { display: block; font: 750 21px/1.15 var(--display); font-stretch: 88%; color: var(--ink); }
.plan.featured .plan-volume { background: rgba(255,255,255,.08); color: #C3C6E2; }
.plan.featured .plan-volume strong { color: #fff; }
.plan ul { margin-top: var(--s4); }
.pricing-rule { margin: var(--s5) 0 0; padding: var(--s4) var(--s5); border-left: 3px solid var(--action); background: var(--sheet); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15.5px; max-width: none; }
.ticket .vol small { display: block; font: 500 14px/1.4 var(--text); color: var(--ink-2); margin-top: 2px; }

/* Abonnements : bascule mensuel / annuel (sans JavaScript) */
.billing { margin-top: var(--s6); }
.billing-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.billing-head h3 { margin: 0; }
.billing-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.billing-switch label { padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.billing-switch .save { font-size: 12.5px; font-weight: 700; color: var(--ok); margin-left: 4px; }
#bill-m:checked ~ .billing-head label[for=bill-m], #bill-y:checked ~ .billing-head label[for=bill-y] { background: var(--ink); color: #fff; }
#bill-y:checked ~ .billing-head label[for=bill-y] .save { color: #8BE0B9; }
#bill-m:focus-visible ~ .billing-head label[for=bill-m], #bill-y:focus-visible ~ .billing-head label[for=bill-y] { outline: 3px solid var(--action); outline-offset: 2px; }
.billing .only-y { display: none; }
#bill-y:checked ~ .plans .only-y { display: inline; }
#bill-y:checked ~ .plans .only-y.b { display: block; }
#bill-y:checked ~ .plans .only-m { display: none; }
.plans-2 { grid-template-columns: repeat(2, 1fr); }
.plan-note { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-3); }
.plan.featured .plan-note { color: #9DA1C8; }
.packs { margin-top: var(--s7); }
@media (max-width: 980px) { .plans-2 { grid-template-columns: 1fr; } }

.checks-inline { display: grid; gap: 6px; align-content: end; }
.field .label { font-weight: 600; font-size: 15px; }

/* ---------- Test de domaine ---------- */
.hero-tight { padding-bottom: var(--s7); }
.hero-tight .lead { max-width: 62ch; }
.dc-form { display: grid; gap: var(--s4); max-width: 560px; margin-top: var(--s5); background: var(--sheet); padding: var(--s5); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--rule); }
.dc-form .btn { justify-self: start; }
.dc-adv summary { cursor: pointer; color: var(--ink-2); font-size: 15px; }
.dc-adv[open] summary { margin-bottom: var(--s3); }
.dc-head { display: flex; gap: var(--s6); align-items: center; margin-bottom: var(--s6); }
.dc-head h2 { margin: 0 0 var(--s2); word-break: break-all; }
.dc-score { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 6px solid currentColor; background: var(--sheet); }
.dc-score b { font: 700 52px/1 var(--display); }
.dc-score span { font-size: 14px; color: var(--ink-3); }
.dc-valid { color: var(--ok); } .dc-risky { color: var(--risk); } .dc-invalid { color: var(--bad); }
.dc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.dc-list .panel { margin: 0; }
.dc-list h3 { margin: 0; }
.dc-item-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.dc-item p { margin: 0 0 var(--s3); }
.dc-found code { display: block; font-size: 13px; background: var(--paper); padding: 8px 10px; border-radius: var(--r-sm); overflow-wrap: anywhere; color: var(--ink-2); }
.dc-fix { background: var(--risk-bg); padding: 10px 12px; border-radius: var(--r-md); font-size: 15px; }
.dc-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s6); }
.dc-next .panel { margin: 0; }
@media (max-width: 760px) { .dc-list, .dc-next { grid-template-columns: 1fr; } .dc-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Changement de formule ---------- */
.switch-plans { display: grid; gap: var(--s3); margin-top: var(--s4); }
.switch-plans form { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); }
.switch-plans form span small { display: block; color: var(--ink-3); font-size: 13.5px; }
.kpi small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.dc-band { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); margin: 0; }
.dc-band h2 { margin: 0 0 var(--s2); font-size: clamp(22px, 2.4vw, 28px); }
.dc-band p { margin: 0; color: var(--ink-2); }
.dc-band .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .dc-band { flex-direction: column; align-items: flex-start; } }
.kpi b.kpi-text { font: 600 17px/1.4 var(--text); overflow-wrap: anywhere; display: block; margin: 6px 0 2px; }

/* ---------- Qualité dans le temps ---------- */
.q-filter { flex-wrap: wrap; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.q-head h2 { margin: 0; }
.q-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.q-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-valid, .qchart .q-valid { background: var(--ok); fill: var(--ok); }
.sw-risky, .qchart .q-risky { background: var(--risk); fill: var(--risk); }
.sw-other, .qchart .q-other { background: var(--dup); fill: var(--dup); }
.sw-invalid, .qchart .q-invalid { background: var(--bad); fill: var(--bad); }
.q-wrap { position: relative; }
.qchart { width: 100%; height: auto; display: block; overflow: visible; }
.qchart .q-grid { stroke: var(--rule); stroke-width: 1; }
.qchart .q-axis { fill: var(--ink-3); font: 12px var(--text); }
.qchart .q-hit { fill: transparent; }
.qchart .q-bar { outline: none; cursor: default; }
.qchart .q-bar:hover .q-hit, .qchart .q-bar:focus .q-hit { fill: var(--paper); }
.q-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: var(--r-md); max-width: 300px; box-shadow: 0 6px 20px rgba(23, 26, 58, .25); }
.q-tip b { display: block; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.q-table th { font-size: 13.5px; color: var(--ink-3); font-weight: 600; text-align: left; }
.q-table th.r { text-align: right; }
.q-clear { margin-top: var(--s4); text-align: right; }

/* ---------- Parrainage ---------- */
.ref-note { background: var(--ok-bg); color: #0E5E3F; padding: 10px 12px; border-radius: var(--r-md); margin: 0; }
.ref-link { display: flex; gap: var(--s2); margin: var(--s3) 0; }
.ref-link input { flex: 1; min-width: 0; font-size: 15px; }
.ref-stats { display: flex; gap: var(--s5); flex-wrap: wrap; margin: var(--s3) 0 0; }
.ref-stats div b { display: block; font: 700 26px/1.1 var(--display); }
.ref-stats div span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 640px) { .q-wrap { overflow-x: auto; } .qchart { min-width: 600px; } }

/* ---------- API ---------- */
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpis-3 .kpi b { font-size: 30px; }
pre.code { background: var(--ink); color: #E8EAF6; padding: 14px 16px; border-radius: var(--r-md); overflow-x: auto; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; margin: var(--s2) 0 var(--s4); }
#api h3 { font-size: 17px; margin: var(--s5) 0 var(--s2); }
.api-key { border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--s4); margin: var(--s4) 0; }
.api-key-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; justify-content: space-between; }
.api-key-head .small { flex: 1; }
.api-form { max-width: 560px; margin-top: var(--s4); }
.api-new { box-shadow: inset 0 0 0 2px var(--ok); }
@media (max-width: 760px) { .kpis-3 { grid-template-columns: 1fr; } }

/* ---------- Test de domaine : enregistrements à appliquer ---------- */
.dc-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s4); margin: var(--s2) 0 var(--s4); font-size: 15px; }
.dc-recs { display: grid; gap: var(--s3); margin-top: var(--s3); }
.dc-rec { border: 1px solid var(--rule); border-left: 4px solid var(--action); border-radius: var(--r-md); padding: 10px 12px; }
.dc-rec.dc-delete { border-left-color: var(--bad); }
.dc-rec.dc-update { border-left-color: var(--risk); }
.dc-rec.dc-manual { border-left-color: var(--dup); }
.dc-rec-head { display: flex; gap: var(--s2); align-items: baseline; margin-bottom: 6px; }
.dc-act { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.dc-type { font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); padding: 1px 6px; border-radius: var(--r-sm); }
.dc-rec dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s3); margin: 0; font-size: 14.5px; }
.dc-rec dt { color: var(--ink-3); }
.dc-rec dd { margin: 0; min-width: 0; }
.dc-rec code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); padding: 2px 6px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.dc-rec .dc-old { text-decoration: line-through; color: var(--ink-3); }
.dc-val { display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.dc-rec p { margin: 6px 0 0; }
.dc-howto { margin-top: var(--s6); }
.dc-howto ol { padding-left: 1.2em; }
.dc-howto li { margin-bottom: 6px; }
@media (max-width: 640px) { .dc-svcs { grid-template-columns: 1fr; } .dc-rec dl { grid-template-columns: 1fr; } }
.dc-list-results { grid-template-columns: 1fr; }

/* ---------- Outils d'emailing ---------- */
.esp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }
.esp-card { border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--s4); }
.esp-card.is-on { border-color: var(--ok); background: var(--ok-bg); }
.esp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s2); }
.esp-form .field { margin-bottom: var(--s2); }
.esp-push .grid-2 { gap: var(--s4); }
.esp-push select { width: 100%; }
.esp-progress { margin-top: var(--s4); }
.esp-push [hidden] { display: none !important; }
@media (max-width: 860px) { .esp-grid { grid-template-columns: 1fr; } }

/* ---------- Surveillance des domaines ---------- */
.mon-form { max-width: 620px; }
.mon-table td, .mon-src td { vertical-align: middle; }
.mon-src td:last-child { min-width: 260px; }
.d-block { display: block; }
.mon-config > .dc-head { margin-top: var(--s4); }
.mon-import { margin-top: var(--s5); }
.upsell-panel { box-shadow: inset 0 0 0 2px var(--action); }
#dmarc h3 { margin: var(--s5) 0 var(--s3); font-size: 18px; }
#dmarc .kpis { margin-top: var(--s4); }
.mon-band { margin-top: var(--s6); }
.mon-h { margin: var(--s6) 0 0; }
.nowrap { white-space: nowrap; } .auto-form { margin-top: var(--s4); } .auto-form .grid-2 { gap: 0 var(--s4); }
.policy-step { display: flex; gap: var(--s3); align-items: flex-start; background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; margin-top: var(--s4); font-size: 15px; } .policy-step .stamp { flex: 0 0 auto; }

/* ---------- Nouvelle ergonomie : menu, Pro, écran Analyser, compte ---------- */
.topnav.topnav { gap: var(--s2) var(--s4); }
.nav-pro { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #EEEEFD; color: var(--action-dark); font: 700 11px/1.6 var(--text); letter-spacing: .04em; text-decoration: none; vertical-align: 2px; }
a.quota-pill { text-decoration: none; }
a.quota-pill:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E6E6FC; color: var(--ink); }
.pro-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--action); color: #fff; font: 700 12px/1.5 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.pro-tag-soft { background: #EEEEFD; color: var(--action-dark); }
.pro-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: var(--s5); }
.pro-banner p { flex: 1 1 360px; margin: 0; color: #E6E6FC; }
.pro-banner .btn { flex: 0 0 auto; }
.pro-banner form { margin: 0; }
.pro-banner-big { padding: clamp(22px, 3vw, 32px); justify-content: space-between; }
.pro-banner-big > div { flex: 1 1 420px; }
.pro-banner-big h2 { color: #fff; margin: var(--s2) 0 var(--s2); font-size: 28px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s3); }
.panel-head h2 { margin: 0; }
.next { margin-top: var(--s6); }
.next-head h2 { font-size: 28px; font-stretch: 88%; margin: 0 0 4px; }
.next-head p { margin: 0 0 var(--s4); color: var(--ink-2); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); }
.next-card { display: flex; flex-direction: column; gap: var(--s3); background: var(--sheet); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); box-shadow: 0 1px 0 var(--rule); }
.next-card h3 { margin: 0; font: 750 26px/1.15 var(--display); font-stretch: 88%; }
.next-card p { margin: 0; color: var(--ink-2); }
.next-dark { background: var(--ink); color: #fff; }
.next-dark h3 { color: #fff; }
.next-dark p, .next-dark .next-top span:last-child { color: #C9CBE0; }
.next-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 14px; color: var(--ink-2); }
.next-form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; margin-top: auto; }
.next-form .field { flex: 1 1 200px; }
.next-dark .next-form label, .dc-band-dark .next-form label { color: #fff; }
.next-actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; margin-top: auto; }
.dc-band-dark { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); flex-wrap: wrap; }
.dc-band-dark > div { flex: 1 1 420px; }
.dc-band-dark h2 { color: #fff; margin-top: var(--s2); }
.dc-band.dc-band-dark p { color: #C9CBE0; }
.dc-band-dark .next-form { flex: 1 1 340px; margin: 0; }
.acct { display: flex; flex-wrap: wrap; gap: var(--s6); align-items: flex-start; }
.acct-nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--s4); }
.acct-nav a, .acct-out { display: block; padding: 10px 14px; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; font-weight: 600; text-align: left; }
.acct-nav a:hover { background: var(--sheet); color: var(--ink); }
.acct-nav form { margin: var(--s3) 0 0; }
.acct-out.link-btn { color: var(--bad); font-weight: 600; font-size: 16px; }
.acct-main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 760px) { .acct-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
