/* ═══════════════════════════════════════════════════════
   COLLÈGE LE CACTUS DE BONON — Design System v2
   Palette from mockup image:
   #0F5D3A  deep forest green (primary dark)
   #1E7A4B  medium green
   #43A047  bright green
   #F2C23E  gold / yellow accent
   #F7F5EF  off-white background
═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --g1: #0F5D3A;
  --g2: #1E7A4B;
  --g3: #43A047;
  --gold: #F2C23E;
  --gold-dark: #D4A820;
  --cream: #F7F5EF;
  --blanc: #FFFFFF;
  --noir: #0A1A0F;
  --gris: #4A5C50;
  --gris-mid: #7A907E;
  --gris-pale: #F0F4F1;
  --border: #D8E8DC;
  --r: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow: 0 4px 24px rgba(15,93,58,.10);
  --shadow-lg: 0 12px 48px rgba(15,93,58,.16);
  /* ── v3 refinements ── */
  --ink: #06120C;
  --g0: #08331F;
  --display: 'Fraunces', 'Sora', serif;
  --ui: 'Sora', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --shadow-xl: 0 24px 70px rgba(6,18,12,.34);
  --ease: cubic-bezier(.16,.8,.24,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--noir);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h3,h4,h5 { font-family: var(--ui); letter-spacing: -.02em; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
ul { list-style: none; }
::selection { background: var(--g1); color: var(--blanc); }
:focus-visible { outline: 2.5px solid var(--gold-dark); outline-offset: 2px; }

/* ── FILM GRAIN (site-wide, ultra subtle) ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 3000; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }

/* ── ICON SYSTEM ── */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.icon .ic, .vi .ic, .ti .ic, .sicon .ic { width: 1.5rem; height: 1.5rem; vertical-align: middle; }
.svc-icon .ic { width: 26px; height: 26px; }
.valeur-item .vi, .tbadge .ti, .hero-badge-item .icon, .stat-box .sicon,
.svc-icon, .doc-icon, .cond-icon, .fsb-icon, .cc-icon, .rsoc-card .icon,
.club-icon, .all-card .icon, .filiere-emoji, .tl-dot, .ri, .si, .pi, .gcap,
.mlabel-icon, .tl-icon, .dist-icon, .fs-icon, .itin-icon, .urg-icon,
[class$="-icon"], [class*="-icon "] {
  color: var(--g2);
}
.svc-card.featured .svc-icon, #stats-bar .sicon, #temoignages .ic, .cc-icon.gold, .tl-dot, .mlabel-icon { color: var(--gold); }
.footer-social a svg { width: 17px; height: 17px; color: var(--blanc); }
.footer-social a:hover svg { color: var(--g1); }
.doc-req .ic { width: 1.05em; height: 1.05em; }

/* ── LOGO SHIELD SVG INLINE ── */
.logo-shield {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-shield svg { flex-shrink: 0; }
.logo-text { line-height: 1.15; }
.logo-text .school-label { font-size: 10px; color: var(--g1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: block; }
.logo-text .school-name { font-family: 'Sora', sans-serif; font-weight: 900; font-size: 17px; color: var(--g1); display: block; line-height: 1; }
.logo-text .school-sub { font-size: 11px; color: var(--gris); font-weight: 500; display: block; }

/* White version for dark backgrounds */
.logo-shield.white .logo-text .school-label,
.logo-shield.white .logo-text .school-name { color: var(--blanc); }
.logo-shield.white .logo-text .school-sub { color: rgba(255,255,255,.65); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 76px;
  background: rgba(247,245,239,.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(216,232,220,.7);
  transition: box-shadow .3s, background .3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(15,93,58,.12); background: rgba(255,255,255,.94); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  color: var(--gris); font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 8px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--g1); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--g1); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.nav-cta::after { display: none; }
.nav-cta {
  background: var(--g1) !important; color: var(--blanc) !important;
  font-weight: 700 !important; padding: 9px 20px !important; border-radius: 9px !important; font-size: 13.5px !important;
}
.nav-cta:hover { background: var(--g2) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--g1); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 998;
  background: var(--blanc); border-bottom: 1px solid var(--border);
  padding: 16px 5%; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 15px; color: var(--gris); border-bottom: 1px solid var(--gris-pale); font-weight: 500; }
.mobile-menu a:last-child { color: var(--g1); font-weight: 700; border-bottom: none; margin-top: 8px; }

/* ── SECTIONS ── */
.section { padding: 88px 5%; }
.section-sm { padding: 60px 5%; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.pill-gold { background: rgba(242,194,62,.18); color: var(--gold-dark); border: 1px solid rgba(242,194,62,.4); }
.pill-green { background: rgba(67,160,71,.12); color: var(--g2); border: 1px solid rgba(67,160,71,.3); }
.pill-white { background: rgba(255,255,255,.15); color: var(--blanc); border: 1px solid rgba(255,255,255,.3); }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.7rem); font-weight: 900; margin-bottom: 14px; color: var(--noir); }
.section-sub { font-size: 1rem; color: var(--gris); max-width: 560px; line-height: 1.75; margin-bottom: 52px; }
.tc { text-align: center; }
.tc .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap; text-decoration: none;
}
.btn .ic { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(0) scale(.98); }

/* ── SIGNATURE: growth-rib divider ── */
.grow-divider { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 30px 0; background: inherit; }
.grow-divider span { width: 3px; border-radius: 3px; background: var(--gold); opacity: .55; }
.grow-divider span:nth-child(1){height:8px;} .grow-divider span:nth-child(2){height:14px;}
.grow-divider span:nth-child(3){height:22px;background:var(--g3);opacity:1;} .grow-divider span:nth-child(4){height:14px;}
.grow-divider span:nth-child(5){height:8px;}
.btn-green { background: var(--g1); color: var(--blanc); box-shadow: 0 4px 18px rgba(15,93,58,.3); }
.btn-green:hover { background: var(--g2); transform: translateY(-2px); box-shadow: 0 6px 26px rgba(15,93,58,.4); }
.btn-gold { background: var(--gold); color: var(--g1); box-shadow: 0 4px 18px rgba(242,194,62,.35); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline-green { background: transparent; color: var(--g1); border: 2px solid var(--g1); }
.btn-outline-green:hover { background: var(--g1); color: var(--blanc); }
.btn-outline-blanc { background: transparent; color: var(--blanc); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-blanc:hover { background: rgba(255,255,255,.1); border-color: var(--blanc); }
.btn-blanc { background: var(--blanc); color: var(--g1); }
.btn-blanc:hover { background: var(--cream); transform: translateY(-2px); }

/* ── CARD BASE ── */
.card {
  background: var(--blanc); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .25s;
}
.card:hover { border-color: var(--g3); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ── PAGE HERO (inner pages, video background) ── */
.page-hero {
  background: var(--g0);
  padding: 152px 5% 92px; position: relative; overflow: hidden;
  min-height: 62vh; display: flex; align-items: flex-end;
}
.page-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .55;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,18,12,.75) 0%, rgba(8,51,31,.55) 45%, var(--g0) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 720px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 12.5px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 { color: var(--blanc); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; font-style: italic; margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 520px; line-height: 1.8; font-family: var(--body); }

/* Split-photo inner heroes (Établissement / Admissions) upgraded to video */
.etab-hero-left, .adm-hero-left { background: var(--g0); }
.etab-hero-left video, .adm-hero-left video { width:100%; height:100%; object-fit:cover; opacity:.85; }
.etab-hero-left::after, .adm-hero-left::after {
  background: linear-gradient(to right, rgba(6,18,12,.15) 45%, var(--cream) 100%) !important;
}

/* ── PHOTO CARD (Unsplash) ── */
.photo-card {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-card:hover img { transform: scale(1.04); }

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat-box {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-box:last-child { border-right: none; }
.stat-box .icon { font-size: 1.6rem; margin-bottom: 8px; }
.stat-box .val {
  font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--gold); line-height: 1;
}
.stat-box .lbl { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ── FOOTER ── */
footer { background: var(--g1); color: rgba(255,255,255,.6); padding: 64px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-top: 16px; max-width: 240px; color: rgba(255,255,255,.55); }
.footer-col h4 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 11px; color: var(--gold); margin-bottom: 16px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 9px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 16px; transition: background .2s; }
.footer-social a:hover { background: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.footer-bottom .gold { color: var(--gold); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 888;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--blanc);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 6px 28px rgba(37,211,102,.5); transition: transform .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }

/* ── FAQ ── */
.faq-item { border: 1.5px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; background: var(--blanc); transition: border-color .2s; }
.faq-item.open { border-color: var(--g2); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--noir); user-select: none; }
.faq-question:hover { background: var(--gris-pale); }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--gris-pale); color: var(--g2); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: transform .3s, background .2s; }
.faq-item.open .faq-icon { background: var(--gold); color: var(--g1); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 22px; font-size: .875rem; color: var(--gris); line-height: 1.75; transition: max-height .35s ease, padding .25s; }
.faq-item.open .faq-answer { max-height: 280px; padding: 0 22px 20px; }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.data-table thead tr { background: var(--g1); }
.data-table th { padding: 15px 20px; text-align: left; font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--blanc); letter-spacing: .04em; }
.data-table td { padding: 13px 20px; font-size: .875rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gris-pale); }
.data-table .bold { font-weight: 700; }
.data-table .green { color: var(--g2); font-weight: 800; font-family: 'Sora', sans-serif; font-size: 1rem; }
.data-table .tag { font-size: 11px; font-weight: 700; color: var(--g2); background: rgba(67,160,71,.1); padding: 3px 9px; border-radius: 50px; }

/* ── TABS ── */
.tab-nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 44px; }
.tab-btn { padding: 11px 20px; border: none; background: transparent; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--gris); cursor: pointer; border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, background .2s; }
.tab-btn:hover { color: var(--g1); background: var(--gris-pale); }
.tab-btn.active { color: var(--g1); border-bottom-color: var(--gold); background: rgba(242,194,62,.07); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FORM FIELDS ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--noir); margin-bottom: 7px; }
.field label .req { color: #e53935; margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--noir); background: var(--blanc); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(30,122,75,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn { width: 100%; padding: 15px; border: none; border-radius: 10px; background: var(--g1); color: var(--blanc); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px; cursor: pointer; transition: background .2s, transform .15s; margin-top: 6px; }
.submit-btn:hover { background: var(--g2); transform: translateY(-2px); }

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
  .fade-up.vis { opacity: 1; transform: none; }
  .fade-up:nth-child(2) { transition-delay: .08s; }
  .fade-up:nth-child(3) { transition-delay: .16s; }
  .fade-up:nth-child(4) { transition-delay: .24s; }
  .fade-up:nth-child(5) { transition-delay: .32s; }
  .fade-up:nth-child(6) { transition-delay: .40s; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 5%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
