/* ============================================
   CYTÉ ÉLECTRICITÉ — REFONTE PRO UI/UX
   Design Premium · Animations Avancées · Responsive
   ============================================ */

/* =================================================
   ROOT VARIABLES (conservées + enrichies)
================================================= */
:root {
  --primary: #ffb703;
  --primary-dark: #fb8500;
  --primary-soft: #fff3d6;

  --dark: #111;
  --gray: #666;
  --light: #f6f6f6;
  --white: #fff;

  --radius: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Enrichissements */
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 40px rgba(255, 183, 3, 0.25);
  --shadow-card-hover: 0 28px 60px rgba(251, 133, 0, 0.18);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3.5rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 9rem;

  --header-h: 110px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

::selection {
  background: var(--primary);
  color: var(--dark);
}

/* =================================================
   TYPOGRAPHY
================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 20px; position: relative; padding-bottom: 14px; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Underline accent sur h2 */
h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 4px;
}

.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* =================================================
   LAYOUT
================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section.soft {
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
}

.center { text-align: center; }

.section-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.15rem;
  color: var(--gray);
}

/* =================================================
   SCROLL PROGRESS BAR
================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 10001;
  transition: width 0.08s linear;
}

.scroll-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 80px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.8;
}

/* =================================================
   HEADER
================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-smooth),
              box-shadow 0.4s ease,
              background 0.4s ease;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.97);
}

header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 32px;
  gap: 2.5rem;
}

/* Logo */
.logo {
  flex-shrink: 0;
  position: relative;
}

.logo img {
  height: 78px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
  transform: scale(1.04) translateY(-1px);
}

/* =================================================
   NAVIGATION
================================================= */
nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--dark);
  padding: 8px 0;
  letter-spacing: -0.01em;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  transition: width 0.4s var(--ease-expo);
}

nav a:hover { color: var(--primary-dark); }
nav a:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown .nav-link i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-expo);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Flèche du dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 11px 22px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--dark);
  transition: all 0.25s ease;
  position: relative;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.dropdown-menu a:hover {
  background: var(--primary-soft);
  padding-left: 28px;
  color: var(--primary-dark);
}

.dropdown-menu a:hover::before {
  transform: scaleY(1);
}

/* =================================================
   HAMBURGER & MOBILE NAV
================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1500;
  background: transparent;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-dark);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary-dark);
}

/* Mobile Nav Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  padding: 90px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: right 0.45s var(--ease-expo);
  z-index: 999;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.open { right: 0; }

.close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-menu:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  transform: rotate(90deg);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--light);
  transition: var(--transition);
  font-size: 1.05rem;
}

.mobile-nav a:hover {
  color: var(--primary-dark);
  padding-left: 12px;
}

.mobile-nav .btn-primary {
  margin-top: 20px;
  text-align: center;
  border-radius: var(--radius-pill);
}

/* Mobile Dropdown */
.mobile-dropdown {
  width: 100%;
  border-bottom: 1px solid var(--light);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  transition: var(--transition);
}

.mobile-dropdown-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.mobile-dropdown.active .mobile-dropdown-toggle {
  color: var(--primary-dark);
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-dropdown-menu a {
  font-size: 0.95rem;
  padding: 10px 0 10px 20px;
  color: var(--gray);
  border: none;
  font-weight: 500;
}

@media (max-width: 991px) {
  nav, header .btn-primary { display: none; }
  .hamburger { display: flex; }

  :root {
    --header-h: 80px;
  }

  .logo img {
    height: 56px;
  }
}

/* =================================================
   BUTTONS — CLEAN & BASIC UI/UX
================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  min-height: 50px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn i,
.btn svg {
  font-size: 1.1em;
  flex-shrink: 0;
}

/* ---- Primary ---- */
.btn-primary {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(255, 183, 3, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(251, 133, 0, 0.3);
}

.btn-primary:active {
  background: #e57a00;
  box-shadow: 0 1px 4px rgba(251, 133, 0, 0.2);
}

/* ---- Secondary ---- */
.btn-secondary {
  background: var(--dark);
  color: var(--white);
}

.btn-secondary:hover {
  background: #222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
  background: #000;
}

/* ---- Outline ---- */
.btn-outline {
  background: var(--white);
  color: var(--dark);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.2);
}

.btn-outline:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ---- Ghost ---- */
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border-color: transparent;
  padding: 12px 24px;
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn-ghost:active {
  background: rgba(255, 183, 3, 0.15);
}

/* ---- White (pour fonds sombres) ---- */
.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* ---- Sizes ---- */
.btn-sm {
  padding: 10px 20px;
  min-height: 38px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg,
.btn-hero {
  padding: 16px 38px;
  min-height: 56px;
  font-size: 1.02rem;
  border-radius: 12px;
}

.btn-xl {
  padding: 20px 48px;
  min-height: 62px;
  font-size: 1.08rem;
  border-radius: 14px;
}

.btn-pill { border-radius: 100px; }
.btn-block { width: 100%; }

/* ---- Icon-only ---- */
.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  min-height: unset;
  border-radius: 12px;
}

.btn-icon.btn-sm { width: 38px; height: 38px; border-radius: 8px; }
.btn-icon.btn-lg { width: 56px; height: 56px; border-radius: 14px; }
.btn-icon.btn-round { border-radius: 50%; }

/* ---- Button Group ---- */
.btn-group {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.btn-group .btn:first-child { border-radius: 10px 0 0 10px; }
.btn-group .btn:last-child { border-radius: 0 10px 10px 0; border-right: none; }
.btn-group .btn:hover { transform: none; }

/* ---- Loading ---- */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  color: transparent !important;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

.btn-secondary.loading::after,
.btn-white.loading::after {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
}

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

/* ---- Disabled ---- */
.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* ---- Aliases (rétrocompatibilité) ---- */
.btn-main {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(255, 183, 3, 0.25);
}

.btn-main:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(251, 133, 0, 0.3);
}

.btn-alt {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--primary);
}

.btn-alt:hover {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .btn { padding: 12px 26px; font-size: 0.9rem; }
  .btn-lg, .btn-hero { padding: 14px 30px; font-size: 0.95rem; }

  .home-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .home-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =================================================
   HERO
================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 8s ease;
}

/* Gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.88) 0%,
    rgba(17, 17, 17, 0.55) 45%,
    rgba(251, 133, 0, 0.08) 100%
  );
  z-index: 1;
}

/* Floating orb decoration */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.12) 0%, transparent 70%);
  top: -10%;
  right: -8%;
  border-radius: 50%;
  animation: heroOrb 25s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 50px) scale(1.1); }
  66% { transform: translate(30px, -30px) scale(0.95); }
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 183, 3, 0.12);
  border: 1.5px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.7s var(--ease-expo) backwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.7s var(--ease-expo) 0.15s backwards;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  animation: fadeInUp 0.7s var(--ease-expo) 0.3s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-expo) 0.45s backwards;
}

/* =================================================
   SCROLL REVEAL ANIMATIONS
================================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-expo);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-expo);
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-expo);
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-expo);
}

.scroll-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* =================================================
   FEATURES (chiffres clés / avantages)
================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.features article {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
}

.features article:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.features i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.4s var(--ease-spring);
}

.features article:hover i {
  transform: scale(1.15) rotate(-5deg);
}

/* =================================================
   SERVICES
================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.services a {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Service Card */
.service-card {
  position: relative;
  background: var(--white);
  padding: 44px 32px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.45s var(--ease-spring),
              box-shadow 0.45s ease,
              border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 1;
}

/* Top accent bar */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}

/* Subtle glow */
.service-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 183, 3, 0.25);
}

.service-card:hover::after { transform: scaleX(1); }
.service-card:hover::before { opacity: 1; }

/* Icon */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(255, 183, 3, 0.35);
  transition: transform 0.5s var(--ease-spring),
              box-shadow 0.4s ease;
  position: relative;
}

.service-icon i {
  font-size: 28px;
  color: var(--dark);
}

/* Ripple rings */
.service-icon::before,
.service-icon::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  transition: all 0.5s ease;
}

.service-icon::after { inset: -20%; transition-delay: 0.08s; }

.service-card:hover .service-icon {
  transform: scale(1.12) rotateY(180deg);
  box-shadow: 0 14px 36px rgba(251, 133, 0, 0.45);
}

.service-card:hover .service-icon::before { opacity: 0.3; inset: -15%; }
.service-card:hover .service-icon::after { opacity: 0.15; inset: -28%; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
  transition: color 0.3s ease;
}

.service-card:hover h3 { color: var(--primary-dark); }

.service-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
}

/* Service badge */
.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.35);
  z-index: 2;
}

/* Service features list */
.service-features {
  list-style: none;
  text-align: left;
  margin-top: 18px;
  padding: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--dark);
}

/* Responsive services */
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .service-card { padding: 32px 24px; }
  .service-icon { width: 68px; height: 68px; }
  .service-icon i { font-size: 24px; }
}

/* =================================================
   TEAM
================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: linear-gradient(135deg, #f4f4f4, #fafafa);
  padding: 18px;
}

.team-card h3 { margin-top: 16px; font-size: 1.1rem; }

.team-card span {
  display: block;
  margin-top: 4px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.team-card p {
  padding: 14px 22px 24px;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .team { grid-template-columns: 1fr; }
}

/* =================================================
   REVIEWS / AVIS
================================================= */
#reviews {
  background: var(--light);
  padding: 80px 20px;
  text-align: center;
}

.reviews-summary {
  text-align: center;
  margin-bottom: 36px;
}

.reviews-stars { font-size: 26px; line-height: 1.2; }

.reviews-based {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--gray);
}

.reviews-google { margin-top: 10px; }
.reviews-google img { height: 28px; display: inline-block; }

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s ease;
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar-letter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.review-info { flex: 1; }

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-info strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
}

.google-g { width: 22px; height: 22px; }

.stars { font-size: 0.88rem; color: #fbbc04; margin-top: 2px; }

.review-date { font-size: 0.78rem; color: var(--gray); }

.review p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
}

@media (max-width: 600px) {
  .reviews-list { grid-template-columns: 1fr; }
}

/* =================================================
   LOGO SLIDER (PARTENAIRES)
================================================= */
.logo-slider {
  padding: 70px 20px;
  background: var(--white);
}

.logo-slider h2 { margin-bottom: 40px; }

.slider {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.slider::before,
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.slide-track {
  display: flex;
  width: calc(260px * 12);
  animation: scrollSlider 50s linear infinite;
}

.slider:hover .slide-track { animation-play-state: paused; }

@keyframes scrollSlider {
  to { transform: translateX(calc(-260px * 6)); }
}

.slide {
  width: 260px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.slide img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 14px;
  background: var(--light);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
}

.slide:hover { transform: translateY(-5px); }

.slide:hover img {
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .slide { width: 200px; }
  .slide-track { width: calc(200px * 12); }
  @keyframes scrollSlider {
    to { transform: translateX(calc(-200px * 6)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-track { animation: none; }
}

/* =================================================
   GALLERY
================================================= */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-filters button {
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.gallery-filters button:hover,
.gallery-filters button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.gallery-item:hover img { transform: scale(1.12); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.8), transparent 60%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-expo);
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 183, 3, 0.35);
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  backdrop-filter: blur(16px);
}

#modal.show { display: flex; }

#modal-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-expo);
}

#modal.show #modal-img {
  opacity: 1;
  transform: scale(1);
}

#modal-title {
  margin-top: 20px;
  color: var(--white);
  font-size: 1.05rem;
  text-align: center;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

#modal-close,
#modal-prev,
#modal-next {
  position: absolute;
  color: var(--white);
  cursor: pointer;
  user-select: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  font-size: 1.6rem;
}

#modal-close { top: 24px; right: 24px; }
#modal-prev { left: 24px; top: 50%; transform: translateY(-50%); }
#modal-next { right: 24px; top: 50%; transform: translateY(-50%); }

#modal-close:hover,
#modal-prev:hover,
#modal-next:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.4);
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #modal-prev, #modal-next { display: none; }
}

/* =================================================
   RÉNOVATION
================================================= */
.renovation-section {
  padding: 80px 20px;
  background: var(--white);
}

.renovation-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 80px auto 0;
  flex-wrap: wrap;
}

.renovation-text {
  flex: 1 1 480px;
}

.renovation-text h3 {
  font-size: 1.85rem;
  margin-bottom: 18px;
  color: var(--dark);
}

.renovation-text p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.75;
  color: var(--gray);
}

.renovation-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.renovation-text ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--dark);
}

.renovation-image {
  flex: 1 1 480px;
  text-align: center;
}

.renovation-image img {
  max-width: 90%;
  max-height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

.renovation-image img:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .renovation-container {
    flex-direction: column;
    text-align: center;
  }
}

/* =================================================
   CONTACT / DEVIS
================================================= */
#contact, #devis { position: relative; }

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Top Grid */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact-image {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 460px;
}

.contact-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12), transparent);
  pointer-events: none;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form Card */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  transition: box-shadow 0.35s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}

.form-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(255, 183, 3, 0.35);
}

.form-icon i { font-size: 22px; color: var(--dark); }

.form-header h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Unified card h3 */
#contact h3, #devis h3,
#contact .service-card h3,
#contact .contact-card h3,
#contact .contact-map h3,
#devis .service-card h3,
#devis .contact-card h3,
#devis .contact-map h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  text-align: center;
}

/* Form fields */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.15);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray);
}

.form-consent input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.contact-card .btn {
  margin-top: 8px;
  width: 100%;
  max-width: 260px;
  align-self: center;
}

/* Info Cards */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-info-cards .service-card { padding: 36px 26px; }

.contact-info-cards a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

/* Map + Horaires */
.contact-map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-map {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: var(--radius-sm);
}

.horaires {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.horaires-list { margin-top: 16px; }

.horaires-list div {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light);
  line-height: 1.6;
}

.horaires-list div:last-child { border-bottom: none; }

.horaires-list .jour {
  color: var(--primary-dark);
  font-weight: 700;
  width: 100px;
}

.horaires-list .horaire {
  color: var(--dark);
  font-weight: 500;
}

/* Responsive contact */
@media (max-width: 1024px) {
  .contact-top-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-map-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .form-row { flex-direction: column; gap: 12px; }
  .form-row .form-group { min-width: 100%; }
  .contact-card .btn { max-width: 100%; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .contact-map iframe { height: 280px; }
}

/* =================================================
   LOADER
================================================= */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid var(--light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* =================================================
   TOAST
================================================= */
.toast-message {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark);
  padding: 16px 32px;
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(255, 183, 3, 0.35);
  z-index: 10000;
  transition: top 0.45s var(--ease-expo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 90%;
}

.toast-message.show { top: 24px; }

.toast-message.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: var(--white);
}

/* =================================================
   COOKIE CONSENT — PRO
   Fix: display:none + rAF pour éviter le saut
   Fix: suppression outline/focus orange natif
   FIX: retire les transform au hover qui cassent le layout
================================================= */

.cookie-consent {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.5);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 24px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Étape 1 : le display:flex est activé mais pas encore visible */
.cookie-consent.is-opening {
  display: flex;
}

/* Étape 2 : déclenché via rAF pour que le navigateur
   applique d'abord is-opening avant de lancer la transition */
.cookie-consent.visible {
  display: flex;
  opacity: 1;
}

/* ---- Box ---- */
.cookie-box {
  max-width: 520px;
  width: 100%;
  background: var(--white);
  color: var(--dark);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity 0.3s ease;
}

.cookie-consent.visible .cookie-box {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Suppression complète des outlines natifs ---- */
/* Cela élimine le rectangle orange/bleu du navigateur */
.cookie-consent *,
.cookie-consent *:focus,
.cookie-consent *:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* On remet un focus visible discret pour l'accessibilité clavier */
.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* ---- Header ---- */
.cookie-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.cookie-header-text h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 0;
}

.cookie-header-text h2::after { display: none; }

.cookie-header-text p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- Tabs ---- */
.cookie-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 0 24px;
}

.cookie-tab {
  flex: 1;
  padding: 13px 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  outline: none;
}

.cookie-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dark);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  border-radius: 2px 2px 0 0;
}

.cookie-tab.active { color: var(--dark); }
.cookie-tab.active::after { transform: scaleX(1); }
.cookie-tab:hover { color: var(--dark); }

/* ---- Panels ---- */
.cookie-panels {
  padding: 20px 24px;
  min-height: 160px;
}

.cookie-panel { display: none; }

.cookie-panel.active {
  display: block;
  animation: ckFade 0.25s ease;
}

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

/* Panel: Consentement */
.cookie-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 8px;
}

.cookie-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-links a {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.2);
  transition: color 0.2s ease;
}

.cookie-links a:hover { color: var(--dark); }

/* Panel: Personnaliser */
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.cookie-category:last-of-type { margin-bottom: 0; }
.cookie-category:hover { background: rgba(0, 0, 0, 0.04); }

.cookie-cat-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.cookie-cat-info span {
  font-size: 0.79rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ---- Toggle Switch ---- */
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #D8D8D8;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--dark);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Panel: Infos */
.cookie-info-text {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.75;
}

.cookie-info-text strong { color: var(--dark); }

/* ---- Footer ---- */
.cookie-footer {
  display: flex;
  gap: 8px;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}

.cookie-footer .btn {
  flex: 1;
  min-width: 100px;
  justify-content: center;
  font-size: 0.85rem;
  padding: 11px 14px;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 600;
  transition: box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
  border: none;
}

.cookie-btn-refuse {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gray);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.cookie-btn-refuse:hover {
  background: rgba(0, 0, 0, 0.08);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.cookie-btn-settings:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cookie-btn-accept {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cookie-btn-accept:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-btn-save {
  background: var(--dark);
  color: white;
  width: 100%;
  margin-top: 8px;
}

.cookie-btn-save:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* ---- Footnote ---- */
.cookie-footnote {
  padding: 0 24px 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-footnote a {
  font-size: 0.75rem;
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cookie-footnote a:hover { color: var(--dark); }

/* ---- Toast ---- */
.cookie-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99998;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  pointer-events: none;
}

.cookie-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cookie-consent {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-box {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }

  .cookie-footer {
    flex-direction: column;
  }

  .cookie-footer .btn {
    width: 100%;
    min-width: unset;
  }
}

/* =================================================
   FOOTER
================================================= */
footer {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 0;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% 100%;
  animation: shimmerBar 4s linear infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  gap: 50px;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand strong {
  display: block;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
  max-width: 400px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact i {
  color: var(--primary);
  width: 20px;
  font-size: 1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
}

.footer-contact a:hover { color: var(--primary); }

.footer-cta {
  background: rgba(255, 183, 3, 0.05);
  border: 1px solid rgba(255, 183, 3, 0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.footer-cta h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom a,
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-bottom a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-credit {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 700;
}

.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p { margin: 0 auto; }
  .footer-contact p { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* =================================================
   CALL MOBILE BUTTON
================================================= */
.call-mobile {
  display: none;
}

@media (max-width: 900px) {
  .call-mobile {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    padding: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(255, 183, 3, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: callPulse 2.5s infinite;
    text-decoration: none;
    border: none;
  }

  .call-mobile i,
  .call-mobile svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .call-mobile::before,
  .call-mobile::after { content: none !important; }
}

@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255, 183, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

/* =================================================
   BACK TO TOP
================================================= */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-spring);
  z-index: 800;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(251, 133, 0, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 4.5rem;
    right: 14px;
    font-size: 1.1rem;
  }
}

/* =================================================
   MENTIONS LÉGALES
================================================= */
.legal-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
  color: var(--dark);
  line-height: 1.85;
}

.legal-section article {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.legal-section article:hover {
  background: var(--primary-soft);
}

.legal-section h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.legal-section p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.legal-section strong {
  display: inline-block;
  width: 150px;
  font-weight: 700;
  color: var(--dark);
}

.legal-section a {
  color: var(--primary-dark);
  border-bottom: 1px dashed transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-section a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  .legal-section strong {
    display: block;
    width: 100%;
    margin-bottom: 4px;
  }
}

/* =================================================
   KEYFRAMES
================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 183, 3, 0); }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-8deg) scale(0.9); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* =================================================
   ★ TRUST BAR — Bande de confiance après le hero
   "X clients satisfaits · Y ans d'expérience · Certifié"
================================================= */
.trust-bar {
  background: var(--dark);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.trust-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.trust-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.trust-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .trust-bar .container {
    gap: 24px;
    justify-content: space-around;
  }

  .trust-item {
    font-size: 0.85rem;
    gap: 10px;
  }

  .trust-number { font-size: 1.15rem; }
}

/* =================================================
   ★ STATS COUNTER SECTION
   Compteurs animés avec effet premium
================================================= */
.stats-section {
  padding: var(--spacing-xl) 0;
  background:
    linear-gradient(135deg,
      rgba(17, 17, 17, 0.97) 0%,
      rgba(30, 30, 30, 0.97) 100%);
  position: relative;
  overflow: hidden;
}

/* Décor orbe */
.stats-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251, 133, 0, 0.06) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-block {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-spring),
              background 0.4s ease,
              border-color 0.4s ease;
}

.stat-block:hover {
  transform: translateY(-8px);
  background: rgba(255, 183, 3, 0.05);
  border-color: rgba(255, 183, 3, 0.2);
}

.stat-block .stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.3);
}

.stat-block .stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-block .stat-value .accent {
  -webkit-text-fill-color: var(--primary);
}

.stat-block .stat-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-block .stat-value { font-size: 2.2rem; }
}

/* =================================================
   ★ CTA SECTION — Bandeau d'appel à l'action
   Gradient + glow, donne envie de convertir
================================================= */
.cta-section {
  position: relative;
  padding: var(--spacing-xl) 0;
  background:
    linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 50%,
      #e67600 100%);
  overflow: hidden;
  text-align: center;
}

/* Grain texture overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Orbe décoratif */
.cta-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
  animation: floatSoft 12s ease-in-out infinite;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-section h2::after { display: none; }

.cta-section p {
  color: rgba(17, 17, 17, 0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* =================================================
   ★ GLASSMORPHISM CARD
   Carte premium effet verre givré
================================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Dark variant */
.glass-card-dark {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* =================================================
   ★ IMAGE REVEAL — Dévoilement d'image au scroll
================================================= */
.image-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-reveal img {
  transform: scale(1.15);
  transition: transform 0.9s var(--ease-expo);
}

.image-reveal.visible img {
  transform: scale(1);
}

/* Rideau orange qui glisse */
.image-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: 1;
  transform: translateX(0);
  transition: transform 0.8s var(--ease-expo) 0.1s;
}

.image-reveal.visible::before {
  transform: translateX(101%);
}

/* =================================================
   ★ GRADIENT TEXT
   Texte avec gradient orange premium
================================================= */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================================================
   ★ HOVER LIFT CARDS
   Effet de lévitation premium sur n'importe quel élément
================================================= */
.hover-lift {
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.hover-lift-sm:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hover-lift-xl:hover {
  transform: translateY(-16px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.16);
}

/* =================================================
   ★ STAGGER CHILDREN — Apparition décalée des enfants
   Utiliser sur le parent: class="stagger-children"
================================================= */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-smooth),
              transform 0.5s var(--ease-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* =================================================
   ★ SCROLL INDICATOR — Souris animée dans le hero
================================================= */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1s ease 1.2s backwards;
}

.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.scroll-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

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

/* =================================================
   ★ DIVIDER — Séparateur décoratif entre sections
================================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  margin: 0;
  border: none;
}

.section-divider-orange {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* =================================================
   ★ TOOLTIP PREMIUM
================================================= */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease-expo);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease-expo);
  z-index: 100;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =================================================
   ★ HIGHLIGHT BOX — Encadré premium
================================================= */
.highlight-box {
  position: relative;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 24px 0;
}

.highlight-box p {
  color: var(--dark);
  font-weight: 500;
  margin: 0;
}

.highlight-box.dark {
  background: rgba(17, 17, 17, 0.05);
  border-left-color: var(--dark);
}

/* =================================================
   ★ ANIMATED UNDERLINE LINKS
   Liens avec soulignement animé premium
================================================= */
.link-underline {
  position: relative;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 1px;
  transition: width 0.4s var(--ease-expo);
}

.link-underline:hover::after { width: 100%; }

.link-underline:hover { color: var(--primary); }

/* =================================================
   ★ FEATURE GRID — Grille d'avantages compacte
   Pour "Pourquoi nous choisir" etc.
================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease,
              border-color 0.35s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 183, 3, 0.2);
}

.feature-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  transition: background 0.3s ease, transform 0.35s var(--ease-spring);
}

.feature-item:hover .feature-item-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark);
  transform: scale(1.1) rotate(-5deg);
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* =================================================
   ★ PROCESS STEPS — Étapes numérotées
   "1. Contact → 2. Devis → 3. Intervention"
================================================= */
.process-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  counter-reset: step;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

/* Ligne connecteur */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 56px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.process-step-number {
  counter-increment: step;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.3);
  transition: transform 0.4s var(--ease-spring);
}

.process-step:hover .process-step-number {
  transform: scale(1.12);
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

@media (max-width: 768px) {
  .process-steps { flex-direction: column; align-items: center; }
  .process-step:not(:last-child)::after { display: none; }
}

/* =================================================
   ★ MARQUEE TEXT — Texte défilant infini
   Pour des offres, certifications, etc.
================================================= */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  background: var(--dark);
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-item i {
  color: var(--primary);
  font-size: 0.8rem;
}

.marquee-item .dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =================================================
   ★ PREMIUM CARD BORDERS
   Bordure gradient animée sur cartes
================================================= */
.card-gradient-border {
  position: relative;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% 200%;
  animation: gradientBorder 4s ease infinite;
}

.card-gradient-border > * {
  background: var(--white);
  border-radius: calc(var(--radius) - 2px);
}

@keyframes gradientBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =================================================
   ★ MICRO INTERACTIONS
   Effets tactiles sur liens, icônes, etc.
================================================= */

/* Icône qui rebondit */
.icon-bounce { transition: transform 0.35s var(--ease-spring); }
.icon-bounce:hover { transform: scale(1.2) rotate(-5deg); }

/* Icône qui tourne */
.icon-spin { transition: transform 0.5s ease; }
.icon-spin:hover { transform: rotate(360deg); }

/* Carte qui tilt légèrement */
.tilt-hover {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.tilt-hover:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg);
}

/* Pulsation subtile (pour badges, notifications) */
.pulse {
  animation: pulseGlow 2.5s infinite;
}

/* Underline grow from center */
.underline-center {
  position: relative;
}

.underline-center::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease-expo), left 0.3s var(--ease-expo);
}

.underline-center:hover::after {
  width: 100%;
  left: 0;
}

/* Scale on tap (mobile) */
.tap-scale {
  transition: transform 0.15s ease;
}

.tap-scale:active {
  transform: scale(0.96);
}

/* =================================================
   ★ SMOOTH ENTRANCE — Pour le body au chargement
================================================= */
.page-loaded .hero,
.page-loaded .section {
  animation: fadeIn 0.6s ease backwards;
}

/* =================================================
   ★ SELECTION PERSONNALISÉE
================================================= */
::selection {
  background: var(--primary);
  color: var(--dark);
}

::-moz-selection {
  background: var(--primary);
  color: var(--dark);
}

/* =================================================
   ★ SCROLLBAR CUSTOM (Webkit)
================================================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--light);
}

/* =================================================
   ACCESSIBILITY
================================================= */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--primary);
  color: var(--dark);
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.3s ease;
}

.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

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

/* =================================================
   PRINT
================================================= */
@media print {
  header, footer, .call-mobile, .back-to-top,
  .hamburger, .cookie-consent, .scroll-progress,
  .trust-bar, .marquee, .scroll-indicator {
    display: none !important;
  }

  .service-card, .gallery-item {
    break-inside: avoid;
  }
}

/* =================================================
   UTILITIES
================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

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

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

