/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* =========================
   BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --primary:#90c3d6;
  --secondary:#14da45;
  --tertiary:#d7cc50;
  --dark:#0f172a;
  --muted:#6b7280;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif}

body{color:#0f172a;background:#fff;line-height:1.6}

section{padding:80px 20px;max-width:1200px;margin:auto}

#APropos h2,
#services h2,
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
}

/*--------------------------- HEADER FULL WIDTH ---------------------------*/
/* =========================
   HEADER MODERNE
========================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
}

/* État scrollé ou menu ouvert */
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Container centré */
.header-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 80px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.logo:hover img {
  transform: scale(1.03);
}

.logo-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* État scrollé : texte logo sombre */
.site-header.scrolled .logo-text,
.site-header.menu-open .logo-text {
  color: #0f172a;
}

/* =========================
   NAVIGATION
========================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  position: relative;
}

/* Hover : effet subtil avec fond et léger scale */
.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  outline: none;
}

/* Focus visible pour accessibilité */
.nav-link:focus-visible {
  outline: 2px solid #14da45;
  outline-offset: 2px;
}

/* État scrollé : liens sombres */
.site-header.scrolled .nav-link,
.site-header.menu-open .nav-link {
  color: #0f172a;
}
.site-header.scrolled .nav-link:hover,
.site-header.menu-open .nav-link:hover {
  background: rgba(20, 218, 69, 0.15);
}

/* =========================
   SÉLECTEUR DE LANGUE
========================= */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #14da45;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.lang-selector:hover,
.lang-selector:focus {
  background: #0fb83a;
  transform: translateY(-1px);
}

.lang-selector:focus-visible {
  outline: 2px solid #90c3d6;
  outline-offset: 2px;
}

.globe-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

.lang-current {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* État non scrollé : langue blanche */
.site-header:not(.scrolled):not(.menu-open) .lang-selector {
  background: white;
}
.site-header:not(.scrolled):not(.menu-open) .lang-current {
  color: #0f172a;
}
.site-header:not(.scrolled):not(.menu-open) .globe-icon {
  filter: none;
}

/* Menu déroulant langue */
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1001;
  display: none;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.lang-menu button {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #0f172a;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: inherit;
  font-weight: 400;
}

.lang-menu button:hover,
.lang-menu button:focus {
  background: #f1f5f9;
  outline: none;
}
.lang-menu button:focus-visible {
  outline: 2px solid #14da45;
  outline-offset: -2px;
}

/* =========================
   🍔 BURGER MENU MOBILE
========================= */
.burger {
  display: none;
  font-size: 1.75rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.25s ease, transform 0.2s ease;
  line-height: 1;
}

.burger:hover,
.burger:focus {
  transform: scale(1.1);
}

.burger:focus-visible {
  outline: 2px solid #14da45;
  border-radius: 8px;
}

/* État scrollé : burger sombre */
.site-header.scrolled .burger,
.site-header.menu-open .burger {
  color: #0f172a;
}

/* =========================
   📱 RESPONSIVE TABLETTE
========================= */
@media (max-width: 1034px) {
  .header-actions {
    gap: 16px;
  }
  .main-nav {
    gap: 4px;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .lang-current {
    font-size: 0.8rem;
  }
}

/* =========================
   📱 RESPONSIVE MOBILE
========================= */
@media (max-width: 945px) {
  /* Réorganisation avec flex order */
  .burger {
    display: block;
    order: 1;
    margin-right: 4px;
  }
  
  .logo {
    order: 2;
    display: flex;
    align-items: center;
  }
  
  .logo img {
    display: none; /* Cache l'image sur mobile */
  }
  
  .logo-text {
    font-size: 0.9rem;
    color: white;
  }
  .site-header.scrolled .logo-text,
  .site-header.menu-open .logo-text {
    color: #0f172a;
  }
  
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Langue : cache le texte, garde l'icône */
  .lang-current {
    display: none;
  }
  .lang-selector {
    padding: 6px 10px;
  }
  
  /* Menu mobile déroulant */
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 12px 20px 20px;
    gap: 0;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  
  .main-nav.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-link {
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
    color: #0f172a;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link:hover {
    background: #f8fafc;
    transform: none;
  }
}

/* =========================
   📱 PETITS ÉCRANS
========================= */
@media (max-width: 480px) {
  .header-container {
    padding: 0 12px;
  }
  .logo-text {
    font-size: 0.85rem;
  }
  .burger {
    font-size: 1.5rem;
    padding: 6px;
  }
  .lang-selector {
    padding: 5px 8px;
  }
}

/* =========================
   ♿ ACCESSIBILITÉ
========================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link pour navigation clavier */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #14da45;
  color: white;
  padding: 12px 24px;
  z-index: 2000;
  font-weight: 500;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}


/*--------------------------- ACCEUIL ---------------------------*/ 
/* ============================================================================
   HERO / ACCUEIL — ESPACÉ, STABLE & PROPRE
   ============================================================================ */
/* ============================================================================
   HERO / ACCUEIL — ESPACÉ & #miaraka SANS AUCUN ESPACE INTERNE
   ============================================================================ */

.acceuil {
  max-width: none !important;
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  
  background: linear-gradient(135deg, #90c3d6 0%, #14da45 100%);
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
  
  overflow: hidden; 
  padding-left: 160px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.acceuil::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: 
    radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 35%);
  background-size: 50% 50%;
  background-position: 0% 0%, 100% 100%;
  animation: lightMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes lightMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* ✅ CONTENEUR PRINCIPAL */
.acceuil-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  max-width: 900px;
  width: 100%;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 32px; /* Espace entre la quote et le bloc #miaraka */
}

/* ✅ BLOC #miaraka */
#miaraka {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

/* Force la suppression de TOUTES les marges par défaut à l'intérieur de #miaraka */
#miaraka > * {
  margin: 0 !important;
}

/* 🔤 QUOTE QUI CHANGE (Hauteur fixe = rien ne bouge) */
.quote {
  height: 120px;
  min-height: 120px;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  
  animation: textFadeIn 0.5s ease;
  overflow: hidden;
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔤 TEXTE FIXE */
.quote-fixed {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* 🎛️ CONTRÔLES */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
}

/* Dots (sans ombre) */
.dots { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
}
.dot:hover { background: rgba(255, 255, 255, 0.8); }
.dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Flèches */
.arrow {
  width: 10px; height: 10px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  cursor: pointer;
  transform: rotate(-135deg);
  transition: all 0.3s ease;
  opacity: 0.7;
}
.arrow:hover { opacity: 1; transform: rotate(-135deg) scale(1.1); }
.arrow.next { transform: rotate(45deg); }
.arrow.next:hover { transform: rotate(45deg) scale(1.1); }

/* 🔘 BOUTON SIMPLE */
.cta-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  background: #14da45;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #0fb83a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(20, 218, 69, 0.3);
}
.cta-btn:active { transform: translateY(0); }

/* 📱 RESPONSIVE */
@media(max-width: 768px) {
  .acceuil { padding-left: 20px; }
  .acceuil-content { gap: 24px; }
  .quote { height: 100px; min-height: 100px; font-size: 1.4rem; }
  .quote-fixed { font-size: 1rem; }
  .cta-btn { padding: 12px 24px; font-size: 0.95rem; width: auto; }
  .slider-controls { gap: 15px; }
  .dot { width: 10px; height: 10px; }
  .arrow { width: 9px; height: 9px; }
}


/*--------------------------- A propos ---------------------------*/ 
#APropos {
  padding: 80px 20px;
}

#APropos h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--color-dark, #0f172a);
}

#APropos h2::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: linear-gradient(135deg, var(--color-primary, #90c3d6), var(--color-secondary, #14da45));
  border-radius: 9999px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: stretch;
}

.card1 {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(144, 195, 214, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card1::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary, #90c3d6), var(--color-secondary, #14da45));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card1:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border-color: var(--color-primary, #90c3d6);
}
.card1:hover::before { transform: scaleX(1); }

.card1 h3 {
  font-size: 1.25rem;
  color: var(--color-dark, #0f172a);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* 🔽 WRAPPER TEXTE */
.card-text-content {
  flex: 1;
  max-height: 7.2rem; /* 🎯 Même hauteur que Généralités */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

/* Généralités : affichage complet */
.card1:first-child .card-text-content {
  max-height: none;
  overflow: visible;
}
.card1:first-child .card-text-content::after { display: none; }

/* Fondu de coupure */
.card-text-content::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3rem;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.card-text-content.expanded::after { opacity: 0; }
.card-text-content.expanded { max-height: 2000px; }

.card-text-content p {
  color: var(--color-muted, #6b7280);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* BOUTON VOIR PLUS / MOINS */
.read-more-btn {
  background: none;
  border: none;
  color: var(--color-primary, #90c3d6);
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 0 0;
  font-size: 0.9rem;
  font-family: inherit;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

/* enlever tout effet vert */
.read-more-btn:hover {
  background: none !important;
  color: var(--color-primary, #90c3d6) !important;
  transform: none !important;
}

/* petit effet propre */
.read-more-btn:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  #APropos { padding: 60px 15px; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .card1 { padding: 1.25rem; }
  .card-text-content { max-height: 6.5rem; }
}

.reveal {
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/*--------------------------- FLP sy ny kolointsaina malagasy ---------------------------*/ 
/* =========================
   SERVICES / CULTURE MODERNE
========================= */

#services {
  background: #ffffff;
  padding: 100px 20px;
}

/* HEADER */
.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}

#services h2 {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 15px;
}

.services-intro {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* LIST */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1000px;
  margin: auto;
}

/* CARD SIMPLE STYLE MODERNE */
.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* effet hover soft */
.service-item:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: #90c3d6;
}

/* petite ligne décorative */
.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #90c3d6, #14da45);
  transition: 0.4s ease;
}

.service-item:hover::before {
  width: 100%;
}

/* CONTENU */
.service-body {
  flex: 1;
}

.service-body h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.service-body p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ALTERNANCE DROITE / GAUCHE */
.service-item.reverse {
  flex-direction: row-reverse;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .service-item,
  .service-item.reverse {
    flex-direction: column;
    text-align: left;
    padding: 25px;
    gap: 20px;
  }

  .services-list {
    gap: 25px;
  }
}

/* Kolointsaina 2 */
#what-we-do {
  padding: 80px 20px;
  background: #ffffff;
}

/* ============================================================================
   📰 HEADER — ALIGNÉ À GAUCHE (COMME SIDEBAR)
   ============================================================================ */
.section-header {
  text-align: left;
  max-width: 1200px;
  margin: 0 0 50px 0; 
  padding: 0 0 20px 0;
  background: #ffffff;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  color: var(--color-dark, #0f172a);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 1rem;
}

/* Ligne décorative sous le titre */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; /* ✅ Aligné à gauche */
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary, #90c3d6), var(--secondary, #14da45));
  border-radius: 9999px;
}

.section-intro {
  color: var(--color-muted, #6b7280);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  max-width: 700px;
}

/* ============================================================================
   📐 LAYOUT
   ============================================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ============================================================================
   🧭 SIDEBAR
   ============================================================================ */
.side-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-muted, #6b7280);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
}

.nav-item:hover {
  background: rgba(144, 195, 214, 0.1);
  color: var(--color-dark);
  border-left-color: var(--primary);
  padding-left: 20px;
}

.nav-item.active {
  color: var(--secondary, #14da45);
  font-weight: 600;
  border-left-color: var(--secondary);
  background: rgba(20, 218, 69, 0.08);
  padding-left: 20px;
}

.nav-line {
  width: 3px;
  height: 0;
  background: var(--secondary);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.nav-item.active .nav-line {
  height: 40px;
}

/* ============================================================================
   📄 PANELS — FOND GRIS
   ============================================================================ */
.content-panels {
  position: relative;
  background: var(--color-bg-alt, #f8fafc);
  border-radius: 1rem;
  padding: 30px;
}

.panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-wrapper {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.panel-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(144, 195, 214, 0.3);
}

.panel h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.title-underline {
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin-top: 12px;
  border-radius: 2px;
}

.panel-description {
  color: var(--color-muted, #6b7280);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.panel-description:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   📱 RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .side-nav {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px 0 8px;
    gap: 8px;
    background: #ffffff;
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  
  .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 14px;
    border-radius: 8px;
  }
  
  .nav-item:hover {
    border-left: none;
    border-bottom-color: var(--primary);
    padding-left: 16px;
  }
  
  .nav-item.active {
    border-left: none;
    border-bottom-color: var(--secondary);
    padding-left: 16px;
  }
  
  .nav-line { display: none; }
  
  .content-panels {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  #what-we-do {
    padding: 60px 16px;
  }
  
  .section-header {
    margin-bottom: 30px;
    padding-bottom: 16px;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .side-nav {
    padding: 8px 0 4px;
  }
  
  .nav-item {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  
  .content-panels {
    padding: 20px;
  }
  
  .panel h2 {
    font-size: 1.3rem;
  }
  
  .panel-description {
    font-size: 0.9rem;
  }
}

.nav-item:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

#what-we-do.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#what-we-do.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/*---------------- CONTACT + FAQ ----------------*/

#contact {
  padding: 80px 20px;
}

/* layout principal */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px; /* espace entre FAQ et Contact */
  align-items: start;
}

/*---------------- FAQ ----------------*/
.faq h2 {
  margin-bottom: 25px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
  cursor: pointer;
  transition: 0.3s;
}

.faq-item:hover {
  opacity: 0.8;
}

/* QUESTION */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* TEXTE = ne doit jamais bouger */
.faq-text {
  display: inline-block;
}

/* ICONE + */
.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

/* rotation uniquement du + */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* réponse cachée */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  transition: max-height 0.3s ease;
}

/* actif */
.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 10px;
}

/*---------------- CONTACT DROITE ----------------*/

.contact-right {
  display: flex;
  flex-direction: column;
}

/* texte au-dessus du formulaire */
.contact-intro {
  margin-bottom: 25px;
}

.contact-intro h2 {
  margin-bottom: 10px;
}

.contact-intro p {
  color: #6b7280;
}

/* card formulaire */
.form-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* formulaire */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark);
}

input,
textarea {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* bouton */
button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: var(--secondary);
}

/*---------------- RESPONSIVE ----------------*/

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #contact {
    padding: 60px 15px;
  }
}


/*--------------------------- FOOTER ---------------------------*/ 
footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 20px;
}

/* GRID PRINCIPAL */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* meilleure répartition */
  gap: 60px; /* 🔥 corrigé (avant 350px) */
}

/* COLONNE GAUCHE */
.footer-about p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* COLONNES DROITES */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* TITRES */
footer h3,
footer h4 {
  margin-bottom: 15px;
  color: #fff;
}

/* LIENS */
footer a {
  color: #cbd5e1;
  display: block;
  margin-top: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

footer a:hover {
  color: var(--primary);
}

/* SÉPARATEUR */
.footer-separator {
  border: none;
  border-top: 1px solid #334155;
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap; /* utile sur mobile */
}

/* LIENS BAS */
.footer-bottom .right {
  display: flex;
  gap: 10px;
}

.footer-bottom .right a {
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap; /* évite retour à la ligne */
}

.footer-bottom .right a:hover {
  color: var(--primary);
}

/*--------------------------- RESPONSIVE ---------------------------*/ 

@media (max-width: 768px) {

  /* GRID en colonne + texte à gauche */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: rigleftht; 
  }

  /* LINKS en colonne */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left; 
  }

  /* SUPPRIMER les liens du bas */
  .footer-bottom .right {
    display: none;
  }

  /* BAS FOOTER */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: left; 
    align-items: flex-start; 
  }
}

/* POP-UP Mentions Légales*/

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  background: white;
  color: black;
  max-width: 700px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}
/* POP-UP envoi message*/
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}