/* ===== ETISAC SARL - STYLESHEET ===== */
/* Design inspiré de expertturquie.com | Palette: Orange, Noir, Gris */
/*
 * LECTURE DU FICHIER : sections repérables par des titres « ===== NOM ===== » (recherche dans l’éditeur).
 * Chaque bloc regroupe des sélecteurs liés (ex. .navbar, .hero, .footer).
 * Les règles « une ligne » regroupent souvent reset + utilitaires (.container) pour limiter la verbosité.
 * Les variables :root définissent la charte (orange, typos, rayons) ; les composants utilisent var(--…).
 */

/* Polices : chargées via <link> dans includes/header.php (preconnect + stylesheet) */

/* ===== CSS VARIABLES ===== */
:root {
  /* Charte orange (noms sémantiques « brand » ; anciennes variables --green-* supprimées) */
  --brand-primary:  #ea580c;
  --brand-light:    #fb923c;
  --brand-bright:   #fdba74;
  --brand-dark:     #9a3412;
  --black:          #111111;
  --dark:           #1a1a1a;
  --dark-2:         #222222;
  --gray-dark:      #444444;
  --gray-mid:       #6c757d;
  --gray-light:     #cccccc;
  --gray-bg:        #f4f4f4;
  --white:          #ffffff;
  --overlay:        rgba(17,17,17,0.72);
  --transition:     all 0.35s ease;
  --shadow:         0 8px 32px rgba(0,0,0,0.18);
  --radius:         6px;
  --font-head:      'Barlow Condensed', sans-serif;
  --font-body:      'Nunito Sans', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 3px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--white);
  color: var(--gray-mid);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #e8e8e8;
}
.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-dark); }
.topbar a:hover { color: var(--brand-primary); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar i { color: var(--brand-primary); margin-right: 5px; }
.topbar-social a {
  width: 28px; height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--gray-dark);
  transition: var(--transition);
}
.topbar-social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }

.theme-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 50px; width: auto; }
.navbar .logo-text { color: var(--black); }
.logo-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-bright);
  line-height: 1;
}
.logo-text span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.navbar .logo-text span { color: var(--gray-mid); }
.footer .logo-text { color: var(--black); }
.footer .logo-text span { color: var(--gray-mid); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  color: var(--gray-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: var(--brand-primary); }
.nav-link i.arrow { font-size: 10px; }
button.nav-link {
  font: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--brand-primary);
  min-width: 210px;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-dark);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid transparent;
}
.dropdown-menu a:hover { color: var(--brand-bright); background: rgba(234,88,12,0.08); border-left-color: var(--brand-primary); padding-left: 25px; }
.dropdown-menu a.active {
  color: var(--brand-primary);
  font-weight: 700;
  border-left-color: var(--brand-primary);
  background: rgba(234,88,12,0.06);
}

.nav-cta {
  background: var(--brand-primary);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.82) 0%, rgba(234,88,12,0.35) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.hero-content .container { width: 100%; }
.hero-text { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(234,88,12,0.2);
  border: 1px solid var(--brand-primary);
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--brand-bright); border-radius: 50%; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero-title span { color: var(--brand-bright); }
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--brand-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--brand-bright); border-color: var(--brand-bright); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--brand-bright); border-color: var(--brand-bright); width: 30px; border-radius: 5px; }
.hero-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 10; pointer-events: none; }
.hero-arrow {
  pointer-events: all;
  width: 48px; height: 48px;
  background: rgba(234,88,12,0.7);
  border: 1px solid var(--brand-primary);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--brand-primary); }

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--brand-primary), 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; } }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
.section-tag::before, .section-tag::after {
  content: '';
  width: 30px; height: 2px;
  background: var(--brand-primary);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title span { color: var(--brand-primary); }
.section-desc { color: var(--gray-mid); max-width: 580px; margin: 0 auto; font-size: 16px; }
.section-header-left { text-align: left; }
.section-header-left .section-tag::before { display: none; }

/* Sections à fond clair (mode clair) ; mode sombre = fond et textes inversés */
.surface-light {
  background: var(--white);
  border-top: 1px solid #eee;
}
.surface-light .section-title { color: var(--black); }
.surface-light .section-desc { color: var(--gray-mid); }
.surface-light .gallery-item.project-card { background: var(--gray-bg); }
.surface-muted {
  background: var(--gray-bg);
  border-top: 1px solid #eee;
}
.team.surface-muted,
.projects.surface-muted {
  background: var(--gray-bg);
}
.service-card.service-card-alt {
  background: var(--white);
  border-color: #e8e8e8;
}
.service-card.service-card-alt .service-link {
  color: var(--brand-primary);
}
.service-num--muted {
  color: rgba(234, 88, 12, 0.07);
}
.service-detail-visual {
  background: var(--brand-primary);
  border-radius: 8px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.service-detail-visual .service-detail-num {
  font-family: var(--font-head);
  font-size: 160px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
}
.service-detail-visual .service-detail-icon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 70px;
  position: relative;
  z-index: 1;
}
.about-departments-grid {
  background: transparent;
  padding: 0;
}
.gallery-cta-wrap {
  text-align: center;
  margin-top: 40px;
}
.partners-lead {
  color: var(--gray-mid);
  margin-top: 8px;
  font-size: 14px;
}
.service-card.service-card-alt h3 { color: var(--black); }
.service-card.service-card-alt p { color: var(--gray-mid); }

/* ===== WHY CHOOSE US ===== */
.why-choose { background: var(--gray-bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #e8e8e8;
  border-bottom: 4px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-bright));
  transform: scaleX(0);
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-bottom-color: var(--brand-primary); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 68px; height: 68px;
  background: rgba(234,88,12,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: var(--brand-primary);
  border: 2px solid rgba(234,88,12,0.2);
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }
.why-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}
.why-card p { font-size: 14px; color: var(--gray-mid); line-height: 1.7; }

/* ===== SERVICES ===== */
.services {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #eee;
  background: transparent;
}
/* Même visuel que le hero slide 1 (assets/images/slide1.jpg) */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/slide1.jpg') center/cover no-repeat;
  z-index: 0;
}
.services::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  z-index: 1;
}
.services > .container {
  position: relative;
  z-index: 2;
}
.services .section-title { color: var(--black); }
.services .section-desc { color: var(--gray-mid); }
.services .section-tag { color: var(--brand-primary); }
.services .section-tag::before, .services .section-tag::after { background: var(--brand-primary); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
section[id^="service-"] { scroll-margin-top: 96px; }
.service-card {
  background: var(--gray-bg);
  padding: 44px 32px;
  border: 1px solid #e8e8e8;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-bright));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { background: var(--white); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: rgba(234,88,12,0.07);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
  transition: var(--transition);
}
.service-card:hover .service-num { color: rgba(234,88,12,0.15); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(234,88,12,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--brand-light);
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--brand-primary); color: var(--white); }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p { color: var(--gray-mid); font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.service-link i { transition: var(--transition); }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ===== À PROPOS — encart mission ===== */
.about-mission {
  padding-top: 44px;
  padding-bottom: 44px;
}
.about-mission-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-primary);
  text-align: center;
  margin: 0 0 14px;
}
.about-mission-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.75;
  color: var(--gray-dark);
  border-left: 3px solid var(--brand-primary);
  padding-left: 22px;
  text-align: left;
}
html[data-theme="dark"] .about-mission-lead {
  color: #c9d1d9;
}

/* ===== À PROPOS — immatriculation & agréments ===== */
.about-identity .section-desc {
  max-width: 720px;
}
.about-legal-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.about-legal-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
}
.about-legal-list li:last-child {
  border-bottom: none;
}
.about-legal-label {
  font-weight: 700;
  color: var(--gray-dark);
  flex: 1 1 200px;
}
.about-legal-value {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  text-align: right;
  word-break: break-word;
}
html[data-theme="dark"] .about-legal-list {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .about-legal-list li {
  border-bottom-color: #30363d;
}
html[data-theme="dark"] .about-legal-label {
  color: #c9d1d9;
}
html[data-theme="dark"] .about-legal-value {
  color: #f0f3f6;
}
@media (max-width: 600px) {
  .about-legal-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-legal-value {
    text-align: left;
  }
}

/* ===== ABOUT SECTION ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%; height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.92);
}
.about-img-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--brand-primary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow);
}
.about-img-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.about-img-badge span { font-size: 13px; opacity: 0.9; }
.about-content { padding-right: 20px; }
.about-list { margin: 24px 0 32px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--gray-dark);
}
.about-list li i { color: var(--brand-primary); font-size: 18px; margin-top: 2px; flex-shrink: 0; }

/* ===== PROJECTS ===== */
.projects { background: var(--gray-bg); }
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  background: transparent;
  border: 2px solid #ddd;
  color: var(--gray-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.project-img-wrap { position: relative; overflow: hidden; height: 240px; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img-wrap img { transform: scale(1.08); }
/* Carrousel PNUD — cartes liste projets : toutes les photos des écoles en fondu enchaîné */
.project-img-wrap--media-carousel img { transition: opacity 0.65s ease, transform 0.6s ease; }
.project-img-wrap--media-carousel .project-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}
.project-img-wrap--media-carousel .project-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.project-card:hover .project-img-wrap--media-carousel .project-carousel-slide.is-active { transform: scale(1.08); }
.project-card:hover .project-img-wrap--media-carousel .project-carousel-slide:not(.is-active) { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .project-img-wrap--media-carousel img { transition: none; }
}
.project-img-wrap--gif { background: #1a1a1a; }
.project-img-wrap--gif img {
  object-fit: contain;
  transform: none;
}
.project-card:hover .project-img-wrap--gif img { transform: none; }
.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay a {
  width: 50px; height: 50px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 20px;
  transition: var(--transition);
}
.project-overlay a:hover { background: var(--white); color: var(--brand-primary); }
.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
}
.project-body { padding: 22px; }
.project-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}
.project-body p { color: var(--gray-mid); font-size: 13px; line-height: 1.7; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.project-meta span { font-size: 12px; color: var(--gray-mid); display: flex; align-items: center; gap: 5px; }
.project-meta span i { color: var(--brand-primary); }
.project-progress { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-mid); margin-bottom: 6px; }
.progress-bar { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-bright));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}

/* ===== PROJECT DETAIL ===== */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.project-detail-main-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project-detail-page {
  border-top: none;
}
.project-empty-state {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 36px 24px;
}
.project-empty-state-cta {
  margin-top: 14px;
}
.project-detail-main {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.project-detail-cover {
  border-bottom: 1px solid #eee;
}
.project-detail-main-image {
  width: 100%;
  height: auto;
  display: block;
}
.project-detail-head {
  padding: 24px;
  text-align: left;
}
.project-detail-desc {
  max-width: unset;
  margin: 0;
}
.project-detail-title {
  margin-top: 8px;
}
.project-detail-sidebar {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: left;
}
.project-detail-sidebar h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--black);
}
.project-meta.project-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.project-progress.project-progress-detail {
  margin-bottom: 16px;
}
.project-detail-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-detail-block {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.project-detail-block h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}
.project-service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.project-service-list li {
  color: var(--gray-dark);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.project-service-list i {
  color: var(--brand-primary);
  margin-top: 3px;
}
.project-follow-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.project-follow-gallery .gallery-item {
  height: 200px;
  border-radius: var(--radius);
}
.project-follow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.project-follow-item {
  background: var(--gray-bg);
  border: 1px solid #eee;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 14px;
}
.project-follow-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.project-follow-item h4 {
  margin: 8px 0 6px;
  font-family: var(--font-head);
  color: var(--black);
  text-transform: uppercase;
  font-size: 16px;
}
.project-follow-item p {
  color: var(--gray-mid);
  font-size: 13px;
  line-height: 1.7;
}
.project-follow-status {
  margin-top: 8px;
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(234,88,12,0.12);
  border-radius: 20px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.project-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-site-card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-bg);
}
.project-site-image-link {
  display: block;
  height: 180px;
}
.project-site-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-site-body {
  padding: 14px;
  text-align: left;
}
.project-site-body h4 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  text-transform: uppercase;
}
.project-site-body h4 a {
  color: var(--black);
  text-decoration: none;
}
.project-site-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.project-site-meta span {
  color: var(--gray-mid);
  font-size: 13px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.project-site-body p {
  margin: 0;
  color: var(--gray-mid);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 45%, #ffedd5 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(234,88,12,0.08);
  border-radius: 50%;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 20px; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  display: block;
}
.stat-plus { color: var(--brand-bright); }
.stat-label {
  color: var(--gray-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat-sep { width: 40px; height: 2px; background: rgba(234,88,12,0.25); margin: 10px auto; }

/* ===== TEAM ===== */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.team-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eee;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.team-img-wrap { position: relative; overflow: hidden; height: 260px; }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
  height: 100px;
  transform: translateY(100%);
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  gap: 8px;
}
.team-card:hover .team-img-overlay { transform: translateY(0); }
.team-social-link {
  width: 34px; height: 34px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 14px;
}
.team-body { padding: 20px 16px; }
.team-body h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}
.team-role { font-size: 12px; color: var(--brand-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.team-desc { font-size: 12px; color: var(--gray-mid); margin-top: 10px; line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); border-top: 1px solid #eee; }
.testimonials .section-title { color: var(--black); }
.testimonials .section-tag { color: var(--brand-primary); }
.testimonials .section-tag::before, .testimonials .section-tag::after { background: var(--brand-primary); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--gray-bg);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.testi-card:hover { border-color: var(--brand-primary); transform: translateY(-4px); }
.testi-quote {
  font-size: 60px;
  color: var(--brand-primary);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  opacity: 0.6;
}
.testi-text { color: var(--gray-dark); font-size: 14px; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-author-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-primary);
}
.testi-author-info h5 {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-head);
}
.testi-author-info span { font-size: 12px; color: var(--brand-primary); }
.testi-stars { color: #f5c518; font-size: 13px; margin-bottom: 6px; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.faq-img { border-radius: var(--radius); overflow: hidden; height: 500px; }
.faq-img img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--brand-primary); box-shadow: 0 4px 20px rgba(234,88,12,0.1); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  gap: 10px;
}
.faq-item.open .faq-question { color: var(--brand-primary); background: rgba(234,88,12,0.04); }
.faq-icon {
  width: 28px; height: 28px;
  background: rgba(234,88,12,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-primary);
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--brand-primary); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
  color: var(--gray-mid);
  font-size: 14px;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 22px 18px; }

/* ===== TIMELINE (Plan d'exécution) ===== */
.timeline { background: var(--gray-bg); }
.timeline-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.timeline-visual {
  position: sticky;
  top: 96px;
}
.timeline-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: min(85vh, 720px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.timeline-list { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-split .timeline-list { max-width: none; margin: 0; width: 100%; }
.timeline-list::before {
  content: '';
  position: absolute;
  left: 90px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-primary), var(--brand-bright));
}
.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 36px;
  position: relative;
}
.timeline-date {
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}
.timeline-date .day {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}
.timeline-date .month {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-dot {
  position: absolute;
  left: 84px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--brand-primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--brand-primary);
}
.timeline-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  border-left: 4px solid var(--brand-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.timeline-body:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.timeline-body h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 6px;
}
.timeline-body p { font-size: 13px; color: var(--gray-mid); }
.timeline-location {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 700;
  margin-top: 8px;
}

/* ===== GALLERY ===== */
.gallery { background: var(--white); border-top: 1px solid #eee; }
.gallery .section-title { color: var(--black); }
.gallery .section-tag { color: var(--brand-primary); }
.gallery .section-tag::before, .gallery .section-tag::after { background: var(--brand-primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 6px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(234,88,12,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 28px; }
.gallery-caption {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  max-width: 95%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.gallery-item--photo .gallery-caption {
  font-size: 13px;
}

.gallery-grid--photos {
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery-page-filter {
  margin-bottom: 36px;
}
.gallery-item--photo {
  border-radius: 6px;
  height: 220px;
}

/* ===== PARTNERS ===== */
.partners { background: var(--gray-bg); padding: 60px 0; }
.partners-title { text-align: center; margin-bottom: 36px; }
.partners-title h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
}
.partners-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner-item {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: center;
  min-width: 140px; height: 80px;
  filter: none;
  opacity: 1;
}
.partner-item img { max-height: 50px; width: auto; object-fit: contain; }
a.partner-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.partner-item--link:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
}
a.partner-item--link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23111111' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}
.cta-banner h2 span { color: var(--brand-primary); }
.cta-banner p { color: var(--gray-mid); font-size: 17px; margin-bottom: 36px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-banner .btn-outline {
  color: var(--black);
  border-color: #ccc;
}
.cta-banner .btn-outline:hover {
  border-color: var(--brand-primary);
  background: rgba(234,88,12,0.06);
  color: var(--brand-primary);
}

/* ===== FOOTER ===== */
.footer { background: var(--white); padding: 70px 0 0; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #e8e8e8; }
.footer-brand .logo-text strong { font-size: 26px; }
.footer-desc { color: var(--gray-mid); font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--gray-bg);
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dark);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 1px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--gray-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a i { color: var(--brand-primary); font-size: 12px; }
.footer-links a:hover { color: var(--brand-primary); padding-left: 5px; }
.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-contact-icon {
  width: 38px; height: 38px;
  background: rgba(234,88,12,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  font-size: 16px;
  flex-shrink: 0;
}
.footer-contact-text { color: var(--gray-mid); font-size: 13px; line-height: 1.7; }
.footer-contact-text a { color: var(--brand-primary); font-weight: 600; }
.footer-contact-text a:hover { text-decoration: underline; }
.footer-contact-text strong { color: var(--black); display: block; margin-bottom: 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { color: var(--gray-mid); font-size: 13px; }
.footer-bottom a { color: var(--brand-primary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--gray-mid); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--brand-primary); }

/* Back to top */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand-dark); }

/* ===== PAGE HERO (sous-pages) ===== */
.page-hero {
  background: var(--white);
  padding: 100px 0 60px;
  margin-top: 76px;
  border-bottom: 1px solid #eee;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}
.page-hero h1 span { color: var(--brand-primary); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-mid);
}
.breadcrumb a { color: var(--brand-primary); }
.breadcrumb i { font-size: 10px; }

/* ===== CONTACT FORM ===== */
.contact-form { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info h3 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}
.contact-title-accent { color: var(--brand-primary); }
.contact-info p { color: var(--gray-mid); font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.form-title .form-title__icon {
  color: var(--brand-primary);
  margin-right: 10px;
}
.form-wrap {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 40px;
}
.form-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--black);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}
.form-submit:hover { background: var(--brand-dark); }
/* Champ anti-spam (honeypot) — rester hors écran */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Pages légales (texte long) */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--black);
  text-transform: uppercase;
}
.legal-content p,
.legal-content li {
  color: var(--gray-mid);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 12px 0 16px 20px;
}
.legal-inline-list {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0 18px;
}
.legal-inline-list li {
  margin-bottom: 8px;
}
.legal-content-note {
  font-size: 14px;
  margin-bottom: 24px !important;
}
.legal-content-note a {
  color: var(--brand-primary);
  font-weight: 600;
}

.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-top: 12px; display: none; }
.form-msg.success { background: rgba(234,88,12,0.1); border: 1px solid var(--brand-primary); color: var(--brand-dark); display: block; }
.form-msg.error { background: rgba(220,53,69,0.1); border: 1px solid #dc3545; color: #dc3545; display: block; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: none;
  padding: 8px;
  line-height: 1;
}
.lightbox-close:hover { color: var(--brand-bright); }
.lightbox-close:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 4px;
}

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-2 { transition-delay: 0.15s; }
.fade-up-3 { transition-delay: 0.30s; }
.fade-up-4 { transition-delay: 0.45s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content { padding-right: 0; }
  .about-img-main { height: 380px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-follow-list { grid-template-columns: 1fr 1fr; }
  .project-follow-gallery { grid-template-columns: 1fr 1fr; }
  .project-sites-grid { grid-template-columns: 1fr; }
  .timeline-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .timeline-visual {
    position: static;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .timeline-visual img {
    max-height: none;
    min-height: 240px;
  }
}
@media (max-width: 768px) {
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 16px; gap: 4px; box-shadow: var(--shadow); border-top: 1px solid #eee; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .nav-item .nav-link-dropdown { width: 100%; justify-content: space-between; text-align: left; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: 2px solid var(--brand-primary); background: #f8f8f8; margin-top: 4px; border-radius: var(--radius); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-arrows { display: none; }
  .timeline-list::before { left: 70px; }
  .timeline-date .day { font-size: 28px; }
  .project-service-list { grid-template-columns: 1fr; }
  .project-follow-list { grid-template-columns: 1fr; }
  .project-follow-gallery { grid-template-columns: 1fr; }
  .project-site-image-link { height: 200px; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}


/* ===== CONTACT ===== */
.contact-info-text strong { color: var(--black); display: block; margin-bottom: 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== THÈME SOMBRE (data-theme sur <html>) — fonds sombres, textes clairs ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --gray-mid: #9aa5b1;
  --gray-dark: #c9d1d9;
}
html[data-theme="dark"] body {
  background: #0d1117;
  color: #b8c0cc;
}

/* En-tête */
html[data-theme="dark"] .topbar {
  background: #0d1117;
  color: #9aa5b1;
  border-bottom-color: #30363d;
}
html[data-theme="dark"] .topbar a { color: #c9d1d9; }
html[data-theme="dark"] .topbar a:hover { color: var(--brand-bright); }
html[data-theme="dark"] .topbar i { color: var(--brand-bright); }
html[data-theme="dark"] .topbar-social a {
  border-color: #444;
  color: #c9d1d9;
}
html[data-theme="dark"] .theme-toggle {
  border-color: #444;
  color: #c9d1d9;
}
html[data-theme="dark"] .navbar {
  background: #0d1117;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .navbar.scrolled {
  background: rgba(13, 17, 23, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .navbar .logo-text { color: #f0f3f6; }
html[data-theme="dark"] .navbar .logo-text span { color: #9aa5b1; }
html[data-theme="dark"] .nav-link { color: #c9d1d9; }
html[data-theme="dark"] .dropdown-menu {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .dropdown-menu a { color: #c9d1d9; }
html[data-theme="dark"] .dropdown-menu a.active {
  color: var(--brand-bright);
  background: rgba(234,88,12,0.12);
}
html[data-theme="dark"] .hamburger span { background: #f0f3f6; }

html[data-theme="dark"] .section-title { color: #f0f3f6; }
html[data-theme="dark"] .section-desc { color: #9aa5b1; }

html[data-theme="dark"] .legal-content { color: #c9d1d9; }
html[data-theme="dark"] .legal-content h2 { color: #f0f3f6; }
html[data-theme="dark"] .legal-content-note a { color: var(--brand-bright); }

html[data-theme="dark"] .why-choose { background: #0d1117; }
html[data-theme="dark"] .why-card {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .why-card h3 { color: #f0f3f6; }
html[data-theme="dark"] .why-card p { color: #9aa5b1; }

html[data-theme="dark"] .about { background: #0d1117; }
html[data-theme="dark"] .about-list li { color: #c9d1d9; }

html[data-theme="dark"] .projects { background: #0d1117; }
html[data-theme="dark"] .project-card {
  background: #161b22;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .project-body h3 { color: #f0f3f6; }
html[data-theme="dark"] .project-body p { color: #9aa5b1; }
html[data-theme="dark"] .project-meta { border-top-color: #30363d; }
html[data-theme="dark"] .project-detail-sidebar {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .project-empty-state {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .project-detail-main {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .project-detail-main-wrap {
  background: transparent;
}
html[data-theme="dark"] .project-detail-cover {
  border-bottom-color: #30363d;
}
html[data-theme="dark"] .project-detail-sidebar h3 { color: #f0f3f6; }
html[data-theme="dark"] .project-detail-block {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .project-detail-block h3 { color: #f0f3f6; }
html[data-theme="dark"] .project-service-list li { color: #c9d1d9; }
html[data-theme="dark"] .project-follow-item {
  background: #0d1117;
  border-color: #30363d;
}
html[data-theme="dark"] .project-follow-item h4 { color: #f0f3f6; }
html[data-theme="dark"] .project-follow-item p { color: #9aa5b1; }
html[data-theme="dark"] .filter-btn {
  border-color: #444;
  color: #c9d1d9;
}
html[data-theme="dark"] .progress-bar { background: #30363d; }

html[data-theme="dark"] .services {
  background: transparent;
  border-top-color: #30363d;
}
html[data-theme="dark"] .services::after {
  background: rgba(13, 17, 23, 0.88);
}
html[data-theme="dark"] .testimonials,
html[data-theme="dark"] .gallery {
  background: #0d1117;
  border-top-color: #30363d;
}
html[data-theme="dark"] .service-card {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .service-card:hover { background: #1c2128; }
html[data-theme="dark"] .service-card h3 { color: #f0f3f6; }
html[data-theme="dark"] .service-card p { color: #9aa5b1; }

html[data-theme="dark"] .testi-card {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .testi-text { color: #c9d1d9; }
html[data-theme="dark"] .testi-author-info h5 { color: #f0f3f6; }

html[data-theme="dark"] .team { background: #0d1117; }
html[data-theme="dark"] .team-card {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .team-body h4 { color: #f0f3f6; }
html[data-theme="dark"] .team-desc { color: #9aa5b1; }

html[data-theme="dark"] .stats {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 45%, #1c1410 100%);
}
html[data-theme="dark"] .stats::before {
  background: rgba(234, 88, 12, 0.12);
}
html[data-theme="dark"] .stat-num { color: var(--brand-bright); }
html[data-theme="dark"] .stat-label { color: #c9d1d9; }
html[data-theme="dark"] .stat-sep { background: rgba(255, 255, 255, 0.15); }

html[data-theme="dark"] .cta-banner {
  background: #0d1117;
  border-top-color: #30363d;
  border-bottom-color: #30363d;
}
html[data-theme="dark"] .cta-banner h2 { color: #f0f3f6; }
html[data-theme="dark"] .cta-banner p { color: #9aa5b1; }
html[data-theme="dark"] .cta-banner .btn-outline {
  color: #f0f3f6;
  border-color: #555;
}
html[data-theme="dark"] .cta-banner .btn-outline:hover {
  border-color: var(--brand-primary);
  background: rgba(234, 88, 12, 0.12);
  color: var(--brand-bright);
}

html[data-theme="dark"] .footer {
  background: #0a0a0a;
  border-top-color: #30363d;
}
html[data-theme="dark"] .footer-grid { border-bottom-color: #30363d; }
html[data-theme="dark"] .footer .logo-text { color: #f0f3f6; }
html[data-theme="dark"] .footer .logo-text span { color: #9aa5b1; }
html[data-theme="dark"] .footer-desc { color: #9aa5b1; }
html[data-theme="dark"] .footer-social a {
  background: #161b22;
  border-color: #30363d;
  color: #c9d1d9;
}
html[data-theme="dark"] .footer-col h4 { color: #f0f3f6; }
html[data-theme="dark"] .footer-links a { color: #c9d1d9; }
html[data-theme="dark"] .footer-contact-text { color: #9aa5b1; }
html[data-theme="dark"] .footer-contact-text a { color: var(--brand-bright); }
html[data-theme="dark"] .footer-contact-text strong { color: #f0f3f6; }
html[data-theme="dark"] .footer-bottom p,
html[data-theme="dark"] .footer-bottom-links a { color: #8b949e; }
html[data-theme="dark"] .footer-bottom a { color: var(--brand-bright); }

html[data-theme="dark"] .page-hero {
  background: #0d1117;
  border-bottom-color: #30363d;
}
html[data-theme="dark"] .page-hero h1 { color: #f0f3f6; }
html[data-theme="dark"] .breadcrumb { color: #9aa5b1; }
html[data-theme="dark"] .breadcrumb a { color: var(--brand-bright); }

html[data-theme="dark"] .surface-light {
  background: #0d1117;
  border-top-color: #30363d;
}
html[data-theme="dark"] .surface-muted {
  background: #0d1117;
  border-top-color: #30363d;
}
html[data-theme="dark"] .surface-light .section-title { color: #f0f3f6; }
html[data-theme="dark"] .surface-light .section-desc { color: #9aa5b1; }
html[data-theme="dark"] .service-card.service-card-alt {
  background: #161b22;
  border-color: #30363d;
}
html[data-theme="dark"] .service-card.service-card-alt h3 { color: #f0f3f6; }
html[data-theme="dark"] .service-card.service-card-alt p { color: #9aa5b1; }
html[data-theme="dark"] .surface-light .gallery-item.project-card {
  background: #161b22;
  border: 1px solid #30363d;
}

html[data-theme="dark"] .faq { background: #0d1117; }
html[data-theme="dark"] .faq-item { border-color: #30363d; }
html[data-theme="dark"] .faq-question {
  color: #f0f3f6;
  background: #161b22;
}
html[data-theme="dark"] .faq-item.open .faq-question { background: rgba(234, 88, 12, 0.12); }
html[data-theme="dark"] .faq-answer { color: #9aa5b1; }

html[data-theme="dark"] .timeline { background: #0d1117; }
html[data-theme="dark"] .timeline-visual img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .timeline-body {
  background: #161b22;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .timeline-body h4 { color: #f0f3f6; }
html[data-theme="dark"] .timeline-body p { color: #9aa5b1; }
html[data-theme="dark"] .timeline-dot { border-color: #161b22; }

html[data-theme="dark"] .partners { background: #0d1117; }
html[data-theme="dark"] .partners-title h2 { color: #f0f3f6; }
html[data-theme="dark"] .partners-lead { color: #9aa5b1 !important; }
html[data-theme="dark"] .partner-item {
  background: #161b22;
  border-color: #30363d;
}

html[data-theme="dark"] .contact-form { background: #0d1117; }
html[data-theme="dark"] .contact-title-accent { color: var(--brand-bright); }
html[data-theme="dark"] .contact-info h3,
html[data-theme="dark"] .form-title,
html[data-theme="dark"] .contact-info-text strong { color: #f0f3f6; }
html[data-theme="dark"] .contact-info p { color: #9aa5b1; }
html[data-theme="dark"] .form-wrap { background: #161b22; }
html[data-theme="dark"] .form-group label { color: #c9d1d9; }
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  background: #0d1117;
  border-color: #30363d;
  color: #e6edf3;
}
html[data-theme="dark"] .form-msg.success {
  background: rgba(234, 88, 12, 0.15);
  color: #fdba74;
}

@media (max-width: 768px) {
  html[data-theme="dark"] .nav-menu {
    background: #0d1117;
    border-top-color: #30363d;
  }
  html[data-theme="dark"] .dropdown-menu {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
  }
}