/* Bandjo — site vitrine. Charte : marine #0F0F4B, cyan #07B0C7, soleil #FFD166,
   police Nunito (hébergée ici : aucune requête vers Google). Couleurs de texte
   foncées (cyan-fonce, soleil-fonce) pour un contraste lisible (WCAG AA). */

@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(fonts/nunito-regular.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(fonts/nunito-bold.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(fonts/nunito-extrabold.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(fonts/nunito-black.ttf) format("truetype"); }

:root {
  --marine: #0F0F4B;
  --cyan: #07B0C7;
  --cyan-fonce: #08798A;
  --soleil: #FFD166;
  --soleil-fonce: #8C5E00;
  --encre: #16164E;
  --gris: #5B6178;
  --fond: #F4F6FA;
  --selection: #D3F4F9;
  --blanc: #FFFFFF;
  --rayon: 24px;
  --ombre: 0 8px 30px rgba(15, 15, 75, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan-fonce); font-weight: 700; }
a:hover { color: var(--marine); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--marine); line-height: 1.2; font-weight: 900; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* --- En-tête -------------------------------------------------------------- */
.entete { background: var(--blanc); box-shadow: 0 1px 0 rgba(15, 15, 75, 0.06); position: sticky; top: 0; z-index: 10; }
.entete .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marine); font-weight: 900; font-size: 1.5rem; }
.marque img { border-radius: 14px; }
.nav { margin-left: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--encre); font-weight: 700; padding: 6px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan-fonce); }

/* --- Boutons -------------------------------------------------------------- */
.boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  background: var(--soleil); color: var(--marine);
  border: 2px solid var(--soleil);
}
.bouton:hover { background: #ffc94a; color: var(--marine); }
.bouton.secondaire { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, 0.6); }
.bouton.secondaire:hover { border-color: var(--blanc); color: var(--blanc); }
.bouton small { display: block; font-size: 0.75rem; font-weight: 700; opacity: 0.8; line-height: 1.1; }

/* --- Héros ---------------------------------------------------------------- */
.heros { background: var(--marine); color: var(--blanc); padding: 64px 0 80px; position: relative; overflow: hidden; }
.heros::before, .heros::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.18; }
.heros::before { width: 420px; height: 420px; background: var(--cyan); right: -120px; top: -140px; }
.heros::after { width: 260px; height: 260px; background: var(--soleil); left: -90px; bottom: -120px; }
.heros .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.heros h1 { color: var(--blanc); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 16px; }
.heros h1 span { color: var(--soleil); }
.heros p.intro { font-size: 1.25rem; color: #E3E6F5; margin: 0 0 28px; max-width: 34rem; }
.heros .logo-heros { justify-self: center; width: min(300px, 70vw); border-radius: 64px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.mention { margin-top: 14px; font-size: 0.95rem; color: #C9CDE6; }

/* --- Sections ------------------------------------------------------------- */
section { padding: 64px 0; }
section.blanc { background: var(--blanc); }
.titre-section { text-align: center; max-width: 44rem; margin: 0 auto 40px; }
.titre-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.titre-section p { color: var(--gris); margin: 0; font-size: 1.15rem; }

.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
section.blanc .carte { background: var(--fond); box-shadow: none; }
.carte h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.carte p { margin: 0; color: var(--gris); }
.pastille {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--selection);
}
.pastille.soleil { background: #FFF0C7; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.liste-coches li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cyan-fonce); color: var(--blanc); font-weight: 900; font-size: 0.85rem; display: grid; place-items: center;
}
.illustration { background: var(--selection); border-radius: 32px; padding: 32px; }
.famille { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.membre { background: var(--blanc); border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; box-shadow: var(--ombre); }
.membre .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--blanc); font-weight: 900; }
.membre small { display: block; color: var(--gris); font-weight: 700; font-size: 0.8rem; }

.prix { text-align: center; max-width: 30rem; margin: 0 auto; background: var(--blanc); border-radius: 32px; padding: 36px 28px; box-shadow: var(--ombre); border: 3px solid var(--soleil); }
.prix .montant { font-size: 3.2rem; font-weight: 900; color: var(--marine); line-height: 1; }
.prix .montant small { font-size: 1.1rem; color: var(--gris); }

details { background: var(--blanc); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--ombre); }
section.blanc details { background: var(--fond); box-shadow: none; }
summary { cursor: pointer; font-weight: 800; color: var(--marine); }
details p { margin: 10px 0 0; color: var(--encre); }

/* --- Pages de texte (légal, support) ---------------------------------------- */
.page { padding: 48px 0 64px; }
.document { background: var(--blanc); border-radius: 32px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--ombre); max-width: 820px; margin: 0 auto; }
.document h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0; }
.document h2 { font-size: 1.35rem; margin-top: 2rem; }
.document .maj { color: var(--gris); margin-top: -8px; }
.document table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.98rem; }
.document th, .document td { text-align: left; padding: 10px; border-bottom: 1px solid #E3E6EF; vertical-align: top; }
.document th { color: var(--marine); }
.encadre { background: #FFF3D1; border-radius: 16px; padding: 14px 18px; margin: 16px 0; }
.a-completer { background: #FFE1E1; color: #8A1C1C; border-radius: 6px; padding: 0 6px; font-weight: 800; }
.table-defile { overflow-x: auto; }

/* --- Pied de page ------------------------------------------------------------ */
.pied { background: var(--marine); color: #C9CDE6; padding: 40px 0; font-size: 0.98rem; }
.pied .wrap { display: flex; gap: 24px 48px; flex-wrap: wrap; justify-content: space-between; }
.pied a { color: var(--blanc); font-weight: 700; text-decoration: none; }
.pied a:hover { color: var(--soleil); }
.pied nav { display: flex; flex-direction: column; gap: 6px; }
.pied .marque { color: var(--blanc); }

@media (max-width: 760px) {
  .heros { padding: 40px 0 56px; }
  .heros .wrap, .deux-colonnes { grid-template-columns: 1fr; }
  .heros .logo-heros { order: -1; width: 160px; border-radius: 36px; }
  .entete { position: static; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 10px; gap: 2px 16px; }
  .nav a { font-size: 0.98rem; }
  section { padding: 48px 0; }
}

/* Tableaux des pages légales : une ligne = un bloc sur petit écran. */
@media (max-width: 600px) {
  .document thead { display: none; }
  .document tr { display: block; padding: 12px 0; border-bottom: 1px solid #E3E6EF; }
  .document td { display: block; border: 0; padding: 2px 0; }
  .document td:first-child { font-weight: 800; color: var(--marine); }
  .document td:last-child { color: var(--gris); font-size: 0.92rem; }
}

/* --- Accessibilité : lien d'évitement (visible au clavier) ------------------ */
.evitement { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--soleil); color: var(--marine); padding: 10px 16px; border-radius: 12px; }
.evitement:focus { top: 12px; }

/* --- Utilitaires ------------------------------------------------------------- */
.wrap.etroit { max-width: 820px; }
.carte.contact { margin-bottom: 32px; }
.carte.contact h2 { margin-top: 0; }
.carte.contact p:last-child { margin-bottom: 0; }
.prix-liste { text-align: left; max-width: 22rem; margin: 20px auto; }
.faq { max-width: 44rem; margin: 0 auto; }
.faq-suite { text-align: center; margin-top: 24px; }
.pied .petit { font-size: 0.85rem; margin-bottom: 0; }

/* Avatars de l'illustration « famille » */
.av-cyan { background: var(--cyan-fonce); }
.av-marine { background: var(--marine); }
.av-soleil { background: var(--soleil-fonce); }
.av-rose { background: #B4235A; }
.av-ardoise { background: #4B5563; }
.av-violet { background: #5B3FA8; }

/* --- Pages courtes (invitation, erreur) --------------------------------------- */
.centre { text-align: center; }
.centre .logo-page { border-radius: 32px; box-shadow: var(--ombre); }
.etapes { text-align: left; max-width: 30rem; margin: 24px auto; padding-left: 1.4rem; }
.etapes li { margin-bottom: 10px; }

/* Exemples de code (page API) */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--selection); color: var(--marine); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
pre.code { background: var(--marine); color: #E3E6F5; border-radius: 16px; padding: 16px 18px; overflow-x: auto; font-size: 0.92rem; line-height: 1.5; }
pre.code code { background: none; color: inherit; padding: 0; overflow-wrap: normal; }
