/* ══════════════════════════════════════════════════════════════════════
   Charte des outils TL;DR SEO — commune à High Five, Header Hunter, Schema Praetor
   Reprise de l'extension Heimdall et du site tldr-seo.fr :
   titres Outfit, texte DM Sans, violet #550073, Cloud #fafafc, sombre #1f1530.
   Thème posé sur <html data-theme> par theme.js. Ne pas mettre de styles
   propres à un outil ici : ils vont dans le style.css de l'outil.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-text:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Cascadia Mono', 'Consolas', 'Menlo', monospace;

  --violet:      #550073;
  --violet-nuit: #250033;
  --lavande:     #e4b8f4;
  --sombre:      #1f1530;
  --or:          #f2c46d;   /* l'or des illustrations, en touche seulement */

  --bg:      #fafafc;   /* Cloud */
  --bg2:     #ffffff;   /* cartes */
  --bg3:     #f5eff8;   /* fonds discrets, survols */
  --border:  #e6dcec;
  --text:    #250033;
  --dim:     #6b5a78;
  --accent:  #550073;
  --link:    #550073;
  --green:   #15803d;
  --orange:  #c2410c;
  --red:     #b91c1c;
  --blue:    #1d4ed8;
  --shadow:  rgba(37,0,51,.10);

  --ok-bg:   #dcfce7; --ok-fg:   #14532d;
  --warn-bg: #ffedd5; --warn-fg: #7c2d12;
  --err-bg:  #fee2e2; --err-fg:  #7f1d1d;
  --info-bg: #f3e8ff; --info-fg: #4a0066;
  --mute-bg: #f1edf4; --mute-fg: #4b3d57;

  --bar-bg:   #ffffff;
  --bar-fg:   #550073;
  --bar-dim:  #6b5a78;
  --bar-line: #e6dcec;
  --field:    #ffffff;

  /* Bouton principal : violet sur fond clair, survol contour violet */
  --cta-bg:       #550073;
  --cta-fg:       #ffffff;
  --cta-hover-bg: #ffffff;
  --cta-hover-fg: #550073;

  --r:  10px;
  --r-lg: 16px;
  --wrap: 1140px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:      #1f1530;
  --bg2:     #281c3d;
  --bg3:     #322449;
  --border:  #3e2c5a;
  --text:    #f3ecf8;
  --dim:     #b5a4c7;
  --accent:  #e4b8f4;
  --link:    #e4b8f4;
  --green:   #5ee08f;
  --orange:  #ffa25c;
  --red:     #ff7a7a;
  --blue:    #8ab4ff;
  --shadow:  rgba(0,0,0,.45);

  --ok-bg:   rgba(94,224,143,.14);  --ok-fg:   #8af0b0;
  --warn-bg: rgba(255,162,92,.15);  --warn-fg: #ffc28f;
  --err-bg:  rgba(255,122,122,.15); --err-fg:  #ffa3a3;
  --info-bg: rgba(228,184,244,.16); --info-fg: #f0d4fa;
  --mute-bg: rgba(255,255,255,.07); --mute-fg: #d6c9e3;

  --bar-bg:   #1f1530;
  --bar-fg:   #ffffff;
  --bar-dim:  #b5a4c7;
  --bar-line: #3e2c5a;
  --field:    #1f1530;

  /* Sur fond sombre : bouton blanc, survol violet */
  --cta-bg:       #ffffff;
  --cta-fg:       #550073;
  --cta-hover-bg: #550073;
  --cta-hover-fg: #ffffff;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--link); }
code { font-family: var(--font-mono); font-size: .88em; background: var(--bg3); padding: .08em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tt-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ── Barre du haut : nom de l'outil, « by TL;DR SEO », thème ───────────── */
.tt-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bar-bg); color: var(--bar-fg);
  border-bottom: 1px solid var(--bar-line);
}
.tt-bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; min-height: 58px;
}
.tt-bar.wide .tt-bar-in { max-width: none; }
.tt-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex: none; }
.tt-brand-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bar-fg);
}
.tt-brand-tag {
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bar-fg);
  background: var(--bg3); border: 1px solid var(--bar-line);
  border-radius: 7px; padding: 1px 7px;
}
.tt-by {
  font-size: 13px; font-weight: 500; color: var(--bar-dim);
  text-decoration: none; white-space: nowrap;
}
.tt-by:hover { color: var(--bar-fg); text-decoration: underline; }
.tt-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.theme-btn {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--bar-line);
  color: var(--bar-fg); cursor: pointer; transition: background .15s, border-color .15s;
}
.theme-btn:hover { border-color: var(--accent); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ── Bandeau illustré de l'écran d'accueil ─────────────────────────────── */
/* L'image est passée en variable : style="--hero: url(images/…webp)" */
.tt-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--sombre) var(--hero) center / cover no-repeat;
}
.tt-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31,21,48,.94) 0%, rgba(31,21,48,.82) 38%, rgba(31,21,48,.25) 70%, rgba(31,21,48,0) 100%);
}
.tt-hero-in {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: 72px 20px 80px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
}
.tt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--lavande);
}
.tt-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--or); border-radius: 2px; }
.tt-hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; color: #fff; }
.tt-hero .tt-lead { max-width: 520px; font-size: 17px; color: rgba(255,255,255,.88); }
.tt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.tt-limits { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); }
.tt-limits span::before { content: '✓'; color: var(--or); font-weight: 700; margin-right: 6px; }
/* Grand écran : l'illustration entière à droite, le texte sur le fond sombre à gauche */
@media (min-width: 1000px) {
  .tt-hero { background-size: auto 100%; background-position: right center; }
  .tt-hero::before {
    background: linear-gradient(90deg, var(--sombre) 0%, var(--sombre) calc(100% - 860px), rgba(31,21,48,.55) calc(100% - 700px), rgba(31,21,48,0) calc(100% - 520px));
  }
  .tt-hero-in { min-height: 480px; }
}
@media (max-width: 760px) {
  .tt-hero::before { background: linear-gradient(180deg, rgba(31,21,48,.55) 0%, rgba(31,21,48,.92) 55%); }
  .tt-hero-in { padding: 140px 20px 48px; min-height: 0; }
}

/* ── Sections et cartes ────────────────────────────────────────────────── */
.tt-section { padding: 56px 0; }
.tt-section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tt-section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.tt-section .tt-intro { color: var(--dim); max-width: 680px; margin-bottom: 28px; }
.tt-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: 0 1px 2px var(--shadow);
}
.tt-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none;
  background: var(--cta-bg); color: var(--cta-fg); border: 1.5px solid var(--cta-bg);
  transition: background .15s, color .15s, border-color .15s;
}
.tt-btn:hover:not(:disabled) { background: var(--cta-hover-bg); color: var(--cta-hover-fg); border-color: var(--violet); }
:root[data-theme="dark"] .tt-btn:hover:not(:disabled) { border-color: var(--violet); }
.tt-btn:disabled { opacity: .5; cursor: not-allowed; }
.tt-btn svg { width: 17px; height: 17px; flex: none; }
.tt-btn.sm { font-size: 13px; padding: 9px 14px; }
/* Secondaire : contour */
.tt-btn.ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.tt-btn.ghost:hover:not(:disabled) { background: var(--bg3); color: var(--accent); border-color: var(--accent); }
/* Arrêt */
.tt-btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.tt-btn.danger:hover:not(:disabled) { background: transparent; color: var(--red); border-color: var(--red); }
/* Sur le bandeau sombre : blanc, survol violet (règle du site) */
.tt-hero .tt-btn { background: #fff; color: var(--violet); border-color: #fff; }
.tt-hero .tt-btn:hover:not(:disabled) { background: var(--violet); color: #fff; border-color: var(--violet); }
.tt-hero .tt-btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.tt-hero .tt-btn.ghost:hover:not(:disabled) { background: var(--violet); border-color: var(--violet); }

/* ── Champs ────────────────────────────────────────────────────────────── */
.tt-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
}
.tt-input, .tt-select, .tt-textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: var(--field); border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 12px; outline: none; transition: border-color .15s;
}
.tt-textarea { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; resize: vertical; min-height: 200px; }
.tt-input:focus, .tt-select:focus, .tt-textarea:focus { border-color: var(--accent); }
.tt-input::placeholder, .tt-textarea::placeholder { color: var(--dim); opacity: .8; }
.tt-hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.tt-hint.ok { color: var(--green); font-weight: 600; }
.tt-hint.err { color: var(--red); font-weight: 600; }

/* ── Fenêtres ──────────────────────────────────────────────────────────── */
.tt-overlay {
  position: fixed; inset: 0; z-index: 300; padding: 16px;
  background: rgba(31,21,48,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.tt-modal {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 28px;
}
.tt-modal h2 { font-size: 22px; margin-bottom: 18px; padding-right: 32px; }
.tt-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--dim); font-size: 18px; cursor: pointer;
}
.tt-close:hover { background: var(--bg3); color: var(--text); }
.tt-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ── Pastilles de statut ───────────────────────────────────────────────── */
.tt-badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.tt-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.tt-badge.ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.tt-badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tt-badge.err  { background: var(--err-bg);  color: var(--err-fg); }
.tt-badge.info { background: var(--info-bg); color: var(--info-fg); }
.tt-badge.mute { background: var(--mute-bg); color: var(--mute-fg); }

/* ── Pied de page ──────────────────────────────────────────────────────── */
.tt-foot { border-top: 1px solid var(--border); background: var(--bg2); }
.tt-foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--dim);
}
.tt-foot a { color: var(--accent); font-weight: 600; }

/* ── Bandeau d'appel (audit complet) ───────────────────────────────────── */
.tt-cta-band {
  background: var(--violet); color: #fff; border-radius: var(--r-lg);
  padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.tt-cta-band h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.tt-cta-band p { color: rgba(255,255,255,.85); max-width: 560px; }
.tt-cta-band .tt-btn { background: #fff; color: var(--violet); border-color: #fff; }
.tt-cta-band .tt-btn:hover { background: var(--sombre); color: #fff; border-color: var(--sombre); }
:root[data-theme="dark"] .tt-cta-band { background: var(--bg2); border: 1px solid var(--border); }
:root[data-theme="dark"] .tt-cta-band .tt-btn:hover { background: var(--violet); border-color: var(--violet); }

@media (max-width: 560px) {
  .tt-by { display: none; }
  .tt-modal { padding: 22px 18px; }
  .tt-cta-band { padding: 24px 20px; }
}

/* Couronne dorée devant le mot VIP (un peu penchée) */
.vip-crown {
  display: inline-block; width: 1.15em; height: .85em; margin-right: .3em; vertical-align: -.08em;
  transform: none;   /* droite dans les outils (penchée seulement sur la page VIP du site) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M3 7l5.5 4.5L13 3l4.5 8.5L23 7l-2 10H5z' fill='%23f2c46d' stroke='%23b8862b' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='3' cy='6' r='2' fill='%23f2c46d' stroke='%23b8862b' stroke-width='1.1'/%3E%3Ccircle cx='13' cy='2.4' r='2' fill='%23f2c46d' stroke='%23b8862b' stroke-width='1.1'/%3E%3Ccircle cx='23' cy='6' r='2' fill='%23f2c46d' stroke='%23b8862b' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tt-btn .vip-crown { margin-right: 0; }   /* le bouton a déjà son propre écart */

/* Bloc sous le formulaire : limites, ligne VIP, note sur la file d'attente.
   Lignes rapprochées entre elles, bloc détaché du formulaire. */
.tt-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.tt-meta .tt-access { margin: 0; }

/* ── Retouches du 24/10/2026 ── */
/* Surtitre du bandeau : blanc atténué (le lavande et le trait or détonnaient) */
.tt-eyebrow { color: rgba(255,255,255,.72); }
.tt-eyebrow::before { background: rgba(255,255,255,.45); }
/* Badge « Beta » à côté du titre de l'outil */
.tt-beta {
  display: inline-block; vertical-align: super; margin-left: .35em;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sombre); background: var(--or); border-radius: 7px; padding: 3px 8px; line-height: 1.2;
}
/* Icône dans la pastille de la barre (High Five : chaîne) */
.tt-brand-ico { width: 13px; height: 13px; display: block; }
.tt-brand-tag:has(.tt-brand-ico) { padding: 2px 6px; }
/* Boutons secondaires : survol sans contour violet */
.tt-btn.ghost:hover:not(:disabled) { border-color: var(--border); }
/* Bandeau d'appel : sombre du site en thème clair (le violet détonnait), bouton blanc, survol violet */
.tt-cta-band { background: var(--sombre); }
.tt-cta-band .tt-btn:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
/* Lien « Request VIP access » sous les limites */
.tt-meta .tt-vip-ask a { color: #fff; font-weight: 600; }
.tt-alt-hint { font-size: 13px; color: rgba(255,255,255,.65); margin-top: -4px; }

/* VIP : libellé en tête de la ligne des limites (couronne au lieu de la coche) */
.tt-limits .tt-limits-vip { color: var(--or); font-weight: 700; }
.tt-limits .tt-limits-vip::before { content: none; }
.tt-limits .vip-crown::before { content: none; }   /* pas de coche devant la couronne */
