/* 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;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* =========================
   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 — DESIGN MODERNE AVEC CIEL
   ============================================================================ */

.acceuil {
  max-width: none !important;
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  
  /* Image de fond avec overlay dégradé pour meilleure lisibilité */
  background: 
    linear-gradient(135deg, rgba(13, 148, 136, 0.7) 0%, rgba(5, 150, 105, 0.6) 50%, rgba(6, 182, 212, 0.5) 100%),
    url('./images/sky.jpg') no-repeat center center / cover;
  background-attachment: fixed; /* Effet parallax */
  
  overflow: hidden; 
  padding-left: 160px;
}

/* Overlay supplémentaire pour profondeur */
.acceuil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Contenu principal */
.acceuil-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 40px;
  max-width: 1200px;
  width: 100%;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 32px;
  
  /* Animation d'entrée */
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bloc #miaraka */
#miaraka {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

#miaraka > * {
  margin: 0 !important;
}

/* Citation dynamique - Police améliorée */
.quote {
  height: 150px;
  min-height: 120px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0,0,0,0.2);
  
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  
  animation: textFadeIn 0.6s ease;
  overflow: hidden;
  
  /* Effet glassmorphism léger */
  padding: 20px 0;
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Texte fixe */
.quote-fixed {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Contrôles slider modernisés */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
}

/* Flèches circulaires modernes */
.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid white;
  border-right: 2.5px solid white;
  transition: all 0.3s ease;
}

.arrow.prev::before {
  transform: rotate(-135deg) translate(-3px, 0);
}

.arrow.next::before {
  transform: rotate(45deg) translate(3px, 0);
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.arrow:active {
  transform: scale(0.95);
}

/* Dots améliorés */
.dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
  border-color: white;
}

.dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* Bouton CTA moderne */
.cta-btn {
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #14da45 0%, #0fb83a 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(20, 218, 69, 0.4), 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Effet de brillance au survol */
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(20, 218, 69, 0.5), 0 4px 12px rgba(0,0,0,0.25);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:active {
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
  .acceuil {
    padding-left: 80px;
  }
}

@media (max-width: 768px) {
  .acceuil {
    padding-left: 20px;
    background-attachment: scroll; /* Désactive parallax sur mobile */
  }
  
  .acceuil-content {
    padding: 40px 20px;
    gap: 24px;
  }
  
  .quote {
    height: auto;
    min-height: 80px;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    padding: 15px 0;
  }
  
  .quote-fixed {
    font-size: 1rem;
  }
  
  .arrow {
    width: 38px;
    height: 38px;
  }
  
  .dot {
    width: 9px;
    height: 9px;
  }
  
  .cta-btn {
    padding: 14px 32px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
  
  .slider-controls {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .acceuil-content {
    padding: 30px 15px;
  }
  
  .quote {
    min-height: 60px;
    font-size: 1.3rem;
  }
  
  .arrow {
    width: 34px;
    height: 34px;
  }
  
  .cta-btn {
    padding: 13px 28px;
    font-size: 0.95rem;
  }
}


/*--------------------------- 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: 6px 10px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: 0.85rem;
  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;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 10px 10px 0;
    background: #ffffff;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;

    /*  effet pour montrer qu'il y a du scroll */
    mask-image: linear-gradient(to right, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 95%, transparent);
  }
  

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-nav::after {
    content: "→";
    font-size: 18px;
    color: #999;
    margin-left: 5px;
  }
  /* IMPORTANT : boutons plus petits */
  .nav-item {
    scroll-snap-align: start;
    flex: 0 0 auto;          /* empêche de prendre toute la largeur */
    width: auto;
    max-width: max-content;
    white-space: nowrap;

    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px;

    padding: 8px 12px;       /* plus compact */
    font-size: 0.9rem;
  }

  .nav-item:hover {
    border-bottom-color: var(--primary);
    padding-left: 12px;
  }

  .nav-item.active {
    border-bottom-color: var(--secondary);
    padding-left: 12px;
  }

  .nav-line {
    display: none;
  }

  /* 🔥 petit espace à droite (indice scroll) */
  .side-nav::after {
    content: "";
    min-width: 20px;
  }

  .content-panels {
    padding: 20px;
  }
}

@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: center; 
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 10px;
}

/* Conteneur pour empiler copyright + email */
.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* Espace entre copyright et email */
}

/* Copyright */
#footer-rights {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

/* Email cliquable */
.footer-email {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--primary, #90c3d6);
  text-decoration: underline;
}

/* Responsive  */
@media (max-width: 768px) {

  /* 🔥 passe toute la grille en 1 colonne */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 🔥 footer-links devient vertical */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* optionnel : espace entre les blocs */
  .footer-links > div {
    margin-top: 10px;
  }

}

/* 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[hidden] {
  display: none;
}
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* =====================================================
   📝 FORMULAIRE CONTACT - STYLING COMPLET
   ===================================================== */

/* Conteneur principal */
.form-card form {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Espacement minimal entre label/input/error */
}

/* Labels */
.form-card label {
  font-weight: 600;
  color: var(--dark, #0f172a);
  margin: 8px 0 4px 2px; /* Marge pour séparer des erreurs */
  display: block;
  font-size: 0.95rem;
}

/* Champs input/textarea */
.form-card input,
.form-card textarea {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: #fff;
}

/* Focus normal */
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--secondary, #14da45);
  box-shadow: 0 0 0 3px rgba(20, 218, 69, 0.1);
}

/* =====================================================
   ❌ ÉTAT ERREUR
   ===================================================== */

/* Message d'erreur texte */
.error-msg {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 2px 0 4px 4px;
  line-height: 1.3;
  animation: slideInError 0.15s ease;
}

@keyframes slideInError {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Champ en erreur */
.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  outline: none;
}

/* =====================================================
   🔘 BOUTON ENVOI
   ===================================================== */
.form-card button[type="submit"] {
  margin-top: 12px; /* Espace fixe au-dessus du bouton */
  padding: 14px;
  background: var(--secondary, #14da45);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.form-card button[type="submit"]:hover:not(:disabled) {
  background: #0fb83a;
  transform: translateY(-1px);
}

.form-card button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* LOIS */
/* =====================================================
   🪟 MODALES LÉGALES - DESIGN SIMPLE & PROPRE
   ===================================================== */

/* Overlay sombre */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contenu de la modale - BLANC, SIMPLE, SANS VERT */
.modal-content {
  background: #ffffff;
  color: #0f172a;
  max-width: 650px;
  width: 90%;
  margin: 8% auto;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Titre de la modale */
.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

/* Contenu texte */
.modal-body {
  font-size: 0.95rem;
  color: #374151;
}

.modal-body h3 {
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a; /* ← PAS DE VERT ICI */
}

.modal-body p {
  margin: 0 0 12px 0;
  color: #4b5563;
}

.modal-body ul {
  margin: 0 0 12px 20px;
  padding: 0;
  color: #4b5563;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: #2563eb;
  text-decoration: none;
}
.modal-body a:hover {
  text-decoration: underline;
}

/* Bouton fermeture (X) */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: 300;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.close:hover {
  background: #f3f4f6;
  color: #0f172a;
}

.close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Scrollbar propre pour le contenu */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive mobile */
@media (max-width: 480px) {
  .modal-content {
    margin: 15% auto;
    padding: 20px;
    width: 95%;
  }
  .modal-content h2 {
    font-size: 1.2rem;
  }
  .modal-body h3 {
    font-size: 1rem;
  }
  .close {
    top: 8px;
    right: 12px;
    font-size: 24px;
  }
}

/* check box*/
.form-consent {
  margin: 8px 0 16px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start; 
  gap: 10px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  cursor: pointer;
}

/* checkbox */
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 !important; 
  padding: 0;
  flex-shrink: 0;
  accent-color: #0f172a;
  /* Positionnement relatif pour ajuster */
  position: relative;
  top: 3px; /* Monte légèrement la checkbox */
}

.consent-text {
  flex: 1;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.consent-text a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.consent-text a:hover {
  text-decoration: underline;
}

/* Pop-up condition d'utilisation */
/* =========================
   📄 WIDGET CONDITIONS D'UTILISATION
   ========================= */

/* Conteneur fixe */
.terms-widget {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9998;
}

/* Bouton flottant principal */
.terms-toggle {
  width: 120px;
  height: 120px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: none; /* Empêche le contour vert par défaut */
}

/* Image du bouton */
.terms-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* Hover neutre (pas de vert, pas de fond) */
.terms-widget .terms-toggle:hover,
.terms-widget .terms-toggle:focus-visible {
  background: transparent !important;
  filter: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
  transform: scale(1.06) !important;
}

.terms-widget .terms-toggle:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
}

/* Panneau */
.terms-panel {
  position: absolute;
  bottom: 95px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Panneau ouvert */
.terms-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header avec titre parfaitement centré */
.terms-header {
  position: relative;
  display: flex;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.terms-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

/* Bouton de fermeture positionné à droite sans décentrer le titre */
.terms-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}

.terms-close:hover {
  color: #111827;
  transform: translateY(-50%) scale(1.15);
}

/* Corps */
.terms-body {
  padding: 16px;
  line-height: 1.6;
  color: #374151;
  font-size: 0.92rem;
}

/* BOUTON LIEN NEUTRE  */
#terms-widget-link-text {
  margin-top: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#terms-widget-link-text:hover {
  background: #e5e7eb;
  color: #000000;
  border-color: #9ca3af;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#terms-widget-link-text:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

#terms-widget-link-text:focus-visible {
  outline: 3px solid #9ca3af;
  outline-offset: 2px;
}

/* Flèche sombre */
#terms-widget-link-text::after {
  content: "→";
  font-size: 1.1em;
  color: inherit;
  transition: transform 0.2s ease;
}
#terms-widget-link-text:hover::after {
  transform: translateX(4px);
}
.terms-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  
  width: 30px;
  height: 30px;
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  border-radius: 8px;

  font-size: 16px;
  cursor: pointer;
  color: #6b7280;

  transition: all 0.2s ease;
}

/* hover doux */
.terms-close:hover {
  background: #f3f4f6; /* gris très léger */
  color: #111827;
  transform: translateY(-50%) scale(1.1);
}

/* clic */
.terms-close:active {
  transform: translateY(-50%) scale(0.95);
  background: #e5e7eb;
}

/* =========================
   📱 RESPONSIVE MOBILE
   ========================= */
@media (max-width: 480px) {
  .terms-widget {
    bottom: 10px;
    right: 10px;
  }

  .terms-toggle {
    width: 70px;
    height: 70px;
  }

  .terms-icon-img {
    width: 55px;
    height: 55px;
  }

  .terms-panel {
    width: 260px;
    right: 0;
    bottom: 85px;
    border-radius: 10px;
  }

  .terms-header {
    padding: 10px 12px;
  }
  
  .terms-header h3 {
    font-size: 0.9rem;
  }

  .terms-body {
    padding: 14px;
    font-size: 0.88rem;
  }

  /* Adaptation mobile du bouton neutre */
  #terms-widget-link-text {
    padding: 10px 12px;
    font-size: 0.85rem;
    gap: 4px;
  }

  #terms-widget-link-text::after {
    font-size: 1em;
  }

  .terms-close {
    font-size: 20px;
    right: 10px;
  }
}

