/* ═════════════════════════════════════════════════════════════════════════════
   Plateforme Ambassadeurs — charte Baobab Labs (book de marque v1.0, aout 2026)
   • Palette : indigo profond (texte, couvertures), indigo primaire (titres,
     boutons, logo), blanc casse (fond). Accent unique de ce support : l'or
     Vendly, reserve a ce qui concerne Vendly. Proportion 60 / 30 / 10.
   • Jamais de blanc sur l'or : texte indigo profond sur fond or.
   • Unbounded (900 titres, 600 sous-titres) jamais sous 16 pt (21 px) ni en
     paragraphe ; Space Grotesk pour le texte, les tableaux et les montants.
   • Montants : Space Grotesk Medium, espace insecable entre les milliers.
   Pense d'abord pour un telephone Android.
   ═════════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url('/assets/polices/unbounded-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url('/assets/polices/unbounded-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url('/assets/polices/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/assets/polices/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/assets/polices/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Palette de marque */
  --indigo-profond: #170B3B;
  --indigo: #2D1B69;
  --blanc-casse: #F7F3EC;
  --blanc: #FFFFFF;
  --or-vendly: #E8B14E;
  /* Derivees fonctionnelles (teintes de la palette) */
  --texte: var(--indigo-profond);
  --doux: #5E5776;
  --ligne: #E4DED3;
  --indigo-pale: #ECE9F2;
  --or-pale: #FBF0DA;
  --erreur: #A32A22;
  --erreur-pale: #FBE9E6;
  --titre: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --corps: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --rayon: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc-casse); color: var(--texte); font: 400 16px/1.6 var(--corps); }
a { color: var(--indigo); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p, li { overflow-wrap: anywhere; }
strong, b { font-weight: 700; }

/* Titres : Unbounded, jamais sous 21 px */
h1, h2 { font-family: var(--titre); color: var(--indigo-profond); line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-weight: 900; font-size: 1.75rem; }
h2 { font-weight: 600; font-size: 1.35rem; margin-top: 1.6em; }
h3 { font: 700 1.1rem/1.3 var(--corps); color: var(--indigo-profond); margin: 1.3em 0 .4em; }
.surtitre { font: 700 .78rem/1.3 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin: 0 0 .7em; }
.montant { font-weight: 500; white-space: nowrap; }
.doux { color: var(--doux); }
.petit { font-size: .9rem; }

/* Bandeau : lockup horizontal symbole + nom (symbole >= 64 px de large) */
.bandeau { background: var(--blanc-casse); border-bottom: 1px solid var(--ligne); }
.bandeau .interieur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; max-width: 920px; margin: 0 auto; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo-profond); }
.marque img { width: 64px; height: auto; flex: none; }
.marque b { display: block; font: 900 1.32rem/1 var(--titre); letter-spacing: -.01em; }
.marque small { display: block; font: 700 .72rem/1.3 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-top: 5px; }
.bandeau nav { display: flex; gap: 16px; align-items: center; font-size: .95rem; }
.bandeau nav a { text-decoration: none; font-weight: 700; white-space: nowrap; color: var(--indigo); }

main { max-width: 920px; margin: 0 auto; padding: 24px 16px 56px; }
.etroit { max-width: 580px; }

/* Couverture (indigo profond, comme les couvertures du book) */
.couverture { background: var(--indigo-profond); color: var(--blanc-casse); border-radius: var(--rayon); padding: 28px 20px; margin: 0 0 24px; }
.couverture .surtitre { color: var(--or-vendly); }
.couverture h1 { color: var(--blanc-casse); font-size: 1.8rem; }
.couverture p { color: #DCD6E8; font-size: 1.05rem; }
.couverture .symbole { width: 72px; display: block; margin: 0 0 18px; }

/* Cartes */
.carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px 18px; margin: 0 0 16px; }
.carte > h1:first-child, .carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
/* Fiche produit : bandeau de la couleur du produit (book, p. 11) */
.produit { border-top: 10px solid var(--or-vendly); }
.produit .nom-produit { font: 900 1.6rem/1 var(--titre); color: var(--indigo-profond); letter-spacing: -.01em; margin: 0 0 6px; }
.produit .promesse { font-style: italic; color: var(--doux); margin-bottom: 12px; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.etapes li { counter-increment: etape; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 16px 16px 68px; position: relative; }
.etapes li::before { content: '0' counter(etape); position: absolute; left: 16px; top: 13px; font: 900 1.35rem/1 var(--titre); color: var(--indigo); }

.badge { display: inline-block; white-space: nowrap; font: 700 .72rem/1.2 var(--corps); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--indigo-pale); color: var(--indigo); vertical-align: middle; }
.badge.or { background: var(--or-pale); color: var(--indigo-profond); }
.badge.erreur { background: var(--erreur-pale); color: var(--erreur); }

.code-amb { font: 700 2.1rem/1.15 var(--corps); letter-spacing: .1em; color: var(--indigo); border: 2px dashed var(--indigo); border-radius: 10px; padding: 10px 18px; display: inline-block; margin: 6px 0 12px; }

/* Tableaux : defilement dans leur cadre, jamais la page */
.tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--ligne); padding: 10px 8px; text-align: left; vertical-align: top; }
td { overflow-wrap: break-word; }
th { font-weight: 700; color: var(--indigo); background: var(--blanc-casse); }

/* Formulaires */
label { display: block; font-weight: 700; margin: 16px 0 6px; }
.aide { display: block; font-weight: 400; color: var(--doux); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--corps); padding: 12px; border: 1px solid #CEC6BA; border-radius: 9px; background: var(--blanc); color: var(--texte);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(45, 27, 105, .22); border-color: var(--indigo); }
textarea { min-height: 112px; resize: vertical; }
.choix { display: flex; gap: 10px; flex-wrap: wrap; }
.choix label { display: flex; align-items: center; gap: 8px; margin: 0; border: 1px solid #CEC6BA; border-radius: 9px; padding: 10px 14px; background: var(--blanc); cursor: pointer; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 16px 0 0; }
.case input, .choix input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--indigo); }
.ligne-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .ligne-2 { grid-template-columns: 1fr 1fr; } }
.anti-robot { margin: 18px 0 4px; min-height: 65px; }

.bouton { display: inline-block; font: 700 1rem/1.2 var(--corps); text-align: center; text-decoration: none; border: 2px solid var(--indigo); border-radius: 10px; padding: 13px 20px; cursor: pointer; background: var(--indigo); color: var(--blanc-casse); }
.bouton:hover { background: var(--indigo-profond); border-color: var(--indigo-profond); }
.bouton.large { width: 100%; margin-top: 18px; }
.bouton.clair { background: transparent; color: var(--indigo); }
.bouton.clair:hover { background: var(--indigo-pale); }
.bouton.danger { background: var(--erreur); border-color: var(--erreur); color: var(--blanc); }
.couverture .bouton { background: var(--blanc-casse); border-color: var(--blanc-casse); color: var(--indigo-profond); }
.couverture .bouton.clair { background: transparent; color: var(--blanc-casse); }
.bouton[disabled] { opacity: .55; cursor: wait; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Messages : le risque et la solution dans la meme phrase (voix de marque) */
.message { border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-weight: 500; }
.message.erreur { background: var(--erreur-pale); color: var(--erreur); }
.message.ok { background: var(--indigo-pale); color: var(--indigo); }
.message.info { background: #EFEAE0; color: var(--indigo-profond); border-left: 4px solid var(--indigo); }
.cache { display: none !important; }

.reglement h2 { font-size: 1.32rem; }
.reglement li { margin-bottom: .45em; }

footer { border-top: 1px solid var(--ligne); color: var(--doux); font-size: .88rem; text-align: center; padding: 22px 16px 34px; }
footer a { color: var(--doux); }
