@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=EB+Garamond:wght@400;600&display=swap');

:root {
  --navy:  #002395;
  --red:   #E60000;
  --white: #FFFFFF;
  --grey:  #F4F4F6;
  --dark:  #0A0A14;
  --mid:   #8A8AA0;
  --border:#D0D4E0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
}

/* ── BARRE TRICOLORE ── */
.tricolor-bar {
  display: flex;
  height: 5px;
  width: 100%;
}
.tricolor-bar span { flex: 1; }
.tricolor-bar .b { background: var(--navy); }
.tricolor-bar .w { background: var(--white); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.tricolor-bar .r { background: var(--red); }

/* ── HEADER ── */
header {
  background: var(--navy);
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-wrap img { height: 44px; width: 44px; object-fit: contain; }
.logo-text {
  color: var(--white);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-text span { color: var(--red); }

nav { display: flex; gap: 0; }
nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
nav a:hover, nav a.active {
  color: var(--white);
  border-bottom-color: var(--red);
  background: rgba(255,255,255,0.06);
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 110px 5vw 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content:'';
  position:absolute;
  right:-80px; top:-80px;
  width:520px; height:520px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(230,0,0,0.18) 0%, transparent 70%);
  pointer-events:none;
}
.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 14px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  max-width: 800px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero p {
  margin-top: 24px;
  max-width: 600px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: #c00000; border-color: #c00000; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #001a70; }

/* ── SECTIONS ── */
section { padding: 80px 5vw; }
section.alt { background: var(--grey); }

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.15;
  max-width: 760px;
}
.section-title + p {
  margin-top: 18px;
  max-width: 680px;
  color: #444;
  font-size: 0.98rem;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--red);
  margin: 20px 0;
}

/* ── PILLAR CARDS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  background: var(--white);
  border-top: 4px solid var(--navy);
  padding: 36px 30px;
  box-shadow: 0 2px 12px rgba(0,0,35,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,35,0.13); }
.pillar-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar p { font-size: 0.9rem; color: #555; line-height: 1.7; }

/* ── STAT BANNER ── */
.stat-banner {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-desc {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ── PROGRAMME ROWS ── */
.prog-list { margin-top: 40px; }
.prog-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.prog-item:last-child { border-bottom: none; }
.prog-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.prog-body h3 { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.prog-body p { font-size: 0.9rem; color: #555; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 48px 5vw;
  font-size: 0.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

/* ── MANIFESTE PAGE ── */
.manifeste-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 5vw 60px;
  text-align: center;
}
.manifeste-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.manifeste-hero .subtitle {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.manifeste-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 5vw;
}
.article-block {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.article-block:last-child { border-bottom: none; }
.article-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.article-block h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.article-block p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #333;
}
.article-block blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 22px;
  margin: 24px 0;
  background: var(--grey);
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}

/* ── CARTE PAGE ── */
.carte-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 60px 5vw;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 900px) { .carte-container { grid-template-columns: 1fr; } }

.carte-wrap { position: relative; }
#carte-svg { width: 100%; height: auto; }

.tooltip {
  position: absolute;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
  max-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.tooltip.visible { opacity: 1; }
.tooltip strong { display: block; color: var(--red); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }

.zone-list { display: flex; flex-direction: column; gap: 16px; }
.zone-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,35,0.07);
}
.zone-card h4 { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.zone-card .tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 2px 8px;
  margin-bottom: 8px;
}
.zone-card p { font-size: 0.82rem; color: #555; line-height: 1.6; }

/* ── REJOINDRE PAGE ── */
.form-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 5vw;
}
.form-wrap h2 {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-wrap .subtitle {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:600px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 16px;
  line-height: 1.6;
}
.success-msg {
  display: none;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 16px 20px;
  color: #1b5e20;
  font-weight: 600;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ── LISTE / DASHBOARD ── */
.dashboard {
  padding: 60px 5vw;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-title { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; color: var(--navy); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-red { background: var(--red); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  box-shadow: 0 2px 12px rgba(0,0,35,0.07);
}
thead tr {
  background: var(--navy);
  color: var(--white);
  text-align: left;
}
thead th {
  padding: 14px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th:hover { background: #001a70; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: var(--grey); }
tbody td { padding: 13px 18px; color: #333; }
tbody td:first-child { font-weight: 700; color: var(--navy); }

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
  outline: none;
}
.filter-bar input:focus { border-color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { display: none; }
  .hero { padding: 70px 5vw 60px; }
  .stat-item { flex: 0 0 50%; }
}