/* ═══════════════════════════════════════════════════════════════════════
   Outils Malins — direction « Atelier de précision »

   L'idée : le site est une planche d'instruments. Chaque outil est un
   appareil étiqueté, et chaque résultat s'affiche sur un panneau de
   lecture sombre à chiffres or — l'élément signature, présent sur les
   13 outils, qui rend le site reconnaissable d'une page à l'autre.

   L'or est la couleur du marque-page : on la retrouve dans le logo, dans
   les résultats et dans l'invitation à mettre le site en favoris.
   Elle ne sert JAMAIS de couleur de texte sur fond clair (1,8:1) —
   uniquement en aplat sous du texte encre, ou en chiffres sur l'encre.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* — surfaces — papier froid, volontairement pas un crème chaud — */
  --paper: #edf0ee;
  --paper-2: #e3e8e5;
  --surface: #ffffff;

  /* — encre — */
  --ink: #16201e;
  --ink-2: #3b4a47;
  --ink-3: #6b7got;          /* corrigé plus bas, voir --muted */
  --muted: #6b7a76;
  --line: #d4dbd8;
  --line-strong: #b9c4c0;

  /* — couleurs porteuses — */
  --petrol: #0c6b60;
  --petrol-dark: #095349;
  --petrol-light: #e3f0ed;
  --gold: #f2b705;
  --gold-dark: #c89400;
  --gold-light: #fdf3d6;

  /* — typographie — */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --readout: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --font-serif: var(--display); /* compat : anciens styles en ligne */

  /* — rythme — */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgb(22 32 30 / 0.06), 0 1px 1px rgb(22 32 30 / 0.04);
  --shadow-md: 0 4px 14px rgb(22 32 30 / 0.08), 0 1px 3px rgb(22 32 30 / 0.06);
  --shadow-lg: 0 18px 40px rgb(22 32 30 / 0.14);
  --shadow-ink: 0 10px 30px rgb(22 32 30 / 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── socle ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 var(--s4); }
a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--petrol-dark); }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 700; }
code {
  font-family: var(--readout);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: var(--r-sm);
}
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* ── mise en page ──────────────────────────────────────────────────── */
.wrap { max-width: 1180px; width: 100%; margin: 0 auto; padding-inline: var(--s5); }
.wrap-narrow { max-width: 780px; width: 100%; margin: 0 auto; padding-inline: var(--s5); }
main.wrap, .tool-main { flex: 1; padding-bottom: var(--s8); }

/* ── barre de navigation ───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
/* Le marque-page doré : signe distinctif du site, repris dans le favicon */
.brand-badge {
  width: 30px;
  height: 36px;
  flex: none;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  transition: transform 0.25s var(--ease);
}
.nav-brand:hover .brand-badge { transform: translateY(-2px); }
.brand-est {
  font-family: var(--readout);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  align-self: center;
  padding-left: var(--s1);
}
.nav-links {
  display: flex;
  gap: var(--s2);
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links > a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: var(--s3);
  border-radius: var(--r-md);
}
.nav-links > a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }

/* ── boutons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid transparent;
  padding: var(--s3) var(--s5);
  min-height: 46px;
  border-radius: var(--r-md);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-2); background: var(--surface); }
.btn-ghost { color: var(--petrol); padding-inline: var(--s3); font-weight: 600; }
.btn-ghost:hover { background: var(--petrol-light); }
/* Bouton doré : réservé à l'action « mettre en favoris » */
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--ink); }

/* ── formulaires ───────────────────────────────────────────────────── */
.field > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  caret-color: var(--petrol);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input:hover { border-color: var(--ink-2); }
.input:focus-visible {
  border-color: var(--petrol);
  outline: none;
  box-shadow: 0 0 0 3px rgb(12 107 96 / 0.16);
}
/* Les champs numériques adoptent la fonte de lecture */
.input[inputmode="decimal"], .input[inputmode="numeric"], .input[type="number"], .input[type="date"] {
  font-family: var(--readout);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
textarea.input {
  min-height: 150px;
  resize: vertical;
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
}
select.input {
  appearance: none;
  font-family: var(--body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b4a47' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
  padding-right: var(--s6);
}
input[type="range"] { accent-color: var(--petrol); width: 100%; height: 44px; }
input[type="checkbox"] { accent-color: var(--petrol); width: 18px; height: 18px; }

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.seg-opt {
  display: inline-flex;
  align-items: center;
  padding: var(--s3) var(--s4);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.seg-opt:not(:has(input:checked)):hover { border-color: var(--ink-2); }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 2px; }

.check {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
}

/* ── cartes ────────────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card-kicker {
  font-family: var(--readout);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol);
}
.card-kicker.alt { color: var(--gold-dark); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -0.015em; }
.card-body { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1; }
.card-meta { font-size: 14px; color: var(--muted); }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }

/* ── étiquettes ────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  font-weight: 600;
  padding: var(--s2) var(--s4);
  min-height: 40px;
  border-radius: var(--r-md);
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.tag:hover { border-color: var(--petrol); color: var(--petrol); transform: translateY(-1px); }
.tag-outline { border-color: var(--line-strong); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ── en-tête de page ───────────────────────────────────────────────── */
.kicker {
  font-family: var(--readout);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
}
.kicker.alt { color: var(--gold-dark); }

.hero { padding: var(--s8) 0 var(--s6); }
.hero-inner { max-width: 720px; }
.hero h1 { margin-top: var(--s4); font-size: clamp(36px, 6.5vw, 62px); letter-spacing: -0.035em; }
.hero .lead {
  font-family: var(--body);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
  color: var(--ink-2);
  font-style: normal;
}
/* Bandeau d'arguments sous le titre */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-facts svg { color: var(--petrol); flex: none; }

/* Masqué visuellement mais lu par les lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── barre « décrivez votre calcul » ───────────────────────────────── */
.ask {
  margin-top: var(--s6);
  max-width: 640px;
}
.ask-row {
  display: flex;
  gap: var(--s3);
  align-items: stretch;
}
.ask-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.ask-field:focus-within {
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgb(12 107 96 / 0.16);
}
.ask-field svg { flex: none; margin-left: var(--s4); color: var(--muted); }
.ask-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: var(--s3) var(--s4);
  min-height: 52px;
}
.ask-field input:focus { outline: none; }
.ask-field input::placeholder { color: var(--muted); font-weight: 400; }
.ask-row .btn { flex: none; min-height: 52px; }
.ask-hint {
  margin: var(--s3) 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 21px;
}
.ask-hint.ok { color: var(--petrol-dark); }
.ask-hint.ok strong { color: var(--ink); }
.ask-hint.ko { color: var(--ink-2); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.section-head h2 { margin: 0; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); min-width: 20px; }
.section-head .count {
  font-family: var(--readout);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* ── grille d'outils ───────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: var(--s4);
}
a.card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
/* Filet doré qui se déploie au survol : le seul ornement de la carte */
a.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
a.card:hover::after { transform: scaleX(1); }
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  flex: none;
  background: var(--petrol-light);
  color: var(--petrol);
  display: grid;
  place-items: center;
}
.tool-icon.alt { background: var(--gold-light); color: var(--gold-dark); }

.divider { height: 1px; background: var(--line); border: 0; margin: var(--s8) 0 var(--s6); }

/* ── page outil ────────────────────────────────────────────────────── */
.tool-main { padding-top: var(--s5); }
.tool-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  margin-top: var(--s4);
  margin-bottom: var(--s2);
  flex-wrap: wrap;
}
.tool-head h1 { margin: 0; }
.tool-head .rule { flex: 1; height: 1px; background: var(--line); min-width: 20px; }
.tool-head .cat {
  font-family: var(--readout);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol);
  white-space: nowrap;
}
.tool-card { margin-top: var(--s5); gap: var(--s5); }

/* ══ LE PANNEAU DE LECTURE — élément signature du site ══════════════ */
.result-card {
  margin-top: var(--s4);
  background: var(--ink);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-ink);
  position: relative;
  overflow: hidden;
}
/* liseré doré supérieur, comme le biseau d'un cadran */
.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark) 60%, transparent);
}
.result-card .card-kicker,
.result-card .kicker { color: var(--gold); }
.result-card .card-meta { color: #9fb0ac; }
.result-card a { color: var(--gold); }
.result-row { display: flex; gap: var(--s6); flex-wrap: wrap; }
.result-label {
  font-family: var(--readout);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa19d;
  margin-bottom: var(--s1);
}
.result-value {
  font-family: var(--readout);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--surface);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.result-value.accent { color: var(--gold); }
.result-big {
  font-family: var(--readout);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 5vw, 40px);
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.result-note {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: #cfdad7;
  font-style: normal;
}

.explain {
  font-family: var(--body);
  font-size: 15px;
  font-style: normal;
  line-height: 1.65;
  margin-top: var(--s4);
  padding: var(--s4) var(--s5);
  color: var(--ink-2);
  background: var(--petrol-light);
  border-radius: var(--r-md);
  border-left: 3px solid var(--petrol);
}

.row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }
.row.end { align-items: flex-end; }

/* ── boîte à outils : le levier de rétention sur chaque page ───────── */
.toolbox { margin-top: var(--s8); }
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.toolbox-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  min-height: 52px;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.toolbox-item:hover { border-color: var(--petrol); color: var(--petrol); transform: translateY(-2px); }
.toolbox-item[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.toolbox-item svg { flex: none; color: var(--petrol); }
.toolbox-item[aria-current="page"] svg { color: var(--gold); }
.toolbox-item:hover svg { color: inherit; }

.related { margin-top: var(--s6); }
.related .kicker { display: block; margin-bottom: var(--s3); }

/* ── invitation aux favoris ────────────────────────────────────────── */
.bookmark-bar {
  position: fixed;
  left: var(--s4);
  right: var(--s4);
  bottom: var(--s4);
  z-index: 60;
  margin-inline: auto;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: bookmark-in 0.4s var(--ease) both;
}
@keyframes bookmark-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.bookmark-bar .bm-mark { flex: none; color: var(--gold); }
.bookmark-bar p { margin: 0; font-size: 15px; line-height: 1.4; }
.bookmark-bar strong { color: var(--gold); }
.bookmark-bar kbd {
  font-family: var(--readout);
  font-size: 12px;
  font-weight: 700;
  background: #2c3b38;
  border: 1px solid #445451;
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  padding: 2px 6px;
  color: var(--surface);
  white-space: nowrap;
}
.bookmark-bar .bm-close {
  margin-left: auto;
  flex: none;
  background: transparent;
  border: none;
  color: #9fb0ac;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
}
.bookmark-bar .bm-close:hover { background: #2c3b38; color: var(--surface); }

/* rappel discret en pied de page outil */
.keepsake {
  margin-top: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--gold-light);
  border: 1px solid #efdba6;
  border-radius: var(--r-lg);
}
.keepsake svg { flex: none; color: var(--gold-dark); }
.keepsake p { margin: 0; font-size: 15px; color: var(--ink-2); }
.keepsake strong { color: var(--ink); }

/* ── historique / visiteur connu ───────────────────────────────────── */
.greet {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
}
.greet-title { font-weight: 700; font-size: 15px; margin: 0; }
.greet .chips { margin-left: auto; }

/* ── contenu rédactionnel ──────────────────────────────────────────── */
.seo-text { margin-top: var(--s8); max-width: 68ch; }
.seo-text h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.seo-text h3 { font-size: 18px; margin-top: var(--s5); color: var(--ink); }
.seo-text p, .seo-text li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.seo-text ul { padding-left: var(--s5); margin: 0 0 var(--s4); }
.seo-text li { margin-bottom: var(--s2); }
.seo-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.seo-text th {
  text-align: left;
  font-family: var(--readout);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.seo-text td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.seo-text tr:last-child td { border-bottom: none; }

/* ── encarts d'accueil ─────────────────────────────────────────────── */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.info-cards .card.green { background: var(--petrol-light); border-color: #c5ded9; }

/* ── statistiques (compteur de mots) ───────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s4); }
.stat { text-align: center; }
.stat .value {
  font-family: var(--readout);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--gold);
  line-height: 1.1;
}
.stat .label {
  font-family: var(--readout);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa19d;
  margin-top: var(--s1);
}

/* ── éléments spécifiques ──────────────────────────────────────────── */
.password-output {
  font-family: var(--readout);
  font-weight: 500;
  font-size: clamp(15px, 2.6vw, 20px);
  background: var(--ink);
  color: var(--gold);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  overflow-wrap: anywhere;
  min-height: 56px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.color-preview { height: 120px; border-radius: var(--r-md); border: 1px solid var(--line-strong); }
.timer-display {
  font-family: var(--readout);
  font-weight: 700;
  font-size: clamp(60px, 14vw, 104px);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.timer-display.done { color: var(--gold-dark); }

/* ── publicité ─────────────────────────────────────────────────────── */
.ad-slot { display: none; margin: var(--s6) 0; max-width: 100%; overflow: hidden; }
.ad-slot.on { display: block; }
/* L'emplacement ne se déploie QUE si une annonce a réellement été servie.
   AdSense marque alors l'encart « filled ». Tant que le compte est en
   attente d'approbation — ou si la requête n'aboutit pas, auquel cas
   l'attribut reste absent — le bloc reste replié : jamais de trou de
   280 px dans la page. Spécificité (0,2,1) : passe devant .ad-slot.on. */
.ad-slot:not(:has(ins[data-ad-status="filled"])) { display: none; }
.ad-slot ins.adsbygoogle { display: block !important; width: 100%; max-width: 100%; }
.ad-slot iframe { max-width: 100% !important; }

/* ── pied de page ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #cfdad7;
  margin-top: var(--s8);
}
.site-footer-inner { padding-block: var(--s7); display: flex; flex-direction: column; gap: var(--s5); }
.footer-links {
  display: flex;
  gap: var(--s5);
  align-items: center;
  font-size: 15px;
  flex-wrap: wrap;
}
.footer-links .footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--surface);
  letter-spacing: -0.02em;
}
.footer-links a { color: #cfdad7; text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-links .copyright {
  margin-left: auto;
  font-family: var(--readout);
  font-size: 12px;
  color: #8fa19d;
}

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding-inline: var(--s4); }
  .hero { padding: var(--s6) 0 var(--s5); }
  .result-row { gap: var(--s5); }
  .footer-links { gap: var(--s4); }
  .footer-links .copyright { margin-left: 0; width: 100%; }
  .greet .chips { margin-left: 0; width: 100%; }
  .bookmark-bar { left: var(--s3); right: var(--s3); bottom: var(--s3); padding: var(--s4); gap: var(--s3); }
  .bookmark-bar p { font-size: 14px; }
}
@media (max-width: 480px) {
  .brand-est { display: none; }
  .toolbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ── mouvement réduit ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  a.card:hover { transform: none; }
}
