/* Cagou Connect — one-pager v2. Couleurs et typographie : charte graphique du 1er novembre 2026. */

/* Lexend, une seule famille (OFL, auto-hébergée : la CSP n'autorise aucun autre site). */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/lexend.woff2") format("woff2");
}

:root {
  /* Marque */
  --brand-navy: #053975;      /* titres, boutons pleins, bandeaux */
  --brand-navy-deep: #032a57; /* fond du bandeau d'action */
  --brand-blue: #0498cb;      /* aplats, pictos ; en texte seulement dès 24 px */
  --brand-teal: #0fb5a3;      /* motif, points, arcs ; jamais en texte (2,6:1) */
  --brand-green: #23a659;     /* « en direct », vie du club */
  --brand-lime: #52ae3c;      /* petites touches seulement */
  /* Neutres et texte */
  --ink: #13233f;
  --ink-muted: #4d5d78;
  --accent-text: #0a7d74;     /* petit texte coloré : 5,0:1 sur blanc */
  --on-dark: #ffffff;
  --on-dark-muted: #d3dff0;   /* texte secondaire sur bleu nuit */
  --surface: #ffffff;
  --surface-tint: #f2f8fb;
  --line: #dfe7f1;
  --line-strong: #9fb2c9;     /* contour des cadres en attente de capture */

  --radius: 18px;
  /* Le dégradé ne sert qu'en filet fin (4 à 6 px) ou sur un mot de titre. */
  --grad: linear-gradient(100deg, var(--brand-navy) 0%, var(--brand-blue) 45%, var(--brand-teal) 72%, var(--brand-green) 100%);
  --rule: 5px;
  --font: "Lexend", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
b { font-weight: 700; }
a { color: var(--brand-navy); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--accent-text); font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand b { color: var(--brand-navy); }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--brand-navy); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--brand-navy);
  background: var(--brand-navy); color: var(--on-dark);
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-navy-deep); transform: translateY(-1px); }
a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--brand-navy); }
.btn-ghost:hover { background: var(--brand-navy); color: var(--on-dark); }

/* Surtitres */
.eyebrow {
  color: var(--accent-text); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px;
}
.eyebrow-light { color: var(--on-dark-muted); }

/* 1. Accroche */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(36px, 4.9vw, 58px); color: var(--brand-navy); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  font-size: 15px; color: var(--ink-muted);
}
.proof b { color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-green); flex: none; box-shadow: 0 0 0 5px rgba(35,166,89,.18); }

/* Bandeaux bleu nuit (2 et 8) */
.band { background: var(--brand-navy); color: var(--on-dark); padding: 72px 0; position: relative; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--rule); background: var(--grad); }
.h2-light { color: var(--on-dark); font-size: clamp(26px, 3.4vw, 38px); max-width: 24em; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.pain { border-top: 2px solid rgba(255,255,255,.3); padding-top: 16px; color: var(--on-dark-muted); font-size: 16px; }
.pain-k { color: var(--on-dark); font-weight: 700; font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.band-close { margin-top: 40px; font-size: 22px; font-weight: 700; color: var(--on-dark); }

/* Sections */
.section { padding: 88px 0; }
.section-short { padding: 64px 0; }
.section-tint { background: var(--surface-tint); }
.section h2 { font-size: clamp(30px, 4vw, 44px); color: var(--brand-navy); }
.section .h2-light { color: var(--on-dark); }
.section-lead { margin-top: 14px; color: var(--ink-muted); font-size: 18px; max-width: 40em; }

/* 3. Trois verbes */
.verbs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: verb; }
.verb { counter-increment: verb; border-top: 4px solid var(--brand-navy); padding-top: 18px; }
.verb h3 { font-size: 26px; color: var(--brand-navy); margin-bottom: 8px; }
.verb h3::before { content: counter(verb) " · "; color: var(--accent-text); }
.verb p { color: var(--ink-muted); }

/* 4. Pour chacun */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.audience {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.audience-who { color: var(--accent-text); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; }
.audience h3 { font-size: 21px; color: var(--brand-navy); margin: 8px 0 10px; }
.audience > p:not(.audience-who) { color: var(--ink-muted); font-size: 16px; }
/* Cadre vide étiqueté, en attendant de vraies captures (jamais d'illustration). */
.screen {
  margin-top: auto; padding: 16px; min-height: 220px;
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface-tint);
  color: var(--ink-muted); font-size: 14px;
}
.audience > p + .screen { margin-top: 20px; }

/* 5. Cartes fonctions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--surface);
}
.card h3 { font-size: 18px; color: var(--brand-navy); margin: 14px 0 6px; }
.card p { font-size: 15px; color: var(--ink-muted); }
/* Pictogrammes : trait blanc dans un carré arrondi de couleur de marque. */
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-blue); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--on-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { background: var(--brand-navy); border-color: var(--brand-navy); position: relative; overflow: hidden; }
.card-feature::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.card-feature h3 { color: var(--on-dark); }
.card-feature p { color: var(--on-dark-muted); }
.card-feature .ico { background: var(--brand-green); }

/* 6. Bord du terrain */
.field { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.field h2 { font-size: clamp(26px, 3.2vw, 36px); }
.field-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-list li {
  display: flex; align-items: center; min-height: 64px; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-green); border-radius: 12px;
  font-weight: 700; color: var(--brand-navy);
}

/* 7. Réseau de clubs */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0 28px; max-width: 760px; }
.versus-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-muted); }
.versus-item.is-in { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--on-dark); }
.versus-k { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; color: var(--ink-muted); }
.versus-item.is-in .versus-k { color: var(--on-dark-muted); }
.versus-item p:last-child { font-size: 20px; font-weight: 700; line-height: 1.35; }
.versus-item:not(.is-in) p:last-child { color: var(--ink); }

/* 8. Preuves */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 2px solid rgba(255,255,255,.3); padding-top: 14px; }
.stat dd { margin: 0; font-size: clamp(44px, 6vw, 64px); font-weight: 700; line-height: 1; color: var(--on-dark); }
.stat dt { margin-top: 8px; color: var(--on-dark-muted); font-size: 16px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; margin-top: 48px; }
.proof-block { color: var(--on-dark-muted); font-size: 16px; }
.quote { margin: 0; padding: 20px 22px; border-radius: 14px; background: rgba(255,255,255,.08); }
.quote p { color: var(--on-dark); font-size: 18px; }
.quote footer { margin-top: 10px; font-size: 15px; }

/* Texte en attente d'une donnée réelle : visible tant qu'il n'est pas fourni (consigne 4). */
.todo { outline: 2px dashed currentColor; outline-offset: 4px; }

/* 9. Feuille de route */
.road { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.road-step {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 26px 22px 24px; border: 1px solid var(--line);
}
.road-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--brand-navy); border: 2px solid var(--brand-navy);
  font-weight: 700; font-size: 15px;
}
.road-step.is-next { border-color: var(--brand-navy); }
.road-step.is-next::before { background: var(--brand-navy); color: var(--on-dark); }
.road-when { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-text); margin: 6px 0 8px; }
.road-step h3 { font-size: 19px; color: var(--brand-navy); margin-bottom: 8px; }
.road-step p:last-child { font-size: 15px; color: var(--ink-muted); }

/* 10. Principes */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; margin-top: 44px; }
.principle { padding-left: 20px; border-left: 4px solid var(--brand-navy); }
.principle h3 { font-size: 20px; color: var(--brand-navy); margin-bottom: 8px; }
.principle p { color: var(--ink-muted); font-size: 16px; }

/* 11. Démarrer */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: start; }
.steps li {
  counter-increment: start; display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  font-size: 18px; font-weight: 700; color: var(--brand-navy); line-height: 1.4;
}
.steps li::before {
  content: counter(start); flex: none;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-navy); color: var(--on-dark); font-size: 16px;
}

/* Filet de marque entre le contenu et l'appel à l'action */
.brand-rule { height: var(--rule); background: var(--grad); }

/* Appel à l'action */
.join { background: var(--brand-navy-deep); }
.join h2 { max-width: 20em; }
.pledges { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--on-dark); font-size: 17px; }
.pledges li { display: flex; align-items: center; gap: 10px; }
.pledges li:not(.todo)::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-green); flex: none; }
.pledges .todo { color: var(--on-dark-muted); }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; margin-top: 44px; }
.qr-card {
  background: var(--surface); border-radius: 22px; padding: 26px 26px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qr-card img { width: 220px; height: 220px; }
.qr-card h3 { color: var(--brand-navy); font-size: 21px; margin-top: 14px; }
.qr-card p { color: var(--ink-muted); font-size: 15px; margin: 6px 0 16px; }
.qr-card .mail { margin: 12px 0 0; font-size: 14px; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--ink-muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer b { color: var(--brand-navy); }

/* Écrans moyens */
@media (max-width: 960px) {
  .pain-grid, .cards, .road, .stats { grid-template-columns: repeat(2, 1fr); }
  .road { row-gap: 34px; }
  .audiences, .verbs, .steps, .proof-grid { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .nav a { padding: 0 6px; }
}

/* Téléphones */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .band { padding: 56px 0; }
  .pain-grid, .cards, .road, .stats, .versus, .field-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-short { padding: 48px 0; }
  .screen { min-height: 160px; }
  .brand { font-size: 18px; }
  .qr-grid { grid-template-columns: 1fr; justify-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
