/* =========================================
   VOLTEZIA — Feuille de style principale
   ========================================= */

/* Les variables historiques du site sont désormais des alias des tokens du
   Voltezia Design System (assets/css/voltezia-ds.css, lié avant ce fichier).
   Aucune couleur n'est définie ici : modifier une teinte se fait dans les
   tokens, et tout le site suit. */
:root {
  --primary: var(--blue-500);
  --primary-dark: var(--blue-600);
  --secondary: var(--navy-900);
  --secondary-light: var(--navy-800);
  /* --white vient des tokens */
  --gray-50: var(--navy-50);
  --gray-100: var(--navy-100);
  --gray-200: var(--navy-200);
  --gray-400: var(--navy-400);
  --gray-600: var(--navy-500);
  --gray-800: var(--navy-700);
  --success: var(--success-500);
  --font-sans: var(--font-body);

  /* Couleur des liens posés sur une surface claire. Le bleu volt donne
     2,26:1 sur blanc, très au-dessous du minimum WCAG AA de 4,5:1 pour du
     texte courant : illisible pour une partie des lecteurs. Cette variante
     plus profonde atteint 4,6:1 sans quitter la teinte de la marque.
     Sur fond sombre, --primary reste le bon choix et ne change pas. */
  --lien-clair: var(--blue-700);
}

/* Logo : variantes PNG dédiées (blanche sur fond sombre, navy sur fond clair) — pas de filtre CSS nécessaire */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-card);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--type-display-tracking);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-body); line-height: var(--leading-relaxed); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* =========================================
   BUTTONS
   ========================================= */
/* Spec Button du design system : hauteurs de contrôle, rayon 10px,
   filet d'1px, aplats unis, easing standard. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-h-md);
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  border: var(--border-hairline) solid transparent;
  transition: var(--transition-control);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: translateY(1px) scale(0.99); }
/* Encre navy sur l'aplat volt : le blanc tombait à 2.26:1, sous WCAG AA. */
.btn-primary {
  background: var(--brand-primary);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--glow-blue-sm);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-900);
}
.btn-dark {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-dark:hover {
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--navy-50);
  border-color: var(--border-strong);
}
.btn-lg { height: var(--control-h-lg); padding: 0 28px; font-size: var(--text-md); }
.btn-sm { height: var(--control-h-sm); padding: 0 14px; font-size: var(--text-sm); }

/* =========================================
   NAVIGATION
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding: 1.25rem 0;
}
#navbar.scrolled {
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0,184,255,0.08);
}
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown > a svg { transition: transform 0.2s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--gray-800) !important;
  font-size: 0.875rem;
}
.dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--primary) !important;
}
.dropdown-menu a svg { color: var(--primary); flex-shrink: 0; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?w=1800&q=85&fit=crop') center/cover no-repeat;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,11,15,0.97) 0%,
    rgba(8,11,15,0.88) 45%,
    rgba(8,11,15,0.55) 75%,
    rgba(8,11,15,0.3) 100%
  );
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,184,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,184,255,0.12);
  border: 1px solid rgba(0,184,255,0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.hero h1 span { color: var(--primary); }
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating card hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 360px;
  width: 100%;
}
.hero-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #0090cc);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.hero-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 1.25rem; }
.hero-card-items { display: flex; flex-direction: column; gap: 0.6rem; }
.hero-card-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
.hero-card-item svg { color: var(--primary); flex-shrink: 0; }

/* Floating elements */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
  animation: float 3s ease-in-out infinite;
}
.float-badge-1 { top: 5%; right: -5%; animation-delay: 0s; }
.float-badge-2 { bottom: 10%; left: -8%; animation-delay: 1.5s; }
.float-badge svg { color: var(--primary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header { margin-bottom: 3.5rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title { color: var(--secondary); margin-bottom: 1rem; }
.section-desc { max-width: 560px; font-size: 1.05rem; }

/* =========================================
   SERVICE CARDS
   ========================================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.service-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,15,0.6) 0%, transparent 60%);
}
.service-card-body { padding: 1.5rem; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(8,11,15,0.14); border-color: transparent; }

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,184,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card-title { color: var(--secondary); font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card-desc { font-size: 0.875rem; margin-bottom: 1.25rem; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s;
}
.service-card:hover .service-card-link { gap: 0.7rem; }

/* Service card horizontal (elec B2B/B2C) */
.service-card-h {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  transition: all 0.3s ease;
}
.service-card-h:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-h-img {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
}
.service-card-h-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card-h:hover .service-card-h-img img { transform: scale(1.06); }
.service-card-h-body { padding: 2rem; }

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
  background: var(--secondary);
  padding: 4rem 0;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* =========================================
   WHY US SECTION
   ========================================= */
.why-us { background: var(--gray-50); }

/* Photo block */
.photo-block {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  height: 520px;
  box-shadow: 0 24px 60px rgba(8,11,15,0.18);
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; }
.photo-block-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.photo-block-badge-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.photo-block-badge strong { display: block; color: var(--secondary); font-size: 1.1rem; }
.photo-block-badge span { font-size: 0.8rem; color: var(--gray-400); }
.why-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.why-item:hover { box-shadow: var(--shadow-md); }
.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,184,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.why-item h4 { color: var(--secondary); margin-bottom: 0.35rem; font-size: 1rem; }
.why-item p { font-size: 0.875rem; }

/* =========================================
   PROCESS SECTION
   ========================================= */
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.process-step:last-child::after { display: none; }
.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(0,184,255,0.3);
}
.process-step h4 { color: var(--secondary); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; }

/* =========================================
   BLOG CARDS
   ========================================= */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  position: relative;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}
.blog-card-body { padding: 1.5rem; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}
.blog-card-body h3 { color: var(--secondary); font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card-body p { font-size: 0.875rem; }
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0e3060 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,184,255,0.12) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #061525;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-desc { font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-social:hover { background: var(--primary); color: var(--white); }
.footer-col h3, .footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--primary); }

/* Contact info footer */
.footer-contact { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item svg { color: var(--primary); flex-shrink: 0; }

/* =========================================
   RGPD BANNER
   ========================================= */
#rgpd-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#rgpd-banner.show { transform: translateY(0); }
.rgpd-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.rgpd-text { flex: 1; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.rgpd-text a { color: var(--lien-clair); }
.rgpd-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
  background: linear-gradient(135deg, var(--secondary), #0e3060);
  padding: 8rem 0 4rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* =========================================
   FORM STYLES
   ========================================= */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-strong);
  background: var(--surface-card);
  box-shadow: var(--shadow-inset);
  transition: var(--transition-control);
  font-family: var(--font-body);
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* =========================================
   TABS
   ========================================= */
.tabs { border-bottom: 2px solid var(--gray-200); margin-bottom: 2.5rem; display: flex; gap: 0; }
.tab-btn {
  padding: 0.85rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =========================================
   BADGES & TAGS
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(0,184,255,0.12); color: var(--primary); }
.badge-secondary { background: rgba(8,11,15,0.08); color: var(--secondary); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* =========================================
   SCROLL TO TOP
   ========================================= */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
#scroll-top.show { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
}

/* Navbar : bascule sur le menu mobile plus tôt pour éviter le débordement
   sur tablette (logo élargi + 6 liens + CTA ne tiennent pas avant ~1320px) */
@media (max-width: 1320px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--secondary);
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.25rem; }
  .nav-links.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
  }
  .nav-links.open .dropdown-menu a { color: rgba(255,255,255,0.8) !important; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-content { padding: 7rem 0 4rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .stats-section .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process-step::after { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .rgpd-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* =========================================
   ENCART DIAGNOSTIC DE CONFORMITÉ
   Appel vers /diagnostic-conformite. Surface unie, aucune bordure colorée.
   ========================================= */
.diag-appel {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  border-radius: var(--radius-card);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.diag-appel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-surface-glow);
  pointer-events: none;
}
.diag-appel > * { position: relative; z-index: 1; }
.diag-appel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--blue-300);
}
.diag-appel h2 {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-3);
  max-width: 22ch;
}
.diag-appel p {
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-size: var(--text-base);
  max-width: 58ch;
  margin-bottom: 0;
}
.diag-appel-actions { display: flex; flex-direction: column; gap: var(--space-2); }
.diag-appel-mention {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--white) 60%, transparent);
}
@media (min-width: 900px) {
  .diag-appel {
    grid-template-columns: 1fr auto;
    gap: var(--space-7);
    padding: var(--space-8);
  }
  .diag-appel-actions { align-items: flex-start; }
}

/* Valeurs de preuve non chiffrées : mêmes emplacements que les compteurs,
   taille réduite car le texte est plus long qu'un nombre. */
.hero-stat-number.is-texte { font-size: 1.35rem; letter-spacing: -0.01em; }
.stat-number.is-texte { font-size: 1.9rem; letter-spacing: -0.01em; }

/* =========================================
   Invitation au diagnostic (accueil)
   -----------------------------------------
   Déclenchée à mi-page, jamais à l'arrivée : une fenêtre qui recouvre le
   contenu dès l'atterrissage depuis Google relève de l'« interstitiel
   intrusif » et pénalise le référencement mobile. Cette carte ne masque
   rien et se place au-dessus du bouton « retour en haut ».
   ========================================= */
.diag-invite {
  position: fixed;
  right: 2rem;
  bottom: 5.5rem;          /* dégage le bouton retour en haut (44px + 2rem) */
  z-index: 9000;           /* sous le bandeau RGPD (9999), qui reste prioritaire */
  width: 320px;
  max-width: calc(100vw - 2rem);
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.diag-invite.visible { opacity: 1; transform: translateY(0); }

.diag-invite-titre {
  font-weight: 700;
  color: var(--secondary);
  font-size: .95rem;
  line-height: 1.35;
  margin: 0 1.5rem .4rem 0;   /* évite le bouton de fermeture */
}
.diag-invite-texte {
  font-size: .83rem;
  line-height: 1.55;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.diag-invite .btn { width: 100%; justify-content: center; }

.diag-invite-fermer {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: .4rem;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.diag-invite-fermer:hover { background: var(--gray-100); color: var(--secondary); }
.diag-invite-fermer:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 600px) {
  .diag-invite { left: 1rem; right: 1rem; width: auto; bottom: 5.5rem; }
}

/* Les visiteurs ayant demandé moins d'animations voient la carte apparaître
   sans mouvement, plutôt que pas du tout. */
@media (prefers-reduced-motion: reduce) {
  .diag-invite { transition: opacity .01s linear; transform: none; }
  .diag-invite.visible { transform: none; }
}

/* =========================================
   Logo verrouillé (monogramme + mot en une image)
   -----------------------------------------
   Remplace l'ancien couple icône + mot posés côte à côte : dans la barre de
   navigation, une icône de 60 px suivie d'un mot de 42 px débordait sur les
   petits écrans. Une image unique se contraint par sa seule hauteur.
   ========================================= */
.nav-logo img.logo-full    { height: 46px; width: auto; display: block; }
.footer-logo img.logo-full { height: 40px; width: auto; display: block; }

@media (max-width: 900px) {
  .nav-logo img.logo-full { height: 38px; }
}
@media (max-width: 480px) {
  .nav-logo img.logo-full { height: 32px; }
}

/* Icône dessinée directement dans la page, en remplacement d'une police
   d'icônes chargée depuis un service externe. */
.icone-inline {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
.diag-appel-eyebrow .icone-inline { width: 16px; height: 16px; }

/* Commande du pied de page présentée comme les liens voisins. C'est un bouton
   et non un lien : elle n'emmène nulle part, elle rouvre le bandeau. Un lien
   serait annoncé comme tel par un lecteur d'écran, et un clic du milieu
   ouvrirait un onglet vide. */
.pied-bouton {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.pied-bouton:hover { color: var(--white); text-decoration: underline; }
.pied-bouton:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs, 4px); }

/* ── Page « À propos » ───────────────────────────────────────────────────────
   Une colonne de lecture unique, de la même largeur que les mentions légales,
   pour que les pages de texte du site se ressemblent. Le portrait flotte à
   droite du premier intertitre sur grand écran et repasse au-dessus du texte
   en dessous de 760 px, où une colonne de 260 px ne laisserait plus de place
   aux mots. */
.apropos-content { max-width: 800px; margin: 0 auto; padding: 4rem 0 5rem; }
.apropos-content h2 {
  color: var(--secondary);
  font-size: 1.35rem;
  margin: 2.5rem 0 0.9rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.apropos-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.apropos-content h3 { color: var(--secondary); font-size: 1.05rem; margin: 1.8rem 0 0.6rem; }
.apropos-content p,
.apropos-content li { font-size: 0.95rem; color: var(--gray-600); line-height: 1.85; }
.apropos-content p { margin-bottom: 1rem; }
.apropos-content ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.apropos-content li { margin-bottom: 0.5rem; }
.apropos-content strong { color: var(--secondary); font-weight: 600; }
.apropos-content a { color: var(--lien-clair); }

/* Chapeau : le premier paragraphe, lu un cran plus grand, pour donner un point
   d'entrée à la page sans inventer de sous-titre que personne n'a écrit.
   Désigné par sa position et non par une classe : le normaliseur retire les
   classes du contenu, celle-ci disparaîtrait au premier enregistrement depuis
   l'administration. */
.apropos-content > p:first-child {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700, var(--gray-600));
  margin-bottom: 2rem;
}

.apropos-portrait { float: right; width: 260px; margin: 0.4rem 0 1.5rem 2rem; }
.apropos-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card, 14px);
}
.apropos-portrait figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-500);
}

@media (max-width: 760px) {
  .apropos-content { padding: 2.5rem 0 3.5rem; }
  .apropos-portrait { float: none; width: 100%; max-width: 320px; margin: 1.2rem 0 1.8rem; }
}
