/* ============================================================
   APDNK - Agence Provinciale pour le Développement du Numérique
   Charte Graphique RDC - style.css
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Cooper Hewitt via CDN fallback */
@font-face {
  font-family: 'Cooper Hewitt';
  src: url('https://fonts.cdnfonts.com/css/cooper-hewitt') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES - CHARTE GRAPHIQUE RDC
   ============================================================ */
:root {
  /* Couleurs Principales */
  --primary-blue:   #104293;
  --red:            #DB3832;
  --yellow:         #FFF24B;
  --cyan:           #0095C8;

  /* Couleurs dérivées */
  --primary-blue-70: rgba(16, 66, 147, 0.70);
  --primary-blue-90: rgba(16, 66, 147, 0.90);
  --dark-overlay:   rgba(0, 0, 0, 0.55);
  --glass-bg:       rgba(255, 255, 255, 0.08);
  --glass-border:   rgba(255, 255, 255, 0.15);
  --white:          #ffffff;
  --off-white:      #f4f6fb;
  --text-dark:      #1a1a2e;
  --text-muted:     #6b7280;
  --card-shadow:    0 8px 32px rgba(16, 66, 147, 0.12);
  --card-hover-shadow: 0 20px 60px rgba(16, 66, 147, 0.22);

  /* Typographie */
  --font-titles:    'Cooper Hewitt', 'Trebuchet MS', sans-serif;
  --font-body:      'Poppins', sans-serif;
  --font-accent:    'Great Vibes', cursive;

  /* Navbar height */
  --navbar-h: 122px;

  /* Tricolor bar */
  --tricolor-h: 6px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::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(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.font-title    { font-family: var(--font-titles); }
.font-body     { font-family: var(--font-body); }
.font-accent   { font-family: var(--font-accent); }
.text-primary  { color: var(--primary-blue); }
.text-red      { color: var(--red); }
.text-cyan     { color: var(--cyan); }
.text-yellow   { color: var(--yellow); }
.text-white    { color: var(--white); }

/* Section titles */
.section-title {
  font-family: var(--font-titles);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-titles);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.section-divider span {
  display: inline-block;
  width: 36px; height: 3px;
  border-radius: 2px;
}
.section-divider .d-red  { background: var(--red); }
.section-divider .d-blue { background: var(--primary-blue); }
.section-divider .d-icon {
  width: 24px; height: 24px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* ============================================================
   TRICOLOR BAR
   ============================================================ */
.tricolor-bar {
  height: var(--tricolor-h);
  display: flex;
  width: 100%;
}
.tricolor-bar .tc-blue  { flex: 1; background: var(--cyan); }
.tricolor-bar .tc-yellow{ flex: 1; background: var(--yellow); }
.tricolor-bar .tc-red   { flex: 1; background: var(--red); }

/* ============================================================
   NAVBAR / HEADER — fond blanc
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(16, 66, 147, 0.10);
  border-bottom: 1px solid #e8ecf4;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(16, 66, 147, 0.14);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: var(--navbar-h);
  padding: 0 41px;
  max-width: 2389px;
  margin: 0 auto;
}

/* ── Logo principal image 1600×500 px
   On respecte le ratio : hauteur = navbar-h * 0.72 ≈ 88px
   largeur = 88 * (1600/500) = 281px                        */
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--navbar-h);
  text-decoration: none;
  padding: 16px 0;
}

/* Si le logo est une balise <img> */
.navbar-brand .brand-logo-img {
  height: 100%;
  width: auto;
  max-height: 88px;
  /* ratio 1600/500 = 3.2 → max-width = 88 * 3.2 = 281px */
  max-width: 281px;
  object-fit: contain;
  display: block;
}

/* Fallback : logo texte quand pas d'image */
.navbar-brand .brand-arms {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(16,66,147,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,66,147,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.navbar-brand .brand-arms svg {
  width: 46px; height: 46px;
}

/* Vertical tricolor line */
.brand-line {
  width: 3px;
  height: 56px;
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.brand-line span { flex: 1; }
.brand-line .bl-cyan   { background: var(--cyan); }
.brand-line .bl-yellow { background: var(--yellow); }
.brand-line .bl-red    { background: var(--red); }

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-text .brand-name {
  font-family: var(--font-titles);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);   /* bleu sur blanc */
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.brand-text .brand-tagline {
  font-family: var(--font-titles);
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(16,66,147,0.6);   /* bleu atténué sur blanc */
  line-height: 1.35;
  max-width: 150px;
}

/* ============================================================
   NAV LINKS — Horizontal classique sur fond blanc
   ============================================================ */
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-left: auto;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

/* Séparateur — pipe vertical bleu léger */
.nav-sep {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(16, 66, 147, 0.15);
  flex-shrink: 0;
}

.nav-link-item {
  font-family: var(--font-titles);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-blue);         /* bleu sur blanc */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: var(--navbar-h);
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

/* Barre de soulignement active / hover */
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--red);             /* rouge charte sur blanc */
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.nav-link-item:hover {
  color: var(--red);
}

.nav-link-item:hover::after {
  transform: scaleX(1);
}

.nav-link-item.active {
  color: var(--red);
  font-weight: 700;
}

.nav-link-item.active::after {
  transform: scaleX(1);
  background: var(--red);
}

/* Bouton loupe */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 0 18px;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  color: var(--red);
}

.nav-search-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SEARCH MODAL OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--navbar-h) + 20px) 16px 0;
  background: rgba(10, 20, 50, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-modal {
  width: 100%;
  max-width: 680px;
  transform: translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.search-overlay.open .search-modal {
  transform: translateY(0);
}

.search-modal-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  position: relative;
}

.search-modal-label {
  font-family: var(--font-titles);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
  padding-right: 40px; /* espace pour le bouton fermer */
}

/* Champ + bouton : flex row sur desktop, colonne sur mobile */
.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border: 2px solid #e5e9f0;
  border-radius: 50px;
  padding: 4px 6px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 8px;
}

.search-input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,149,200,0.1);
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;       /* évite le débordement sur mobile */
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-titles);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 0;
}

.search-input-wrap input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-submit-btn {
  background: var(--primary-blue);
  border: none;
  color: white;
  border-radius: 40px;
  padding: 10px 20px;
  font-family: var(--font-titles);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-submit-btn:hover { background: #0d3070; }

/* Suggestions — supprimées sur tous les écrans */
.search-suggestions {
  display: none;
}

.search-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--off-white);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  font-size: 1rem;
}
.search-close-btn:hover {
  background: var(--red);
  color: white;
  transform: rotate(90deg);
}

/* Escape hint */
.search-esc-hint {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-titles);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}
.search-esc-hint kbd {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: var(--font-titles);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
}

/* ── Mobile : champ et bouton empilés verticalement ── */
@media (max-width: 576px) {
  .search-overlay {
    padding-top: calc(var(--navbar-h) + 12px);
    padding-left: 12px;
    padding-right: 12px;
    align-items: flex-start;
  }

  .search-modal-inner {
    padding: 22px 18px 20px;
    border-radius: 14px;
  }

  /* Sur mobile : on casse le flex en colonne */
  .search-input-wrap {
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    padding: 14px 16px 12px;
    gap: 12px;
  }

  /* Supprimer l'icône loupe sur mobile pour gagner de la place */
  .search-input-wrap > svg {
    display: none;
  }

  .search-input-wrap input {
    font-size: 0.95rem;
    padding: 0;
    width: 100%;
  }

  .search-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    font-size: 0.82rem;
  }

  .search-esc-hint { display: none; }
}

/* Mobile hamburger */
.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.navbar-toggler span {
  display: block;
  width: 26px; height: 2px;
  background: var(--primary-blue);   /* bleu sur blanc */
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--navbar-h));
  height: calc(100dvh - var(--navbar-h)); /* dvh = vrai viewport mobile */
  max-height: 906px;
  overflow: hidden;
  margin-top: var(--navbar-h);
}

/* Desktop uniquement : hauteur minimum */
@media (min-width: 992px) {
  .hero-slider {
    min-height: 520px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(16,66,147,0.45) 50%,
    rgba(0,0,0,0.25) 100%
  );
}

/* Futuristic tech overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,149,200,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,66,147,0.2) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 10%;
  z-index: 10;
  max-width: 560px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-accent {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title {
  font-family: var(--font-titles);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-titles);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(219,56,50,0.4);
}

.hero-cta:hover {
  background: #c62d28;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(219,56,50,0.5);
  color: var(--white);
}

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

/* Circuit lines decoration */
.hero-circuit {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  opacity: 0.25;
  pointer-events: none;
}

/* ============================================================
   PAGE SPACER
   ============================================================ */
.page-top { margin-top: var(--navbar-h); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0d3070 60%, #0a2050 100%);
  padding: 80px 0 60px;
  margin-top: var(--navbar-h);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,149,200,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,242,75,0.05) 0%, transparent 40%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-titles);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Breadcrumb */
.breadcrumb-wrap {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-titles);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb-wrap a { color: var(--cyan); }
.breadcrumb-wrap span { color: rgba(255,255,255,0.4); }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-category {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-titles);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-title {
  font-family: var(--font-titles);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eef0f5;
  padding-top: 14px;
  margin-top: auto;
}

.news-card-author-img {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.news-card-author-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-read-more {
  margin-left: auto;
  font-family: var(--font-titles);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, gap 0.2s;
}

.btn-read-more:hover {
  color: var(--red);
  gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue);
  color: var(--white);
  font-family: var(--font-titles);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16,66,147,0.3);
}

.btn-primary-custom:hover {
  background: #0d3070;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,66,147,0.4);
  color: var(--white);
}

.btn-red-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-titles);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(219,56,50,0.3);
}

.btn-red-custom:hover {
  background: #c62d28;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(219,56,50,0.45);
  color: var(--white);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary-blue);
  font-family: var(--font-titles);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 11px 26px;
  border-radius: 40px;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

.bg-light-gray { background: var(--off-white); }

.bg-blue-dark {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0a2050 100%);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 340px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-bg {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16,66,147,0.95) 0%,
    rgba(16,66,147,0.5) 40%,
    rgba(0,0,0,0.1) 100%
  );
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 28px;
  z-index: 2;
}

.project-card-tag {
  font-family: var(--font-titles);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.project-card-title {
  font-family: var(--font-titles);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.project-card:hover .project-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #082560 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(0,149,200,0.15) 0%, transparent 50%);
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-family: var(--font-titles);
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-titles);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   INFO BAND (top of footer)
   ============================================================ */
.info-band {
  background: var(--primary-blue);
  padding: 40px 0;
}

.info-band-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}

.info-band-card:hover {
  background: rgba(255,255,255,0.14);
}

.info-band-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.info-band-card h5 {
  font-family: var(--font-titles);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.info-band-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-blue-70);
  position: relative;
  overflow: hidden;
}

/* Circuit pattern bg */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(0,149,200,0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255,242,75,0.04) 0%, transparent 30%);
  pointer-events: none;
}

.footer-main {
  background: rgba(16, 66, 147, 0.85);
  padding: 50px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-brand-col .footer-logo {
  display: block;
  margin-bottom: 20px;
}

/* Logo footer — ratio 1200×400 = 3:1
   hauteur fixe 72px → largeur = 72 * 3 = 216px */
.footer-logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 216px;
  object-fit: contain;
  opacity: 0.92;
}

/* Fallback si pas d'image : ancien sceau SVG — gardé mais masqué par défaut */
.footer-logo-seal {
  display: none;
}

.footer-brand-name {
  font-family: var(--font-titles);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-titles);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-3px);
  color: white;
}

.footer-heading {
  font-family: var(--font-titles);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-family: var(--font-titles);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
}

/* Newsletter */
.newsletter-form .input-group {
  border-radius: 40px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 12px;
}

.newsletter-form input {
  background: transparent;
  border: none;
  color: white;
  padding: 12px 20px;
  font-family: var(--font-titles);
  font-size: 0.82rem;
  width: 100%;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form .btn-subscribe {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 40px;
  font-family: var(--font-titles);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form .btn-subscribe:hover {
  background: #c62d28;
  transform: translateY(-1px);
}

/* Footer bottom */
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-family: var(--font-titles);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--cyan); }

/* ============================================================
   TEAM / ABOUT CARDS
   ============================================================ */
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.35s ease;
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.team-card-top {
  background: linear-gradient(135deg, var(--primary-blue), #0a2558);
  height: 100px;
  position: relative;
}

.team-card-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 40px;
}

.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titles);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  z-index: 5;
  overflow: hidden;
}

.team-card-body {
  padding: 50px 24px 28px;
  text-align: center;
}

.team-role {
  font-family: var(--font-titles);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.team-name {
  font-family: var(--font-titles);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.team-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.team-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  margin: 0 auto 16px;
  width: 60%;
}

.team-contact {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================================
   MISSION / VISION BLOCKS
   ============================================================ */
.mission-block {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--card-shadow);
  height: 100%;
  border-left: 4px solid var(--cyan);
  transition: box-shadow 0.3s, transform 0.3s;
}

.mission-block:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

.mission-block h3 {
  font-family: var(--font-titles);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-group-custom {
  margin-bottom: 20px;
}

.form-label-custom {
  display: block;
  font-family: var(--font-titles);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input-custom {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e9f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input-custom:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,149,200,0.12);
  background: white;
}

.form-input-custom::placeholder { color: #adb5bd; }

textarea.form-input-custom {
  min-height: 140px;
  resize: vertical;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-blue), #082560);
  border-radius: 20px;
  padding: 36px;
  color: white;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.contact-info-text h6 {
  font-family: var(--font-titles);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 320px;
  background: linear-gradient(135deg, #1a3a6b, #0a2050);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Stylized map placeholder */
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,149,200,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,149,200,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.map-pin-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  margin: 0 auto 8px;
  box-shadow: 0 0 0 8px rgba(219,56,50,0.2), 0 0 0 16px rgba(219,56,50,0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(219,56,50,0.2), 0 0 0 16px rgba(219,56,50,0.1); }
  50% { box-shadow: 0 0 0 12px rgba(219,56,50,0.15), 0 0 0 24px rgba(219,56,50,0.05); }
}

/* ============================================================
   ARTICLE PAGE - Contained header layout
   ============================================================ */
.article-top {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #082060 100%);
  padding: 50px 0 0;
  margin-top: var(--navbar-h);
  position: relative;
  overflow: hidden;
}

.article-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0,149,200,0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(255,242,75,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.article-top-inner {
  position: relative;
  z-index: 2;
}

.article-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-top-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-family: var(--font-titles);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.article-top-title {
  font-family: var(--font-titles);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 780px;
}

.article-top-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.article-byline-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-titles);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

.article-byline-item svg { color: var(--cyan); }

/* The image frame — contained, not full-bleed */
.article-cover-frame {
  position: relative;
  margin-top: 32px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
}

.article-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle gradient fade at bottom of image into white content */
.article-cover-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
}

/* Image caption strip */
.article-cover-caption {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.article-cover-caption .photo-badge {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-titles);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 991px) {
  .article-top { padding: 30px 0 0; }
  .article-top-title { font-size: 1.5rem; }
  .article-cover-frame { height: 260px; border-radius: 12px 12px 0 0; }
}

@media (max-width: 576px) {
  .article-top-title { font-size: 1.2rem; }
  .article-cover-frame { height: 200px; }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid #eef0f5;
  margin-bottom: 32px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta-item svg { color: var(--cyan); }

.article-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: #374151;
}

.article-body h2 {
  font-family: var(--font-titles);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 2rem 0 1rem;
}

.article-body h3 {
  font-family: var(--font-titles);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.8rem;
}

.article-body p { margin-bottom: 1.2rem; }

.article-body blockquote {
  border-left: 4px solid var(--cyan);
  padding: 16px 24px;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* Share buttons */
.share-section {
  padding: 24px 0;
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-titles);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.share-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-family: var(--font-titles);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn-fb  { border-color: #1877f2; color: #1877f2; }
.share-btn-fb:hover { background: #1877f2; color: white; }
.share-btn-tw  { border-color: #000; color: #000; }
.share-btn-tw:hover { background: #000; color: white; }
.share-btn-ln  { border-color: #0a66c2; color: #0a66c2; }
.share-btn-ln:hover { background: #0a66c2; color: white; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titles);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid #e5e9f0;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* ============================================================
   FADE IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   GLASSMORPHISM card variant
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   TAG BADGES
   ============================================================ */
.badge-blue {
  background: rgba(16,66,147,0.1);
  color: var(--primary-blue);
  font-family: var(--font-titles);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-cyan {
  background: rgba(0,149,200,0.1);
  color: var(--cyan);
  font-family: var(--font-titles);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  :root { --navbar-h: 80px; }

  /* Masquer le nav horizontal sur mobile */
  .navbar-nav {
    display: none;
    height: auto;
  }

  /* Menu déroulant vertical — style original */
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: var(--primary-blue);
    padding: 8px 0 16px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 999;
  }

  .navbar-nav.open .nav-sep { display: none; }

  .navbar-nav.open .nav-link-item {
    width: 100%;
    height: auto;
    padding: 12px 28px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.82);
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .navbar-nav.open .nav-link-item::after { display: none; }

  .navbar-nav.open .nav-link-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
  }

  .navbar-nav.open .nav-link-item.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-left: 3px solid var(--yellow);
    padding-left: 25px;
  }

  .navbar-nav.open .nav-search-btn {
    width: 100%;
    height: auto;
    padding: 12px 28px;
    border-radius: 0;
    background: none;
    color: rgba(255,255,255,0.75);
    justify-content: flex-start;
    gap: 10px;
    font-family: var(--font-titles);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .navbar-nav.open .nav-search-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transform: none;
  }

  .navbar-toggler { display: flex; }
  .navbar-brand { width: auto; }

  .hero-accent { font-size: 2.5rem; }
  .hero-title  { font-size: 1.5rem; }
  .hero-content { left: 5%; bottom: 10%; max-width: 90%; }

  /* Slider réduit sur tablette — hauteur fixe en px */
  .hero-slider {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }

  .page-banner h1 { font-size: 2rem; }
  .section-title  { font-size: 1.8rem; }
  .stat-number    { font-size: 2.2rem; }

  .contact-form-card { padding: 24px; }
}

@media (max-width: 576px) {
  /* Slider compact sur smartphone — hauteur fixe en px */
  .hero-slider {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }

  .hero-accent  { font-size: 1.6rem; }
  .hero-title   { font-size: 1.05rem; }
  .hero-content { left: 5%; bottom: 8%; max-width: 94%; }
  .hero-cta     { font-size: 0.78rem; padding: 11px 20px; }

  .section-title { font-size: 1.5rem; }
  .footer-heading { font-size: 0.9rem; }
  .navbar-inner { padding: 0 16px; }
}