/* ============================================================
   STE — SOCIÉTÉ TCHADIENNE DES EAUX
   Charte graphique V3 · 2025
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: #1c2c41;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- VARIABLES (Charte V3) ----
   Charte : le BLEU est la couleur principale (pureté, confiance, service
   public). Le vert/turquoise et l'orange sont des accents à usage limité.
   L'« accent » historique du site (--teal) tient désormais un bleu
   institutionnel sobre ; le vert d'origine est conservé dans --green pour
   quelques usages ponctuels (statut « opérationnel », étiquettes). */
:root {
  --navy:        #163A5E;   /* bleu profond institutionnel (textes, footer) */
  --navy-800:    #1F557F;
  --blue:        #2E8FCB;   /* bleu ciel lumineux */
  --blue-light:  #9AD6EE;
  --blue-pale:   #E7F4FB;
  --teal:        #1685AE;   /* accent texte/lien — bleu eau lumineux */
  --teal-dark:   #0F6B8E;
  --aqua:        #1FB3CE;   /* turquoise eau — éclat & aplats décoratifs */
  --aqua-soft:   #7FD4E4;
  --green:       #18A78B;   /* vert/turquoise durable (charte) */
  --green-dark:  #14887A;
  --orange:      #F2922B;   /* soleil / terre — ancrage tchadien */
  --orange-dark: #D9741E;
  --beige:       #F8F2E7;   /* sable clair — chaleur locale */
  --gray-50:     #F1F8FC;   /* blanc bleuté aéré */
  --gray-100:    #E4EFF6;
  --gray-400:    #93A8B8;
  --gray-600:    #51677C;
  --white:       #FFFFFF;
  --red-alert:   #C5443F;

  --grad-hero:  linear-gradient(150deg, rgba(18,46,76,0.70) 0%, rgba(22,140,175,0.36) 100%);
  --grad-teal:  linear-gradient(135deg, #25BBD3 0%, #1685AE 100%);
  --grad-blue:  linear-gradient(135deg, #2E8FCB 0%, #163A5E 100%);
  --grad-warm:  linear-gradient(135deg, #F2922B 0%, #D9741E 100%);
  --grad-sun:   linear-gradient(120deg, #173E63 0%, #1C6CA0 55%, #1A93BE 100%);
  --grad-card:  linear-gradient(180deg, rgba(20,44,70,0) 45%, rgba(20,44,70,0.78) 100%);

  --shadow-sm:    0 1px 3px rgba(22,58,94,0.05), 0 4px 14px rgba(22,58,94,0.05);
  --shadow-md:    0 6px 22px rgba(22,58,94,0.08);
  --shadow-lg:    0 18px 46px rgba(22,58,94,0.13);
  --shadow-teal:  0 8px 26px rgba(31,179,206,0.22);
  --shadow-orange:0 8px 26px rgba(242,146,43,0.24);

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  40px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t:      0.3s;
  --t-slow: 0.6s;

  --container: 1200px;
  --hh: 72px;
  --cbh: 40px; /* hauteur bandeau "site en construction" (recalculee en JS) */
}

/* ---- BANDEAU SITE EN CONSTRUCTION ---- */
.site-construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 16px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.3vw, 1.45rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { color: var(--gray-600); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--aqua);
  border-radius: 2px;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-ico { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, rgba(26,158,143,0.15), rgba(77,158,207,0.15)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31,111,168,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-orange {
  background: var(--grad-warm);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.5);
}
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

.btn-urgence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-alert);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-red 2.5s ease infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,83,79,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(217,83,79,0); }
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: var(--cbh);
  left: 0;
  right: 0;
  height: var(--hh);
  z-index: 1000;
  background: rgba(20,38,63,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--t) var(--ease);
}
.header.scrolled {
  height: 60px;
  background: rgba(20,38,63,0.99);
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-ste {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.5px;
}
.logo-full {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
}
.logo-arabic {
  font-size: 0.65rem;
  color: var(--teal);
  line-height: 1;
  direction: rtl;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-link.active { color: var(--blue-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-radius: 4px;
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--teal);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: calc(var(--hh) + var(--cbh));
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 16px 20px 24px;
  transform: translateY(-110%);
  transition: transform var(--t) var(--ease);
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav-link {
  padding: 14px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: all var(--t) var(--ease);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255,255,255,0.07);
  border-left-color: var(--teal);
  color: var(--white);
}
.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--hh) + var(--cbh));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,111,168,0.25);
  border: 1px solid rgba(31,111,168,0.5);
  color: var(--blue-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.22);
}
.hero-title em {
  font-style: normal;
  color: var(--aqua);
}
.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  border: none;
}
.hero-dot.active {
  background: var(--teal);
  width: 24px;
  border-radius: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 1.5s ease infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--grad-sun);
  padding: 0;
  overflow: hidden;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background var(--t) var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 0.75rem;
  color: var(--aqua-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; }
.section-header .section-label {
  justify-content: center;
  margin-bottom: 14px;
}
.section-header .section-label::before { display: none; }
.section-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--aqua);
  border-radius: 2px;
}

/* ---- SERVICES RAPIDES ---- */
.services-quick { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-teal);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-teal);
  border-color: rgba(31,111,168,0.15);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(31,111,168,0.12), rgba(77,158,207,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all var(--t) var(--ease);
}
.service-card:hover .service-icon {
  background: var(--grad-teal);
  transform: scale(1.1) rotate(-5deg);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.service-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t) var(--ease);
}
.service-link:hover { gap: 8px; }

/* ---- URGENCE BANNER ---- */
.urgence-banner {
  background: linear-gradient(135deg, #D9534F, #b02a27);
  color: white;
  padding: 16px 0;
  text-align: center;
}
.urgence-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.urgence-text { font-size: 0.9rem; font-weight: 600; }
.urgence-phones { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.urgence-phone {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---- MISSION SECTION ---- */
.mission-section { background: var(--white); overflow: hidden; }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mission-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.mission-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--t-slow) var(--ease);
}
.mission-img-wrap:hover img { transform: scale(1.04); }
.mission-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
}
.mission-img-badge strong { display: block; font-size: 1.4rem; color: var(--teal); }
.mission-content { padding: 20px 0; }
.mission-content h2 { margin-bottom: 20px; }
.mission-content p { margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.mission-content p:last-of-type { margin-bottom: 28px; }
.mission-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.mission-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}
.mission-value-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.mission-value-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.mission-value-text span { font-size: 0.78rem; color: var(--gray-600); }

/* ---- PROJETS ---- */
.projets-section { background: var(--beige); }
.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}
.projet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.projet-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.projet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.projet-card:hover .projet-card-img img { transform: scale(1.06); }
.projet-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
}
.projet-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--teal);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.projet-card-badge.orange { background: var(--orange); }
.projet-card-badge.navy { background: var(--navy); }
.projet-funding {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}
.projet-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.projet-card-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.projet-card-body p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.projet-progress { margin-bottom: 16px; }
.projet-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.projet-progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}
.projet-progress-fill {
  height: 100%;
  background: var(--grad-teal);
  border-radius: 3px;
  transition: width 1s var(--ease);
}
.projet-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.projet-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--blue-pale);
  color: var(--navy);
}

/* ---- APP TEASER ---- */
.app-section {
  background: linear-gradient(150deg, #163A5E 0%, #1C6090 100%);
  position: relative;
  overflow: hidden;
}
.app-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(31,111,168,0.08);
}
.app-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(77,158,207,0.06);
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.app-content h2 { color: var(--white); margin-bottom: 16px; }
.app-content p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 24px; }
.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.app-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.app-feature-icon { font-size: 1.1rem; flex-shrink: 0; }
.app-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.app-phone-mockup {
  position: relative;
  width: 220px;
}
.app-phone-frame {
  width: 220px;
  height: 440px;
  background: linear-gradient(160deg, #2A4A72, #1C3557);
  border-radius: 36px;
  border: 6px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.app-phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.app-coming-soon {
  text-align: center;
  padding: 20px;
}
.app-coming-soon .teal-text { color: var(--teal); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.app-coming-soon h4 { color: white; font-size: 1.1rem; margin: 8px 0 4px; }
.app-coming-soon p { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.app-store-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-badge {
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.app-badge strong { display: block; color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* ---- ACTUALITES ---- */
.actualites-section { background: var(--white); }
.actu-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.actu-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t) var(--ease);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.actu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.actu-card-img {
  position: relative;
  overflow: hidden;
}
.actu-card:first-child .actu-card-img { height: 260px; }
.actu-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.actu-card:first-child .actu-card-img img { height: 260px; }
.actu-card:hover .actu-card-img img { transform: scale(1.05); }
.actu-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.actu-category.travaux { background: var(--orange); color: white; }
.actu-category.institutionnel { background: var(--navy); color: white; }
.actu-category.partenariat { background: var(--teal); color: white; }
.actu-category.alerte { background: var(--red-alert); color: white; }
.actu-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.actu-date { font-size: 0.72rem; color: var(--gray-400); margin-bottom: 8px; }
.actu-body h3 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.actu-body p { font-size: 0.82rem; line-height: 1.6; flex: 1; }
.actu-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 12px;
  transition: gap var(--t) var(--ease);
}
.actu-read-more:hover { gap: 8px; }
.actu-footer {
  text-align: center;
  margin-top: 40px;
}

/* ---- FOOTER ---- */
.footer {
  background: #0f2238;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-ste { font-size: 2rem; color: white; }
.footer-brand .logo-full { color: rgba(255,255,255,0.6); font-size: 0.7rem; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--teal);
  font-style: italic;
  margin: 14px 0 20px;
  line-height: 1.5;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}
.footer-contact-item .icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--t) var(--ease);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.social-btn:hover { background: var(--teal); color: white; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t) var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link::before {
  content: '→';
  font-size: 0.7rem;
  color: var(--teal);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.footer-link:hover { color: var(--white); }
.footer-link:hover::before { opacity: 1; }
.footer-newsletter p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-tarifs {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
}
.footer-tarifs h5 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.tarif-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tarif-row:last-child { border-bottom: none; }
.footer-partners {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-partners-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.5);
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-partners-logos img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
  opacity: 0.92;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer-partners-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--t) var(--ease); }
.footer-bottom a:hover { color: var(--teal); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--grad-blue);
  padding: calc(120px + var(--cbh)) 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--t) var(--ease); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; line-height: 1.7; }

/* ---- CARDS GENERIC ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 24px; }
.card-header { padding: 24px 24px 0; }

/* ---- INSTITUTION PAGE ---- */
.dg-section { background: var(--gray-50); }
.dg-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.dg-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.dg-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.dg-photo-caption {
  background: var(--navy);
  color: white;
  padding: 16px 20px;
  text-align: center;
}
.dg-photo-caption h3 { color: white; font-size: 1rem; }
.dg-photo-caption p { color: var(--teal); font-size: 0.8rem; margin: 0; }
.dg-text blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.7;
}
.dg-text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }
.gouvernance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gouvernance-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  text-align: center;
}
.gouvernance-card .icon { font-size: 2.5rem; margin-bottom: 14px; }
.gouvernance-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.gouvernance-card ul { font-size: 0.82rem; color: var(--gray-600); text-align: left; }
.gouvernance-card ul li {
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gouvernance-card ul li::before { content: '▸'; color: var(--teal); font-size: 0.7rem; }

/* ---- SERVICES PAGE ---- */
.abonnement-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.abonnement-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--blue-pale);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-teal);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-teal);
}
.step-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.step-card p { font-size: 0.78rem; color: var(--gray-600); line-height: 1.5; }

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tarif-table th {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.tarif-table th:first-child { border-radius: 8px 0 0 0; }
.tarif-table th:last-child { border-radius: 0 8px 0 0; text-align: right; }
.tarif-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.tarif-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.tarif-table tr:hover td { background: var(--gray-50); }
.tarif-zone-header td {
  background: rgba(31,111,168,0.08);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.tarif-bf td { background: rgba(245,166,35,0.06); }

/* ---- SITES PAGE ---- */
.sites-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-100);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t) var(--ease);
}
.site-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.site-card-header {
  background: var(--grad-teal);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.site-card-header h3 { color: white; font-size: 1rem; margin-bottom: 2px; }
.site-card-header span { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.site-card-body { padding: 18px; }
.site-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}
.site-info-row:last-child { border-bottom: none; }
.site-info-row .label { color: var(--gray-400); font-size: 0.72rem; flex-shrink: 0; width: 80px; }
.site-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
}
.site-status.active { background: rgba(26,158,143,0.12); color: var(--green-dark); }
.site-status.active::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* ---- TRAVAUX PAGE ---- */
.projet-detail {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.projet-detail-header {
  background: var(--grad-blue);
  padding: 28px 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
}
.projet-detail-header > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}
/* Badge d'état d'un projet — posé sur l'en-tete bleu, donc fond opaque
   pour garder un contraste >= 4.5:1 avec le texte blanc. */
.projet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.45);
}
.projet-badge.is-ongoing { background: #0D5F54; border-color: rgba(126,230,214,0.7); }
.projet-badge.is-progress { background: #8A5800; border-color: rgba(255,209,128,0.75); }
.projet-badge.is-planned { background: #1B4E75; border-color: rgba(173,214,240,0.75); }
.projet-detail-header h3 { color: white; font-size: 1.3rem; margin-bottom: 6px; line-height: 1.25; }
.projet-detail-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; line-height: 1.5; max-width: 60ch; }
.projet-financement {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.projet-financement .amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.projet-financement .source { font-size: 0.75rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
.projet-sponsors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(28,53,87,0.04);
  border-bottom: 1px solid var(--gray-100);
}
.projet-sponsors-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-600);
  margin-right: 4px;
}
.projet-sponsors img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.projet-sponsors-etat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
}
.projet-detail-body { padding: 28px 32px; }
.projet-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.travaux-list { list-style: none; }
.travaux-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.travaux-list li::before { content: '▸'; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.travaux-list li:last-child { border-bottom: none; }

/* ---- APPLICATION PAGE ---- */
.app-hero { background: var(--navy); padding: 100px 0 60px; }
.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.countdown-grid {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 80px;
}
.countdown-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.func-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.func-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t) var(--ease);
}
.func-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
  border-color: rgba(31,111,168,0.2);
}
.func-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.func-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.func-card p { font-size: 0.78rem; line-height: 1.6; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.contact-infos { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31,111,168,0.12), rgba(77,158,207,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info-card h4 { margin-bottom: 6px; font-size: 0.9rem; }
.contact-info-card p, .contact-info-card a {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--t) var(--ease);
  background: var(--gray-50);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  background: white;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

.hexagon-decor {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy); }
.bg-teal { background: var(--teal); }
.bg-beige { background: var(--beige); }
.bg-gray { background: var(--gray-50); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.divider {
  height: 1px;
  background: var(--gray-100);
  margin: 40px 0;
}
.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--blue-pale);
  color: var(--navy);
}
.tag-teal { background: rgba(31,111,168,0.12); color: var(--teal); }
.tag-orange { background: rgba(245,166,35,0.12); color: var(--orange-dark); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; line-height: 1.6; }
.cookie-buttons { display: flex; gap: 8px; }

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-teal);
  cursor: pointer;
  transform: translateY(80px);
  opacity: 0;
  transition: all var(--t) var(--ease);
  z-index: 500;
}
.scroll-top.visible {
  transform: translateY(0);
  opacity: 1;
}
.scroll-top:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projets-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-urgence { display: none; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-img-wrap { aspect-ratio: 16/9; }
  .app-grid { grid-template-columns: 1fr; }
  .app-visual { display: none; }
  .actu-grid { grid-template-columns: 1fr; }
  .gouvernance-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .dg-grid { grid-template-columns: 1fr; }
  .projet-detail-grid { grid-template-columns: 1fr; }
  .abonnement-steps { grid-template-columns: 1fr 1fr; }
  .abonnement-steps::before { display: none; }
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-hero-grid { grid-template-columns: 1fr; }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --hh: 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .projets-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .gouvernance-grid { grid-template-columns: 1fr; }
  .hero-stats-bar { gap: 20px; }
  .abonnement-steps { grid-template-columns: 1fr; }
  .func-grid { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .app-features { grid-template-columns: 1fr; }
  .mission-values { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .projet-detail-header { flex-direction: column; align-items: stretch; }
  .projet-financement {
    text-align: left;
    align-items: flex-start;
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .section-pad { padding: 56px 0; }
}

@media (max-width: 400px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 14px; }
}

/* ---- Mini-cartes de localisation & encarts de projet ---- */
.projet-note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .projet-note-grid { grid-template-columns: 1fr; }
}

.projet-mini-carte {
  display: flex; align-items: center; gap: 18px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}
.projet-mini-carte svg { width: 74px; height: auto; flex-shrink: 0; }
.projet-mini-carte strong {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--teal); margin-bottom: 3px;
}
.projet-mini-carte span { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---- Mentions légales ---- */
.ml-bloc {
  background: white; border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 28px 32px; margin-bottom: 20px;
}
.ml-bloc h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.ml-bloc p { font-size: 0.9rem; line-height: 1.8; color: var(--gray-600); margin-bottom: 12px; }
.ml-bloc p:last-child { margin-bottom: 0; }
.ml-bloc a { color: var(--teal); font-weight: 600; }
.ml-liste { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.ml-liste li {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); font-size: 0.88rem;
}
.ml-liste li:last-child { border-bottom: none; padding-bottom: 0; }
.ml-liste li > span:first-child { color: var(--gray-400); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.ml-liste li > span:last-child { color: var(--navy); font-weight: 600; }
.ml-maj { font-size: 0.8rem; color: var(--gray-400); text-align: center; margin-top: 28px; }
@media (max-width: 640px) {
  .ml-bloc { padding: 22px 20px; }
  .ml-liste li { grid-template-columns: 1fr; gap: 2px; }
}

/* Certains utilisateurs demandent moins de mouvement au niveau du système
   (vestibulaire, migraines) : on neutralise animations et transitions. Un
   écran qui n'anime rien est aussi un écran qui fait moins travailler le GPU. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Audit : accessibilité et grilles mobiles. */
.skip-link { position: fixed; inset-inline-start: 12px; top: 12px; z-index: 2000; padding: 12px 20px; background: white; color: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.mobile-nav[inert] { display: none; }
.mobile-nav { max-height: calc(100dvh - var(--hh) - var(--cbh)); overflow-y: auto; }
.responsive-grid { grid-template-columns: var(--grid-columns); }
.responsive-grid > * { min-width: 0; overflow-wrap: anywhere; }
.hero-pause { padding: 6px 12px; border-radius: 6px; color: white; background: var(--navy); border: 1px solid white; cursor: pointer; }
@media (max-width: 900px) {
  .responsive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .responsive-grid { grid-template-columns: minmax(0, 1fr); }
  .header .logo-full, .header .logo-arabic { display: none; }
  .header-inner { gap: 12px; }
  .header .logo { min-width: 0; }
  .header-actions { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .split-grid > *, .services-grid > * { min-width: 0; }
  .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
