/* ===================================================
   G.D NETTOYAGE - styles.css
   =================================================== */

/* Police Hanken Grotesk hébergée sur le site (licence SIL Open Font License) :
   aucune connexion à Google pour les visiteurs. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-grotesk-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-grotesk-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  --navy: #1e2947;
  --navy-light: #253258;
  --navy-dark: #141b30;
  --turquoise: #63c5c7;
  --turquoise-light: #8ed9db;
  --turquoise-dark: #4aacae;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid: #e8ecf2;
  --gray-text: #6b7a99;
  --text-dark: #1a2035;

  --font-title: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(30, 41, 71, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 41, 71, 0.12);
  --shadow-lg: 0 20px 60px rgba(30, 41, 71, 0.18);
  --shadow-glow: 0 0 40px rgba(99, 197, 199, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mid: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 80px;
}

/* ===================================================
   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-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul { list-style: none; }

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

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

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

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

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(20px, -25px) rotate(3deg); }
  66%       { transform: translate(-15px, -10px) rotate(-2deg); }
}

@keyframes floatAlt {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(-25px, 20px) rotate(-4deg); }
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

@keyframes blurIn {
  from { filter: blur(12px); opacity: 0; transform: translateY(20px); }
  to   { filter: blur(0); opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

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

@keyframes cookieScale {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
/* Easing partagé : "ease-out expo" doux — apparition vivante sans rebond brusque */
:root { --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s var(--ease-reveal), transform 0.7s var(--ease-reveal);
  will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===================================================
   HEADER
   =================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition-mid), box-shadow var(--transition-mid), backdrop-filter var(--transition-mid);
  background: transparent;
}

.header.scrolled {
  background: rgba(30, 41, 71, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 24px rgba(30, 41, 71, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.85; }

.logo img {
  height: 56px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--turquoise);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-mid);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.burger:hover { background: rgba(255,255,255,0.1); }

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-mid), opacity var(--transition-fast);
}

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

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(30, 41, 71, 0.97);
  backdrop-filter: blur(20px);
  padding: 16px 24px 24px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-mid), opacity var(--transition-mid);
  z-index: 999;
  border-bottom: 1px solid rgba(99,197,199,0.2);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--turquoise);
  padding-left: 16px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease-reveal), box-shadow 0.35s var(--ease-reveal), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); transition-duration: 0.1s; }

.btn-primary {
  background: var(--turquoise);
  color: var(--navy);
  border-color: var(--turquoise);
  box-shadow: 0 4px 20px rgba(99, 197, 199, 0.35);
}

.btn-primary:hover {
  background: var(--turquoise-light);
  border-color: var(--turquoise-light);
  box-shadow: 0 8px 32px rgba(99, 197, 199, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 71, 0.88) 0%,
    rgba(30, 41, 71, 0.72) 50%,
    rgba(30, 41, 71, 0.6) 100%
  );
}

/* Animated background shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(40px);
}

.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--turquoise);
  top: -200px; right: -100px;
  animation: float 12s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--turquoise-light);
  bottom: -100px; left: -100px;
  animation: floatAlt 15s ease-in-out infinite;
}

.hero-shape-3 {
  width: 200px; height: 200px;
  background: var(--white);
  top: 40%; left: 40%;
  animation: float 9s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-text {
  max-width: 680px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 197, 199, 0.18);
  border: 1px solid rgba(99, 197, 199, 0.4);
  color: var(--turquoise-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--turquoise);
  border-radius: 50%;
  animation: pulse-icon 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: blurIn 1s ease 0.2s both;
}

.hero-title span {
  color: var(--turquoise);
}

.hero-slogan {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--turquoise-light);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* ===================================================
   SECTION COMMON
   =================================================== */
.section {
  padding: 96px 0;
}

.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 580px;
}

.section-subtitle.light { color: rgba(255,255,255,0.7); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===================================================
   BORDER GLOW CARDS (vanilla JS adaptation)
   =================================================== */
.glow-card {
  position: relative;
  border-radius: var(--radius-lg);
  isolation: isolate;
  background: var(--white);
  border: 1px solid rgba(30, 41, 71, 0.1);
  overflow: visible;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(30, 41, 71, 0.16), var(--shadow-glow);
  border-color: rgba(99, 197, 199, 0.4);
}

.glow-card-inner {
  padding: 36px 32px;
}

/* Glow overlay on hover */
.glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,197,199,0.35) 0%, rgba(142,217,219,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-mid);
  pointer-events: none;
  z-index: -1;
}

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

.glow-card.dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.08);
}

.glow-card.dark:hover {
  border-color: rgba(99, 197, 199, 0.35);
}

/* ===================================================
   SERVICE CARDS
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--gray-mid);
  padding: 34px 30px 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(30,41,71,0.04);
  transition: transform 0.45s var(--ease-reveal), box-shadow 0.45s var(--ease-reveal), border-color var(--transition-mid);
  cursor: default;
}

/* Liseré d'accent en haut (ne se révèle qu'au survol) */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-reveal);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -20px rgba(30,41,71,0.35), 0 0 0 1px rgba(99,197,199,0.18);
  border-color: rgba(99,197,199,0.35);
}

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

.service-icon {
  position: relative;
  width: 54px; height: 54px;
  background: #ffffff;
  border: 1px solid var(--gray-mid);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(30,41,71,0.05);
  transition: background var(--transition-mid), border-color var(--transition-mid), transform var(--transition-mid), box-shadow var(--transition-mid);
}

.service-card:hover .service-icon {
  background: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(99,197,199,0.6);
}

.service-icon svg {
  width: 26px; height: 26px;
  color: var(--turquoise-dark);
  stroke: currentColor;
  transition: color var(--transition-mid);
}

.service-card:hover .service-icon svg { color: #ffffff; }

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 10px;
}

/* Petit trait sous le titre */
.service-card h3::after {
  content: '';
  display: block;
  width: 26px; height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--gray-mid);
  transition: width 0.5s var(--ease-reveal), background var(--transition-mid);
}

.service-card:hover h3::after { width: 44px; background: var(--turquoise); }

.service-card p {
  font-size: 0.93rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 30ch;
}

/* ===================================================
   BEFORE/AFTER GALLERY
   =================================================== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.ba-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

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

.ba-label {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-label span {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-images > div {
  position: relative;
  overflow: hidden;
}

.ba-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ba-item:hover .ba-images img { transform: scale(1.04); }

.ba-tag {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(30,41,71,0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.ba-tag.after { background: rgba(99,197,199,0.9); color: var(--navy); }

/* ===================================================
   WHY US SECTION
   =================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.why-card {
  position: relative;
  text-align: center;
  padding: 44px 26px 36px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  transition: background var(--transition-mid), transform var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
}

/* reflet supérieur très fin (donne du relief au verre) */
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,197,199,0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.why-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  border-color: rgba(99,197,199,0.35);
}

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

.why-icon {
  position: relative;
  width: 62px; height: 62px;
  background: radial-gradient(circle at 50% 38%, rgba(99,197,199,0.22), rgba(99,197,199,0.05));
  border: 1px solid rgba(99,197,199,0.30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.why-card:hover .why-icon {
  transform: translateY(-2px);
  border-color: rgba(99,197,199,0.6);
  box-shadow: 0 0 0 6px rgba(99,197,199,0.08), 0 10px 24px -10px rgba(99,197,199,0.5);
}

.why-icon svg { width: 28px; height: 28px; color: var(--turquoise); }

.why-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ===================================================
   ZONE PAGE
   =================================================== */
.zone-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.zone-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zone-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(60px);
}

.zone-shape-1 {
  width: 500px; height: 500px;
  background: var(--turquoise);
  top: -100px; right: -100px;
  animation: float 14s ease-in-out infinite;
}

.zone-shape-2 {
  width: 300px; height: 300px;
  background: var(--turquoise-light);
  bottom: -80px; left: 10%;
  animation: floatAlt 11s ease-in-out infinite;
}

.zone-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(99,197,199,0.3);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  backdrop-filter: blur(8px);
}

.zone-box h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--turquoise);
  margin-bottom: 12px;
}

.zone-box p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.zone-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.zone-adv {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.zone-adv:hover {
  background: rgba(99,197,199,0.08);
  border-color: rgba(99,197,199,0.25);
}

.zone-adv-icon {
  width: 44px; height: 44px;
  background: rgba(99,197,199,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zone-adv-icon svg { width: 20px; height: 20px; color: var(--turquoise); }

.zone-adv h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.zone-adv p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Map section */
.zone-map-section {
  padding: 80px 0;
  background: var(--gray-light);
}

.zone-map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}

.zone-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(15%) contrast(1.05);
}

/* ===================================================
   AVIS / TESTIMONIALS
   =================================================== */
.avis-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 160px 0 80px;
  text-align: center;
}

.stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.star {
  width: 28px; height: 28px;
  color: #fbbf24;
}

.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.rating-number {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  color: var(--turquoise);
  line-height: 1;
}

.rating-info {
  text-align: left;
}

.rating-info .stars { justify-content: flex-start; }
.rating-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Avis cards */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.avis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-mid);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.avis-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 20px;
  font-family: var(--font-title);
  font-size: 10rem;
  color: rgba(99,197,199,0.1);
  line-height: 1;
  pointer-events: none;
}

.avis-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.avis-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.avis-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avis-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--turquoise);
  font-weight: 700;
  flex-shrink: 0;
}

.avis-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.avis-date {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 2px;
}

.avis-badge {
  background: rgba(99,197,199,0.12);
  color: var(--turquoise-dark);
  border: 1px solid rgba(99,197,199,0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.avis-badge svg { width: 12px; height: 12px; }

.avis-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.avis-stars svg { width: 18px; height: 18px; color: #fbbf24; }

.avis-text {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.75;
  font-style: italic;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 160px 0 80px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: var(--radius-lg);
  padding: 42px 32px 36px;
  border: 1px solid var(--gray-mid);
  box-shadow: 0 1px 2px rgba(30,41,71,0.04);
  text-align: center;
  transition: transform 0.45s var(--ease-reveal), box-shadow 0.45s var(--ease-reveal), border-color var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-reveal);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(30,41,71,0.35), 0 0 0 1px rgba(99,197,199,0.18);
  border-color: rgba(99,197,199,0.35);
}

.contact-card:hover::after { transform: scaleX(1); }

.contact-icon {
  width: 64px; height: 64px;
  background: #ffffff;
  border: 1px solid var(--gray-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 2px 6px rgba(30,41,71,0.05);
  transition: transform var(--transition-mid), background var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
}

.contact-card:hover .contact-icon {
  transform: translateY(-2px);
  background: var(--turquoise);
  border-color: var(--turquoise);
  box-shadow: 0 8px 18px -6px rgba(99,197,199,0.6);
}

.contact-icon svg { width: 32px; height: 32px; color: var(--turquoise-dark); transition: color var(--transition-mid); }
.contact-card:hover .contact-icon svg { color: #ffffff; }

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
  display: block;
  margin-bottom: 6px;
}

.contact-card a:hover { color: var(--turquoise-dark); }

.contact-card p {
  font-size: 0.88rem;
  color: var(--gray-text);
}

.contact-info-box {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-info-item svg { width: 28px; height: 28px; color: var(--turquoise); }

.contact-info-item h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--white);
}

.contact-info-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* ===================================================
   CONFIDENCE / RGPD
   =================================================== */
.rgpd-hero {
  background: var(--navy);
  padding: 160px 0 64px;
}

.rgpd-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 0;
}

.rgpd-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-mid);
}

.rgpd-content h2:first-child { margin-top: 0; }

.rgpd-content p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.rgpd-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.rgpd-content ul li {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.rgpd-content a {
  color: var(--turquoise-dark);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.rgpd-content a:hover { color: var(--navy); }

.rgpd-date {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-style: italic;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-mid);
}

/* ===================================================
   COOKIE POPUP
   =================================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 48, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s ease both;
}

.cookie-overlay.hidden {
  display: none;
}

.cookie-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(30,41,71,0.3);
  text-align: center;
  animation: cookieScale 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

.cookie-logo {
  margin: 0 auto 24px;
  width: 72px; height: 72px;
  animation: pulse-icon 3s ease-in-out infinite;
}

.cookie-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.cookie-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-btns .btn { flex: 1; min-width: 120px; justify-content: center; }

.cookie-link {
  display: block;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-text);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.cookie-link:hover { color: var(--navy); }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 48px;
  border-radius: 6px;
}

/* Logo du pied de page : pastille blanche, cadrée sur le dessin de logo-header.png */
.footer-logo-chip {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  transition: opacity var(--transition-fast);
}
.footer-logo-chip:hover { opacity: 0.9; }
.footer-logo-chip:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.footer-logo .footer-logo-chip img {
  display: block;
  width: 258px;
  max-width: none;
  height: auto;
  margin: -112px -25px -112px -24px; /* zone visible : 209 x 34 px */
  clip-path: inset(112px 25px 112px 24px);
  border-radius: 0;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.footer-slogan {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--turquoise-light);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(99,197,199,0.3);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition-mid), transform var(--transition-mid), background var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 500;
  box-shadow: var(--shadow-md);
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-top:hover {
  background: var(--turquoise-dark);
  border-color: var(--turquoise);
  box-shadow: 0 8px 24px rgba(99,197,199,0.4);
}

.back-top svg { width: 20px; height: 20px; transition: transform var(--transition-fast); }
.back-top:hover svg { transform: translateY(-2px); }

/* ===================================================
   PAGE INNER HEROES (non-home)
   =================================================== */
.page-hero {
  background: var(--navy);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(99,197,199,0.1) 0%, transparent 60%);
}

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

/* ===================================================
   INDEX SPECIFICS
   =================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.intro-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,41,71,0.3), transparent);
  z-index: 1;
  border-radius: inherit;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--white);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--navy);
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  padding: 64px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  max-width: 500px;
  line-height: 1.3;
}

/* ===================================================
   BACKGROUND NAVY SECTIONS
   =================================================== */
.bg-navy {
  background: var(--navy);
}

.bg-gray {
  background: var(--gray-light);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 968px) {
  .nav { display: none; }
  .burger { display: flex; }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo { justify-content: center; }
  .footer-links { justify-content: center; }
}

/* ===================================================
   BORDER GLOW BA CARDS (full vanilla port)
   =================================================== */

/* Section background */
.ba-section {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
}

.ba-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ba-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
}

.ba-bg-orb-1 {
  width: 700px; height: 700px;
  background: var(--turquoise);
  top: -200px; right: -150px;
  animation: float 16s ease-in-out infinite;
}

.ba-bg-orb-2 {
  width: 500px; height: 500px;
  background: var(--navy-light);
  bottom: -100px; left: -100px;
  animation: floatAlt 12s ease-in-out infinite;
}

.ba-bg-orb-3 {
  width: 300px; height: 300px;
  background: var(--turquoise-light);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float 20s ease-in-out infinite reverse;
}

/* Grid */
.ba-glow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- BorderGlow card ---- */
.ba-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 25;
  --color-sensitivity: calc(var(--edge-sensitivity) + 15);
  --border-radius: 20px;
  --glow-padding: 36px;
  --cone-spread: 22;
  --card-bg: #141b30;
  --fill-opacity: 0.4;
  --glow-color: hsl(175deg 70% 57% / 100%);
  --glow-color-60: hsl(175deg 70% 57% / 60%);
  --glow-color-50: hsl(175deg 70% 57% / 50%);
  --glow-color-40: hsl(175deg 70% 57% / 40%);
  --glow-color-30: hsl(175deg 70% 57% / 30%);
  --glow-color-20: hsl(175deg 70% 57% / 20%);
  --glow-color-10: hsl(175deg 70% 57% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #63c5c7 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #8ed9db 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #1e2947 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #63c5c7 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #8ed9db 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #63c5c7 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #8ed9db 0px, transparent 50%);
  --gradient-base: linear-gradient(#63c5c7 0 100%);

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgba(99, 197, 199, 0.15);
  background: var(--card-bg);
  overflow: visible;
  cursor: default;
  box-shadow:
    rgba(0,0,0,0.2) 0px 2px 4px,
    rgba(0,0,0,0.2) 0px 4px 8px,
    rgba(0,0,0,0.15) 0px 8px 16px,
    rgba(0,0,0,0.12) 0px 16px 32px,
    rgba(0,0,0,0.08) 0px 32px 64px;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.45s ease;
}

.ba-glow-card:hover {
  transform: translate3d(0, -10px, 0.01px) scale(1.01);
  box-shadow:
    rgba(0,0,0,0.25) 0px 4px 8px,
    rgba(0,0,0,0.2) 0px 8px 16px,
    rgba(0,0,0,0.15) 0px 16px 32px,
    rgba(99,197,199,0.15) 0px 24px 48px;
}

/* Colored mesh-gradient border */
.ba-glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgba(255,255,255,0) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.25s ease-out;
}

.ba-glow-card:not(:hover):not(.sweep-active)::before {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* Fill gradient near edges */
.ba-glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.25s ease-out;
}

.ba-glow-card:not(:hover):not(.sweep-active)::after {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* Outer glow layer */
.ba-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: calc(var(--glow-padding) * -1);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  transition: opacity 0.25s ease-out;
}

.ba-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.ba-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}

/* Inner content */
.ba-glow-inner {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--border-radius);
}

/* Header strip */
.ba-glow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(99,197,199,0.12);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.ba-glow-header svg { color: var(--turquoise); flex-shrink: 0; }

.ba-glow-dot {
  width: 8px; height: 8px;
  background: var(--turquoise);
  border-radius: 50%;
  margin-left: auto;
  animation: pulse-icon 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--turquoise);
}

/* Images */
.ba-glow-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 240px;
}

.ba-glow-img-wrap {
  position: relative;
  overflow: hidden;
}

.ba-glow-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: brightness(0.92);
}

.ba-glow-card:hover .ba-glow-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.ba-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,27,48,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  pointer-events: none;
}

/* Pills */
.ba-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.ba-pill.avant {
  background: rgba(30,41,71,0.85);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

.ba-pill.apres {
  background: rgba(99,197,199,0.9);
  color: var(--navy);
  border: 1px solid rgba(142,217,219,0.5);
}

/* Arrow divider */
.ba-glow-divider {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(99,197,199,0.08);
  border-right: 1px solid rgba(99,197,199,0.08);
  position: relative;
  z-index: 2;
}

.ba-glow-arrow {
  width: 32px; height: 32px;
  background: rgba(99,197,199,0.15);
  border: 1px solid rgba(99,197,199,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--turquoise);
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.ba-glow-card:hover .ba-glow-arrow {
  background: rgba(99,197,199,0.28);
  transform: scale(1.15);
}

/* ===================================================
   ENHANCED SERVICE CARD HOVER ANIMATIONS
   =================================================== */

/* Richer service-card hover */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.01);
}

/* Animated icon on service card hover */
.service-card:hover .service-icon svg {
  animation: iconBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes iconBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3) rotate(-8deg); }
  100% { transform: scale(1); }
}

/* Why card enhanced */
.why-card {
  transition: background 0.45s var(--ease-reveal),
              transform 0.45s var(--ease-reveal),
              border-color 0.3s ease,
              box-shadow 0.45s var(--ease-reveal);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -20px rgba(0,0,0,0.45), 0 0 30px rgba(99,197,199,0.10);
}

@media (max-width: 968px) {
  .ba-glow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }

  .section { padding: 64px 0; }
  .container { padding: 0 16px; }

  .hero-content { padding: 100px 16px 60px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }

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

  .zone-box { padding: 32px 24px; }
  .zone-advantages { grid-template-columns: 1fr; }

  .avis-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; background: none; gap: 8px; }
  .stat-item { border-radius: var(--radius-md); border: 1px solid var(--gray-mid); }

  .cta-band-inner { flex-direction: column; text-align: center; }

  .cookie-card { padding: 36px 24px; }
  .cookie-btns { flex-direction: column; }
  .cookie-btns .btn { flex: auto; width: 100%; }
}

/* ===================================================
   TYPOGRAPHIE — finitions Hanken Grotesk
   =================================================== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Titres sans-serif : graisse franche + interlettrage resserré pour un rendu net et pro */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

/* ===================================================
   ACCESSIBILITÉ — respect de "réduire les animations"
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
