/* ==========================================================================
   Djelify — site.css
   Feuille de style principale du site public djelify.com
   Tous les styles utilisent exclusivement les variables de tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES LOCALES (@font-face) — woff2 locaux uniquement, aucun CDN
   -------------------------------------------------------------------------- */

/* Bricolage Grotesque (600, 700) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hanken Grotesk (400, 500, 600, 700) */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono (500) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. VARIABLES PROPRES À LA LANDING (en tête de site.css)
   -------------------------------------------------------------------------- */
:root {
  --space-20: 80px;
  --space-24: 96px;
  --section-space: var(--space-24);
  --content-max: 1120px;
  --reading-max: 720px;
}

@media (max-width: 720px) {
  :root {
    --section-space: var(--space-16);
  }
}

/* Règle globale pour respecter l'attribut hidden */
[hidden] {
  display: none !important;
}

/* Masquage visuel accessible (lecteurs d'écran et pièges à robots) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. BASE & ACCESSIBILITÉ
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Sécurité anti-débordement pour les enfants directs de conteneurs grid et flex */
.wrap > *,
.hero-grid > *,
.problem-grid > *,
.how-it-works-layout > *,
.timeline-steps > *,
.timeline-step > *,
.features-grid > *,
.djeli-showcase > *,
.djeli-tabs,
.djeli-panel,
.djeli-panel-card > *,
.badges-group-grid > *,
.badges-group > *,
.protection-grid > *,
.coming-soon-list > *,
.faq-accordion > *,
.waitlist-card > *,
.waitlist-card > div > *,
.footer-top > *,
.footer-links-grid > *,
.footer-col > * {
  min-width: 0;
}

/* Liens e-mail et URL longues sans débordement */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.waitlist-contacts a,
.footer-nav-list a {
  overflow-wrap: anywhere;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus visible universel */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Cibles tactiles minimales de 40px */
a, button, input, select, textarea, summary {
  touch-action: manipulation;
}

/* Lien d'évitement accessible */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -120px;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--surface-raised);
  color: var(--indigo);
  border: 2px solid var(--focus);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Liens */
a {
  color: var(--indigo);
  text-underline-offset: 0.18em;
  transition: color 120ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Typographie spécifique */
.display-hero {
  font-family: 'Bricolage Grotesque', var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  color: var(--ink);
  text-wrap: balance;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin-top: 0;
}

/* Filet décoratif bogolan (6 px de haut) */
.bogolan-rule {
  height: 6px;
  width: 100%;
  background-color: var(--bogolan);
  opacity: 0.32;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6'%3E%3Cpolygon points='0,3 4,0 8,3 12,0 16,3 12,6 8,3 4,6' fill='black'/%3E%3C/svg%3E") repeat-x;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6'%3E%3Cpolygon points='0,3 4,0 8,3 12,0 16,3 12,6 8,3 4,6' fill='black'/%3E%3C/svg%3E") repeat-x;
}

/* Conteneur principal */
.wrap {
  width: min(100% - (2 * var(--space-5)), var(--content-max));
  margin-inline: auto;
}

.reading-wrap {
  max-width: var(--reading-max);
  margin-inline: auto;
}

/* Section générique */
.site-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.site-section:first-of-type {
  border-top: none;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section-head-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.section-head .section-title {
  max-width: 22ch;
  margin-inline: auto;
}

.section-lead {
  color: var(--ink-muted);
  margin: 0;
  font-size: 17px;
  line-height: 26px;
}

/* Repère visuel pour contenu à venir */
.placeholder-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px dashed var(--line-strong);
}

/* --------------------------------------------------------------------------
   4. COMPOSANTS IMPORTÉS DE BUNDLE.CSS (préfixe dj-)
   -------------------------------------------------------------------------- */

/* Boutons */
.dj-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  min-height: var(--control-md);
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease, filter 120ms ease;
  box-sizing: border-box;
}

.dj-btn-sm {
  height: var(--control-sm);
  min-height: var(--control-sm);
  padding: 0 var(--space-3);
  font-size: 13px;
}

.dj-btn-lg {
  height: var(--control-lg);
  min-height: var(--control-lg);
  padding: 0 var(--space-6);
  font-size: 16px;
}

.dj-btn-primary {
  background: var(--indigo);
  color: var(--on-indigo);
}

.dj-btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.dj-btn-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}

.dj-btn-secondary:hover {
  background: var(--surface-sunken);
  text-decoration: none;
}

.dj-btn-quiet {
  background: transparent;
  color: var(--indigo);
}

.dj-btn-quiet:hover {
  background: var(--indigo-soft);
  text-decoration: none;
}

.dj-btn-danger {
  background: var(--surface-raised);
  color: var(--danger);
  border-color: var(--danger);
}

.dj-btn-danger:hover {
  background: var(--danger-soft);
}

.dj-btn:disabled, .dj-btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: none;
  pointer-events: none;
}

/* Champs de formulaire */
.dj-field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  text-align: left;
}

.dj-field-label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}

.dj-input {
  font: inherit;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  height: var(--control-md);
  min-height: var(--control-md);
  padding: 0 var(--space-3);
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}

textarea.dj-input {
  height: auto;
  min-height: 96px;
  padding: var(--space-3);
  resize: vertical;
}

.dj-input::placeholder {
  color: var(--ink-muted);
}

.dj-input.is-invalid {
  border-color: var(--danger);
  border-width: 2px;
}

.dj-field-hint {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}

.dj-field-hint.is-error {
  color: var(--danger);
  font-weight: 600;
}

/* Feedback de validation formulaire */
.form-message {
  font-size: 13px;
  line-height: 18px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: none;
}

.form-message.is-error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
  border: 1px solid var(--danger);
}

.form-message.is-success {
  display: block;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 600;
  border: 1px solid var(--success);
}

/* Bandeau de suggestion de faute de frappe e-mail */
.email-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--warning-soft);
  border: 1px solid var(--warning);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  transition: opacity 160ms ease;
  box-sizing: border-box;
  width: 100%;
}

.email-suggestion[hidden] {
  display: none;
}

.email-suggestion-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.email-suggestion-text strong {
  color: var(--ink);
  font-weight: 700;
}

.email-suggestion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-indigo);
  background: var(--indigo);
  border: 1px solid var(--indigo);
  border-radius: var(--radius-pill);
  min-height: var(--control-md);
  padding: 0 var(--space-3);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 120ms ease;
}

.email-suggestion-btn:hover {
  opacity: 0.92;
}

.email-suggestion-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .email-suggestion {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .email-suggestion-btn {
    width: 100%;
  }
}

/* Badges de statut */
.dj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.dj-badge-neutral {
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.dj-badge-indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.dj-badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.dj-badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.dj-badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.dj-badge-kola {
  background: var(--kola-soft);
  color: var(--kola-ink);
}

/* Commutateur de mode / onglets segmentés */
.dj-modeswitch {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.dj-seg {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 34px;
  min-height: 34px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dj-seg.is-on, .dj-seg[aria-selected="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
}

.dj-seg.is-on::before, .dj-seg[aria-selected="true"]::before {
  content: "●";
  color: var(--indigo);
  margin-right: 2px;
  font-size: 9px;
  vertical-align: 1px;
}

/* Étapes */
.dj-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.dj-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  line-height: 16px;
  color: var(--ink-muted);
}

.dj-step-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  font-family: var(--font-mono);
}

.dj-step.is-done .dj-step-dot {
  background: var(--indigo-soft);
  border-color: var(--indigo-soft);
  color: var(--indigo);
}

.dj-step.is-current {
  color: var(--ink);
  font-weight: 600;
}

.dj-step.is-current .dj-step-dot {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--on-indigo);
}

/* Cartes génériques */
.dj-card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/* Pastilles / Chips */
.dj-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. EN-TÊTE COLLANT (STICKY HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-2);
}

/* Logo de marque */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark-bg {
  fill: var(--indigo);
}

.mark-dot {
  fill: var(--kola);
}

.mark-d {
  fill: var(--surface-raised);
}

/* Navigation principale */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: var(--space-2) var(--space-1);
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* Sélecteur de langue */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.lang-selector a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.lang-selector a:hover {
  color: var(--ink);
  background: var(--surface-sunken);
}

.lang-selector .active-lang {
  color: var(--ink);
  font-weight: 700;
  background: var(--surface-sunken);
}

/* Bouton hamburger mobile */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 120ms ease;
}

.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 120ms ease;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { bottom: -6px; }

/* Responsive Header */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--line);
    padding: var(--space-5);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    box-shadow: var(--shadow-overlay);
  }

  .header-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .nav-link {
    font-size: 16px;
    padding: var(--space-2) 0;
    width: 100%;
  }

  .header-nav .header-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   6. SECTIONS DE L'ACCUEIL
   -------------------------------------------------------------------------- */

/* Section 1 : Héros */
.hero-section {
  padding-block: var(--space-16) var(--space-20);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-10);
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 24px;
  white-space: normal;
  line-height: 1.35;
  padding: 4px var(--space-2);
  margin-bottom: var(--space-4);
  max-width: 100%;
}

.hero-lead {
  font-size: 19px;
  line-height: 28px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-8);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.djeli-illustration {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Formulaire d'e-mail inline (Héros & Liste d'attente) */
.inline-form {
  display: grid;
  gap: var(--space-3);
  max-width: 480px;
}

.form-row {
  display: flex;
  gap: var(--space-2);
}

.form-row .dj-input {
  flex: 1;
  height: var(--control-lg);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--indigo);
}

.form-perk {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  margin: 0;
}

.form-footnote {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: 2;
    margin-top: var(--space-6);
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    margin-top: var(--space-8);
    justify-content: center;
  }

  .hero-visual .djeli-illustration,
  .how-it-works-layout .hero-visual .djeli-illustration,
  .waitlist-card .hero-visual .djeli-illustration {
    max-width: 140px;
    width: 140px;
    height: auto;
    margin-inline: auto;
  }
}

/* Section 2 : Problème (3 courts blocs) */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* Section 3 : Comment ça marche (3 étapes reliées + Djeli travaille) */
.how-it-works-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-10);
}

.timeline-steps {
  display: grid;
  gap: var(--space-6);
  position: relative;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

.timeline-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  border: 2px solid var(--indigo);
  flex: none;
}

.timeline-content h3 {
  margin: 0 0 var(--space-2);
}

.timeline-content p {
  margin: 0;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .how-it-works-layout {
    grid-template-columns: 1fr;
  }
}

/* Section 4 : Fonctionnalités (6 cartes en 3/2/1 colonnes) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--indigo);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Section 5 : Djeli (3 onglets avec mascottes et texte) */
.djeli-showcase {
  display: grid;
  gap: var(--space-8);
  justify-items: center;
}

.djeli-tabs {
  display: flex;
  justify-content: center;
}

.djeli-panel {
  width: 100%;
  max-width: 800px;
}

.djeli-panel-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
}

.djeli-panel-mascot {
  width: 96px;
  height: 96px;
  flex: none;
}

.djeli-panel-content {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.djeli-weekly-note {
  text-align: center;
  max-width: 640px;
  margin: var(--space-6) auto 0;
  color: var(--ink-muted);
}

.video-placeholder-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 2px dashed var(--line-strong);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  text-align: center;
}

.video-placeholder-16x9 .djeli-mini {
  width: 96px;
  height: auto;
}

@media (max-width: 719px) {
  .djeli-tabs {
    width: 100%;
  }

  .dj-modeswitch {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .dj-seg {
    width: 100%;
    white-space: normal;
    justify-content: flex-start;
    text-align: left;
    min-height: var(--control-md);
    height: auto;
    padding-block: var(--space-2);
  }

  .dj-seg .dj-badge {
    margin-left: auto;
  }

  .djeli-panel-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .djeli-panel-mascot {
    width: 72px;
    height: 72px;
  }
}

/* Section 7 : Réseaux & Moyens de paiement */
.badges-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.badges-group {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
}

.badges-group h3 {
  margin-bottom: var(--space-4);
}

.badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.group-note {
  margin: 0;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .badges-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Section 8 : Protection (3 blocs) */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .protection-grid {
    grid-template-columns: 1fr;
  }
}

/* Section 9 : Bientôt (liste de pastilles avec badge « Bientôt ») */
.coming-soon-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  max-width: 840px;
  margin: 0 auto;
}

/* Section 10 : Questions / FAQ (accordéon details/summary) */
.faq-accordion {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  overflow: hidden;
  transition: border-color 120ms ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-summary {
  padding: var(--space-4) var(--space-5);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 20px;
  font-family: var(--font-mono);
  color: var(--indigo);
  transition: transform 120ms ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-content {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-muted);
  line-height: 24px;
}

.faq-content p {
  margin: 0;
}

/* Section 11 : Liste d'attente (Appel final) */
.waitlist-card {
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-10);
}

.waitlist-lead {
  margin-bottom: var(--space-6);
  color: var(--ink-muted);
}

.waitlist-contacts {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 14px;
}

@media (max-width: 800px) {
  .waitlist-card {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   7. PIED DE PAGE
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
  padding-block: var(--space-12) var(--space-8);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand-col {
  max-width: 340px;
  display: grid;
  gap: var(--space-3);
}

.footer-tagline {
  margin: 0;
  color: var(--ink-muted);
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
}

.footer-title {
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer-nav-list a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.social-list svg,
.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link:hover {
  color: var(--ink);
}

.social-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  color: var(--ink);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: 13px;
}

.nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. PAGES LÉGALES & PAGE BOT
   -------------------------------------------------------------------------- */
.legal-page {
  padding-block: var(--space-12) var(--space-16);
}

.legal-article {
  max-width: 720px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}

.legal-article h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 40px;
  margin-bottom: var(--space-4);
}

.legal-article h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-article p, .legal-article ul {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.legal-article .notice {
  margin: 0 0 var(--space-8);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--ink);
  border-left: 4px solid var(--warning);
}

.legal-article .updated {
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
}

.legal-article h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.legal-toc {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0 var(--space-8);
}

.legal-toc h2,
.legal-toc .toc-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  margin-top: 0;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.legal-toc ol {
  margin: 0;
  padding-left: var(--space-5);
  font-size: 14px;
  line-height: 22px;
}

.legal-toc li {
  margin-bottom: var(--space-1);
}

.legal-toc a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) 0 var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}

.legal-table th {
  background: var(--surface-sunken);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  white-space: nowrap;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: var(--surface-sunken);
}

dl.identity {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 var(--space-8);
}

dl.identity dt {
  font-weight: 600;
  color: var(--ink);
}

dl.identity dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  dl.identity {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  dl.identity dd {
    margin-bottom: var(--space-3);
  }
}

/* Page Bot & Code Blocks */
.bot-section {
  margin-bottom: var(--space-8);
}

pre {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: var(--space-3) 0 var(--space-6);
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}

pre code {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
  white-space: pre;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-sunken);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

/* Page 404 */
.not-found-layout {
  padding-block: var(--space-16) var(--space-20);
  text-align: center;
  display: grid;
  place-items: center;
  gap: var(--space-6);
}

.not-found-visual {
  max-width: 220px;
  width: 100%;
}

.not-found-h1 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.not-found-lead {
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
}

.not-found-lead--narrow {
  max-width: 36ch;
  margin-inline: auto;
}

.not-found-divider {
  border: 0;
  border-top: 1px solid var(--line);
  max-width: 320px;
  margin: var(--space-6) auto;
}

.not-found-h2 {
  margin-bottom: var(--space-3);
}

.not-found-body {
  color: var(--ink-muted);
  margin-bottom: var(--space-8);
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   9. STYLEGUIDE (_styleguide.html)
   -------------------------------------------------------------------------- */
.sg-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.sg-lead {
  color: var(--ink-muted);
  max-width: 680px;
}

.sg-header-padding {
  padding-block: var(--space-8);
}

.sg-brand-sub {
  font-size: 14px;
  font-weight: normal;
  color: var(--ink-muted);
}

.sg-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.sg-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.sg-swatch-color {
  height: 64px;
}

.sg-swatch-surface { background: var(--surface); }
.sg-swatch-surface-raised { background: var(--surface-raised); }
.sg-swatch-surface-sunken { background: var(--surface-sunken); }
.sg-swatch-line { background: var(--line); }
.sg-swatch-line-strong { background: var(--line-strong); }
.sg-swatch-ink { background: var(--ink); }
.sg-swatch-ink-muted { background: var(--ink-muted); }
.sg-swatch-indigo { background: var(--indigo); }
.sg-swatch-indigo-soft { background: var(--indigo-soft); }
.sg-swatch-kola { background: var(--kola); }
.sg-swatch-kola-soft { background: var(--kola-soft); }
.sg-swatch-kola-ink { background: var(--kola-ink); }
.sg-swatch-bogolan { background: var(--bogolan); }
.sg-swatch-success { background: var(--success); }
.sg-swatch-warning { background: var(--warning); }
.sg-swatch-danger { background: var(--danger); }
.sg-swatch-focus { background: var(--focus); }
.sg-main { padding-bottom: var(--space-20); }

.sg-swatch-info {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.sg-swatch-name {
  font-weight: 600;
  color: var(--ink);
}

.sg-swatch-val {
  color: var(--ink-muted);
}

.sg-text-scale-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.sg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.sg-btn-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.sg-field-container {
  max-width: 440px;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.sg-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.sg-card-wrap {
  max-width: 480px;
  margin-top: var(--space-4);
}

.sg-modeswitch-wrap {
  margin-top: var(--space-4);
}

.sg-accordion-wrap {
  margin: var(--space-4) 0 0;
  max-width: 600px;
}

.sg-mascots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.sg-mascot-img {
  margin: 0 auto var(--space-3);
}

/* Classes utilitaires pour éliminer tout style inline */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* --------------------------------------------------------------------------
   10. PRÉFÉRENCE MOUVEMENT RÉDUIT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
