/* ==========================================================================
   CEM GAINDÉ FATMA — style.css
   Design system: institutional Senegalese green & gold, editorial serif
   display type paired with a clean geometric sans, and a signature
   "bogolan band" divider inspired by West African wax-print textiles.
   ========================================================================== */

/* Polices Google chargées via <link> dans le <head> de chaque page
   (préconnexion + feuille dédiée) plutôt qu'en @import ici, pour éviter
   la requête en cascade qui pénalisait la performance et le CLS. */

:root {
  /* Brand colors */
  --primary: #2458a1;
  --primary-dark: #1f0d68;
  --primary-light: #E7F1EC;
  --gold: #D4AF37;
  --gold-light: #F6EDCC;
  --light: #F5F7F6;
  --dark: #1F2937;
  --white: #FFFFFF;

  /* Derived */
  --muted: #5B6572;
  --border: #E4E8E6;
  --shadow-sm: 0 2px 10px rgba(7, 61, 41, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 61, 41, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 61, 41, 0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --header-h: 116px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--light); }
.section--dark { background: var(--primary-dark); color: rgba(255,255,255,.88); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Signature: bogolan divider band ---------- */
.woven-band {
  height: 14px;
  width: 100%;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(45deg, var(--primary) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(315deg, var(--primary) 25%, transparent 25%) 0 0/14px 14px;
  background-color: var(--primary-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--primary-dark); }
.btn-primary:hover { background: #c39d2c; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--primary-dark); color: var(--white); }
.btn-dark:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 0.83rem;
  display: none; /* mobile-first : masquée par défaut, façon barre d'app */
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar-links { display: flex; gap: 24px; align-items: center; }
.topbar-links a, .topbar-links span { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar-lang { display: flex; gap: 10px; align-items: center; }
.topbar-lang span { opacity: .5; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }

/* Mobile-first : app bar compacte */
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
  border: 2px solid var(--gold);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--primary-dark); line-height: 1.15; }
.brand-text .brand-sub { font-size: 0.66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { display: none; } /* mobile-first : remplacé par le tiroir + la barre d'onglets */

/* La navigation horizontale n'existe qu'à partir du desktop (voir responsive.css) */
.navbar { border-top: 1px solid var(--border); display: none; }
.nav-list { display: flex; flex-direction: column; align-items: stretch; text-align: center; gap: 0; padding: 10px 0; }
.nav-list a {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: all .2s ease;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--gold); }

.menu-toggle {
  display: flex;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary-dark);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Tiroir de navigation mobile (façon application) ---------- */
.nav-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 20, 15, .55);
  z-index: 1400;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nav-drawer-backdrop.open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--white);
  z-index: 1500;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--primary-dark);
  flex-shrink: 0; cursor: pointer;
}

.drawer-list { padding: 8px 0; flex: 1; }
.drawer-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 22px;
  font-weight: 600; font-size: 0.98rem; color: var(--dark);
  border-left: 3px solid transparent;
  transition: all .2s ease;
}
.drawer-list a i { font-size: 1.2rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.drawer-list a.active, .drawer-list a:hover { background: var(--primary-light); border-left-color: var(--gold); color: var(--primary-dark); }

.drawer-contact {
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.83rem; color: var(--muted);
  flex-shrink: 0;
}
.drawer-contact i { color: var(--primary); margin-right: 8px; }

body.drawer-open { overflow: hidden; }

/* ---------- Barre d'onglets fixe (mobile, façon application) ---------- */
.bottom-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch; justify-content: space-around;
  box-shadow: 0 -6px 24px rgba(7, 61, 41, .1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-tabbar a, .bottom-tabbar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 2px 9px;
  background: none; border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: color .15s ease;
}
.bottom-tabbar i { font-size: 1.28rem; line-height: 1; }
.bottom-tabbar a.active, .bottom-tabbar button.active { color: var(--primary); }

/* Espace réservé en bas pour ne pas passer sous la barre d'onglets fixe */
body { padding-bottom: 62px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(5, 37, 108, 0.75), rgba(27, 8, 91, 0.88)), url('../assets/images/hero.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 14px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(45deg, var(--primary) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(315deg, var(--primary) 25%, transparent 25%) 0 0/14px 14px;
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin: 18px 0 22px; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .12s; }
.reveal-delay-2.is-visible { transition-delay: .24s; }
.reveal-delay-3.is-visible { transition-delay: .36s; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 10px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0/10px 10px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) 0 0/10px 10px,
    linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%) 0 0/10px 10px,
    linear-gradient(315deg, rgba(255,255,255,.25) 25%, transparent 25%) 0 0/10px 10px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); margin: 14px 0 12px; font-size: clamp(2rem, 4vw, 2.9rem); }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,.75); margin-top: 8px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Stats ---------- */
.stats-strip { background: var(--primary-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat-item { text-align: center; padding: 36px 16px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.stat-item:nth-child(2n) { border-right: none; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--gold); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 0.92rem; letter-spacing: .04em; color: rgba(255,255,255,.85); text-transform: uppercase; }

/* ---------- About split ---------- */
/* Mobile-first : empilé par défaut (texte puis image), deux colonnes dès le tablette/desktop */
.split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.split-media { position: relative; order: 2; }
.split-body { order: 1; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.split-media .badge-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 18px 22px; display: flex; gap: 14px; align-items: center;
  border-left: 4px solid var(--gold);
}
.badge-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--primary); }
.badge-card .txt { font-size: 0.8rem; color: var(--muted); max-width: 130px; }

.split-body h2 { margin-bottom: 18px; }
.split-body p { color: var(--muted); margin-bottom: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--dark); }
.check-list i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; }

/* ---------- Principal message ---------- */
/* Mobile-first : photo au-dessus, texte en dessous, deux colonnes dès le desktop */
.principal-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.principal-photo { position: relative; min-height: 260px; }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-body { padding: 30px 24px; position: relative; }
.principal-body .quote-mark { font-family: var(--font-display); font-size: 5rem; color: var(--gold-light); position: absolute; top: 8px; left: 30px; line-height: 1; }
.principal-body .eyebrow { margin-bottom: 14px; }
.principal-body p.msg { font-size: 1.08rem; color: var(--muted); margin-bottom: 14px; }
.principal-signature { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.principal-signature .line { width: 40px; height: 2px; background: var(--gold); }
.principal-signature strong { display: block; color: var(--primary-dark); font-family: var(--font-display); }
.principal-signature span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Cards: news / events / enseignants par matière ---------- */
/* Mobile-first: une seule colonne par défaut, élargi via responsive.css */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.08); }
/* Actualités : certaines images (ex. infographies) ne doivent jamais être
   recadrées — on les affiche entières, sur un fond neutre si besoin. */
.card-img--contain { background: var(--light); }
.card-img--contain img { object-fit: contain; }
.card-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--primary-dark);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.18rem; }
.card-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; flex: 1; }
.card-link { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { transition: transform .2s ease; }
.card-link:hover i { transform: translateX(4px); }
.card-link:hover { color: var(--primary-dark); }

/* Teacher card */
.teacher-card { text-align: center; }
.teacher-card .card-img { aspect-ratio: 1/1; }
.teacher-card .card-body { align-items: center; text-align: center; }
.teacher-card .subject-tag {
  background: var(--primary-light); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}

/* Admin card */
.admin-card { text-align: center; padding: 30px 24px; }
.admin-card .card-img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; aspect-ratio: 1/1; border: 4px solid var(--gold-light); }
.admin-card .role { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.admin-card p { color: var(--muted); font-size: 0.9rem; }

/* Value card */
.value-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 34px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-card .icon-wrap {
  width: 58px; height: 58px; border-radius: var(--r-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.92rem; }
.club-president {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 0.85rem !important; font-weight: 700; color: var(--primary) !important;
  display: flex; align-items: center; gap: 6px;
}

/* Feature row (school-life) */
.feature-card { display: flex; gap: 20px; padding: 30px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.feature-card .icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

/* Event card */
.event-card { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); align-items: center; transition: box-shadow .25s, transform .25s; }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.event-thumb { flex-shrink: 0; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge { flex-shrink: 0; width: 74px; height: 74px; border-radius: var(--r-sm); background: var(--primary); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date-badge .day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.event-info h3 { font-size: 1.08rem; margin-bottom: 6px; }
.event-info .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.event-info .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-tag { background: var(--gold-light); color: #8a6d1c; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; }

/* ---------- Filters / search bar ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 24px; box-shadow: var(--shadow-sm); margin-bottom: 44px;
}
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--light); font-family: var(--font-body); font-size: 0.94rem;
}
.search-box input:focus { outline: 2px solid var(--primary); background: var(--white); }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--white); font-size: 0.86rem; font-weight: 600; color: var(--dark);
  cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white);
  font-weight: 700; color: var(--dark); cursor: pointer; transition: all .2s ease;
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--gold); margin-bottom: 16px; display: block; }

/* ---------- Annuaire du personnel (cadres, un par ligne sur mobile) ---------- */
.staff-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.staff-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.staff-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.staff-card .staff-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--primary-dark); margin: 0;
}
.staff-fonction-badge {
  font-size: 0.76rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--primary-light); color: var(--primary); white-space: nowrap; flex-shrink: 0;
}

/* ---------- Results ---------- */
.result-search-card {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 44px; margin-top: -110px; position: relative; z-index: 5;
  border-top: 6px solid var(--gold);
}
.result-search-card h3 { margin-bottom: 6px; }
.result-search-card p { color: var(--muted); margin-bottom: 24px; }
.result-search-form { display: flex; gap: 14px; }
.result-search-form input { flex: 1; padding: 15px 20px; border-radius: var(--r-pill); border: 1px solid var(--border); font-family: var(--font-body); }
.result-search-form input:focus { outline: 2px solid var(--primary); }
.result-output { margin-top: 26px; padding: 22px 26px; border-radius: var(--r-md); background: var(--primary-light); display: none; }
.result-output.show { display: block; }
.result-output.not-found { background: #FCEAEA; }
.result-output dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin-top: 14px; }
.result-output dt { color: var(--muted); font-weight: 600; }
.result-output dd { margin: 0; font-weight: 700; color: var(--primary-dark); }
.result-badge { display: inline-block; padding: 6px 16px; border-radius: var(--r-pill); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; }
.result-badge.admis { background: #DEF3E5; color: var(--primary); }
.result-badge.non-admis { background: #FCEAEA; color: #B3261E; }

/* ---------- Contact ---------- */
.contact-info-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-list h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-list p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 44px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--primary); background: var(--white); }
.form-alert { display: none; padding: 16px 20px; border-radius: var(--r-sm); background: var(--primary-light); color: var(--primary-dark); font-weight: 600; margin-bottom: 20px; align-items: center; gap: 10px; }
.form-alert.show { display: flex; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 340px; }
.map-frame img, .map-frame iframe { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: var(--r-lg);
  padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(212,175,55,.12);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding-top: 50px; }
/* Mobile-first : une colonne empilée par défaut, élargi via responsive.css */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 34px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.footer-brand .brand-mark { border-color: var(--white); }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.site-footer p.desc { font-size: 0.9rem; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease; color: var(--white);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--primary-dark); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col .meta-item { display: flex; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--gold); }

.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(212, 175, 55, .5);
  transition: opacity .2s ease, text-decoration-color .2s ease;
}
.footer-credit a:hover { opacity: .85; text-decoration-color: var(--gold); }
.footer-credit i:first-child { color: rgba(255, 255, 255, .5); }
.footer-credit a i { font-size: 0.75em; }

/* ---------- Misc: back to top, loader ---------- */
.back-to-top {
  position: fixed; bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 16px); right: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, bottom .2s ease; z-index: 900; border: none; cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--primary-dark);
  padding: 10px 18px; z-index: 3000; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Similar articles / related */
.related-title { margin-bottom: 30px; }

/* Article detail */
.article-hero-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 34px; aspect-ratio: 21/9; background: var(--light); }
.article-hero-img img { width: 100%; height: 100%; object-fit: contain; }
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.88rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body p { color: var(--dark); margin-bottom: 20px; font-size: 1.05rem; }
.article-body h2, .article-body h3 { margin-top: 34px; margin-bottom: 14px; }
.share-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.share-row a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: all .2s ease; }
.share-row a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Calendar note */
.calendar-note { background: var(--gold-light); border-left: 4px solid var(--gold); padding: 22px 26px; border-radius: var(--r-sm); color: #6b551a; }

@media print { .site-header, .site-footer, .back-to-top { display: none; } }