/* ========================================
   ÉCOLE LES CÈDRES — Vivid Color Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --green:       #16A34A;
  --green-dark:  #14532D;
  --green-light: #4ADE80;
  --green-pale:  #DCFCE7;
  --orange:      #F97316;
  --orange-dark: #C2410C;
  --purple:      #7C3AED;
  --purple-light:#EDE9FE;
  --blue:        #2563EB;
  --blue-light:  #DBEAFE;
  --pink:        #EC4899;
  --pink-light:  #FCE7F3;
  --yellow:      #EAB308;
  --yellow-light:#FEF9C3;
  --red:         #EF4444;
  --cream:       #FFFBF5;
  --white:       #FFFFFF;
  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-light:  #6B7280;
  --border:      #E5E7EB;
  --shadow-sm:   0 2px 10px rgba(0,0,0,.07);
  --shadow-md:   0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.16);
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --nav-h:       72px;
  --transition:  .25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1,h2,h3,h4,h5 { font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
p  { color: var(--text-mid); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 2px 0 #E5E7EB, var(--shadow-sm);
  display: flex; align-items: center;
  padding: 0 5%;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-brand img { height: 52px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .88rem;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--green-pale); color: var(--green-dark); }
.nav-links a.active { background: var(--green-pale); color: var(--green); }
.nav-links .dropdown-toggle::after { content: '▾'; margin-left: 4px; font-size: .75rem; }
.nav-links .dropdown { display: none; }
.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
  display: block;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  overflow: hidden;
  animation: fadeDown .2s ease;
}
.nav-links .dropdown a { border-radius: 0; font-size: .85rem; }
.nav-cta {
  margin-left: 10px;
  padding: 10px 22px !important;
  background: linear-gradient(135deg, var(--orange), #FB923C) !important;
  color: var(--white) !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--orange-dark), var(--orange)) !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; margin-left: auto; padding: 6px;
}
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--text-dark); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); padding: 16px 5% 24px;
  box-shadow: var(--shadow-md); z-index: 999; animation: fadeDown .2s ease;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--text-dark);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper { padding-top: var(--nav-h); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #14532D 0%, #16A34A 40%, #F97316 80%, #EAB308 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.hero-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-shapes span {
  position: absolute; border-radius: 50%; opacity: .12;
}
.hero-shapes span:nth-child(1) { width:400px;height:400px;background:#EAB308;top:-100px;right:-80px; }
.hero-shapes span:nth-child(2) { width:250px;height:250px;background:#EC4899;bottom:-60px;left:30%; }
.hero-shapes span:nth-child(3) { width:180px;height:180px;background:#2563EB;top:40%;right:20%; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 80px 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px; padding: 6px 16px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .85rem;
  color: white; margin-bottom: 24px;
}
.hero-badge span { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { margin-bottom: 20px; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg); padding: 40px; color: white;
}
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
}
.hero-stat .num { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2rem; color: var(--yellow); }
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block; border-radius: 30px;
  padding: 5px 18px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
  background: var(--green-pale); color: var(--green);
}
.section-label.orange { background: #FEF3E8; color: var(--orange-dark); }
.section-label.purple { background: var(--purple-light); color: var(--purple); }
.section-label.blue   { background: var(--blue-light); color: var(--blue); }
.section-label.pink   { background: var(--pink-light); color: var(--pink); }
.section-label.yellow { background: var(--yellow-light); color: #854D0E; }

.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-mid); font-size: 1.05rem; max-width: 580px; margin-bottom: 48px; }

/* Colored section backgrounds */
.bg-white    { background: var(--white); }
.bg-cream    { background: var(--cream); }
.bg-green    { background: linear-gradient(135deg, #14532D 0%, #16A34A 100%); }
.bg-orange   { background: linear-gradient(135deg, #C2410C 0%, #F97316 100%); }
.bg-purple   { background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%); }
.bg-blue     { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.bg-rainbow  { background: linear-gradient(135deg, #14532D 0%, #16A34A 25%, #2563EB 50%, #7C3AED 75%, #EC4899 100%); }
.bg-stripe   { background: linear-gradient(160deg, #FEF9C3 0%, #DCFCE7 50%, #DBEAFE 100%); }
.bg-warm     { background: linear-gradient(135deg, #FEF3E8 0%, #FEF9C3 100%); }
.bg-vivid    { background: linear-gradient(135deg, #7C3AED 0%, #EC4899 60%, #F97316 100%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem;
  cursor: pointer; border: none; transition: all var(--transition);
  letter-spacing: .01em;
}
.btn-primary  { background: linear-gradient(135deg,var(--orange),#FB923C); color: white; box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(249,115,22,.5); }
.btn-green    { background: linear-gradient(135deg,var(--green),#22C55E); color: white; box-shadow: 0 6px 20px rgba(22,163,74,.4); }
.btn-green:hover    { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(22,163,74,.5); }
.btn-purple   { background: linear-gradient(135deg,var(--purple),#A78BFA); color: white; box-shadow: 0 6px 20px rgba(124,58,237,.4); }
.btn-purple:hover   { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(124,58,237,.5); }
.btn-outline  { background: transparent; border: 2.5px solid rgba(255,255,255,.7); color: white; }
.btn-outline:hover  { background: rgba(255,255,255,.2); }
.btn-white    { background: white; color: var(--green-dark); box-shadow: var(--shadow-md); }
.btn-white:hover    { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm       { padding: 9px 20px; font-size: .85rem; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; border-radius: 20px; padding: 3px 12px;
  font-size: .75rem; font-weight: 800; margin-bottom: 10px;
  background: var(--green-pale); color: var(--green);
}
.card-title { margin-bottom: 8px; font-size: 1.1rem; }
.card-text { font-size: .9rem; color: var(--text-light); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: .85rem; margin-top: 16px; color: var(--green);
}
.card-link:hover { color: var(--green-dark); }
.card-link::after { content: '→'; }

/* ============================================================
   VALUES — très colorées
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-item {
  border-radius: var(--radius-md); padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.value-item::before {
  content: ''; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 20px 20px;
}
.value-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-item.v-green  { background: linear-gradient(135deg,#16A34A,#4ADE80); color: white; }
.value-item.v-orange { background: linear-gradient(135deg,#EA580C,#FB923C); color: white; }
.value-item.v-purple { background: linear-gradient(135deg,#6D28D9,#A78BFA); color: white; }
.value-item.v-blue   { background: linear-gradient(135deg,#1D4ED8,#60A5FA); color: white; }
.value-item.v-pink   { background: linear-gradient(135deg,#BE185D,#F472B6); color: white; }
.value-item.v-yellow { background: linear-gradient(135deg,#B45309,#FCD34D); color: white; }
.value-item h3, .value-item p { color: white; position: relative; }
.value-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 20px;
  background: rgba(255,255,255,.25); position: relative;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 70px 5%; color: white; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; font-size: .85rem; color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.95); font-weight: 700; }

/* Page hero color variants */
.page-hero-green  { background: linear-gradient(135deg,#14532D,#16A34A,#4ADE80); }
.page-hero-orange { background: linear-gradient(135deg,#7C2D12,#EA580C,#FB923C); }
.page-hero-purple { background: linear-gradient(135deg,#3B0764,#7C3AED,#A78BFA); }
.page-hero-blue   { background: linear-gradient(135deg,#1E3A8A,#2563EB,#60A5FA); }
.page-hero-pink   { background: linear-gradient(135deg,#831843,#EC4899,#F9A8D4); }
.page-hero-multi  { background: linear-gradient(135deg,#14532D,#16A34A,#2563EB,#7C3AED); }

/* ============================================================
   INFO BANNER
   ============================================================ */
.info-banner {
  border-radius: var(--radius-md); padding: 20px 28px;
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 40px;
  background: linear-gradient(135deg,#DBEAFE,#EDE9FE);
  border-left: 4px solid var(--blue);
}
.info-banner-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-banner p { color: #1E3A8A; font-size: .95rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .9rem; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 2.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--text-dark);
  background: var(--white); transition: border-color var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   CONTACT INFO CARD
   ============================================================ */
.contact-info-card {
  background: linear-gradient(135deg,#14532D,#16A34A);
  border-radius: var(--radius-lg); padding: 40px; color: white;
}
.contact-info-card h3 { color: white; margin-bottom: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item-text strong { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.contact-item-text span { color: rgba(255,255,255,.92); font-size: .95rem; }

/* ============================================================
   MAP
   ============================================================ */
.map-wrapper {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); height: 320px; margin-top: 24px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.team-card {
  border-radius: var(--radius-md); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 18px 18px;
}
.team-card.tc-green  { background: linear-gradient(135deg,#16A34A,#4ADE80); color: white; }
.team-card.tc-orange { background: linear-gradient(135deg,#EA580C,#FB923C); color: white; }
.team-card.tc-purple { background: linear-gradient(135deg,#7C3AED,#A78BFA); color: white; }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px; position: relative;
}
.team-name  { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.1rem; margin-bottom: 4px; color: white; }
.team-role  { color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 700; margin-bottom: 12px; }
.team-contact a { color: rgba(255,255,255,.85); font-size: .85rem; display: block; }
.team-contact a:hover { color: white; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--green), var(--purple), var(--orange)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot { position: absolute; left: -30px; top: 4px; width: 20px; height: 20px; background: var(--green); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 3px var(--green); }
.timeline-item:nth-child(2n) .timeline-dot { background: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.timeline-item:nth-child(3n) .timeline-dot { background: var(--purple); box-shadow: 0 0 0 3px var(--purple); }
.timeline-date { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .82rem; color: var(--green); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.timeline-item:nth-child(2n) .timeline-date { color: var(--orange); }
.timeline-item:nth-child(3n) .timeline-date { color: var(--purple); }
.timeline-content { background: white; border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green); }
.timeline-item:nth-child(2n) .timeline-content { border-left-color: var(--orange); }
.timeline-item:nth-child(3n) .timeline-content { border-left-color: var(--purple); }
.timeline-content h4 { margin-bottom: 6px; font-size: 1rem; }
.timeline-content p  { font-size: .9rem; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-item {
  background: white; border-radius: var(--radius-sm);
  margin-bottom: 10px; box-shadow: var(--shadow-sm); overflow: hidden;
  border-left: 4px solid transparent; transition: border-color .25s;
}
.accordion-item.open { border-left-color: var(--green); }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-dark); transition: background var(--transition);
}
.accordion-header:hover { background: var(--green-pale); }
.accordion-icon { font-size: 1.2rem; transition: transform .25s; flex-shrink: 0; color: var(--green); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding: 0 24px; color: var(--text-mid); }
.accordion-item.open .accordion-body { max-height: 300px; padding: 0 24px 20px; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  background: white; border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; gap: 20px; align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--green);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card:nth-child(2n) { border-left-color: var(--orange); }
.event-card:nth-child(3n) { border-left-color: var(--purple); }
.event-card:nth-child(4n) { border-left-color: var(--blue); }
.event-date-box {
  flex-shrink: 0; border-radius: var(--radius-sm);
  width: 62px; height: 68px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: white;
  background: linear-gradient(135deg,var(--green),#22C55E);
}
.event-card:nth-child(2n) .event-date-box { background: linear-gradient(135deg,var(--orange),#FB923C); }
.event-card:nth-child(3n) .event-date-box { background: linear-gradient(135deg,var(--purple),#A78BFA); }
.event-card:nth-child(4n) .event-date-box { background: linear-gradient(135deg,var(--blue),#60A5FA); }
.event-date-box .day   { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.7rem; line-height: 1; }
.event-date-box .month { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.event-info h4 { margin-bottom: 6px; }
.event-info p  { font-size: .9rem; }
.event-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.event-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 800; background: var(--green-pale); color: var(--green); }
.event-tag.orange { background: #FEF3E8; color: var(--orange-dark); }
.event-tag.purple { background: var(--purple-light); color: var(--purple); }

.sidebar-widget { background: white; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-widget h4 { font-family: 'Nunito', sans-serif; font-weight: 800; margin-bottom: 16px; font-size: 1.05rem; padding-bottom: 10px; border-bottom: 3px solid var(--green-pale); }

/* ============================================================
   STEPS (Inscriptions)
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 56px; }
.step-card {
  border-radius: var(--radius-md); padding: 36px 28px;
  box-shadow: var(--shadow-md); text-align: center; color: white; position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 22px 22px;
}
.step-card.sc-green  { background: linear-gradient(135deg,#14532D,#16A34A); }
.step-card.sc-orange { background: linear-gradient(135deg,#7C2D12,#F97316); }
.step-card.sc-purple { background: linear-gradient(135deg,#3B0764,#7C3AED); }
.step-card h3, .step-card p { color: white; position: relative; }
.step-number {
  width: 56px; height: 56px; background: rgba(255,255,255,.25);
  color: white; border-radius: 50%; border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.4rem;
  margin: 0 auto 20px; position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg,#111827,#1F2937,#14532D);
  color: rgba(255,255,255,.75); padding: 64px 5% 32px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  position: relative;
}
.footer-brand h3 { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.3rem; margin-bottom: 12px; color: white; }
.footer-brand p   { font-size: .9rem; line-height: 1.75; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #4ADE80; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: rgba(255,255,255,.35); position: relative;
}
/* ============================================================
   SCHOOL PARTICLES
   ============================================================ */
.school-particles-container {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 1;
}
.school-particle {
  position: absolute; line-height: 1;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
  will-change: transform, opacity;
}
.school-particle--text {
  font-family: 'Nunito', sans-serif; font-weight: 900;
  color: white; opacity: .15;
}

/* ── Make sure hero content sits above particles ── */
.hero-content { position: relative; z-index: 2; }

.footer-credit {
  max-width: 1200px; margin: 10px auto 0;
  text-align: center; font-size: .78rem; color: rgba(255,255,255,.5);
}
.footer-credit a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; transition: color .2s; }
.footer-credit a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}

/* ── Extra school animations ── */
@keyframes gradientDrift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes floatShape {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  33%      { transform: translateY(-22px) scale(1.06) rotate(3deg); }
  66%      { transform: translateY(-10px) scale(1.02) rotate(-2deg); }
}
@keyframes patternBreath {
  0%,100% { opacity: .06; }
  50%      { opacity: .13; }
}
@keyframes cardGlow {
  0%,100% { box-shadow: 0 20px 60px rgba(0,0,0,.16), 0 0 0 0 rgba(74,222,128,.0); }
  50%      { box-shadow: 0 20px 60px rgba(0,0,0,.16), 0 0 40px 4px rgba(74,222,128,.18); }
}
@keyframes shimmerBtn {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Animated hero background gradient */
.hero-bg {
  background-size: 300% 300%;
  animation: gradientDrift 14s ease infinite;
}

/* Dot pattern breathes softly */
.hero-pattern { animation: patternBreath 6s ease-in-out infinite; }

/* Blob shapes float independently */
.hero-shapes span:nth-child(1) { animation: floatShape 7s ease-in-out infinite; }
.hero-shapes span:nth-child(2) { animation: floatShape 9s ease-in-out 2s infinite reverse; }
.hero-shapes span:nth-child(3) { animation: floatShape 6s ease-in-out 4s infinite; }

/* Hero glass card subtle glow */
.hero-card { animation: cardGlow 5s ease-in-out infinite; }

/* Nav CTA shimmer */
.nav-cta {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    #FB923C 30%,
    #FCD34D 50%,
    #FB923C 70%,
    var(--orange) 100%
  ) !important;
  background-size: 300% auto !important;
  animation: shimmerBtn 4s linear infinite !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.4) !important;
}
.nav-cta:hover {
  animation-play-state: paused !important;
  transform: translateY(-1px);
}

/* Section title underline (injected by JS) */
.section-title + div[style*="height:4px"] {
  display: block;
  transition: width .8s cubic-bezier(.22,.68,0,1.2);
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.gallery-feature {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-feature img,
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-feature:hover img,
.gallery-item:hover img { transform: scale(1.04); }

/* ── Header photo strip ─────────────────────────────────────── */
.photo-strip-section {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid #F1F1EC;
}
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 5%;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.photo-strip-item {
  flex: 0 0 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.photo-strip-item:hover { transform: translateY(-3px); }
.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet 960px ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-card    { display: none; }
  .values-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .agenda-grid  { grid-template-columns: 1fr; }
  .form-grid    { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }

  /* ── All inline 2-col grids (Présentation, Pédagogie,
        Infos pratiques, Deux méthodes, Contact layout) ── */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 380px"] {
    grid-template-columns: 1fr !important;
  }

  .photo-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-feature { grid-row: span 1; }

  section { padding: 64px 5%; }
}

/* ── Mobile 680px ─────────────────────────────────────────── */
@media (max-width: 680px) {
  html, body { overflow-x: hidden; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Section spacing */
  section { padding: 48px 5%; }
  .section-desc { margin-bottom: 32px; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content {
    padding: 56px 5% 48px !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
  }
  .hero-badge { font-size: .76rem; padding: 5px 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Big emoji illustration in Présentation — shrink */
  [style*="height:380px"] { height: 200px !important; font-size: 5rem !important; }

  /* All inline grids → single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 380px"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce large padding on gradient cards (pedagogy, inscriptions) */
  [style*="padding:36px"] { padding: 24px !important; }
  [style*="padding:40px"] { padding: 24px !important; }
  [style*="padding:44px"] { padding: 22px !important; }

  /* Steps grid */
  .steps-grid { grid-template-columns: 1fr !important; }
  .step-card  { padding: 28px 22px; }

  /* Values grid */
  .values-grid { grid-template-columns: 1fr; }

  /* Page hero (inscriptions, contact) */
  .page-hero    { padding: 44px 5% 36px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -20px; width: 16px; height: 16px; }
  .timeline-content { padding: 14px 16px; }
  .timeline-date { font-size: .75rem; }

  /* Event cards */
  .event-card { gap: 14px; }
  .event-date-box { min-width: 52px; }

  /* Agenda sidebar widgets */
  .sidebar-widget { margin-bottom: 16px; }

  /* Contact form box */
  .form-grid { gap: 12px; }

  /* Map */
  .map-wrapper { height: 230px !important; margin-top: 12px; }
  .map-wrapper iframe { height: 230px !important; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 28px 20px; }

  /* CTA section buttons */
  [style*="justify-content:center;flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  [style*="justify-content:center;flex-wrap:wrap"] .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact info blocks (phone/email/address) */
  [style*="display:flex;gap:14px;align-items:flex-start"] {
    gap: 12px !important;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-credit { font-size: .75rem; }

  /* Accordion */
  .accordion-header { font-size: .9rem; padding: 14px 16px; }
  .accordion-body   { padding: 0 16px; }
  .accordion-item.open .accordion-body { padding: 0 16px 16px; }

  /* Prevent images overflow */
  img { max-width: 100%; height: auto; }

  /* Hero stat numbers — keep readable */
  .hero-stat .num { font-size: 1.6rem; }

  /* Photo gallery — single column on mobile */
  .photo-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-feature,
  .gallery-item { height: 220px; }
}
