@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* ── Tokens ───────────────────────────────────── */
:root {
  --primary:        #7c3aed;
  --primary-dark:   #6d28d9;
  --primary-mid:    #5b21b6;
  --primary-light:  #f3f0ff;
  --primary-glow:   rgba(124,58,237,.28);
  --accent:         #10d9a0;

  /* Page */
  --bg:             #ffffff;
  --bg-soft:        #f8f5ff;
  --bg-card:        #ffffff;

  /* Text */
  --text:           #1a0f35;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;

  /* Borders */
  --border:         #ede8f5;
  --border-strong:  #d6cef4;
  --border-focus:   #7c3aed;

  /* Pricing dark section */
  --dark:           #0e0924;
  --dark-mid:       #160d38;
  --dark-card:      rgba(255,255,255,.05);
  --dark-border:    rgba(255,255,255,.1);
  --dark-text:      rgba(255,255,255,.9);
  --dark-muted:     rgba(255,255,255,.45);

  /* Semantic */
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --error:   #dc2626;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(124,58,237,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(124,58,237,.08), 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 12px 40px rgba(124,58,237,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 64px rgba(124,58,237,.14), 0 8px 24px rgba(0,0,0,.07);
  --shadow-xl: 0 40px 80px rgba(124,58,237,.18), 0 16px 40px rgba(0,0,0,.08);

  /* Shape */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Font */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --t:      .2s var(--ease);
  --t-md:   .32s var(--ease);
}

/* ── Base ─────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(124,58,237,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
  letter-spacing: -.025em;
}
.logo:hover { text-decoration: none; color: var(--primary); }
.logo-icon { font-size: 1.3rem; }

.header-right { display: flex; align-items: center; gap: 16px; }
.nav { display: flex; align-items: center; gap: 18px; }

.nav-link {
  background: none; border: none; padding: 0;
  cursor: pointer; font-family: var(--font);
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  transition: color var(--t); text-decoration: none;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.btn-nav {
  background: var(--primary);
  border: none; color: #fff;
  padding: 8px 18px; border-radius: 999px;
  font-size: .875rem; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 2px 12px var(--primary-glow);
  letter-spacing: -.01em;
}
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); text-decoration: none; }

.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 9px; border-radius: 6px;
  font-size: .72rem; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: all var(--t); letter-spacing: .05em;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ══════════════════════════════════════
   HERO — Light, bold, immédiatement lisible
══════════════════════════════════════ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background: linear-gradient(145deg, #faf8ff 0%, #f2ecff 45%, #f8f5ff 100%);
  overflow: hidden;
}

/* Orbe décoratif violet — coin haut-droit */
.hero::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,58,237,.14) 0%, transparent 68%);
  top: -260px; right: -160px;
  pointer-events: none; z-index: 0;
}

/* Orbe menthe — coin bas-gauche */
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16,217,160,.1) 0%, transparent 70%);
  bottom: -120px; left: -80px;
  pointer-events: none; z-index: 0;
}

.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.2);
  color: var(--primary-dark);
  padding: 6px 16px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: .06em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.045em;
  margin-bottom: 22px;
  color: var(--text);
}

/* Le mot-clé prend le gradient violet */
.hero h1 span {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.78; font-weight: 400;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-hero {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  padding: 16px 34px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 24px var(--primary-glow), 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none; letter-spacing: -.015em;
  position: relative; overflow: hidden;
}
.btn-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px var(--primary-glow), 0 4px 16px rgba(0,0,0,.1);
  text-decoration: none; color: #fff;
}

.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 6px 22px; flex-wrap: wrap;
  margin-top: 26px;
  font-size: .8rem; color: var(--text-muted);
}
.hero-trust-item { display: flex; align-items: center; gap: 5px; }
.hero-trust-check { color: var(--success); font-weight: 800; font-size: .85rem; }
.hero-trust-sep { color: var(--border-strong); }
/* .hero-trust-sep masqué via @media 480px dans le bloc responsive */

/* ══════════════════════════════════════
   TOOL SECTION — cœur du produit, lisibilité maximale
══════════════════════════════════════ */
.tool-section {
  padding: 0 0 80px;
  background: linear-gradient(180deg, #f2ecff 0%, var(--bg-soft) 30%, var(--bg) 100%);
}

.tool-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

/* Barre supérieure violet → menthe */
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #818cf8 50%, var(--accent) 100%);
  z-index: 1;
}

.tool-inner { padding: 32px; }

.field-label {
  display: block;
  font-size: .72rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 9px;
}

.textarea-wrap { position: relative; }

/* ▼ Zone de saisie — critère numéro 1 : lisible, accueillante */
#input-text {
  width: 100%;
  min-height: 148px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem; line-height: 1.7;
  color: var(--text);
  resize: vertical; outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
#input-text:hover { border-color: var(--border-strong); }
#input-text:focus {
  border-color: var(--border-focus);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
#input-text::placeholder { color: var(--text-light); }

.char-count {
  position: absolute; bottom: 11px; right: 13px;
  font-size: .73rem; color: var(--text-light);
  pointer-events: none; transition: color var(--t);
}
.char-count.near { color: #d97706; }
.char-count.over { color: var(--error); }

.controls { display: flex; gap: 12px; margin-top: 14px; align-items: flex-end; }
.tone-wrap { flex: 1; min-width: 0; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

#tone-select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; font-weight: 500;
  color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
#tone-select:hover { border-color: var(--border-strong); }
#tone-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff; border: none;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 18px var(--primary-glow);
  min-width: 150px; letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 55%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-loader svg { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Résultat — fond vert très doux, texte sombre = lisible */
.result-section {
  margin-top: 20px;
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  animation: fadeUp .25s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.result-label { font-size: .7rem; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: .09em; }

.btn-copy {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--success-border);
  color: var(--success); padding: 5px 13px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: all var(--t); font-family: var(--font);
}
.btn-copy:hover { background: #d1fae5; transform: translateY(-1px); }
.btn-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }
.result-text { font-size: 1rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; }

/* ── Erreur */
.error-section {
  margin-top: 16px;
  background: #fef2f2; border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm); padding: 14px 18px;
  animation: fadeUp .2s var(--ease);
}
.error-section p { color: var(--error); font-size: .9rem; margin: 0; }

/* ── Limite / upgrade */
.limit-section {
  margin-top: 16px;
  background: var(--primary-light); border: 1.5px solid rgba(124,58,237,.22);
  border-radius: var(--radius-sm); padding: 20px 22px;
  text-align: center; animation: fadeUp .2s var(--ease);
}
.limit-section p { font-size: .95rem; color: var(--primary-dark); margin-bottom: 12px; font-weight: 600; }
.btn-upgrade {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff; padding: 11px 26px; border-radius: var(--radius-xs);
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); text-decoration: none; color: #fff; }

/* ══════════════════════════════════════
   SECTIONS COMMUNES
══════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ── Tons ─────────────────────────────────────── */
.tones-section { padding: 88px 0; background: var(--bg-soft); }
.tones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 10px; }
.tone-pill {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); color: var(--text);
  transition: border-color var(--t), background var(--t), transform .28s var(--spring), box-shadow var(--t);
}
.tone-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.tone-pill.active {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

/* ── Groupes de tons ──────────────────────────── */
.tones-group { margin-bottom: 32px; }
.tones-group:last-child { margin-bottom: 0; }

.tones-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.tones-group-label span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
}

/* Bloc premium — légère distinction visuelle */
.tones-group-premium-block {
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 100%);
  border: 1.5px solid rgba(202,138,4,.18);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
}
.tones-group-label-premium span {
  color: #92400e;
  background: rgba(202,138,4,.1);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(202,138,4,.25);
}
.tones-premium-cta {
  font-size: .78rem;
  font-weight: 600;
  color: #ca8a04;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t);
}
.tones-premium-cta:hover { color: #92400e; text-decoration: none; }

/* Tons premium — pill clean avec marqueur ✦ via pseudo */
.tone-pill-premium {
  background: #fff;
  border-color: rgba(202,138,4,.3);
  color: #78350f;
  position: relative;
  padding-right: 28px;
}
.tone-pill-premium::after {
  content: '✦';
  position: absolute;
  top: 5px; right: 7px;
  font-size: .55rem;
  color: #ca8a04;
  line-height: 1;
  font-style: normal;
}
.tone-pill-premium:hover {
  border-color: #ca8a04;
  background: #fffbeb;
  box-shadow: 0 4px 14px rgba(202,138,4,.16);
  color: #78350f;
}
.tone-pill-premium.active {
  border-color: #ca8a04;
  background: #fef3c7;
  color: #78350f;
  box-shadow: 0 0 0 3px rgba(202,138,4,.15);
}

/* Feature premium highlight dans la pricing card */
.plan-feature-highlight {
  color: rgba(255,255,255,.9) !important;
  font-weight: 600 !important;
}
.plan-feature-highlight::before { color: #f59e0b !important; }

/* ── Exemples avant / après ───────────────────── */
.examples-section { padding: 88px 0; background: var(--bg); }
.examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* .examples-grid responsive via @media 640px dans le bloc responsive */

.example-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.examples-grid .example-card:nth-child(even) {
  background: var(--success-bg); border-color: var(--success-border);
}
.example-card .ex-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); margin-bottom: 8px; }
.example-card .ex-tone { font-size: .75rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.example-card p { font-size: .93rem; line-height: 1.72; color: var(--text); }

/* ── Comment ça marche ────────────────────────── */
.hiw-section { padding: 88px 0; background: var(--bg-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* .steps-grid responsive via @media 640px dans le bloc responsive */

.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.2); }
.step-num {
  flex-shrink: 0; width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.step p { font-size: .92rem; color: var(--text-muted); line-height: 1.65; }
.step p strong { color: var(--text); font-weight: 700; }

/* ── Pages SEO ────────────────────────────────── */
.pages-section { padding: 88px 0; background: var(--bg); }
.pages-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; text-align: center; }
.pages-section > .container > p { text-align: center; color: var(--text-muted); margin-bottom: 36px; }
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.page-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; background: var(--bg-soft);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .84rem; color: var(--text-muted); font-weight: 500;
  transition: all var(--t); text-decoration: none;
}
.page-chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); text-decoration: none; transform: translateY(-1px); }

/* ══════════════════════════════════════
   PRICING — section sombre, moment de décision
   Contraste intentionnel : les yeux s'y arrêtent
══════════════════════════════════════ */
.pricing-section {
  padding: 100px 0; text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 115%, rgba(124,58,237,.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 40%, rgba(99,102,241,.22) 0%, transparent 60%),
    var(--dark);
  position: relative;
}

.pricing-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -.045em; margin-bottom: 10px;
  color: var(--dark-text);
}
.pricing-section > .container > p { color: var(--dark-muted); margin-bottom: 56px; font-size: 1.05rem; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 620px; margin: 0 auto; }
/* .pricing-grid responsive via @media 640px dans le bloc responsive */

.pricing-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: left; position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.pricing-card.featured {
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.1);
  box-shadow: 0 0 0 1px rgba(124,58,237,.22), 0 0 60px rgba(124,58,237,.2);
}
.pricing-card.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(124,58,237,.4), 0 0 90px rgba(124,58,237,.3);
}
.pricing-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

.plan-popular-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff; font-size: .67rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(124,58,237,.5);
}
.plan-badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.14);
  padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px;
}
.pricing-card.featured .plan-badge { color: #c4b5fd; border-color: rgba(124,58,237,.4); }

.plan-price { font-size: 2.8rem; font-weight: 900; letter-spacing: -.055em; line-height: 1; margin-bottom: 4px; color: var(--dark-text); }
.plan-price sup { font-size: .95rem; font-weight: 700; vertical-align: top; margin-top: 8px; }
.plan-period { font-size: .8rem; color: rgba(255,255,255,.3); margin-bottom: 22px; }
.pricing-card.featured .plan-period { color: rgba(196,181,253,.45); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: rgba(255,255,255,.45); }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.pricing-card.featured .plan-features li { color: rgba(255,255,255,.72); }

.btn-plan {
  display: block; width: 100%; padding: 13px;
  border-radius: var(--radius-xs); font-weight: 700; font-size: .95rem;
  text-align: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.55);
  font-family: var(--font); transition: all var(--t); text-decoration: none;
}
.btn-plan:hover { background: rgba(255,255,255,.12); color: var(--dark-text); border-color: rgba(255,255,255,.25); text-decoration: none; }
.pricing-card.featured .btn-plan {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.5);
}
.pricing-card.featured .btn-plan:hover { box-shadow: 0 8px 32px rgba(124,58,237,.65); transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-section { padding: 88px 0; background: var(--bg); }
.faq-section .section-header h2 { color: var(--text); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-soft); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: default;
}
.faq-item:hover { border-color: rgba(124,58,237,.28); transform: translateY(-2px); box-shadow: var(--shadow); }
.faq-item h3 { font-size: .98rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════════
   FOOTER — dark, continuité avec pricing
══════════════════════════════════════ */
.site-footer {
  padding: 48px 0;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
/* Logo lisible sur fond sombre */
.site-footer .logo { color: rgba(255,255,255,.85); }
.site-footer .logo:hover { color: #fff; }
.footer-tagline { color: rgba(255,255,255,.32); font-size: .88rem; margin: 10px 0 4px; }
.footer-copy { color: rgba(255,255,255,.2); font-size: .8rem; }
.footer-copy a { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-copy a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ══════════════════════════════════════
   RESPONSIVE — cascade mobile-first
══════════════════════════════════════ */

/* ── 768px — Tablette portrait ────────────────── */
@media (max-width: 768px) {
  .tones-section,
  .examples-section,
  .hiw-section,
  .pages-section,
  .faq-section        { padding: 68px 0; }
  .pricing-section    { padding: 80px 0; }

  .section-header     { margin-bottom: 38px; }

  .pricing-card       { padding: 24px 20px; }
  .step               { padding: 18px 16px; }
  .example-card       { padding: 18px; }
  .faq-item           { padding: 18px 20px; }

  .contact-card       { padding: 28px 24px; }
  .contact-wrap       { gap: 40px; }
}

/* ── 640px — Mobile paysage ───────────────────── */
@media (max-width: 640px) {
  /* Header */
  .nav   { gap: 8px; }
  .hidden-mobile { display: none; }

  /* Hero */
  .hero  { padding: 64px 0 52px; }
  /* Réduire les orbes pour libérer de l'espace */
  .hero::before {
    width: 320px; height: 320px;
    top: -130px; right: -80px;
    filter: blur(55px);
  }
  .hero::after {
    width: 220px; height: 220px;
    bottom: -70px; left: -50px;
    filter: blur(45px);
  }
  .hero-sub { font-size: 1rem; }

  /* Tool */
  .tool-section        { padding: 0 0 60px; }
  .tool-inner          { padding: 20px; }
  .controls            { flex-direction: column; }
  .btn-primary         { width: 100%; justify-content: center; min-width: 0; }
  #input-text          { min-height: 120px; }

  /* Grilles → 1 colonne */
  .examples-grid       { grid-template-columns: 1fr; }
  .steps-grid          { grid-template-columns: 1fr; }
  .pricing-grid        { grid-template-columns: 1fr; }

  /* Sections */
  .tones-section,
  .examples-section,
  .hiw-section,
  .pages-section,
  .faq-section         { padding: 56px 0; }
  .pricing-section     { padding: 68px 0; }

  .section-header      { margin-bottom: 30px; }

  /* Pricing */
  .plan-price          { font-size: 2.2rem; }

  /* Footer */
  .site-footer         { padding: 36px 0; }

  /* Contact */
  .contact-main::before { width: 280px; height: 280px; top: -100px; right: -60px; }
  .contact-main::after  { width: 180px; height: 180px; bottom: -50px; left: -40px; }
}

/* ── 480px — Mobile portrait standard ────────── */
@media (max-width: 480px) {
  /* Header */
  .logo         { font-size: 1rem; gap: 7px; }
  .logo-icon    { font-size: 1.1rem; }
  .header-right { gap: 10px; }
  .btn-nav      { padding: 7px 14px; font-size: .82rem; }
  .lang-btn     { padding: 3px 7px; font-size: .68rem; }

  /* Hero */
  .hero         { padding: 52px 0 40px; }
  .hero-sub     { font-size: .97rem; max-width: 100%; }
  .hero-badge   { font-size: .7rem; padding: 5px 13px; margin-bottom: 20px; }
  .btn-hero     { padding: 14px 26px; font-size: .97rem; }
  .hero-trust   { font-size: .78rem; gap: 4px 16px; }

  /* Sections */
  .tones-section,
  .examples-section,
  .hiw-section,
  .pages-section,
  .faq-section         { padding: 48px 0; }
  .pricing-section     { padding: 60px 0; }

  .section-header      { margin-bottom: 26px; }
  .section-header h2   { letter-spacing: -.025em; }

  /* Tool */
  .tool-inner          { padding: 16px; }
  #input-text          { min-height: 110px; padding: 13px 14px; font-size: .97rem; }
  #tone-select         { padding: 12px 38px 12px 13px; font-size: .97rem; }

  /* Cards */
  .example-card  { padding: 16px; }
  .step          { padding: 16px 14px; gap: 12px; }
  .step-num      { width: 34px; height: 34px; font-size: .85rem; border-radius: 9px; }
  .faq-item      { padding: 16px 16px; }
  .pricing-card  { padding: 20px 16px; }
  .plan-price    { font-size: 2rem; }

  /* Tones */
  .tones-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Pages */
  .pages-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* Contact */
  .contact-card        { padding: 20px 16px; }
  .contact-info h1     { letter-spacing: -.035em; }
  .contact-point-icon  { width: 34px; height: 34px; font-size: 1rem; }

  /* Hero trust sep déjà géré à 480px */
  .hero-trust-sep { display: none; }
}

/* ── 375px — iPhone SE / petit mobile ────────── */
@media (max-width: 375px) {
  .container { padding: 0 16px; }

  /* Header serré */
  .logo     { font-size: .95rem; }
  .btn-nav  { padding: 6px 12px; font-size: .78rem; }

  /* Hero compact */
  .hero           { padding: 44px 0 36px; }
  .hero::before   { width: 240px; height: 240px; }
  .hero::after    { width: 160px; height: 160px; }
  .hero-sub       { font-size: .93rem; margin-bottom: 32px; }

  /* Tool */
  .tool-inner  { padding: 14px; }
  #input-text  { min-height: 100px; padding: 12px 13px; }

  /* Grilles encore plus petites */
  .tones-grid { grid-template-columns: repeat(2, 1fr); }
  .pages-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* Pricing */
  .plan-price  { font-size: 1.9rem; }

  /* Contact */
  .contact-card { padding: 18px 14px; }

  /* FAQ */
  .faq-item { padding: 14px 14px; }
}

/* ══════════════════════════════════════
   ADS
══════════════════════════════════════ */

/* Native Banner wrapper */
.ad-native-wrap {
  padding: 20px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-native-wrap .ad-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  margin-bottom: 6px;
}

/* Le container Adsterra est centré et limité en largeur */
#container-aa75058e6102880765bfa850b68989c7 {
  max-width: 728px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

/* Smart link footer */
.ad-smartlink {
  margin-top: 10px;
  text-align: center;
}

.ad-smartlink-anchor {
  font-size: .72rem;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color var(--t);
}

.ad-smartlink-anchor:hover {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
}

/* Espace réservé en bas de page pour la Social Bar (~60px) */
body.ads-social-bar {
  padding-bottom: 60px;
}

/* Feature "sans pub" dans la pricing card premium */
.plan-feature-noads { color: #86efac !important; font-weight: 600 !important; }

/* Responsive ads */
@media (max-width: 768px) {
  #container-aa75058e6102880765bfa850b68989c7 {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body.ads-social-bar {
    padding-bottom: 80px;
  }
  .ad-native-wrap { padding: 14px 0; }
}

/* ══════════════════════════════════════
   NAV AUTH AREA
══════════════════════════════════════ */
.nav-user { font-size: .82rem; color: var(--text-muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { font-size: .75rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.nav-badge.premium { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--dark-mid); color: var(--dark-text);
  border: 1px solid rgba(124,58,237,.25);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 9999; animation: toastIn .3s var(--spring);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(14,9,36,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; backdrop-filter: blur(10px);
}
.modal-card {
  background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(124,58,237,.1);
  width: 100%; max-width: 420px; padding: 36px 30px 30px;
  position: relative; animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.1rem;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: background var(--t);
}
.modal-close:hover { background: var(--bg-soft); }
.modal-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.modal-tab {
  flex: 1; background: none; border: none; padding: 10px;
  font-size: .95rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--t), border-color var(--t); font-family: var(--font);
}
.modal-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input[type="email"],
.modal-form input[type="password"] {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--text); background: var(--bg);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.modal-form input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.modal-card .btn-primary { box-shadow: 0 4px 16px var(--primary-glow); }
.modal-card .btn-primary:hover { box-shadow: 0 8px 24px var(--primary-glow); }
.full-width { width: 100%; justify-content: center; }
.auth-note { text-align: center; font-size: .8rem; color: var(--text-light); margin-top: 2px; }
.auth-hint { font-size: .88rem; color: var(--text-muted); margin-bottom: 4px; }
.auth-link { text-align: center; font-size: .85rem; color: var(--primary); display: block; }
.auth-error { padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-xs); color: var(--error); font-size: .88rem; margin-top: 8px; }
.auth-success { padding: 10px 14px; background: var(--success-bg); border: 1px solid var(--success-border); border-radius: var(--radius-xs); color: var(--success); font-size: .88rem; margin-top: 8px; }

/* ══════════════════════════════════════
   ACCOUNT PAGE
══════════════════════════════════════ */
.account-main { padding: 48px 0 80px; }
.account-h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 28px; }
.account-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }

/* ══════════════════════════════════════
   SEO PAGES (/rewrite-*)
══════════════════════════════════════ */
.seo-hero { padding: 52px 0 40px; background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 100%); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.seo-h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.seo-intro { font-size: 1rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }
.how-to { padding: 50px 0; background: var(--bg-soft); }
.how-to h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -.02em; }
.related-section { padding: 50px 0; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: var(--text);
  transition: all var(--t); text-decoration: none;
}
.related-link:hover { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; color: var(--primary-dark); }
.related-emoji { font-size: 1.1rem; }

/* ══════════════════════════════════════
   ACCESSIBILITÉ
══════════════════════════════════════ */

/* Skip link — visible uniquement au focus clavier */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Focus clavier visible sur tous les éléments interactifs */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Les inputs ont déjà leur propre focus (border + box-shadow) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: none; }
/* Focus programmatique (tabindex="-1") : pas de ring visible */
[tabindex="-1"]:focus { outline: none; }

/* Visually hidden — accessible aux lecteurs d'écran uniquement */
.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;
}

/* Respect des préférences de 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;
  }
}
