/* ============================================================
   COMPLEXE SCOLAIRE LES BIQUETTES — Design system
   Charte : bleu #2E86C1 · orange #E67E22 · vert #27AE60 · crème #FDF8F0
   ============================================================ */

:root {
  --bleu: #2E86C1;
  --bleu-fonce: #1B4F72;
  --orange: #E67E22;
  --orange-fonce: #CA6F1E;
  --vert: #27AE60;
  --creme: #FDF8F0;
  --encre: #243b53;
  --gris: #64748b;
  --blanc: #ffffff;
  --rayon: 16px;
  --ombre: 0 8px 24px rgba(27, 79, 114, .12);
  --police-titres: 'Baloo 2', 'Nunito', sans-serif;
  --police-texte: 'Nunito', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3, h4 { font-family: var(--police-titres); line-height: 1.2; color: var(--bleu-fonce); }

.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-family: var(--police-titres); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-fonce); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); }
.btn-contour { background: transparent; color: var(--bleu); border: 2px solid var(--bleu); }
.btn-contour:hover { background: var(--bleu); color: #fff; }

/* ---------- Header ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.entete-int { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1180px; margin: 0 auto; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.marque strong { font-family: var(--police-titres); color: var(--bleu-fonce); font-size: 18px; line-height: 1.1; display: block; }
.marque small { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.nav-principale { display: flex; align-items: center; gap: 22px; }
.nav-principale a { text-decoration: none; color: var(--encre); font-weight: 700; font-size: 15px; }
.nav-principale a:hover, .nav-principale a.actif { color: var(--orange); }
.burger { display: none; background: none; border: 0; font-size: 26px; color: var(--bleu-fonce); cursor: pointer; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-principale {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px; gap: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }
  .nav-principale.ouverte { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--bleu-fonce) 0%, var(--bleu) 55%, #5DADE2 100%);
  color: #fff; padding: 72px 0; overflow: hidden;
}
.hero-int { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); margin: 0 0 12px; }
.hero h1 span { color: #F8C471; }
.hero p { font-size: 18px; color: #d6eaf8; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media video, .hero-media img {
  width: 100%; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 4px solid rgba(255,255,255,.25);
}
.badge-1987 {
  position: absolute; bottom: -14px; left: -14px; background: var(--orange); color: #fff;
  font-family: var(--police-titres); font-weight: 800; padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--ombre); font-size: 14px;
}
@media (max-width: 860px) { .hero-int { grid-template-columns: 1fr; } }

/* ---------- Chiffres clés ---------- */
.chiffres { background: var(--blanc); padding: 34px 0; }
.chiffres-int { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.chiffre strong { font-family: var(--police-titres); font-size: 32px; color: var(--orange); display: block; }
.chiffre span { color: var(--gris); font-size: 14px; font-weight: 700; }
@media (max-width: 720px) { .chiffres-int { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections / titres ---------- */
.titre-section { text-align: center; margin-bottom: 40px; }
.titre-section .puce {
  display: inline-block; background: rgba(46,134,193,.1); color: var(--bleu);
  font-weight: 800; font-size: 13px; padding: 6px 16px; border-radius: 999px; letter-spacing: .05em;
}
.titre-section h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 12px 0 8px; }
.titre-section p { color: var(--gris); max-width: 640px; margin: 0 auto; }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: 22px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .grille-5 { grid-template-columns: repeat(3, 1fr); } .grille-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille-5, .grille-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .grille-5, .grille-3 { grid-template-columns: 1fr; } }

.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 26px 22px;
  box-shadow: 0 4px 14px rgba(27,79,114,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte .icone { font-size: 34px; }
.carte h3 { margin: 12px 0 6px; font-size: 18px; }
.carte p { color: var(--gris); font-size: 14px; margin: 0; }
.carte .age { display: inline-block; margin-top: 12px; background: rgba(39,174,96,.12); color: var(--vert); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* ---------- Histoire (aperçu) ---------- */
.histoire-int { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: center; }
.histoire-int img { border-radius: 24px; box-shadow: var(--ombre); }
.cadre-photo { position: relative; }
.cadre-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 3px solid var(--orange); border-radius: 24px; z-index: -1;
}
@media (max-width: 860px) { .histoire-int { grid-template-columns: 1fr; } }

/* ---------- Frise chronologique ---------- */
.frise { position: relative; max-width: 720px; margin: 0 auto; padding-left: 34px; }
.frise::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--bleu), var(--orange)); border-radius: 2px; }
.etape-frise { position: relative; margin-bottom: 36px; background: #fff; padding: 20px 24px; border-radius: var(--rayon); box-shadow: 0 4px 14px rgba(27,79,114,.07); }
.etape-frise::before { content: ""; position: absolute; left: -31px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--orange); }
.etape-frise .annee { font-family: var(--police-titres); font-weight: 800; color: var(--orange); font-size: 20px; }

/* ---------- Vidéos (façade YouTube) ---------- */
.videos-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .videos-grille { grid-template-columns: 1fr; } }
.video-facade {
  position: relative; aspect-ratio: 16/9; border-radius: var(--rayon); overflow: hidden;
  cursor: pointer; background: #000; border: 0; padding: 0; width: 100%;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.video-facade:hover img { opacity: 1; transform: scale(1.04); }
.video-facade .lecture {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(230,126,34,.95); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; pointer-events: none;
}
.video-facade iframe, .video-conteneur video { width: 100%; height: 100%; border: 0; }

/* ---------- Galerie ---------- */
.onglets { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.onglet { padding: 10px 24px; border-radius: 999px; border: 2px solid var(--bleu); background: transparent; color: var(--bleu); font-weight: 800; cursor: pointer; font-family: var(--police-titres); }
.onglet.actif { background: var(--bleu); color: #fff; }
.galerie-grille { columns: 3 260px; column-gap: 16px; }
.galerie-grille figure { margin: 0 0 16px; break-inside: avoid; border-radius: var(--rayon); overflow: hidden; position: relative; cursor: zoom-in; }
.galerie-grille img { transition: transform .3s; width: 100%; }
.galerie-grille figure:hover img { transform: scale(1.05); }
.galerie-grille figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 24px 14px 10px; font-size: 13px; font-weight: 700; }

.lightbox { position: fixed; inset: 0; background: rgba(12,25,38,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.ouverte { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox .fermer { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* ---------- Témoignages ---------- */
.temoignage { background: #fff; border-left: 5px solid var(--orange); }
.temoignage blockquote { margin: 0; font-style: italic; color: var(--encre); }
.temoignage cite { display: block; margin-top: 12px; color: var(--bleu); font-weight: 800; font-style: normal; }

/* ---------- Appel à l'action ---------- */
.cta-final { background: linear-gradient(120deg, var(--orange) 0%, #F39C12 100%); border-radius: 28px; padding: 48px 32px; text-align: center; color: #fff; }
.cta-final h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 10px; }
.cta-final p { color: #fdf2e3; margin: 0 0 24px; }
.cta-final .btn { background: #fff; color: var(--orange-fonce); }

/* ---------- Formulaires ---------- */
.form-carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 34px; max-width: 760px; margin: 0 auto; }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--bleu-fonce); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #dbe4ee; border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fbfdff;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); }
.champ .aide { font-size: 12px; color: var(--gris); margin-top: 4px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .deux-colonnes { grid-template-columns: 1fr; } }
.erreur-form { background: #fdecea; border: 1px solid #e74c3c; color: #922b21; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.succes-form { background: #eafaf1; border: 1px solid var(--vert); color: #196f3d; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.champ-miel { position: absolute; left: -9999px; opacity: 0; } /* honeypot */

/* ---------- Wizard ---------- */
.progression { display: flex; gap: 8px; margin-bottom: 28px; }
.progression .pas { flex: 1; height: 8px; border-radius: 4px; background: #e3ebf3; }
.progression .pas.fait { background: var(--vert); }
.progression .pas.actuel { background: var(--orange); }
.etape-form { display: none; }
.etape-form.visible { display: block; animation: apparait .3s ease; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Paiement ---------- */
.moyens-paiement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .moyens-paiement { grid-template-columns: 1fr; } }
.moyen { border-top: 6px solid var(--bleu); }
.moyen.orange { border-top-color: var(--orange); }
.moyen.vert { border-top-color: var(--vert); }
.moyen ol { padding-left: 18px; color: var(--gris); font-size: 14px; }
.numero-marchand { font-family: monospace; font-size: 18px; background: var(--creme); border: 2px dashed var(--orange); border-radius: 10px; padding: 10px 14px; text-align: center; font-weight: 800; color: var(--bleu-fonce); }

/* ---------- Tableaux (contenu public : frais) ---------- */
.table-defilante { overflow-x: auto; }
table.jolie { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 4px 14px rgba(27,79,114,.07); }
table.jolie th { background: var(--bleu); color: #fff; text-align: left; padding: 12px 16px; font-family: var(--police-titres); }
table.jolie td { padding: 12px 16px; border-bottom: 1px solid #eef2f7; }
table.jolie tr:last-child td { border-bottom: 0; }

/* ---------- WhatsApp flottant ---------- */
.whatsapp-flottant {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.45); text-decoration: none;
  transition: transform .15s;
}
.whatsapp-flottant:hover { transform: scale(1.08); }
.whatsapp-flottant svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Footer ---------- */
.pied { background: var(--bleu-fonce); color: #cfe3f3; padding: 48px 0 24px; margin-top: 64px; }
.pied-int { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.pied h4 { color: #fff; }
.pied a { color: #9fc6e8; text-decoration: none; }
.pied a:hover { color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; } .pied li { margin-bottom: 8px; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: 13px; text-align: center; color: #8fb3d1; }
@media (max-width: 720px) { .pied-int { grid-template-columns: 1fr; } }

/* ---------- Animations au scroll ---------- */
.reveler { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveler.visible { opacity: 1; transform: none; }
.reveler.delai-1 { transition-delay: .1s; } .reveler.delai-2 { transition-delay: .2s; }
.reveler.delai-3 { transition-delay: .3s; } .reveler.delai-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveler { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .carte:hover { transform: none; }
}

/* ============================================================
   THÈME v2 — fond lié au logo : motifs, dégradés et formes animées
   ============================================================ */

/* Fond général : crème + semis de motifs école (étoile, feuille, rond, livres) */
body {
  background-color: var(--creme);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='190' height='190'><path d='M30 34l4 8 9 1-6.5 6 1.5 9-8-4.5L22 58l1.5-9L17 43l9-1z' fill='%232E86C1' fill-opacity='.07'/><path d='M120 26c14 4 18 16 16 26-12-2-20-12-16-26z' fill='%2327AE60' fill-opacity='.09'/><circle cx='58' cy='142' r='9' fill='%23E67E22' fill-opacity='.07'/><rect x='128' y='120' width='26' height='17' rx='3' fill='%232E86C1' fill-opacity='.06'/><rect x='134' y='113' width='26' height='17' rx='3' fill='%23E67E22' fill-opacity='.07'/></svg>");
}

/* Sections claires : dégradé blanc -> crème + halos de couleur du logo */
.section-blanche {
  background: linear-gradient(180deg, #ffffff 0%, #FDF8F0 100%);
  position: relative;
  overflow: hidden;
}
.section-blanche::before,
.section-blanche::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.section-blanche::before {
  width: 460px; height: 460px; top: -180px; left: -180px;
  background: radial-gradient(circle, rgba(46,134,193,.09), transparent 70%);
}
.section-blanche::after {
  width: 380px; height: 380px; bottom: -150px; right: -140px;
  background: radial-gradient(circle, rgba(230,126,34,.10), transparent 70%);
}
.section-blanche > .conteneur { position: relative; z-index: 1; }

/* Hero : bulles flottantes animées */
.hero { position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 360px; height: 360px; top: -90px; right: -70px;
  background: radial-gradient(circle at 30% 30%, rgba(248,196,113,.28), transparent 70%);
  animation: flotter 8s ease-in-out infinite alternate;
}
.hero::after {
  width: 280px; height: 280px; bottom: -80px; left: -50px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  animation: flotter 11s ease-in-out infinite alternate-reverse;
}
.hero .conteneur { position: relative; z-index: 1; }

@keyframes flotter {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(28px) scale(1.07); }
}

/* Bandeau chiffres : lié à la charte plutôt que blanc pur */
.chiffres {
  background: linear-gradient(90deg, #ffffff 0%, #FDF8F0 100%);
  border-top: 3px solid rgba(230,126,34,.4);
  border-bottom: 3px solid rgba(46,134,193,.25);
}

/* Cartes : liseré dégradé aux couleurs du logo (compatible coins arrondis) */
.carte { position: relative; overflow: hidden; }
.carte::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--bleu), var(--orange), var(--vert));
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

/* ============================================================
   THÈME v3 — vagues, mascotte, décorations flottantes
   ============================================================ */

/* Vague crème en bas du hero */
.hero .vague {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,40 C240,90 480,0 720,30 C960,60 1200,10 1440,50 L1440,90 L0,90 Z' fill='%23FDF8F0'/></svg>") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero { padding-bottom: 110px; }

/* Vague bleue au-dessus du footer */
.vague-pied {
  height: 80px; margin-top: 64px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,50 C240,0 480,80 720,40 C960,10 1200,70 1440,30 L1440,90 L0,90 Z' fill='%231B4F72'/></svg>") bottom / 100% 100% no-repeat;
}
.pied { margin-top: 0; }

/* Filet dégradé aux couleurs du logo en haut du site */
.entete::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--bleu), var(--orange), var(--vert));
}

/* Décorations flottantes du hero (petites icônes d'école) */
.deco-flottante {
  position: absolute; font-size: 30px; opacity: .28; z-index: 1;
  animation: flotte-douce 7s ease-in-out infinite alternate;
  pointer-events: none; user-select: none;
}
@keyframes flotte-douce {
  from { transform: translateY(0) rotate(-8deg); }
  to   { transform: translateY(-22px) rotate(8deg); }
}

/* Mascotte en filigrane sur le bloc d'appel à l'action */
.cta-final { position: relative; overflow: hidden; }
.cta-final::after {
  content: "🐐"; position: absolute; right: -6px; bottom: -26px;
  font-size: 150px; opacity: .16; transform: rotate(-12deg); pointer-events: none;
}
.cta-final::before {
  content: "✏️"; position: absolute; left: 14px; top: -14px;
  font-size: 84px; opacity: .14; transform: rotate(14deg); pointer-events: none;
}

/* Souligné dégradé sous les titres de section */
.titre-section h2::after {
  content: ""; display: block; width: 78px; height: 5px; border-radius: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--bleu), var(--orange), var(--vert));
}

/* Pastilles de la frise : couleurs qui alternent */
.etape-frise:nth-child(3n+1)::before { background: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.etape-frise:nth-child(3n+2)::before { background: var(--bleu);   box-shadow: 0 0 0 3px var(--bleu); }
.etape-frise:nth-child(3n)::before   { background: var(--vert);   box-shadow: 0 0 0 3px var(--vert); }

/* Boutons orange en dégradé + ombre colorée */
.btn-orange { background: linear-gradient(135deg, #F39C12, var(--orange)); }
.btn-orange:hover { background: linear-gradient(135deg, var(--orange), var(--orange-fonce)); box-shadow: 0 10px 24px rgba(230,126,34,.35); }

/* Barre de défilement aux couleurs du site */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--bleu); border-radius: 6px; border: 3px solid var(--creme); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

@media (prefers-reduced-motion: reduce) { .deco-flottante { animation: none; } }
@media (max-width: 640px) { .deco-flottante { display: none; } .cta-final::before { display: none; } }
