/* ============================================================
   AA-ELEC — Feuille de Style Centralisée
   Électricien Magescq (40) — Photovoltaïque, IRVE, Électricité
   ============================================================ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Palette principale */
  --aa-deep: #0a1628;
  --aa-blue: #1a3a5c;
  --aa-electric: #2d8cf0;
  --aa-cyan: #38bdf8;
  --aa-amber: #f59e0b;
  --aa-gold: #fbbf24;
  --aa-pine: #1a3a2a;
  --aa-mist: #f0f7f4;

  /* Vagues — 4 teintes quasi-identiques */
  --wave-1: #0a1628;
  --wave-2: #0f1f35;
  --wave-3: #132742;
  --wave-4: #17304f;

  /* Ombres */
  --shadow-electric: 0 0 30px rgba(45, 140, 240, 0.3);
  --shadow-card: 0 10px 40px rgba(10, 22, 40, 0.08);
  --shadow-card-hover: 0 20px 60px rgba(10, 22, 40, 0.16);
  --shadow-btn: 0 4px 20px rgba(45, 140, 240, 0.4);
  --shadow-btn-hover: 0 8px 30px rgba(45, 140, 240, 0.6);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-smooth: all 0.4s var(--ease-smooth);
  --t-bounce: all 0.6s var(--ease-bounce);
}


/* ─── BASE & RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  line-height: 1.7;
  overflow-x: hidden;
  background: #fff;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--aa-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--aa-electric);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--aa-cyan);
}

/* Sélection */
::selection {
  background: var(--aa-electric);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}


/* ─── TYPOGRAPHIE ─── */
.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-accent {
  font-family: 'Space Grotesk', sans-serif;
}

/* Hero titre — billboard */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Mot-clé en dégradé */
.text-gradient {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--aa-amber), var(--aa-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label — petit caps accent */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aa-electric);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--aa-electric), var(--aa-cyan));
  border-radius: 1px;
}

.section-label-light {
  color: var(--aa-cyan);
}

.section-label-light::before {
  background: linear-gradient(90deg, var(--aa-cyan), var(--aa-amber));
}

/* Section titres — impact */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--aa-deep);
}

.section-title-light {
  color: #fff;
}

/* Lead / sous-titre */
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.75;
  color: #475569;
  max-width: 640px;
}

.lead-light {
  color: rgba(255, 255, 255, 0.8);
}

/* Titre underline animé */
.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--aa-electric), var(--aa-cyan));
  border-radius: 2px;
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
}

.title-underline::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 4px;
  background: var(--aa-amber);
  border-radius: 2px;
  animation: underline-spark 3s ease-in-out infinite;
}

@keyframes underline-spark {
  0%, 100% { left: -14px; opacity: 0; }
  10% { opacity: 1; }
  50% { left: calc(100% + 14px); opacity: 1; }
  60%, 100% { opacity: 0; left: calc(100% + 14px); }
}

/* Text glow néon */
.text-glow {
  text-shadow:
    0 0 20px rgba(45, 140, 240, 0.5),
    0 0 40px rgba(45, 140, 240, 0.25),
    0 0 80px rgba(45, 140, 240, 0.1);
}

/* Ligne électrique animée */
.electric-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aa-electric), var(--aa-cyan), transparent);
  background-size: 200% 100%;
  animation: electric-flow 3s linear infinite;
}

@keyframes electric-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gradient border top (footer, etc.) */
.gradient-border-top {
  position: relative;
}

.gradient-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aa-electric), var(--aa-cyan), var(--aa-amber), var(--aa-electric));
  background-size: 300% 100%;
  animation: gradient-shift 6s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0 0; }
  100% { background-position: 300% 0; }
}


/* ─── NAVIGATION ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--t-smooth);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--t-smooth);
  position: relative;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 0;
  height: 3px;
  background: #38bdf8;
  border-radius: 0 0 2px 2px;
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

/* CTA nav */
.nav-cta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff !important;
  border-radius: 8px;
  transition: var(--t-smooth);
  box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.nav-cta::before,
.nav-cta::after {
  display: none !important;
}

/* Menu hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: var(--t-smooth);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--t-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu a svg {
  width: 22px;
  height: 22px;
  stroke: var(--aa-cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-menu a:hover svg {
  stroke: #fff;
}

.mobile-menu a.current-mobile {
  color: #fff;
}

.mobile-menu a.current-mobile svg {
  stroke: var(--aa-amber);
}


/* ─── HERO LOADER ─── */
.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: radial-gradient(ellipse at center, #0f1f35 0%, #0a1628 70%);
}

.hero-loader-svg {
  width: min(82vw, 480px);
  height: auto;
  overflow: visible;
}

/* Éclairs : tracé stroke puis remplissage */
.loader-bolt path {
  fill: transparent;
  stroke: var(--aa-cyan);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation:
    loaderDrawBolt 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    loaderFillBolt 0.4s ease 1.4s forwards;
}

.loader-bolt-r path {
  animation-delay: 0.2s, 1.55s;
}

/* Texte : tracé stroke puis remplissage */
.loader-text {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 0.6;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation:
    loaderDrawText 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
    loaderFillText 0.5s ease 2.1s forwards;
}

/* Tagline sous le logo */
.loader-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: loaderTagline 0.6s ease 2.4s forwards;
}

/* Glow pulse sur le SVG */
.hero-loader-svg {
  animation: loaderGlow 2s ease-in-out 2.8s infinite alternate;
}

@keyframes loaderDrawBolt {
  to { stroke-dashoffset: 0; }
}
@keyframes loaderFillBolt {
  to { fill: var(--aa-cyan); stroke: var(--aa-cyan); }
}
@keyframes loaderDrawText {
  to { stroke-dashoffset: 0; }
}
@keyframes loaderFillText {
  to { fill: #ffffff; stroke: transparent; }
}
@keyframes loaderTagline {
  to { color: rgba(56, 189, 248, 0.7); }
}
@keyframes loaderGlow {
  from { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.2)); }
  to   { filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.5)); }
}

/* Sortie du loader */
.hero-loader.loader-exit {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

/* Hero content : caché tant que .loaded n'est pas ajouté */
.hero .hero-content > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.hero.loaded .hero-content .hero-logo      { opacity: 0.9; transform: translateY(0); transition-delay: 0s; }
.hero.loaded .hero-content .hero-title     { opacity: 1;   transform: translateY(0); transition-delay: 0.15s; }
.hero.loaded .hero-content .hero-subtitle  { opacity: 1;   transform: translateY(0); transition-delay: 0.3s; }
.hero.loaded .hero-content .hero-badges    { opacity: 1;   transform: translateY(0); transition-delay: 0.5s; }
.hero.loaded .hero-content .hero-cta       { opacity: 1;   transform: translateY(0); transition-delay: 0.7s; }


/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Fallback image hidden when video plays */
.hero-bg-fallback {
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.75) 0%,
      rgba(10, 22, 40, 0.55) 35%,
      rgba(10, 22, 40, 0.6) 60%,
      rgba(10, 22, 40, 0.9) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
}

.hero-divider {
  color: var(--aa-amber);
  margin: 0 0.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

.hero-badge img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

.hero-badge span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}


/* ─── BOUTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: var(--t-smooth);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--aa-cyan), var(--aa-electric));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 9999px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: transparent;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--t-smooth);
}

.btn-secondary:hover {
  border-color: var(--aa-cyan);
  background: rgba(45, 140, 240, 0.1);
  color: var(--aa-cyan);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--aa-electric);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 2px solid var(--aa-electric);
  cursor: pointer;
  transition: var(--t-smooth);
}

.btn-outline-dark:hover {
  background: var(--aa-electric);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}


/* ─── VAGUES ANIMÉES ─── */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  overflow: hidden;
  z-index: 5;
}

.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  min-width: 1600px;
}

.wave-layer svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-layer-1 {
  animation: wave-drift 25s linear infinite;
  opacity: 0.4;
}

.wave-layer-2 {
  animation: wave-drift 18s linear infinite reverse;
  opacity: 0.55;
  bottom: -5px;
}

.wave-layer-3 {
  animation: wave-drift 12s linear infinite;
  opacity: 0.7;
  bottom: -8px;
}

.wave-layer-4 {
  animation: wave-swell 8s ease-in-out infinite;
  opacity: 1;
  bottom: -2px;
  width: 100%;
}

@keyframes wave-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes wave-swell {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-8px) scaleY(1.08); }
}

/* Vagues fond de section sombre */
.wave-bg-texture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
}

.wave-bg-texture .wave-layer {
  height: 400px;
}

.wave-bg-texture .wave-layer-1 { animation-duration: 35s; }
.wave-bg-texture .wave-layer-2 { animation-duration: 28s; }

/* Wave divider (transition entre sections) */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}


/* ─── SECTIONS ─── */
.section {
  position: relative;
  padding: 6rem 0;
}

.section-dark {
  background: var(--aa-deep);
  color: #fff;
}

.section-mist {
  background: var(--aa-mist);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ─── SERVICE CARDS ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--t-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, var(--aa-electric) 70%, var(--aa-cyan) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-bounce);
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.card-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--aa-deep);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card .card-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--aa-electric);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--t-smooth);
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--aa-electric);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.service-card:hover .card-link {
  color: var(--aa-cyan);
}

.service-card:hover .card-link svg {
  transform: translateX(4px);
  stroke: var(--aa-cyan);
}


/* ─── FEATURE LIST ─── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.feature-check {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}


/* ─── IMAGE FRAMES ─── */
.image-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.4s;
  pointer-events: none;
}

.image-frame:hover::after {
  border-color: var(--aa-electric);
  box-shadow: var(--shadow-electric);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.image-frame:hover img {
  transform: scale(1.05);
}


/* ─── SPLIT SECTION (texte + image) ─── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-grid.reverse {
  direction: rtl;
}

.split-grid.reverse > * {
  direction: ltr;
}


/* ─── PHOTO CARDS ─── */
.photo-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.1) 60%);
  pointer-events: none;
}

.photo-card:hover img {
  transform: scale(1.08);
}

.photo-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.photo-card-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.photo-card-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}


/* ─── MINI CARDS (services électricité) ─── */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--t-smooth);
}

.mini-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--aa-electric);
  transform: translateY(-4px);
}

.mini-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--aa-cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 0.75rem;
}

.mini-card span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}


/* ─── USE CASES (IRVE) ─── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.use-case {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--t-smooth);
}

.use-case:hover {
  border-color: var(--aa-electric);
  box-shadow: 0 4px 20px rgba(45, 140, 240, 0.1);
  transform: translateY(-2px);
}

.use-case svg {
  width: 36px;
  height: 36px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 0.5rem;
}

.use-case span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--aa-deep);
  display: block;
}


/* ─── ONGLETS (IRVE, Domotique…) ─── */
.irve-tabs,
.domo-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.irve-tab-buttons,
.domo-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.irve-tab-btn,
.domo-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--aa-blue);
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--t-smooth);
}

.irve-tab-btn svg,
.domo-tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.irve-tab-btn:hover,
.domo-tab-btn:hover {
  background: rgba(45, 140, 240, 0.08);
  color: var(--aa-electric);
}

.irve-tab-btn.active,
.domo-tab-btn.active {
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}

.irve-tab-btn.active svg,
.domo-tab-btn.active svg {
  stroke: #fff;
}

.irve-tab-panel,
.domo-tab-panel {
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.irve-tab-panel.active,
.domo-tab-panel.active {
  display: block;
}

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

.irve-tab-grid,
.domo-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.irve-tab-grid .use-case small,
.domo-tab-grid .use-case small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
}


/* ─── STATS ROW ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  transition: var(--t-smooth);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.stat-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--aa-amber);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 1rem;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}


/* ─── CERTIFICATIONS ─── */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-top: 2.5rem;
}

.cert-badge img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.cert-badge-text {
  text-align: left;
}

.cert-badge-text strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.cert-badge-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ─── CONTACT SECTION ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(45, 140, 240, 0.1), rgba(56, 189, 248, 0.1));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-item strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.contact-info-item span {
  font-size: 1.05rem;
  color: var(--aa-deep);
  font-weight: 500;
}

.contact-info-item a {
  color: var(--aa-electric);
  transition: color 0.3s;
}

.contact-info-item a:hover {
  color: var(--aa-cyan);
}


/* ─── FORMULAIRE ─── */
.form-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--aa-deep);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--aa-deep);
  background: #f8fafc;
  transition: var(--t-smooth);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--aa-electric);
  box-shadow: 0 0 0 4px rgba(45, 140, 240, 0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Form message */
.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

/* Submit button spinner */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Honeypot anti-spam */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}


/* ─── FOOTER ─── */
.site-footer {
  background: var(--aa-deep);
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--aa-cyan);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--aa-cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}


/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger enfants */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-badges {
    flex-direction: column;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-grid.reverse {
    direction: ltr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .irve-tab-grid,
  .domo-tab-grid {
    grid-template-columns: 1fr;
  }

  .irve-tab-buttons,
  .domo-tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .irve-tab-btn,
  .domo-tab-btn {
    justify-content: center;
  }

  .mini-cards {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Réduire les vagues sur mobile */
  .wave-container {
    height: 100px;
  }

  .wave-layer-1,
  .wave-layer-2 {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .inline-form {
    padding: 1.25rem;
  }

  .inline-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── MINI FORMULAIRE INLINE (PV / IRVE) ─── */
.inline-form {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 2.5rem;
}

.inline-form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--aa-deep);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-form-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.inline-form .form-group {
  margin-bottom: 0.75rem;
}

.inline-form .form-group label {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.inline-form .form-group input,
.inline-form .form-group select,
.inline-form .form-group textarea {
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.inline-form .form-group textarea {
  min-height: 80px;
}

/* Section mist : fond transparent pour le form */
.section-mist .inline-form {
  background: #fff;
}


/* ─── SÉLECTEUR CRÉNEAU DE RAPPEL ─── */
.callback-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.callback-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--aa-deep);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.callback-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--aa-amber);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sélecteur de créneaux en pilules CSS */
.slot-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot-picker input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.slot-picker label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: var(--t-smooth);
  background: #f8fafc;
  user-select: none;
}

.slot-picker label:hover {
  border-color: var(--aa-electric);
  color: var(--aa-electric);
  background: rgba(45, 140, 240, 0.04);
}

.slot-picker input[type="radio"]:checked + label {
  border-color: var(--aa-electric);
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff;
  box-shadow: 0 2px 10px rgba(45, 140, 240, 0.3);
}

.slot-picker label svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ─── PAGE HERO (sous-pages) ─── */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--aa-deep) 0%, var(--aa-blue) 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(45, 140, 240, 0.15), transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(56, 189, 248, 0.1), transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .section-label {
  justify-content: center;
}

.page-hero .section-title {
  color: #fff;
  text-align: center;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin: 1.25rem auto 0;
}

.page-hero .title-underline {
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--aa-cyan);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Nav active link for current page */
.nav-links a.current {
  color: #fff;
}

.nav-links a.current::before {
  width: 100%;
}

/* ─── ABOUT TEASER (accueil) ─── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-teaser-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-teaser-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(45, 140, 240, 0.06), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(45, 140, 240, 0.1);
  border-radius: 1rem;
}

.about-teaser-stat .stat-number {
  color: var(--aa-electric);
  font-size: 1.4rem;
}

.about-teaser-stat .stat-label {
  color: #64748b;
  font-size: 0.8rem;
}

/* ─── CTA BANNER (accueil bas de page) ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--aa-deep) 0%, var(--aa-blue) 100%);
  border-radius: 2rem;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 140, 240, 0.2), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(56, 189, 248, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ─── ELECTRICITE SECTION on its own page ─── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--t-smooth);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(45, 140, 240, 0.2);
}

.pillar-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--aa-deep);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

/* Domain tags (electricité) */
.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.domain-tag {
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(45, 140, 240, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--aa-electric);
  font-weight: 500;
  background: rgba(45, 140, 240, 0.04);
  transition: var(--t-smooth);
}

.domain-tag:hover {
  background: var(--aa-electric);
  color: #fff;
  border-color: var(--aa-electric);
}

/* ─── LAYOUT AVEC SIDEBAR STICKY ─── */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.page-main-content {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.sidebar-form {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--aa-deep);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-form-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-form .form-group {
  margin-bottom: 0.75rem;
}

.sidebar-form .form-group label {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.sidebar-form .form-group input,
.sidebar-form .form-group select,
.sidebar-form .form-group textarea {
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
}

.sidebar-form .form-group textarea {
  min-height: 70px;
}

.sidebar-form .slot-picker label {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
}

/* Sidebar form : select styling */
.sidebar-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

/* Sidebar form : mini-tabs (Électricité / Domotique) */
.sidebar-form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.sidebar-form-tab {
  flex: 1;
  padding: 0.55rem 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  background: #f8fafc;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: var(--t-smooth);
}

.sidebar-form-tab:not(:last-child) {
  border-right: 2px solid #e2e8f0;
}

.sidebar-form-tab.active {
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff;
}

.sidebar-form-panel {
  display: none;
}

.sidebar-form-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

/* Sidebar form : compact checkbox */
.sidebar-form .checkbox-cards {
  gap: 0.35rem;
}

.sidebar-form .checkbox-card-label {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.sidebar-form .checkbox-card-label::before {
  width: 13px;
  height: 13px;
}

/* Sidebar form : callback compact */
.sidebar-form .callback-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.sidebar-form .callback-title {
  font-size: 0.8rem;
}

.sidebar-form .callback-title svg {
  width: 16px;
  height: 16px;
}

/* Sidebar phone badge */
.sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--aa-deep);
}

.sidebar-phone svg {
  width: 16px;
  height: 16px;
  stroke: var(--aa-electric);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ─── BANNIÈRE ARCHITECTE PLEINE LARGEUR ─── */
.page-hero.hero-archi {
  z-index: 2;
  clip-path: url(#hero-bottom-wave);
  padding-bottom: 8rem;
}

.archi-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 38vw, 480px);
  overflow: hidden;
  margin-top: -140px;
  z-index: 1;
}

.archi-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.archi-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.4) 30%, rgba(10, 22, 40, 0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 100px;
}

/* ─── CHECKBOX CARDS (multi-select type de projet) ─── */
.checkbox-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-card {
  cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  transition: all 0.25s var(--ease-smooth);
  user-select: none;
}

.checkbox-card-label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  transition: all 0.25s var(--ease-smooth);
  flex-shrink: 0;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-label {
  background: linear-gradient(135deg, var(--aa-electric), var(--aa-cyan));
  color: #fff;
  border-color: var(--aa-electric);
  box-shadow: 0 2px 12px rgba(45, 140, 240, 0.3);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-label::before {
  background: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%232d8cf0' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3L6 11.6 2.7 8.3' stroke='%232d8cf0' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.checkbox-card-label:hover {
  border-color: var(--aa-electric);
  color: var(--aa-electric);
  background: rgba(45, 140, 240, 0.04);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-label:hover {
  background: linear-gradient(135deg, #2680e0, #30b0f0);
  color: #fff;
}

/* Sidebar variant — smaller */
.sidebar-form .checkbox-cards {
  gap: 0.4rem;
}

.sidebar-form .checkbox-card-label {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.sidebar-form .checkbox-card-label::before {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-sticky {
    position: static;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 0 3.5rem;
  }

  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 480px) {
  .about-teaser-stats {
    grid-template-columns: 1fr;
  }
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wave-layer {
    animation: none !important;
  }
}
