/* ============================================================
   ESFORCA — Feuille de style du site institutionnel
   ============================================================ */

:root {
  --vert-primaire: #0b6e4f;
  --vert-sombre: #094e38;
  --vert-clair: #1e8a63;
  --vert-tresclair: #e7f4ee;
  --bleu-accent: #1f4e79;
  --jaune-or: #f4b400;
  --gris-clair: #f4f6f5;
  --gris-bordure: #e2e6e4;
  --texte-fonce: #1c2b26;
  --texte-moyen: #48554f;
  --blanc: #ffffff;
  --ombre: 0 10px 30px rgba(11, 110, 79, 0.12);
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte-fonce);
  line-height: 1.7;
  background: var(--blanc);
}

img { max-width: 100%; display: block; }
a { color: var(--vert-primaire); text-decoration: none; }
a:hover { color: var(--vert-sombre); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--vert-sombre);
  color: #cfeee1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 3px solid var(--vert-primaire);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: auto; height: 52px; flex: 0 0 auto;
  object-fit: contain;
}
.brand-logo-footer { height: 60px; }
.brand-seal {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--vert-clair), var(--vert-sombre) 70%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  border: 2px solid var(--jaune-or);
  text-align: center; line-height: 1.1;
}
.brand-name { line-height: 1.2; }
.brand-name strong { font-size: 1.15rem; color: var(--vert-sombre); letter-spacing: 0.4px; }
.brand-name small { display: block; color: var(--texte-moyen); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--texte-fonce);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.nav-links a:hover { background: var(--vert-tresclair); color: var(--vert-primaire); }
.nav-links a.active { background: var(--vert-primaire); color: #fff; }
.nav-links .btn-cta { background: var(--jaune-or); color: #5c4300; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.nav-links .btn-cta:hover { background: #e5a800; color: #5c4300; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--vert-sombre); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; text-align: left; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(244,180,0,0.25), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.10), transparent 35%),
    linear-gradient(120deg, #053a2a, #0b6e4f);
  color: #fff;
  padding: 90px 0 100px;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 46px;
  background: var(--blanc);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 18px; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--jaune-or); }
.hero p.lead { font-size: 1.12rem; max-width: 720px; opacity: 0.94; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.98rem;
}
.btn-blanc { background: #fff; color: var(--vert-sombre); }
.btn-blanc:hover { background: var(--jaune-or); color: #5c4300; transform: translateY(-2px); }
.btn-contour { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-contour:hover { background: rgba(255,255,255,0.14); }
.btn-vert { background: var(--vert-primaire); color: #fff; }
/* ---------- Section générique ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--gris-clair); }
.section-head { max-width: 760px; margin-bottom: 46px; }
.eyebrow { color: var(--vert-primaire); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--vert-sombre); margin: 8px 0 12px; }
.section-head p { color: var(--texte-moyen); font-size: 1.05rem; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .grid-2-cols { grid-template-columns: 1fr; }
}
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-4-cols { grid-template-columns: 1fr; }
}

.card {
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 30px 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vert-tresclair);
  color: var(--vert-primaire);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; color: var(--vert-sombre); font-size: 1.15rem; }
.card p { margin: 0; color: var(--texte-moyen); font-size: 0.96rem; }

/* ---------- Cartes filières ---------- */
.card-filiere { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.filiere-head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(120deg, var(--vert-primaire), var(--vert-sombre));
  color: #fff;
}
.filiere-sigle {
  flex: 0 0 74px; width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(244,180,0,0.18);
  border: 2px solid var(--jaune-or);
  font-weight: 900; font-size: 1.55rem; letter-spacing: 1px;
  color: #fff;
}
.filiere-titre h3 { margin: 0 0 4px; color: #fff; font-size: 1.22rem; line-height: 1.2; }
.filiere-mention {
  display: inline-block;
  background: var(--jaune-or); color: #5c4300;
  padding: 3px 12px; border-radius: 999px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.filiere-corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.filiere-intro { margin: 0; color: var(--texte-moyen); font-size: 0.97rem; }
.filiere-intro strong { color: var(--vert-sombre); }
.filiere-det {
  border: 1px solid var(--gris-bordure);
  border-radius: 12px;
  background: var(--gris-clair);
}
.filiere-det summary {
  cursor: pointer;
  padding: 11px 16px;
  font-weight: 800;
  color: var(--vert-sombre);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  list-style: none;
}
.filiere-det summary::-webkit-details-marker { display: none; }
.filiere-det summary::before { content: "▾ "; color: var(--vert-primaire); }
.filiere-det[open] summary { border-bottom: 1px solid var(--gris-bordure); background: var(--vert-tresclair); }
.filiere-det .det-content { padding: 14px 16px 6px; }
.filiere-det .info-list { margin: 0; }
.filiere-det .info-list li { font-size: 0.9rem; }

/* ---------- Bandeau chiffres clés ---------- */
.stats { background: var(--vert-sombre); color: #fff; padding: 46px 0; }
.stats .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stats h3 { font-size: 2.2rem; margin: 0; color: var(--jaune-or); }
.stats p { margin: 4px 0 0; opacity: 0.88; }

/* ---------- Chronologie ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 4px; bottom: 4px;
  width: 3px; background: linear-gradient(var(--vert-clair), var(--jaune-or));
}
.timeline li { position: relative; padding: 0 0 34px 58px; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--vert-primaire); border: 4px solid var(--vert-tresclair);
}
.timeline .annee { display: inline-block; background: var(--vert-primaire); color: #fff; padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.timeline h4 { margin: 8px 0 6px; color: var(--vert-sombre); }

/* ---------- Organigramme ---------- */
.org { text-align: center; }
.org .org-head, .org .org-box {
  display: inline-block;
  background: var(--vert-primaire); color: #fff;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 1.05rem;
}
.org .org-line { width: 2px; height: 26px; background: var(--gris-bordure); margin: 0 auto; }
.org .org-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.org .org-box { background: var(--blanc); color: var(--texte-fonce); border: 2px solid var(--vert-clair); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.org .org-box small { display: block; color: var(--texte-moyen); font-weight: 500; font-size: 0.8rem; }
.org-branch { display: flex; flex-direction: column; align-items: center; flex: 1 1 240px; max-width: 320px; }
.org-sub { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; width: 100%; }
.org-sub li { padding: 7px 12px; border: 1px dashed var(--gris-bordure); border-radius: 10px; margin: 6px auto; background: var(--blanc); max-width: 250px; }
.org-sub li small { display: block; color: var(--texte-moyen); font-size: 0.78rem; }
.org-sub li ul { list-style: none; padding: 0; margin: 6px 0 0; }
@media (max-width: 720px) {
  .org-branch { max-width: 100%; }
}
/* ---------- Bandeau appel à l'action ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--bleu-accent), var(--vert-sombre));
  color: #fff;
  padding: 56px 0;
}
.cta-band .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.9; }

/* ---------- Bandeau annonce d'inscription ---------- */
.annonce {
  background:
    radial-gradient(circle at 90% 15%, rgba(244,180,0,0.30), transparent 45%),
    linear-gradient(120deg, #0b6e4f, #053a2a);
  color: #fff;
  padding: 34px 0;
  border-bottom: 4px solid var(--jaune-or);
}
.annonce-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.annonce-badge {
  display: inline-block;
  background: var(--jaune-or);
  color: #5c4300;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.annonce-texte h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25; }
.annonce-texte p { margin: 0; opacity: 0.95; max-width: 720px; }
.btn-jaune { background: var(--jaune-or); color: #5c4300; }
.btn-jaune:hover { background: #ffc53d; color: #5c4300; transform: translateY(-2px); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid .row-2 { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.9rem; color: var(--texte-fonce); }
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gris-bordure);
  border-radius: 10px;
  font: inherit;
  margin-top: 6px;
  background: var(--blanc);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 4px rgba(30,138,99,0.12); }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-ok { background: #d8f3e6; color: #0c5b3f; border: 1px solid #a8dfc4; }

/* ---------- Tableau ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--gris-bordure); font-size: 0.95rem; }
.tbl th { background: var(--vert-tresclair); color: var(--vert-sombre); }
.tbl tr:hover td { background: #f8fcfa; }

/* ---------- Bloc info ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--gris-bordure); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { color: var(--vert-primaire); font-size: 1.1rem; flex: 0 0 24px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--texte-fonce); color: #b9c6bf; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: 0.92rem; }
.site-footer a { color: #b9c6bf; }
.site-footer a:hover { color: var(--jaune-or); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; text-align: center; font-size: 0.85rem; }
.site-footer .brand-name strong { color: #fff; }
.site-footer .brand-name small { color: #9fb3aa; }
.footer-desc { margin: 14px 0 12px; font-size: 0.92rem; line-height: 1.6; }
.footer-badges { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.footer-badges li { padding: 3px 0; border: 0; }
.site-footer li small { color: #93a59c; font-size: 0.82rem; }

/* ---------- Divers ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; }
.text-center { text-align: center; }
.page-head {
  background: linear-gradient(120deg, var(--vert-sombre), var(--vert-primaire));
  color: #fff; padding: 54px 0 60px;
}
.page-head h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-head p { opacity: 0.9; margin: 0; max-width: 700px; }
.btn-vert:hover { background: var(--vert-sombre); color: #fff; transform: translateY(-2px); }