/* ═══════════════════════════════════════════════════════════════
   NTech Electrique — style.css
   Auteur : NTech Electrique (M. NAUX)
   Version : 1.0
   Organisé par sections avec commentaires
═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   TABLE DES MATIÈRES
   1.  VARIABLES & RESET
   2.  TYPOGRAPHIE DE BASE
   3.  UTILITAIRES
   4.  BARRE DE PROGRESSION
   5.  HEADER & NAVIGATION
   6.  HERO
   7.  SECTIONS — STRUCTURE COMMUNE
   8.  SERVICES
   9.  À PROPOS
   10. RÉALISATIONS & GALERIE
   11. TÉMOIGNAGES / SLIDER
   12. ZONE D'INTERVENTION / CARTE
   13. FAQ ACCORDÉON
   14. CONTACT & FORMULAIRE
   15. FOOTER
   16. BOUTONS FLOTTANTS
   17. ANIMATIONS
   18. RESPONSIVE — 1024px
   19. RESPONSIVE — 768px
   20. RESPONSIVE — 480px
─────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════
   1. VARIABLES & RESET
═══════════════════════════════════════════════ */
:root {
  /* Palette */
  --green-500:   #4CAF50;
  --green-700:   #2e7d32;
  --green-100:   #e8f5e9;
  --green-50:    #f1f8f1;
  --anthracite:  #2b2b2b;
  --grey-800:    #3d3d3d;
  --grey-600:    #666666;
  --grey-400:    #999999;
  --grey-200:    #e8e8e8;
  --grey-100:    #f5f5f5;
  --white:       #ffffff;
  --black:       #111111;

  /* Typographie */
  --font-title:  'Exo 2', 'Rajdhani', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --size-xs:     0.75rem;   /* 12px */
  --size-sm:     0.875rem;  /* 14px */
  --size-base:   1rem;      /* 16px */
  --size-md:     1.125rem;  /* 18px */
  --size-lg:     1.25rem;   /* 20px */
  --size-xl:     1.5rem;    /* 24px */
  --size-2xl:    2rem;      /* 32px */
  --size-3xl:    2.5rem;    /* 40px */
  --size-4xl:    3rem;      /* 48px */
  --size-5xl:    3.75rem;   /* 60px */

  /* Espacements */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    1.5rem;
  --space-xl:    2rem;
  --space-2xl:   3rem;
  --space-3xl:   4rem;
  --space-4xl:   6rem;

  /* Effets */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --shadow-green: 0 4px 20px rgba(76,175,80,.30);
  --transition:  all 0.25s ease;

  /* Layout */
  --container-max: 1200px;
  --header-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }


/* ═══════════════════════════════════════════════
   2. TYPOGRAPHIE DE BASE
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--anthracite);
  line-height: 1.2;
}

h1 { font-size: clamp(var(--size-3xl), 5vw, var(--size-5xl)); }
h2 { font-size: clamp(var(--size-2xl), 3.5vw, var(--size-4xl)); }
h3 { font-size: clamp(var(--size-xl),  2.5vw, var(--size-2xl)); }
h4 { font-size: var(--size-lg); }

p   { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════
   3. UTILITAIRES
═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.text-green { color: var(--green-500); }
.text-muted { color: var(--grey-600); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--size-base);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76,175,80,.40);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--white);
  text-decoration: none;
}

.btn-sm  { padding: 0.5rem 1rem;   font-size: var(--size-sm); }
.btn-lg  { padding: 1rem 2rem;     font-size: var(--size-md); }
.btn-full { width: 100%; justify-content: center; }

/* Focus visible global */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green-500);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }


/* ═══════════════════════════════════════════════
   4. BARRE DE PROGRESSION DE LECTURE
═══════════════════════════════════════════════ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  z-index: 10000;
  transition: width 0.1s linear;
}


/* ═══════════════════════════════════════════════
   5. HEADER & NAVIGATION
═══════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.99);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}
.nav-logo:hover {
  transform: translateY(-1px);
}
.nav-logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  transition: filter var(--transition);
}
.nav-logo:hover img {
  filter: drop-shadow(0 3px 12px rgba(46,125,50,.55));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--size-sm);
  color: var(--anthracite);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-700);
  background: var(--green-50);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Éléments mobiles uniquement — cachés par défaut sur desktop */
.nav-overlay   { display: none; }  /* overlay fond menu mobile */
.nav-menu__cta { display: none; }  /* CTA dans menu mobile */

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* Zone de tap généreuse (44px min recommandé Apple/Google) */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  /* Fond vert discret : visible quelle que soit la couleur du header */
  background: var(--green-500);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--green-700); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  /* Blanc sur fond vert = toujours lisible */
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════
   6. HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--anthracite) 0%, #1a3a1d 40%, var(--green-700) 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bolt {
  position: absolute;
  right: 5%;
  top: 5%;
  width: clamp(200px, 30vw, 480px);
  height: auto;
  color: var(--white);
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
  padding-block: var(--space-4xl);
}

/* Logo mis en avant dans le hero */
.hero-logo {
  /* Le cercle blanc est sur le DIV — l'img reste libre, jamais clippée */
  margin-bottom: var(--space-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  background: rgba(255,255,255,.97);
  border-radius: 50%;
  box-shadow:
    0 6px 30px rgba(0,0,0,.35),
    0 0 0 5px rgba(76,175,80,.35),
    0 0 0 10px rgba(76,175,80,.1);
  animation: heroLogoFloat 4s ease-in-out infinite;
}
.hero-logo img {
  /* Plus petite que le div → visible en entier, jamais tronquée */
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(46,125,50,.3));
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px);}
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(76,175,80,.25);
  border: 1px solid rgba(76,175,80,.5);
  color: #a5d6a7;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--green-500);
}

.hero-subtitle {
  font-size: var(--size-lg);
  color: rgba(255,255,255,.85);
  margin-bottom: var(--space-md);
  font-weight: 400;
}
.hero-subtitle strong { color: var(--white); }

.hero-zone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #a5d6a7;
  font-size: var(--size-md);
  margin-bottom: var(--space-2xl);
}
.hero-zone i { color: var(--green-500); }
.hero-zone strong { color: var(--white); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Badges flottants */
.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: var(--white);
  font-size: var(--size-sm);
  font-weight: 600;
  font-family: var(--font-title);
  transition: var(--transition);
}
.hero-badge i {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-500);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Vague bas hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }


/* ═══════════════════════════════════════════════
   7. SECTIONS — STRUCTURE COMMUNE
═══════════════════════════════════════════════ */
.section {
  padding-block: var(--space-4xl);
}

.section--grey {
  background: var(--grey-100);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header--left {
  text-align: left;
}
.section-header h2 {
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-size: var(--size-md);
  color: var(--grey-600);
  max-width: 640px;
  margin-inline: auto;
}
.section-header--left .section-subtitle {
  margin-inline: 0;
}


/* ═══════════════════════════════════════════════
   8. SERVICES
═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-500);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-700);
  flex-shrink: 0;
}
.service-icon--urgent { background: #fff3e0; color: #f57c00; }
.service-icon--irve   { background: #e3f2fd; color: #1565c0; }

.service-card h3 {
  font-size: var(--size-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card p {
  color: var(--grey-600);
  font-size: var(--size-sm);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--green-700);
  font-weight: 600;
  font-family: var(--font-title);
  font-size: var(--size-sm);
  transition: var(--transition);
  margin-top: auto;
}
.service-link:hover { gap: var(--space-md); text-decoration: none; }
.service-link--urgent { color: #e65100; }

/* Badge IRVE inline */
.badge-irve {
  display: inline-block;
  background: #e3f2fd;
  color: #1565c0;
  font-size: var(--size-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: .05em;
  text-transform: uppercase;
  width: fit-content;
}


/* ═══════════════════════════════════════════════
   9. À PROPOS
═══════════════════════════════════════════════ */
.apropos-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Placeholder photo */
.apropos-photo {
  position: relative;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--grey-200), var(--grey-100));
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--grey-400);
  box-shadow: var(--shadow-md);
}
.photo-placeholder i    { font-size: 4rem; }
.photo-placeholder span { font-family: var(--font-title); font-weight: 700; font-size: var(--size-xl); color: var(--grey-600); }
.photo-placeholder small { font-size: var(--size-sm); color: var(--grey-400); }

.photo-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Badge IRVE apropos */
.irve-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  border: 2px solid var(--green-500);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
}
.irve-badge i {
  font-size: 1.75rem;
  color: var(--green-700);
}
.irve-badge strong {
  display: block;
  color: var(--green-700);
  font-family: var(--font-title);
  font-size: var(--size-md);
}
.irve-badge small {
  color: var(--grey-600);
  font-size: var(--size-xs);
}

/* Valeurs */
.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-block: var(--space-xl);
}
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.values-list i {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.values-list strong { display: block; color: var(--anthracite); }
.values-list span   { font-size: var(--size-sm); color: var(--grey-600); }

/* Chiffres clés */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--green-700);
  border-radius: var(--radius-lg);
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: var(--size-3xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: var(--size-xs);
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .05em;
}


/* ═══════════════════════════════════════════════
   10. RÉALISATIONS & GALERIE
═══════════════════════════════════════════════ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--size-sm);
  color: var(--grey-600);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn--active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item.hidden { display: none; }

.gallery-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--grey-200) 0%, var(--grey-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--grey-400);
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,125,50,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-overlay h3 {
  color: var(--white);
  font-size: var(--size-md);
  margin-bottom: var(--space-xs);
}
.gallery-overlay p {
  color: rgba(255,255,255,.85);
  font-size: var(--size-sm);
  margin: 0;
}

/* Desktop avec souris : hover normal */
@media (hover: hover) {
  .gallery-img:hover .gallery-placeholder { transform: scale(1.08); }
  .gallery-img:hover .gallery-overlay     { opacity: 1; }
}

/* Tactile (mobile/tablette) : overlay toujours visible */
@media (hover: none) {
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(46,125,50,.85) 0%, rgba(46,125,50,.15) 55%, transparent 100%);
  }
}


/* ═══════════════════════════════════════════════
   11. TÉMOIGNAGES / SLIDER
═══════════════════════════════════════════════ */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.25,.8,.25,1);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  font-size: var(--size-md);
  color: var(--grey-800);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  position: relative;
  padding-left: var(--space-lg);
}
.testimonial-card blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -.5rem;
  font-size: 3rem;
  color: var(--green-500);
  font-style: normal;
  line-height: 1;
}
.testimonial-card blockquote p { margin: 0; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--size-sm);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--anthracite); }
.testimonial-author span   { font-size: var(--size-sm); color: var(--grey-600); }

/* Contrôles slider */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--grey-200);
  color: var(--grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}

.slider-dots {
  display: flex;
  gap: var(--space-sm);
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--grey-300, #ccc);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.slider-dot.active,
.slider-dot:hover {
  background: var(--green-500);
  transform: scale(1.3);
}


/* ═══════════════════════════════════════════════
   12. ZONE D'INTERVENTION / CARTE
═══════════════════════════════════════════════ */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#map {
  position: relative; /* requis pour le système de couches Leaflet */
  height: 480px;
  width: 100%;
}

.zone-content h3 {
  font-size: var(--size-xl);
  margin-bottom: var(--space-lg);
}

.zone-cities {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.zone-cities li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-md);
  background: var(--green-50);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  transition: var(--transition);
}
.zone-cities li:hover {
  background: var(--green-100);
}
.zone-cities i {
  color: var(--green-500);
  width: 1rem;
  text-align: center;
}

.zone-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}
.zone-note i { color: #f59e0b; margin-top: 3px; flex-shrink: 0; }
.zone-note p { margin: 0; font-size: var(--size-sm); color: var(--grey-800); }


/* ═══════════════════════════════════════════════
   13. FAQ ACCORDÉON
═══════════════════════════════════════════════ */
.faq-container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--size-md);
  color: var(--anthracite);
  transition: var(--transition);
  background: var(--white);
}
.faq-question:hover {
  color: var(--green-700);
  background: var(--green-50);
}
.faq-question i {
  flex-shrink: 0;
  color: var(--green-500);
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--grey-700, #444);
  font-size: var(--size-base);
  line-height: 1.7;
  animation: faqOpen 0.25s ease;
}
.faq-answer[hidden] { display: none; }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════
   14. CONTACT & FORMULAIRE
═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

label {
  font-weight: 600;
  font-size: var(--size-sm);
  color: var(--anthracite);
  font-family: var(--font-title);
}
label span[aria-hidden="true"] { color: var(--green-500); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--anthracite);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}

input::placeholder, textarea::placeholder { color: var(--grey-400); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 130px; }

/* Checkbox RGPD */
.form-group--checkbox { margin-top: var(--space-sm); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-sm);
  color: var(--grey-600);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  position: relative;
  margin-top: 2px;
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--green-500);
  border-color: var(--green-500);
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* L'attribut HTML [hidden] doit primer sur display:flex */
.form-success[hidden],
.form-error[hidden] { display: none !important; }

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--green-100);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-md);
  color: var(--green-700);
}
.form-success i { font-size: 1.5rem; }
.form-success p { margin: 0; font-weight: 600; }

.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #fdecea;
  border: 1px solid #e53935;
  border-radius: var(--radius-md);
  color: #c62828;
}
.form-error i { font-size: 1.5rem; }
.form-error p { margin: 0; font-weight: 600; }

/* Infos contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-block h3 {
  font-size: var(--size-xl);
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.contact-details i {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.contact-details strong {
  display: block;
  font-size: var(--size-sm);
  color: var(--grey-600);
  font-weight: 600;
}
.contact-details a {
  font-weight: 600;
  color: var(--anthracite);
  font-size: var(--size-md);
}
.contact-details a:hover { color: var(--green-700); }

/* Liens sociaux */
.social-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--size-sm);
  transition: var(--transition);
}
.social-link--facebook  { background: #e7f0fd; color: #1877f2; }
.social-link--instagram { background: #fce4ec; color: #c13584; }
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }

/* Mini carte contact */
.contact-map-mini {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
#map-mini {
  position: relative;
  height: 220px;
  width: 100%;
}


/* ═══════════════════════════════════════════════
   15. FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--anthracite);
  color: rgba(255,255,255,.8);
}

.footer-top {
  padding-block: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.footer-brand img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow:
    0 4px 20px rgba(0,0,0,.35),
    0 0 0 3px rgba(76,175,80,.25);       /* anneau vert subtil */
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 2px 8px rgba(46,125,50,.3));
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.footer-brand a:hover img {
  transform: scale(1.04) translateY(-2px);
  box-shadow:
    0 8px 28px rgba(0,0,0,.4),
    0 0 0 4px rgba(76,175,80,.4);
  filter: drop-shadow(0 4px 14px rgba(46,125,50,.5));
}
.footer-slogan {
  font-size: var(--size-sm);
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--green-500);
  color: var(--white);
  text-decoration: none;
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: var(--size-md);
  margin-bottom: var(--space-lg);
}

.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-nav a,
.footer-services a {
  color: rgba(255,255,255,.7);
  font-size: var(--size-sm);
  transition: var(--transition);
}
.footer-nav a:hover,
.footer-services a:hover {
  color: var(--green-500);
  text-decoration: none;
}

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--size-sm);
  color: rgba(255,255,255,.7);
  margin: 0;
}
.footer-contact i { color: var(--green-500); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--green-500); text-decoration: none; }
.footer-contact small { color: rgba(255,255,255,.5); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--space-lg);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p { font-size: var(--size-sm); color: rgba(255,255,255,.6); margin: 0; }
.footer-legal {
  display: flex;
  gap: var(--space-lg);
}
.footer-legal a {
  color: rgba(255,255,255,.6);
  font-size: var(--size-sm);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--green-500); text-decoration: none; }

/* Bloc crédit Edge-Studio — centré en bas du footer */
.footer-edge {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: var(--space-lg);
  text-align: center;
}
.footer-edge__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  opacity: .5;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.footer-edge__link:hover {
  opacity: .85;
  transform: translateY(-1px);
  text-decoration: none;
}
.footer-edge__label {
  font-size: var(--size-xs);
  color: rgba(255,255,255,.7);
  font-family: var(--font-title);
  letter-spacing: .03em;
  white-space: nowrap;
}
.footer-edge__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  /* Couleurs originales conservées + ombre légère pour ressortir sur fond sombre */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}


/* ═══════════════════════════════════════════════
   16. BOUTONS FLOTTANTS
═══════════════════════════════════════════════ */
/* Retour en haut */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
}
.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}
.back-to-top:hover {
  background: var(--green-500);
  transform: translateY(-4px);
}

/* Téléphone flottant — mobile uniquement */
.float-phone {
  display: none;
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-green);
  z-index: 900;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.float-phone:hover {
  background: var(--green-700);
  text-decoration: none;
  color: var(--white);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(76,175,80,0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════
   17. ANIMATIONS (Intersection Observer)
═══════════════════════════════════════════════ */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up    { transform: translateY(30px); }
.animate-fade-left  { transform: translateX(-30px); }
.animate-fade-right { transform: translateX(30px); }

.animate-fade-up.visible,
.animate-fade-left.visible,
.animate-fade-right.visible {
  opacity: 1;
  transform: none;
}

/* Délais en cascade pour les grilles */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.30s; }

.gallery-grid .gallery-item:nth-child(1)  { transition-delay: 0.05s; }
.gallery-grid .gallery-item:nth-child(2)  { transition-delay: 0.10s; }
.gallery-grid .gallery-item:nth-child(3)  { transition-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(4)  { transition-delay: 0.20s; }
.gallery-grid .gallery-item:nth-child(5)  { transition-delay: 0.25s; }
.gallery-grid .gallery-item:nth-child(6)  { transition-delay: 0.30s; }


/* ═══════════════════════════════════════════════
   18. RESPONSIVE — 1440px (large)
═══════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .hero-badges { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   19. RESPONSIVE — 1024px (tablette paysage)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Header */
  .hamburger { display: flex; }

  /* Masque le CTA du header dès que le hamburger apparaît */
  .nav-actions .btn { display: none; }

  /* Overlay de fond derrière le menu ouvert */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0,0,0,.45);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav-overlay.open { display: block; }

  .nav-menu {
    position: fixed;
    /* top: 0 + translateY(-100%) = le bas du menu est exactement à 0px
       → impossible qu'une bande dépasse en dessous du viewport top */
    top: 0;
    left: 0;
    right: 0;
    /* Le padding-top réserve l'espace du header : le contenu commence en dessous */
    padding-top: var(--header-h);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding-inline: var(--space-xl);
    padding-bottom: var(--space-xl);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
    /* z-index inférieur au header (1000) : le header reste au-dessus */
    z-index: 999;
    max-height: 100vh;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }

  .nav-link {
    width: 100%;
    padding: 0.9rem var(--space-md);
    font-size: var(--size-md);
    border-bottom: 1px solid var(--grey-100);
    border-radius: 0;
  }
  .nav-link:hover, .nav-link.active {
    background: var(--green-50);
    border-radius: var(--radius-md);
  }

  /* CTA dans le menu mobile */
  .nav-menu__cta {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-xl);
    margin-top: var(--space-md);
    border-top: 2px solid var(--grey-100);
  }
  .btn-outline-dark {
    background: transparent;
    color: var(--anthracite);
    border: 2px solid var(--grey-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-weight: 700;
    transition: var(--transition);
  }
  .btn-outline-dark:hover {
    border-color: var(--green-500);
    color: var(--green-700);
    text-decoration: none;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-zone { justify-content: center; }
  .hero-cta  { justify-content: center; }
  .hero-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* À propos */
  .apropos-grid  { grid-template-columns: 1fr; }
  .apropos-photo { max-width: 320px; margin-inline: auto; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Zone d'intervention */
  .zone-grid     { grid-template-columns: 1fr; }
  #map           { height: 380px; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}


/* ═══════════════════════════════════════════════
   20. RESPONSIVE — 768px (tablette portrait)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  :root { --header-h: 64px; }
  .container { padding-inline: var(--space-md); }

  /* Hero */
  .hero-badges { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Galerie */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Formulaire */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; gap: var(--space-md); }

  /* Bouton tel flottant */
  .float-phone { display: flex; }
}


/* ═══════════════════════════════════════════════
   21. RESPONSIVE — 480px (mobile)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {

  .section { padding-block: var(--space-3xl); }

  /* Hero */
  .hero-cta { flex-direction: column; }
  .btn-lg   { width: 100%; justify-content: center; }
  .hero-badges { grid-template-columns: 1fr; }

  /* Galerie */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Slider */
  .testimonial-card { padding: var(--space-lg); }

  /* Boutons flottants */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
  .float-phone { bottom: 4.5rem; right: 1.25rem; }

  /* (CTA header déjà masqué depuis 1024px) */
}


/* ═══════════════════════════════════════════════
   PRÉFÉRENCE — Réduction de mouvements
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
