/* Trendevio — design system.
   Inspiré de l'esthétique SaaS claire de la référence (fonds très clairs, bleu vif, bordures fines,
   coins arrondis, grands titres centrés). Aucune image ni aucun texte de la référence n'est réutilisé. */
:root {
  --bg: #fcfcfc;
  --bg-soft: #f5f5f5;
  --surface: #ffffff;
  --text: #121212;
  --muted: #5f6368;
  --border: #e8e8e9;
  --accent: #126dfb;
  --accent-hover: #0765e8;
  --accent-soft: #e1eaf8;
  /* Échelle d'élévation et d'espacement (cohérence des ombres et des marges) */
  --elev-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --elev-2: 0 8px 24px rgba(16, 24, 40, 0.07);
  --elev-3: 0 18px 44px rgba(18, 109, 251, 0.14);
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-12: 48px;
  --accent-ink: #0b57d0; /* bleu du texte : contraste ≥ 4,5:1 sur fond clair ou teinté (le bleu vif reste pour les fonds et boutons) */
  --accent-text: #ffffff;
  --good: #1f8a4c;
  --bad: #d93025;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  color-scheme: light; /* thème clair forcé, quel que soit le réglage de l'appareil */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
nav { display: flex; align-items: center; gap: 8px; font-size: 15px; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }

/* ---------- Boutons et champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text);
  cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--bg-soft); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.btn.large { padding: 14px 26px; font-size: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

label.field { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; color: var(--muted); gap: 6px; }
select, input[type='email'], input[type='password'] {
  font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); min-width: 160px;
}
select:focus, input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 56px; background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--muted);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 20px auto 16px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
.eyebrow { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.block h2.big { text-align: center; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 10px; }
.block .lead { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.lead { color: var(--muted); margin: 0 0 20px; }
h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 6px; }
.section-title { margin: 32px 0 12px; font-size: 20px; letter-spacing: -0.02em; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Tableau de bord ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.row { display: flex; align-items: flex-start; gap: 16px; }
.score {
  min-width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; background: var(--accent-soft); color: var(--accent-ink);
}
.title { font-weight: 600; margin: 0; word-break: break-word; letter-spacing: -0.01em; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; align-items: center; }
.chip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
details { margin-top: 10px; font-size: 14px; }
summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.bars { display: grid; gap: 8px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bar .track { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.empty, .notice { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.error { color: var(--bad); font-size: 14px; min-height: 20px; }
.ok { color: var(--good); font-size: 14px; }

/* ---------- Newsletter ---------- */
.news {
  background: var(--accent-soft); color: var(--text); border: 1px solid #cfdcf3; border-radius: 28px; padding: 48px 24px; text-align: center;
}
.news h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.03em; }
.news p { margin: 0 auto 24px; max-width: 480px; color: var(--muted); }
.news form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.news input[type='email'] { min-width: 260px; border-radius: 999px; padding: 13px 18px; background: var(--surface); color: var(--text); }
.news .ok { color: var(--good); font-weight: 500; }
.news .error { color: var(--bad); }

/* ---------- Pages compte / connexion ---------- */
main.narrow { max-width: 520px; padding: 48px 20px 64px; margin: 0 auto; }
main.narrow .panel { padding: 28px; }
form.stack { display: grid; gap: 14px; }
form.stack input, form.stack select { width: 100%; }
.check { display: flex; gap: 8px; align-items: center; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }

@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section.block { padding: 40px 0; }
  .panel { padding: 16px; border-radius: 20px; }
  .bar { grid-template-columns: 80px 1fr 36px; }
}

/* ---------- Téléphone ---------- */
.btn { white-space: nowrap; min-height: 44px; }
select, input[type='email'], input[type='password'] { font-size: 16px; } /* évite le zoom automatique d'iOS */
summary { padding: 11px 0; }
.brand { min-height: 44px; }
nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }

  /* En-tête compact : logo + deux actions sur une seule ligne */
  header.top .wrap { height: 60px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  nav { gap: 2px; font-size: 14px; }
  nav a:not(.btn) { padding: 8px 10px; }
  nav .btn { padding: 8px 14px; font-size: 14px; min-height: 40px; }

  /* Hero : boutons pleine largeur, faciles à toucher */
  .hero { padding: 36px 0 32px; }
  .hero h1 { margin: 16px auto 12px; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
  .cta-row .btn { width: 100%; }

  .eyebrow { font-size: 12px; }
  .block .lead { margin-bottom: 24px; }
  .feature { padding: 20px; }

  /* Tableau de bord */
  .panel { padding: 14px; border-radius: 18px; }
  .tabs { display: flex; width: 100%; margin-bottom: 14px; }
  .tab { flex: 1; padding: 10px 4px; font-size: 13px; text-align: center; }
  .filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .filters select, label.field select { width: 100%; min-width: 0; }
  .card { padding: 14px; }
  .row { gap: 12px; }
  .score { min-width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
  .meta { gap: 6px 8px; }
  .section-title { font-size: 18px; margin: 24px 0 10px; }

  /* Newsletter */
  .news { padding: 32px 18px; border-radius: 22px; }
  .news form { flex-direction: column; align-items: stretch; }
  .news input[type='email'] { min-width: 0; width: 100%; }
  .news .btn { width: 100%; }

  /* Connexion / compte */
  main.narrow { padding: 28px 16px 48px; }
  main.narrow .panel { padding: 20px; }
  h1 { font-size: 26px; }
  .inline { flex-direction: column; align-items: stretch; }
  footer { padding: 20px 0; }
}

/* Très petits écrans (iPhone SE, 320 px) : seul le logo garde son icône */
@media (max-width: 360px) {
  .brand { font-size: 0; gap: 0; }
  .brand-mark { width: 30px; height: 30px; }
  nav a:not(.btn) { padding: 8px 6px; }
}

/* =====================================================================
   Animations — apparitions progressives, survols, bandeau défilant.
   Tout est désactivé pour les personnes qui demandent moins de mouvement.
   ===================================================================== */
:root { --ease: cubic-bezier(0.22, 0.8, 0.24, 1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(31, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); } }
@keyframes glow { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, 16px, 0) scale(1.06); } }
@keyframes grow { from { width: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero : les éléments arrivent l'un après l'autre */
.hero { position: relative; overflow: hidden; background: none; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  animation: glow 9s ease-in-out infinite;
}
.hero .wrap > * { animation: fadeUp 0.9s var(--ease) both; }
.hero .wrap > :nth-child(1) { animation-delay: 0.05s; }
.hero .wrap > :nth-child(2) { animation-delay: 0.15s; }
.hero .wrap > :nth-child(3) { animation-delay: 0.28s; }
.hero .wrap > :nth-child(4) { animation-delay: 0.4s; }
.hero .wrap > :nth-child(5) { animation-delay: 0.5s; }
.hero .wrap > :nth-child(6) { animation-delay: 0.65s; }
.badge .dot { animation: pulse 2s ease-out infinite; }

/* Apparition au défilement (le JS ajoute .js sur <html> ; sans JS tout reste visible) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in, .reveal-all [data-reveal] { opacity: 1; transform: none; }

/* Liste de tendances : les cartes arrivent en cascade à chaque chargement ou changement de filtre */
.list > .card { animation: fadeUp 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); } /* backwards : le survol reste possible après */
.bar .fill { animation: grow 0.9s var(--ease) backwards; }

/* Survols */
.card, .feature { transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease); }
.card:hover, .feature:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 109, 251, 0.1); }
.feature .ico { transition: transform 0.3s var(--ease); }
.feature:hover .ico { transform: scale(1.12) rotate(-6deg); }
.btn { transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 109, 251, 0.25); }
.btn.secondary:hover, .btn.danger:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.btn:active { transform: translateY(0); box-shadow: none; }
.tab { transition: background 0.25s var(--ease), color 0.2s, box-shadow 0.25s; }
.brand-mark { transition: transform 0.35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
nav a:not(.btn) { transition: color 0.2s, background 0.2s; }
select, input[type='email'], input[type='password'] { transition: border-color 0.2s, box-shadow 0.2s; }
summary { transition: color 0.2s; }
details[open] .bars { animation: fadeIn 0.4s var(--ease); }

/* En-tête : une ombre douce apparaît dès qu'on fait défiler la page */
header.top { transition: box-shadow 0.3s, background 0.3s; }
header.top.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }

/* Pages connexion / compte */
main.narrow > * { animation: fadeUp 0.7s var(--ease) both; }
main.narrow > :nth-child(2) { animation-delay: 0.08s; }
main.narrow > :nth-child(3) { animation-delay: 0.16s; }

/* Bandeau défilant des sujets du moment */
.ticker { overflow: hidden; padding: 6px 0 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); animation: fadeIn 1s 0.6s both; }
.ticker[hidden] { display: none; }
.ticker-track { display: flex; width: max-content; gap: 12px; padding-right: 12px; animation: marquee 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); }
.ticker-item b { color: var(--accent-ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Choix de la plateforme (TikTok / YouTube) ---------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ptab {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; min-height: 52px;
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--muted);
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.ptab:hover { color: var(--text); transform: translateY(-2px); }
.ptab[aria-pressed='true'] { background: var(--surface); border-color: var(--accent); color: var(--text); box-shadow: 0 8px 22px rgba(18, 109, 251, 0.14); }
.pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); transition: background 0.25s; }
.ptab[data-platform='tiktok'][aria-pressed='true'] .pdot { background: #111; box-shadow: 2px 0 0 #25f4ee, -2px 0 0 #fe2c55; }
.ptab[data-platform='youtube'][aria-pressed='true'] .pdot { background: #ff0000; }
@media (max-width: 600px) { .ptab { font-size: 15px; padding: 12px 8px; } }

/* ---------- Explication du score ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .tabs { margin-bottom: 0; }
.help-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.help-btn:hover { background: var(--accent-soft); border-color: #cfdcf3; transform: translateY(-1px); }
.help-btn[aria-expanded='true'] { background: var(--accent-soft); border-color: #cfdcf3; }
.help-i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: italic; }
.explain { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; animation: fadeUp 0.45s var(--ease); }
.explain[hidden] { display: none; }
.ex-lead { margin: 0 0 16px; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ex-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ex-item h4, .ex-recipe h4 { margin: 0 0 4px; font-size: 15px; }
.ex-item h4 span { font-weight: 400; color: var(--muted); }
.ex-item p { margin: 0; font-size: 14px; color: var(--muted); }
.ex-recipe { background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.ex-sub { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.ex-weights { display: grid; gap: 8px; margin-bottom: 8px; }
.ex-w { display: grid; grid-template-columns: 100px 1fr 48px; align-items: center; gap: 10px; font-size: 14px; }
.ex-w .track { height: 10px; background: var(--surface); border-radius: 5px; overflow: hidden; }
.ex-w .fill { height: 100%; background: var(--accent); border-radius: 5px; animation: grow 0.8s var(--ease) backwards; }
.ex-w b { text-align: right; }
@media (max-width: 600px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .tabs { width: 100%; }
  .help-btn { justify-content: center; }
  .explain { padding: 14px; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-w { grid-template-columns: 84px 1fr 44px; }
}

/* =====================================================================
   Refonte inspirée de la structure « SaaS premium » de la référence :
   palette ardoise, titres serrés, cartes à 20 px, boutons à 12 px,
   sections alternées, FAQ en accordéon, pied de page en colonnes.
   Couleur de marque : le bleu Trendevio. Aucun texte ni visuel repris.
   ===================================================================== */
:root {
  --text: #0f172a;
  --muted: #455366;
  --bg-soft: #f7f7f7;
  --border: #ebebeb;
  --radius: 20px;
  --font-head: 'Inter Tight', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
h1, h2, h3, .brand, .btn { font-family: var(--font-head); }

/* Boutons : coins à 12 px, flèche qui glisse au survol */
.btn { border-radius: 12px; letter-spacing: 0.01em; }
.btn.large { padding: 15px 26px; }
.btn .arrow, .text-link .arrow { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.help-btn { border-radius: 12px; }
.tabs { border-radius: 14px; }
.tab { border-radius: 10px; }
.ptab { border-radius: 14px; }
select, input[type='email'], input[type='password'] { border-radius: 12px; }
.news input[type='email'] { border-radius: 12px; }
.news { border-radius: 24px; }
.panel { border-radius: 28px; }

/* Titres */
.hero h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(38px, 6.4vw, 68px); }
.block h2.big { font-weight: 600; letter-spacing: -0.025em; }
.eyebrow.left { text-align: left; }

/* ---------- Aperçu en direct dans le hero ---------- */
.hero-preview {
  margin: 48px auto 0; max-width: 860px; text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px; padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(18, 109, 251, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.hero-preview[hidden] { display: none; }
.hp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s ease-out infinite; }
.hp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-col h3, .hp-col h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.hp-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-col li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; font-weight: 500; min-width: 0; }
.hp-col li b { flex: none; min-width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; }
.hp-col li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sources ---------- */
.sources { padding: 8px 0 24px; }
.sources-title { text-align: center; margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 500; }
.sources-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.source { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 17px; box-shadow: var(--shadow); }
.sdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sdot.tt { background: #111; box-shadow: 2px 0 0 #25f4ee, -2px 0 0 #fe2c55; }
.sdot.yt { background: #f00; }

/* ---------- Bénéfices : trois grandes cartes ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.benefit {
  background: var(--bg-soft); border-radius: 20px; padding: 36px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.benefit:hover { transform: translateY(-4px); background: var(--accent-soft); box-shadow: 0 16px 36px rgba(18, 109, 251, 0.1); }
.b-ico { width: 44px; height: 44px; }
.b-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.benefit p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Fonctionnalités alternées ---------- */
.features .wrap { display: grid; gap: 120px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-row.reverse .f-text { order: 2; }
.f-text h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 16px; }
.f-text > p { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-list li { color: var(--muted); padding-left: 28px; position: relative; }
.f-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent); }
.f-list b { color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-head); text-decoration: none; color: var(--accent-ink); }
.f-visual {
  aspect-ratio: 1; max-height: 460px; width: 100%; border-radius: 24px; padding: 32px; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 20% 0%, #cfe0ff, var(--accent-soft) 60%, #eef4ff);
  overflow: hidden;
}
.mock { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14); display: grid; gap: 10px; transition: transform 0.5s var(--ease); }
.feature-row:hover .mock { transform: translateY(-6px) rotate(-0.6deg); }
.mock-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 12px; padding: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-tabs span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; }
.mock-tabs .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.mock-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.mock-card i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.mock-card b { display: block; font-size: 14px; }
.mock-card small, .mail-top small { color: var(--muted); font-size: 12px; }
.mock-note { margin: 4px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.mock-bar { display: grid; grid-template-columns: 84px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.mock-bar div { height: 9px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.mock-bar u { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.mock-bar b { color: var(--text); text-align: right; }
.mail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand-mark.sm { width: 32px; height: 32px; border-radius: 10px; }
.brand-mark.sm svg { width: 18px; height: 18px; }
.mail-top b { display: block; font-size: 14px; }
.mail-line { height: 10px; border-radius: 5px; background: var(--bg-soft); }
.mail-line.w90 { width: 90%; } .mail-line.w85 { width: 85%; } .mail-line.w80 { width: 80%; } .mail-line.w70 { width: 70%; } .mail-line.w60 { width: 60%; }
.mail-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- FAQ en accordéon ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq-intro h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 14px; }
.faq-intro > p:last-child { color: var(--muted); font-size: 18px; margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--bg-soft); border-radius: 20px; padding: 0 32px; margin: 0; transition: background 0.3s; }
.faq-item[open] { background: var(--accent-soft); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3, .faq-item summary h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.faq-item p { margin: 0; padding: 0 0 26px; color: var(--muted); animation: fadeIn 0.4s var(--ease); }
.plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); transition: transform 0.35s var(--ease), background 0.3s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 1px; transition: transform 0.35s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { transform: rotate(45deg); }

/* ---------- Pied de page en colonnes ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 28px; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.foot-brand p { margin: 14px 0 0; max-width: 300px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4, .foot-cols .fh { margin: 0 0 14px; color: var(--text); font-family: var(--font-head); font-size: 15px; }
.foot-cols a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }

/* ---------- Adaptation tablette / téléphone ---------- */
@media (max-width: 960px) {
  .feature-row, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .f-text { order: 0; }
  .features .wrap { gap: 80px; }
  .benefits { grid-template-columns: 1fr; }
  .benefit { min-height: 0; padding: 28px; }
  .f-visual { aspect-ratio: auto; min-height: 320px; max-height: none; padding: 24px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-preview { margin-top: 32px; padding: 14px; border-radius: 20px; }
  .hp-cols { grid-template-columns: 1fr; gap: 14px; }
  .faq-item { padding: 0 20px; }
  .faq-item summary { padding: 20px 0; }
  .faq-item summary h3, .faq-item summary h2 { font-size: 17px; }
  .faq-item p { padding-bottom: 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 44px 0 24px; }
  .mock-bar { grid-template-columns: 76px 1fr 26px; }
}

/* Correctifs : couleur des questions FAQ et liens du pied de page (ne pas hériter du style de l'en-tête) */
.faq-item summary h3, .faq-item summary h2 { color: var(--text); }
.site-footer .foot-cols a { display: block; min-height: 0; padding: 5px 0; border-radius: 0; background: none; color: var(--muted); }
.site-footer .foot-cols a:hover { color: var(--accent); background: none; }
.site-footer nav { display: grid; }

.site-footer .foot-cols { align-items: start; }

/* =====================================================================
   Site à plusieurs pages : menu principal, en-têtes de page, cartes de navigation
   ===================================================================== */
html { scroll-padding-top: 84px; }
header.top .wrap { gap: 20px; }
.main-nav { margin: 0 auto 0 12px; gap: 4px; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: color 0.2s, background 0.2s; }
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }
.main-nav a.current { color: var(--text); background: var(--bg-soft); }
.main-nav .only-mobile { display: none; }
.auth-nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.auth-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.auth-nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
header.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.open .burger span:nth-child(2) { opacity: 0; }
header.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: inline-block; }
  .auth-nav a:not(.btn) { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }
  header.open .main-nav { display: flex; animation: fadeIn 0.25s var(--ease); }
  .main-nav a { padding: 14px 12px; font-size: 16px; min-height: 48px; }
  .main-nav .only-mobile { display: inline-flex; }
  header.top .wrap { justify-content: space-between; }
  .auth-nav { margin-left: auto; }
}
@media (max-width: 600px) { header.top .wrap { gap: 10px; } }

/* En-tête des pages intérieures */
.page-hero { text-align: center; padding: 64px 0 36px; background: radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 75%); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 14px; }
.page-hero .sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto; }
.page-hero > .wrap > * { animation: fadeUp 0.8s var(--ease) both; }
.page-hero > .wrap > :nth-child(2) { animation-delay: 0.08s; }
.page-hero > .wrap > :nth-child(3) { animation-delay: 0.16s; }

/* Cartes « où aller » de l'accueil */
.go-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.go-card {
  display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--bg-soft); border-radius: 20px; text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s var(--ease);
}
.go-card:hover { transform: translateY(-4px); background: var(--accent-soft); box-shadow: 0 16px 36px rgba(18, 109, 251, 0.1); }
.go-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; }
.go-card:hover .go-tag { background: var(--surface); }
.go-card h3 { margin: 6px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.go-card p { margin: 0; color: var(--muted); flex: 1; }
.go-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--accent-ink); font-family: var(--font-head); font-weight: 600; }
.go-card:hover .arrow { transform: translateX(4px); }
.go-arrow .arrow { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.hp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent-ink); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.hp-more .arrow { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.hp-more:hover .arrow { transform: translateX(4px); }

/* FAQ en colonne unique */
.faq-narrow { max-width: 820px; }

@media (max-width: 960px) { .go-grid { grid-template-columns: 1fr; } .go-card { padding: 26px; } }
@media (max-width: 600px) { .page-hero { padding: 44px 0 24px; } }

main.narrow { min-height: 62vh; }

/* =====================================================================
   Pages légales
   ===================================================================== */
.foot-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }

.legal { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 14px; color: var(--text); }
.legal .todo { background: #fff3cd; color: #7a5b00; border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 680px; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal th { background: var(--bg-soft); color: var(--text); font-weight: 600; white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .legal { font-size: 15px; } .legal h2 { font-size: 21px; margin-top: 32px; } }

/* Mot de passe oublié */
.text-link[hidden] { display: none; }
form.stack .text-link { font-size: 14px; justify-self: start; }

/* ---------- Aide à la création du mot de passe ---------- */
.pw-tools { display: grid; gap: 10px; margin-top: -4px; }
.pw-tools[hidden] { display: none; }
.pw-meter { display: flex; align-items: center; gap: 12px; }
.pw-bar { flex: 1; height: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--border); transition: width 0.35s var(--ease), background 0.25s; }
.pw-bar[data-level='1'] span { background: #d93025; }
.pw-bar[data-level='2'] span { background: #e8a317; }
.pw-bar[data-level='3'] span { background: #4a9d5b; }
.pw-bar[data-level='4'] span { background: #1f8a4c; }
.pw-label { min-width: 120px; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); }
.pw-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.pw-checks li { position: relative; padding-left: 20px; }
.pw-checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); transition: background 0.2s, border-color 0.2s; }
.pw-checks li.ok { color: var(--text); }
.pw-checks li.ok::before { background: #1f8a4c; border-color: #1f8a4c; box-shadow: inset 0 0 0 2px #fff; }
.pw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-btn { padding: 8px 14px; font-size: 14px; min-height: 40px; }
@media (max-width: 600px) { .pw-checks { grid-template-columns: 1fr; } .pw-label { min-width: 96px; } }

/* Le champ mot de passe garde son style quand il est affiché en clair (type=text) */
form.stack input[type='text'] { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); width: 100%; }
form.stack input[type='text']:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* Turnstile : l'espace n'est réservé que si le widget est affiché */
.turnstile { min-height: 0; }
.turnstile:not(:empty) { min-height: 65px; }
.turnstile[hidden] { display: none; }

/* ---------- Page méthodologie ---------- */
.meth { max-width: 880px; }
.meth-h { text-align: center; font-size: clamp(24px, 3.4vw, 32px); margin: 64px 0 12px; letter-spacing: -0.02em; }
.meth-lead { text-align: center; color: var(--muted); margin: 0 auto 24px; max-width: 620px; }
.meth-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.meth-tech { text-align: center; font-size: 14px; color: var(--muted); margin-top: 32px; }
.meth-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.meth-step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.meth-step .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.meth-step h3, .meth-step h2 { margin: 0 0 6px; font-size: 18px; }
.meth-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.meth-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.meth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.meth-q { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.meth-card h3 { margin: 0 0 8px; font-size: 22px; }
.meth-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.meth-viz { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); }
.meth-viz small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.meth-viz .bar { height: 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.meth-viz .bar u, .recipe-bars u { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.meth-viz .scale { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; }
.meth-viz .scale span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--bg-soft); }
.meth-viz .scale span:last-child { background: var(--accent-soft); color: var(--accent-ink); }
.meth-viz .decay { display: flex; gap: 6px; }
.meth-viz .decay span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 8px 2px; }
.meth-viz .decay b { display: block; font-size: 18px; color: var(--text); }
.meth-viz .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.meth-viz .dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border); }
.meth-viz .dots i.on { background: var(--accent); border-color: var(--accent); }
.meth-recipe .tabs { margin-bottom: 12px; }
.meth-desc { margin: 0 0 20px; font-size: 16px; }
.recipe-bars { display: grid; gap: 12px; }
.rb { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 12px; font-size: 15px; }
.rb > div { height: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rb u { transition: width 0.4s var(--ease); }
.rb b { text-align: right; }
.ex-row { display: grid; grid-template-columns: 1fr auto 64px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.ex-row .calc { color: var(--muted); }
.ex-row b { text-align: right; }
.ex-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-size: 16px; }
.ex-total b { font-size: 28px; color: var(--accent); }
@media (max-width: 700px) {
  .meth-steps, .meth-cards { grid-template-columns: 1fr; }
  .rb { grid-template-columns: 88px 1fr 48px; gap: 8px; }
  .ex-row { grid-template-columns: 1fr 64px; }
  .ex-row .calc { grid-column: 1; grid-row: 2; font-size: 13px; }
  .ex-row b { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* Logo : le dessin porte lui-même le fond et les coins arrondis */
.brand-mark { background: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.sm { border-radius: 0; }
.brand-mark.sm img { width: 100%; height: 100%; display: block; }

/* Logo : le nom dessiné sert de logo ; l'icône T prend le relais sur petit écran */
.brand-word { height: 30px; width: auto; display: block; }
.brand > .brand-mark { display: none; }
@media (max-width: 480px) {
  .brand-word { display: none; }
  .brand > .brand-mark { display: block; width: 30px; height: 30px; }
}
.foot-brand .brand-word { height: 28px; }

/* ================= Tableau de bord : tendances ================= */
.summary { margin: 4px 2px 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.summary:empty { display: none; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tcard {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 210px 64px; align-items: center; gap: 8px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px 16px 14px;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
  animation: fadeUp 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.tcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 12px 30px rgba(18, 109, 251, 0.09); }
.tcard.top { background: linear-gradient(100deg, color-mix(in srgb, var(--accent-soft) 55%, #fff) 0%, #fff 55%); }
.rankno { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); justify-self: center; }
.tcard[data-rank='1'] .rankno { background: #fff4cf; border-color: #f2d36b; color: #8a6400; }
.tcard[data-rank='2'] .rankno { background: #eef0f4; border-color: #cfd4dc; color: #4b5563; }
.tcard[data-rank='3'] .rankno { background: #fbe6d5; border-color: #eab88c; color: #8a4b1a; }
.tmain { min-width: 0; }
.ttitle { margin: 0; font-weight: 650; font-size: 17px; line-height: 1.35; letter-spacing: -0.015em; word-break: break-word; }
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.tmeta .ago { margin-left: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 550; color: #3a3f47; background: var(--bg-soft); border: 1px solid var(--border); }
.pill.geo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill.soft { background: transparent; color: var(--muted); font-weight: 500; }
.insights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ins { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 8px; }
.ins.up { background: #e6f5ec; color: #1a7a43; }
.ins.fresh { background: #e8f1ff; color: #0f5bd1; }
.ins.vol { background: #f1e9ff; color: #6b3fc0; }
.ins.steady { background: #fff1de; color: #9a5a0a; }
.tcard details { margin-top: 10px; }
.tcard summary { font-size: 13px; }
.tcard .bars { max-width: 460px; }
.signals { display: grid; gap: 7px; }
.sig { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.sig i { display: block; height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.sig u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7fb2ff, var(--accent)); animation: grow 0.9s var(--ease) backwards; }
.ring {
  --p: 50%; position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; justify-self: end;
  background: conic-gradient(var(--accent) var(--p), var(--bg-soft) 0);
}
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring .score { position: relative; min-width: 0; height: auto; background: none; font-size: 19px; font-weight: 750; color: var(--text); letter-spacing: -0.02em; }
.tcard.sk { min-height: 92px; grid-template-columns: 40px 1fr 64px; }
.tcard.sk i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #f0f0f1 25%, #f8f8f8 50%, #f0f0f1 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.tcard.sk i:first-child { width: 28px; height: 28px; border-radius: 50%; justify-self: center; }
.tcard.sk i:last-child { width: 56px; height: 56px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================= Tableau de bord : créateurs ================= */
.sect-head { margin: 44px 0 16px; }
.sect-head .section-title { margin: 0 0 4px; font-size: 22px; }
.sect-head p { margin: 0; color: var(--muted); font-size: 14px; }
.cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ccard {
  --h: 212; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
  animation: fadeUp 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.ccard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 12px 30px rgba(18, 109, 251, 0.09); }
.chead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 25) 80% 45%)); }
.cid { min-width: 0; }
.cname { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.cname a, .cname > span:first-child { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cname a:hover { color: var(--accent); }
.vcheck { display: inline-flex; flex: none; }
.chandle { margin: 1px 0 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.cstats b { display: block; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.cstats span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }
.cfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cta { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); transition: background 0.15s, color 0.15s; }
.cta:hover { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
  .tcard { grid-template-columns: 36px minmax(0, 1fr) 60px; padding: 14px; }
  .signals { grid-column: 2 / -1; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .ring { grid-column: 3; grid-row: 1; }
}
@media (max-width: 520px) {
  .ttitle { font-size: 16px; }
  .ring { width: 52px; height: 52px; }
  .ring::before { inset: 5px; }
  .ring .score { font-size: 17px; }
  .cgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tcard, .ccard, .sig u, .tcard.sk i { animation: none; } }

@media (max-width: 520px) {
  #tendances .panel { padding: 12px; border-radius: 20px; }
  .tcard { grid-template-columns: 26px minmax(0, 1fr) 52px; gap: 8px 10px; padding: 14px 12px; border-radius: 16px; }
  .rankno { width: 26px; height: 26px; font-size: 12px; }
  .tmeta { gap: 5px 6px; }
  .tmeta .ago { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; }
  .pill { padding: 1px 8px; font-size: 11.5px; }
  .signals { grid-column: 1 / -1; }
  .ccard { padding: 16px; }
}

/* Logo animé : les lettres se dessinent une à une, puis la flèche du « v » s'élance et le point jaune apparaît */
.brand-word .l path { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw 0.55s var(--ease) forwards; animation-delay: calc(var(--k) * 0.09s + 0.15s); }
.brand-word .l .ar { animation-delay: 0.95s; animation-duration: 0.45s; }
.brand-word .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards; }
.brand:hover .brand-word .ar { animation: nudge 0.6s var(--ease); }
.brand:hover .brand-word .dot { animation: bob 0.6s var(--ease); transform: scale(1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes nudge { 0% { transform: translate(0, 0); } 40% { transform: translate(3px, -4px); } 100% { transform: translate(0, 0); } }
@keyframes bob { 0%, 100% { transform: scale(1) translateY(0); } 40% { transform: scale(1.25) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .brand-word .l path { animation: none; stroke-dashoffset: 0; }
  .brand-word .dot { animation: none; transform: scale(1); }
  .brand:hover .brand-word .ar, .brand:hover .brand-word .dot { animation: none; }
}

/* Compte : alertes e-mail */
.alert-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.alert-box .hint { margin: 8px 0 0 28px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.alert-box .hint[data-state='pending'] { color: #9a5a0a; }
.alert-box .hint[data-state='on'] { color: var(--good); }
/* Cases à cocher : ne pas hériter de la largeur 100 % des champs de formulaire */
form.stack input[type='checkbox'] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.check { align-items: flex-start; line-height: 1.4; cursor: pointer; }
.alert-box .hint { margin-left: 28px; }

/* ================= Page Tarifs ================= */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(18, 109, 251, 0.14); }
.plan h2 { margin: 0; font-size: 22px; }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--accent-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: 40px; letter-spacing: -0.03em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5' fill='none' stroke='%23126dfb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { text-align: center; text-decoration: none; }
.plan .btn.disabled { background: var(--bg-soft); border-color: var(--border); color: var(--muted); pointer-events: none; }
.plan-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.plan-note:empty { display: none; }
.plan-help { max-width: 820px; margin: 40px auto 0; }
.plan-help h2 { font-size: 22px; margin: 0 0 12px; }
.plan-help ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.plan-help li b { color: var(--text); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .plan { padding: 22px; } }

/* Invitations à passer au Premium (tableau de bord, compte) */
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(100deg, var(--accent-soft), #fff); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.upsell p { margin: 0; font-size: 14px; line-height: 1.45; max-width: 560px; }
.upsell .btn { text-decoration: none; white-space: nowrap; }
.ccard.locked { align-items: center; justify-content: center; text-align: center; gap: 10px; background: repeating-linear-gradient(135deg, #fff, #fff 10px, var(--bg-soft) 10px, var(--bg-soft) 20px); }
.ccard.locked b { font-size: 28px; letter-spacing: -0.02em; }
.ccard.locked p { margin: 0; font-size: 14px; color: var(--muted); }
.lockmark { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.alert-box.locked { background: repeating-linear-gradient(135deg, #fff, #fff 10px, var(--bg-soft) 10px, var(--bg-soft) 20px); }
.alert-box.locked .hint a { font-weight: 600; }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.plan-line b { font-size: 15px; }
.plan-line .tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.plan-line .tag.pro { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Tarifs à crédits (3 offres) ===== */
.hero-checks { list-style: none; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin: 20px 0 0; padding: 0; font-size: 14px; font-weight: 550; color: var(--muted); }
.hero-checks li::before { content: '✓'; margin-right: 7px; color: var(--accent); font-weight: 800; }
.billing-toggle { display: flex; width: max-content; margin: 8px auto 34px; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.billing-toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing-toggle button.on { background: var(--text); color: #fff; }
.billing-toggle button span { color: #b84a00; font-weight: 700; margin-left: 4px; }
.billing-toggle button.on span { color: #ffb37a; }
.plans3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1020px; margin: 0 auto; align-items: stretch; }
.plans3 .plan.featured { background: #0f1b3d; border-color: #0f1b3d; color: #fff; box-shadow: 0 22px 50px rgba(15, 27, 61, 0.28); }
.plans3 .plan.featured .price span, .plans3 .plan.featured .plan-tag, .plans3 .plan.featured .plan-note { color: #b9c5e6; }
.plans3 .plan.featured .plan-list li::before { background-color: rgba(255, 255, 255, 0.14); }
.plans3 .plan.featured .badge { background: #c2410c; }
.plans3 .plan-tag { margin: -8px 0 0; font-size: 13px; font-weight: 650; color: #b84a00; }
.plans3 .plan.featured .btn { background: #c2410c; border-color: #c2410c; }
.plans3 .plan.featured .btn.disabled { background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #b9c5e6; }
.tva-line { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.cmp-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; font-weight: 550; }
.cmp thead th { font-size: 15px; background: var(--bg-soft); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.y::before { content: '✓'; color: var(--accent); font-weight: 800; }
.cmp td.n::before { content: '—'; color: #b5b8bd; }
.cta-band { max-width: 880px; margin: 64px auto 0; text-align: center; padding: 40px 24px; border-radius: 24px; background: linear-gradient(120deg, var(--accent-soft), #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 20px; color: var(--muted); }
.cta-band .btn { text-decoration: none; display: inline-block; }
@media (max-width: 900px) { .plans3 { grid-template-columns: 1fr; max-width: 460px; } }

/* Compteur de crédits */
.credits { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); font-size: 13.5px; }
.credits .cr-label { color: var(--muted); font-weight: 600; }
.credits .cr-num { font-size: 18px; letter-spacing: -0.02em; }
.credits .cr-of { color: var(--muted); }
.credits .cr-bar { flex: 1; min-width: 80px; max-width: 220px; height: 8px; border-radius: 4px; background: #e6e8eb; overflow: hidden; }
.credits .cr-bar u { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.credits .cr-bar.low u { background: #e5640a; }
.credits .cr-reset { color: var(--muted); font-size: 12.5px; }
.credits .cr-link { margin-left: auto; font-weight: 650; text-decoration: none; }
.credits .cr-text { color: var(--muted); }
.credits:empty { display: none; }

.plan-line .plan-credits { color: var(--muted); font-size: 13px; }

/* L'attribut hidden doit toujours l'emporter sur les règles display (liens de menu masqués, etc.) */
[hidden] { display: none !important; }

/* Zones à toucher : au moins 44 px de haut sur écran tactile ou étroit (recommandation WCAG / Apple / Google) */
@media (pointer: coarse), (max-width: 900px) {
  .site-footer .foot-cols a, .foot-cols a { display: flex; align-items: center; min-height: 44px; }
  .hp-more { min-height: 44px; }
  .tab, .ptab { min-height: 44px; }
  .text-link, .cta { display: inline-flex; align-items: center; min-height: 44px; }
  .cname a { display: inline-flex; align-items: center; min-height: 44px; }
  .pw-tools button { min-height: 44px; }
  .tcard summary, .faq-item summary { min-height: 44px; display: flex; align-items: center; }
}
select { cursor: pointer; }

.billing-toggle button { min-height: 44px; }

/* ================= Accueil : refonte visuelle (grille bento, chiffres clés) ================= */
.hero-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(18, 109, 251, 0.3) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(55% 62% at 50% 28%, #000 0%, transparent 78%); mask-image: radial-gradient(55% 62% at 50% 28%, #000 0%, transparent 78%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-preview { box-shadow: var(--elev-3); }

/* Aperçu du hero : scores en anneaux, comme sur le tableau de bord */
.hp-col li b { --p: 60%; position: relative; isolation: isolate; border-radius: 50%; width: 38px; min-width: 38px; height: 38px; background: conic-gradient(var(--accent) var(--p), #dfe3ea 0); color: var(--text); font-size: 13px; font-weight: 750; }
.hp-col li b::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; z-index: -1; }

/* Chiffres clés */
.facts { padding: 8px 0 8px; }
.facts-row { list-style: none; margin: 0 auto; padding: 22px 26px; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--elev-2); }
.facts-row li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.facts-row b { flex: none; min-width: 52px; font-size: 34px; line-height: 1; letter-spacing: -0.04em; color: var(--accent-ink); font-family: var(--font-head, inherit); }
.facts-row span { font-size: 14px; font-weight: 650; line-height: 1.25; }
.facts-row small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Grille bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-12); }
.bt { display: flex; flex-direction: column; gap: var(--s-6); justify-content: space-between; min-width: 0; padding: var(--s-8); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--elev-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s; }
.bt:hover { transform: translateY(-3px); box-shadow: var(--elev-3); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.bt.span2 { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--s-8); }
.bt.span2 > * { flex: 1 1 0; min-width: 0; }
.bt-tag { display: inline-block; margin-bottom: var(--s-3); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); }
.bt h3 { margin: 0 0 var(--s-2); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.025em; line-height: 1.15; }
.bt p { margin: 0 0 var(--s-3); color: var(--muted); font-size: 15px; line-height: 1.55; }
.bt .text-link { margin-top: 4px; }
.bt-visual { position: relative; padding: var(--s-4); border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--border); }
.bt-note { display: block; margin-top: var(--s-3); font-size: 11.5px; color: var(--muted); text-align: right; }

.ring.big { --p: 80%; width: 92px; height: 92px; margin: 0 auto var(--s-4); justify-self: auto; }
.ring.big::before { inset: 8px; }
.ring.big span { position: relative; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.sig-demo { display: grid; gap: 10px; }
.sig-demo div { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.sig-demo i { display: block; height: 7px; border-radius: 4px; background: #e3e6eb; overflow: hidden; }
.sig-demo u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7fb2ff, var(--accent)); }

.chips-demo { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-demo span { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--border); color: #3a3f47; }
.chips-demo span.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.plat-demo { display: grid; gap: 10px; }
.plat-demo div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 650; font-size: 14px; }
.plat-demo em { flex: 1; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #d9e6fb, #eef2f8); margin-left: 6px; }

.mail-demo { display: grid; gap: var(--s-3); background: #fff; }
.mail-demo .mail-top { display: flex; align-items: center; gap: 10px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.mail-demo .mail-top small { display: block; color: var(--muted); font-size: 12px; }
.mail-demo .mail-top b { font-size: 14px; }
.mail-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.mail-row b { font-size: 14px; }
.mail-row span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mail-row .ins { font-style: normal; }

@media (max-width: 900px) {
  .facts-row { grid-template-columns: repeat(2, 1fr); padding: 18px; gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .bt.span2 { grid-column: auto; flex-direction: column; align-items: stretch; }
  .bt { padding: var(--s-6); }
}
@media (max-width: 520px) {
  .facts-row b { font-size: 28px; min-width: 40px; }
}

/* Finitions : ombres homogènes, pas de délai de tap, ancres sous l'en-tête fixe */
.panel, .plan, .tcard, .ccard, .go-card, .feature { box-shadow: var(--elev-1); }
.panel { box-shadow: var(--elev-2); }
a, button, summary, select, input, label { touch-action: manipulation; }
[id] { scroll-margin-top: 88px; }

/* ================= Pages intérieures : même langage visuel que l'accueil ================= */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(18, 109, 251, 0.28) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(52% 90% at 50% 8%, #000 0%, transparent 80%); mask-image: radial-gradient(52% 90% at 50% 8%, #000 0%, transparent 80%); }
.page-hero > .wrap { position: relative; z-index: 1; }

/* « Comment ça marche » : chaque rubrique est une carte */
.features .feature-row { padding: var(--s-12); margin-bottom: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--elev-1); gap: var(--s-12);
  transition: box-shadow 0.3s var(--ease), border-color 0.2s; }
.features .feature-row:hover { box-shadow: var(--elev-3); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* Connexion / inscription : formulaire + ce que le compte apporte */
main.auth-wrap { max-width: 1020px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.auth-main > h1:first-child { margin-top: 0; }
.auth-aside { padding: var(--s-8); border-radius: 28px; background: linear-gradient(150deg, var(--accent-soft), #fff 70%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); box-shadow: var(--elev-2); }
.auth-aside h2 { margin: 0 0 var(--s-6); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.auth-points li { display: flex; gap: var(--s-4); align-items: flex-start; }
.ap-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--elev-1); }
.ap-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-points h3 { margin: 0 0 2px; font-size: 16px; letter-spacing: -0.01em; }
.auth-points p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Tableau de bord : barre de filtres */
#tendances .filters { padding: var(--s-4); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; align-items: flex-end; }
#tendances .toolbar { margin-bottom: var(--s-4); }

@media (max-width: 900px) {
  main.auth-wrap { grid-template-columns: 1fr; gap: var(--s-8); }
  .features .feature-row { padding: var(--s-6); gap: var(--s-6); }
}
@media (max-width: 520px) {
  .auth-aside { padding: var(--s-6); border-radius: 22px; }
  .features .feature-row { border-radius: 22px; }
}
@media (max-width: 480px) { .brand { min-width: 44px; } }

/* Mur de connexion du tableau de bord */
.gate-block { padding-top: 0; }
.gate { max-width: 640px; margin: 0 auto; text-align: center; padding: var(--s-12) var(--s-8); }
.gate h2 { margin: 0 0 var(--s-3); font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; }
.gate p { margin: 0 auto var(--s-6); color: var(--muted); max-width: 520px; }
.gate-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.gate-actions .btn { text-decoration: none; }
.gate .gate-note { margin: var(--s-6) auto 0; font-size: 13px; }

/* Clés d'API (page Compte) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.keys-panel { display: grid; gap: var(--s-4); }
.keys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.keys-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.keys-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.keys-empty { margin: 0; color: var(--muted); font-size: 14px; }
.key-form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.key-form input { flex: 1 1 200px; min-width: 0; }
.key-form[hidden] { display: none; }
.key-new { padding: var(--s-4); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--border)); border-radius: 14px; background: #f1faf4; }
.key-new p { margin: 0 0 var(--s-3); font-size: 14px; }
.key-value { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.key-value code { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 13px; overflow-wrap: anywhere; }
.btn.danger-ghost { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }

/* Documentation API */
.docs { max-width: 880px; }
.docs-p { margin: 0 0 var(--s-4); color: var(--muted); line-height: 1.6; }
.docs-p.small { font-size: 13.5px; margin-top: var(--s-3); }
.docs-h3 { margin: var(--s-6) 0 var(--s-2); font-size: 17px; }
.docs code, .docs .code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.docs :not(pre) > code { padding: 1px 7px; border-radius: 7px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.88em; color: var(--text); }
pre.code { margin: var(--s-3) 0 var(--s-4); padding: var(--s-4) var(--s-6); border-radius: 16px; background: #0f1b3d; color: #e6ecff; overflow-x: auto; font-size: 13px; line-height: 1.6; }
pre.code code { background: none; border: 0; padding: 0; color: inherit; }
.ep { padding: var(--s-6); margin-bottom: var(--s-4); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--elev-1); }
.ep h3 { margin: 0 0 var(--s-2); font-size: 17px; }
.ep p { margin: 0 0 var(--s-3); color: var(--muted); }
.params { margin: 0 0 var(--s-3); padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.docs-list { margin: 0; padding-left: 22px; display: grid; gap: var(--s-3); color: var(--muted); line-height: 1.55; }
.docs .cmp td code { white-space: nowrap; }
.docs .cmp td, .docs .cmp th { text-align: left; }
.key-form input { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }

/* Exemple de rendu : conversation avec un assistant IA et réponse de l'API */
.lead-center { text-align: center; color: var(--muted); max-width: 640px; margin: var(--s-3) auto 0; font-size: 17px; line-height: 1.55; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-8); align-items: stretch; }
.tools-cta { text-align: center; margin-top: var(--s-6); }
.chat-demo, .code-demo { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--elev-2); min-width: 0; }
.code-demo { background: #0f1b3d; border-color: #0f1b3d; box-shadow: var(--elev-3); }
.code-demo pre.code { margin: 0; padding: 0; background: none; font-size: 12.5px; flex: 1; }
.code-demo .bt-note { color: #b9c5e6; }
.c-dim { color: #8fa0cc; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.msg { max-width: 92%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.msg p { margin: 0 0 var(--s-2); }
.msg p:last-child { margin-bottom: 0; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.tool-chip { align-self: flex-start; font-size: 12px; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px dashed #c3c9d4; background: #fff; }
.tool-chip b { color: var(--accent-ink); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 600; }
.chat-list { list-style: decimal; margin: 0 0 var(--s-2); padding-left: 20px; display: grid; gap: 6px; }
.chat-list li { padding-left: 4px; }
.chat-list li b { font-weight: 650; overflow-wrap: anywhere; }
.chat-list li span { display: block; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } .msg { max-width: 100%; } }

/* ================= Fonds : halos colorés et bandes alternées (moins monotone) ================= */
:root { --tint: #eef3fc; --tint-warm: #fff3dc; }
body { background-color: var(--bg); background-image: linear-gradient(180deg, var(--bg) 0, var(--tint) 45%, var(--bg) 100%); }

/* Halo animé du hero : bleu, violet, turquoise et une touche chaude (la couleur du point du logo) */
.hero::before {
  background:
    radial-gradient(42% 62% at 12% 12%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(40% 58% at 88% 10%, rgba(34, 184, 240, 0.3), transparent 70%),
    radial-gradient(56% 64% at 50% 0%, rgba(18, 109, 251, 0.2), transparent 72%),
    radial-gradient(34% 40% at 50% 94%, rgba(255, 209, 102, 0.26), transparent 72%);
}
.page-hero {
  background:
    radial-gradient(48% 90% at 8% 0%, rgba(124, 92, 255, 0.2), transparent 72%),
    radial-gradient(48% 90% at 92% 0%, rgba(34, 184, 240, 0.22), transparent 72%),
    radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 75%);
}

/* Accueil : chaque grande section a sa propre ambiance */
.facts { background: linear-gradient(180deg, transparent 0%, var(--tint) 100%); padding-bottom: 28px; }
#avantages {
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(124, 92, 255, 0.13), transparent 72%),
    radial-gradient(40% 50% at 0% 100%, rgba(34, 184, 240, 0.13), transparent 72%),
    linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
#outils {
  background:
    radial-gradient(50% 70% at 90% 20%, rgba(124, 92, 255, 0.17), transparent 72%),
    radial-gradient(46% 66% at 6% 90%, rgba(34, 184, 240, 0.18), transparent 72%),
    #fff;
}
#explorer {
  background:
    radial-gradient(44% 70% at 50% 100%, rgba(255, 209, 102, 0.22), transparent 72%),
    linear-gradient(180deg, #fff 0%, var(--tint-warm) 100%);
}

/* Pages intérieures : la carte blanche se détache d'un fond teinté */
#tendances, .gate-block {
  background:
    radial-gradient(40% 40% at 0% 30%, rgba(124, 92, 255, 0.1), transparent 72%),
    radial-gradient(40% 40% at 100% 70%, rgba(34, 184, 240, 0.12), transparent 72%);
}
.features, .docs { position: relative; }
.site-footer { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }

/* Texte posé sur les halos colorés : un gris plus foncé garde un contraste d'au moins 4,5:1 même dans les zones les plus teintées */
.hero .sub, .hero .fineprint, .page-hero .sub, .lead-center { color: #444a53; }

/* ================= Inscription à la newsletter : version sobre, au-dessus du pied de page ================= */
.nl-strip { background: #fff; border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-6); }
.nl-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.nl-copy { flex: 1 1 320px; min-width: 0; }
.nl-copy h2 { margin: 0 0 2px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.nl-copy p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.nl-form { display: flex; gap: var(--s-2); flex: 1 1 360px; max-width: 460px; }
.nl-form input[type='email'] { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.nl-form .btn { white-space: nowrap; }
.nl-msg { margin: var(--s-3) 0 0; min-height: 0; }
.nl-msg:empty { display: none; }
@media (max-width: 640px) {
  .nl-strip { padding: var(--s-6) 0 var(--s-4); }
  .nl-form { flex: 1 1 100%; max-width: none; }
}

/* ================= Barre de navigation flottante en verre (arrondie, détachée des bords) ================= */
:root { --nav-h: 76px; }
header.top { position: sticky; top: 12px; z-index: 50; height: 0; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
header.top .wrap {
  position: relative; box-sizing: border-box; width: calc(100% - 32px); max-width: 1100px; height: 62px; margin: 0 auto; padding: 0 12px 0 22px; gap: 16px;
  background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: saturate(190%) blur(20px); backdrop-filter: saturate(190%) blur(20px);
  border: 1px solid rgba(15, 27, 61, 0.08); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.3s, box-shadow 0.3s;
}
header.top.scrolled .wrap { background: rgba(255, 255, 255, 0.9); box-shadow: 0 14px 38px rgba(16, 24, 40, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.main-nav { margin: 0 auto; }
.main-nav a { border-radius: 12px; }
.main-nav a:hover { background: rgba(15, 27, 61, 0.05); }
.main-nav a.current { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.auth-nav .btn { border-radius: 14px; padding: 10px 18px; }
.burger { border-radius: 14px; }

/* Le contenu démarre sous la barre flottante (elle n'occupe plus de place dans la page) */
.hero { padding-top: calc(var(--nav-h) + 56px); }
.page-hero { padding-top: calc(var(--nav-h) + 48px); }
main.narrow { padding-top: calc(var(--nav-h) + 32px); }

@media (max-width: 860px) {
  .main-nav {
    top: calc(100% + 10px); left: 0; right: 0; padding: 10px; border-radius: 20px; border: 1px solid rgba(15, 27, 61, 0.08);
    background: rgba(255, 255, 255, 0.995); box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  }
  .main-nav a.current { background: var(--accent-soft); }
}
@media (max-width: 600px) {
  :root { --nav-h: 68px; }
  header.top { top: 10px; }
  header.top .wrap { width: calc(100% - 24px); height: 56px; margin: 0 auto; padding: 0 8px 0 16px; border-radius: 20px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .page-hero { padding-top: calc(var(--nav-h) + 30px); }
  main.narrow { padding-top: calc(var(--nav-h) + 20px); }
}
