/* =========================================================
   FINERGIE — Design System
   Palette premium : bleu nuit, vert énergie sobre, blanc
   ========================================================= */

:root {
  /* Couleurs */
  --ink-900: #0A1628;      /* Bleu nuit profond */
  --ink-800: #0F1E36;
  --ink-700: #1A2B47;
  --ink-600: #2B3E5C;
  --ink-500: #5A6B85;
  --ink-400: #8895AC;
  --ink-300: #B8C2D1;
  --ink-200: #DDE3EC;
  --ink-100: #EEF2F7;
  --ink-50:  #F6F8FB;

  --leaf-700: #1F6B52;     /* Vert énergie sobre */
  --leaf-600: #2A8A6B;
  --leaf-500: #3AA37F;     /* Accent principal */
  --leaf-400: #5BBF9B;
  --leaf-100: #E4F4EC;
  --leaf-50:  #F1F9F5;

  --gold-500: #C9A55A;     /* Accent sophistication */

  --white: #FFFFFF;
  --black: #000000;

  /* Typographie */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Tailles */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Ombres douces */
  --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 32px 72px rgba(10, 22, 40, 0.16);

  /* Conteneurs */
  --container: 1200px;
  --container-narrow: 960px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;
}

/* ========================================================= */
/* Reset et base                                              */
/* ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--white);
  overflow-x: hidden;
  font-weight: 400;
}

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

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--leaf-600); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

::selection { background: var(--leaf-500); color: var(--white); }

/* ========================================================= */
/* Typographie                                                 */
/* ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.35;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--leaf-500);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 62ch;
}

.highlight {
  color: var(--leaf-600);
  font-weight: 600;
}

/* ========================================================= */
/* Layout helpers                                             */
/* ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================================= */
/* Boutons                                                    */
/* ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--leaf-600);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--leaf-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(42, 138, 107, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}

.btn-light {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-light:hover {
  background: var(--ink-50);
  transform: translateY(-1px);
}

.btn-link {
  padding: 0;
  color: var(--leaf-600);
  background: transparent;
  border-radius: 0;
}
.btn-link:hover { color: var(--leaf-700); background: transparent; }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 18px 32px; font-size: 1rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========================================================= */
/* Header                                                      */
/* ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(221, 227, 236, 0.6);
  transition: box-shadow var(--t-fast) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand-mark { box-shadow: 0 6px 16px rgba(58, 163, 127, 0.28); }
.brand:hover .brand-mark::after { transform: scale(1.25); }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 75% 20%, rgba(95, 184, 147, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #0a1628 0%, #13243f 55%, #1f5a44 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(10, 22, 40, 0.18);
  transition: box-shadow 0.3s ease;
  overflow: visible;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8edab8 0%, #3aa37f 70%);
  box-shadow: 0 0 0 2px var(--white), 0 2px 6px rgba(58, 163, 127, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.02em;
}
.brand-dot {
  color: var(--leaf-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4em;
  line-height: 0;
  margin-left: 1px;
}

/* Bandeau partenaires/cadre CEE */
.partners-band {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.partners-title {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 32px;
}
.partners-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: partnersScroll 42s linear infinite;
  will-change: transform;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-500);
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.85;
}
.partner-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-300);
  flex-shrink: 0;
}
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}
.site-footer .brand-logo {
  height: 48px;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}

.nav a:hover { color: var(--ink-900); background: var(--ink-50); }
.nav a.active { color: var(--ink-900); background: var(--ink-100); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
}

.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    width: 100%;
    flex: none;
    z-index: 50;
    background: var(--white);
    flex-direction: column;
    padding: 28px 20px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease);
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid var(--ink-100);
    overflow-y: auto;
    box-shadow: -12px 0 32px rgba(10, 22, 40, 0.08);
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 16px 20px;
    font-size: 1.0625rem;
    border-radius: 12px;
    color: var(--ink-900);
    font-weight: 500;
    border-bottom: 1px solid var(--ink-100);
  }
  .nav a:hover, .nav a.active {
    background: var(--leaf-50);
    color: var(--leaf-700);
    font-weight: 600;
  }
  /* Désactiver l'underline animée (.site-header .nav a::after) sur drawer mobile */
  .site-header .nav a::after { display: none; }
  /* Ajouter un bloc CTA en bas du drawer */
  .nav::after {
    content: 'Besoin d’aide ? 09 72 63 21 69 · contact@finergie.fr';
    margin-top: auto;
    padding: 20px;
    background: var(--ink-50);
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--ink-600);
    text-align: center;
    line-height: 1.5;
  }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn:not(.menu-toggle) { display: none; }

  /* Bloquer le scroll du body quand le menu est ouvert */
  body.nav-open { overflow: hidden; }
}

/* ========================================================= */
/* Hero                                                        */
/* ========================================================= */

.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(58, 163, 127, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(10, 22, 40, 0.04), transparent 60%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--leaf-600);
  letter-spacing: -0.03em;
}

.hero-copy .text-lead { margin-bottom: 32px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}

.badge svg { width: 14px; height: 14px; color: var(--leaf-600); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.15) 0%, rgba(10, 22, 40, 0.0) 35%, rgba(10, 22, 40, 0.55) 100%),
    url('hero-pac.jpg') center/cover;
}

.hero-visual-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hero-visual-card .big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink-900);
  font-weight: 500;
}

.hero-visual-card .label {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.hero-visual-float {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--ink-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual-float .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf-400);
  box-shadow: 0 0 0 3px rgba(91, 191, 155, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Trustbar */
.trustbar {
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
  padding: 24px 0;
}

.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trustbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.trustbar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.trustbar-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trustbar-item svg { width: 18px; height: 18px; color: var(--leaf-600); }

/* ========================================================= */
/* Stats / Chiffres clés                                      */
/* ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.stat {
  background: var(--white);
  padding: 32px 28px;
  transition: background var(--t-fast) var(--ease);
}

.stat:hover { background: var(--ink-50); }

.stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-value small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.5em;
  color: var(--leaf-600);
  margin-left: 4px;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.4;
}

/* ========================================================= */
/* Cards                                                       */
/* ========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t-med) var(--ease);
  position: relative;
}

.card:hover {
  border-color: var(--ink-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: all var(--t-fast) var(--ease);
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon {
  background: var(--leaf-600);
  color: var(--white);
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 1rem; color: var(--ink-600); }

.card-dark {
  background: var(--ink-900);
  border: 0;
  color: var(--white);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--ink-300); }
.card-dark .card-icon {
  background: rgba(58, 163, 127, 0.15);
  color: var(--leaf-400);
}

/* ========================================================= */
/* Split (image + texte)                                      */
/* ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
}

.split-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.split-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 50%, rgba(10,22,40,0.35) 100%);
  pointer-events: none;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.feature-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feature-item-icon svg { width: 16px; height: 16px; }

.feature-item h4 { margin-bottom: 4px; font-size: 1.0625rem; }
.feature-item p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-600); }

/* ========================================================= */
/* Section sombre                                              */
/* ========================================================= */

.section-dark {
  background: var(--ink-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(58, 163, 127, 0.14), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(58, 163, 127, 0.08), transparent 60%);
  pointer-events: none;
}

.section-dark > * { position: relative; z-index: 1; }

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: var(--ink-300); }
.section-dark .eyebrow { color: var(--leaf-400); }
.section-dark .eyebrow::before { background: var(--leaf-400); }

/* ========================================================= */
/* Timeline process                                            */
/* ========================================================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  position: relative;
  margin-top: 40px;
}

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

.timeline-step {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--t-fast) var(--ease);
}

.timeline-step:hover {
  border-color: var(--leaf-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--leaf-600);
  margin-bottom: 12px;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--leaf-200, var(--leaf-100));
  min-width: 2ch;
}

.timeline-step h4 { margin-bottom: 8px; }
.timeline-step p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-600); }

/* ========================================================= */
/* FAQ                                                         */
/* ========================================================= */

.faq { max-width: 840px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--ink-100);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}

.faq-question:hover { color: var(--leaf-700); }

.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.faq-icon svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease); }

.faq-item.open .faq-icon {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
}

.faq-answer-inner {
  padding: 0 0 24px 0;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ========================================================= */
/* Case study                                                  */
/* ========================================================= */

.case-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 960px) { .case-card { grid-template-columns: 1fr; } }

.case-content { padding: clamp(32px, 4vw, 56px); }
.case-media {
  background:
    linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,0.5) 100%),
    url('case-residence.jpg') center/cover;
  min-height: 340px;
}

.case-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
}

@media (max-width: 480px) { .case-metrics { grid-template-columns: 1fr; } }

.case-metric .value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--leaf-700);
  line-height: 1;
  font-weight: 500;
}

.case-metric .label {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 6px;
}

/* ========================================================= */
/* CTA band                                                    */
/* ========================================================= */

.cta-band {
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 163, 127, 0.22), transparent 60%);
  pointer-events: none;
}

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

.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--ink-300); font-size: 1.0625rem; }

@media (max-width: 768px) {
  .cta-band { grid-template-columns: 1fr; text-align: left; }
}

/* ========================================================= */
/* Formulaires                                                */
/* ========================================================= */

.form {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-800);
}
.field label .req { color: var(--leaf-600); }

.field .hint {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: -2px;
}

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  transition: all var(--t-fast) var(--ease);
}

.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-300); }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 4px rgba(58, 163, 127, 0.14);
}

.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A6B85' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  width: 18px; height: 18px;
  accent-color: var(--leaf-600);
  margin-top: 2px;
}

.form-actions { margin-top: 28px; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--leaf-50);
  color: var(--leaf-700);
  border: 1px solid var(--leaf-100);
}
.form-status.error {
  display: block;
  background: #FEF2F2;
  color: #B1342A;
  border: 1px solid #FECACA;
}

/* ========================================================= */
/* Simulateur                                                  */
/* ========================================================= */

.simulator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

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

.sim-results {
  position: sticky;
  top: 104px;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  position: relative;
}

.sim-results::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58, 163, 127, 0.25), transparent 60%);
  pointer-events: none;
}

.sim-results > * { position: relative; z-index: 1; }

.sim-results h3 { color: var(--white); margin-bottom: 6px; font-size: 1.125rem; }
.sim-results .sub { color: var(--ink-300); font-size: 0.875rem; margin-bottom: 28px; }

.sim-result-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sim-result-item:last-of-type { border-bottom: 0; }

.sim-result-label {
  font-size: 0.8125rem;
  color: var(--ink-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.sim-result-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sim-result-value.accent { color: var(--leaf-400); }

.sim-headline {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(58, 163, 127, 0.16);
  border: 1px solid rgba(58, 163, 127, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--white);
  line-height: 1.55;
}

.sim-disclaimer {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--ink-400);
  line-height: 1.55;
}

/* ========================================================= */
/* Footer                                                     */
/* ========================================================= */

.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: var(--ink-400); font-size: 0.9375rem; max-width: 360px; }

.footer-col h5 {
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-300);
  font-size: 0.9375rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--ink-500);
  flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--white); }

/* ========================================================= */
/* Page hero variant                                          */
/* ========================================================= */

.page-hero {
  padding: 72px 0 48px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}

.page-hero h1 { max-width: 820px; margin-bottom: 20px; }
.page-hero p { max-width: 680px; color: var(--ink-600); }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb span { color: var(--ink-400); }

/* ========================================================= */
/* Legal pages                                                */
/* ========================================================= */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-700);
}

.legal-content h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

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

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.legal-content p { margin-bottom: 14px; color: var(--ink-700); }

.legal-content ul {
  margin: 10px 0 20px 22px;
  padding: 0;
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--ink-900); font-weight: 600; }

.legal-box {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0 32px;
}

.legal-box p { margin-bottom: 6px; font-size: 0.9375rem; }
.legal-box p strong { color: var(--ink-900); }

/* ========================================================= */
/* Animations d'apparition                                    */
/* ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibilité : reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========================================================= */
/* Utils                                                      */
/* ========================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }


/* =========================================================
   FINERGIE — Design Refinements (Premium UX layer)
   ========================================================= */

/* --- 1. Scroll progress bar (top of viewport) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--leaf-500) 0%, var(--leaf-400) 60%, var(--gold-500) 100%);
  transition: width 60ms linear;
  box-shadow: 0 0 8px rgba(58,163,127,0.5);
}

/* --- 2. Back-to-top floating button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  z-index: 90;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}
.scroll-top-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .scroll-top-btn { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* --- 3. Buttons : refined hover with subtle shine --- */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(10, 22, 40, 0.25); }
.btn-accent:hover { box-shadow: 0 14px 32px rgba(31, 107, 82, 0.32); }

/* Branded focus ring for keyboard accessibility */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--leaf-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- 4. Cards : refined hover with gradient border highlight --- */
.card { isolation: isolate; }
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: -1;
}
.card:hover::before {
  background: linear-gradient(135deg, var(--leaf-500) 0%, transparent 60%, var(--gold-500) 100%);
  opacity: 1;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.10);
}
.card-icon {
  background: linear-gradient(135deg, var(--leaf-50) 0%, #ffffff 100%);
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--leaf-500) 0%, var(--leaf-700) 100%);
  transform: scale(1.06);
}
.card-icon svg { transition: transform var(--t-fast) var(--ease); }
.card:hover .card-icon svg { transform: rotate(-4deg) scale(1.05); }

/* Dark cards refined */
.card-dark::before { display: none; }
.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%), var(--ink-900);
}
.card-dark:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%), var(--ink-800);
}

/* --- 5. Stats : premium subtle gradient + hover lift --- */
.stat {
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--leaf-500), transparent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.stat:hover {
  background: linear-gradient(180deg, var(--leaf-50) 0%, var(--white) 100%);
}
.stat:hover::after { opacity: 1; }

/* --- 6. Page hero : subtle radial gradient backdrop --- */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--ink-50) 0%, transparent 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(58,163,127,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,165,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --- 7. Trustbar : premium polish --- */
.trustbar {
  background: linear-gradient(180deg, var(--ink-50) 0%, var(--white) 100%);
}
.trustbar-item {
  transition: color var(--t-fast) var(--ease);
}
.trustbar-item:hover { color: var(--leaf-700); }
.trustbar-item:hover svg { color: var(--leaf-500); }

/* --- 8. Split media : subtle zoom on hover --- */
.split-media {
  transition: box-shadow var(--t-med) var(--ease);
}
.split-media img {
  transition: transform 800ms var(--ease);
}
.split-media:hover img { transform: scale(1.04); }
.split-media:hover { box-shadow: 0 28px 60px rgba(10,22,40,0.18); }

/* Floating stat card on split-media */
.split-stat-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: auto;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.18);
  border: 1px solid rgba(255,255,255,0.7);
  z-index: 2;
}
.split-stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.split-stat-value small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.46em;
  color: var(--leaf-600);
  margin-left: 3px;
  font-weight: 600;
}
.split-stat-label {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.4;
}
.split-stat-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  background: var(--leaf-50);
  color: var(--leaf-700);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .split-stat-card { left: 16px; right: 16px; max-width: none; }
}

/* --- 9. Hero scroll cue (subtle indicator) --- */
.hero {
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--ink-400) 50%, transparent);
  opacity: 0.5;
  animation: scrollCue 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}
@media (max-width: 720px) { .hero::after { display: none; } }

/* --- 10. Feature items : icon micro-interaction --- */
.feature-item-icon {
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.feature-item:hover .feature-item-icon {
  transform: scale(1.1) rotate(-2deg);
  background: var(--leaf-100);
}

/* --- 11. Smooth reveal animation (override) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 12. Header : refined when scrolled --- */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
  border-bottom-color: rgba(221, 227, 236, 0.9);
}
.site-header .nav a {
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.site-header .nav a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--leaf-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
}
.site-header .nav a:hover::after,
.site-header .nav a.active::after {
  transform: scaleX(1);
}

/* --- 13. CTA bands & key messages : refined --- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900) 0%, #122039 60%, var(--ink-900) 100%);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(58,163,127,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* --- 14. Body selection color (refined) --- */
::selection {
  background: var(--leaf-100);
  color: var(--leaf-700);
}

/* --- 15. Form fields : refined focus state --- */
.input, .select, .textarea {
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 4px rgba(58, 163, 127, 0.12);
  outline: none;
}

/* --- 16. FAQ accordéon : refined open state --- */
.faq-item {
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.faq-item:hover {
  border-color: var(--ink-200);
}
.faq-item.open {
  background: var(--leaf-50);
  border-color: rgba(58,163,127,0.25);
}
.faq-question {
  transition: color var(--t-fast) var(--ease);
}
.faq-item.open .faq-question { color: var(--leaf-700); }

/* --- 17. Image lazy fade-in --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 600ms ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* --- 18. Reduced motion : respect user preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .partners-track { animation: none !important; }
  .hero::after { animation: none; }
}


/* =========================================================
   FINERGIE — Mobile Refinements (≤ 720 px)
   ========================================================= */

/* === Tablette (≤ 960 px) === */
@media (max-width: 960px) {
  section { padding: clamp(48px, 8vw, 72px) 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: clamp(1.875rem, 6vw, 3rem); line-height: 1.12; }
  h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); line-height: 1.2; }

  /* Header CTA shrinks gracefully */
  .header-cta .btn-sm { padding: 8px 14px; font-size: 0.8125rem; }

  /* Hero visual card a bit smaller */
  .hero-visual-card { padding: 14px 16px; gap: 12px; }
  .hero-visual-card .big { font-size: 1.875rem; }
  .hero-visual-card .label { font-size: 0.75rem; }
  .hero-visual-float { font-size: 0.75rem; padding: 8px 12px; }

  /* Two-column splits stack */
  section .grid[style*="grid-template-columns: 1fr 1.2fr"],
  section .grid[style*="grid-template-columns: 1fr 1.3fr"],
  section .grid[style*="grid-template-columns: 1fr 1.4fr"],
  section .grid[style*="grid-template-columns: 1.1fr"],
  section .grid[style*="grid-template-columns:"][style*="fr "][style*="fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Booking aside : un-stick on mobile */
  .booking-aside { position: static !important; padding: 24px; }
}

/* === Mobile (≤ 720 px) === */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  h1 { font-size: clamp(1.6rem, 7.5vw, 2.4rem); }
  h2 { font-size: clamp(1.35rem, 5.8vw, 1.875rem); }
  h3 { font-size: 1.15rem; }
  .text-lead { font-size: 1rem; line-height: 1.55; }
  .eyebrow { font-size: 0.7rem; }

  /* CTA buttons : full width, stack */
  .btn-group { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .cta-band .btn-group { justify-content: stretch !important; }
  .cta-band {
    flex-direction: column;
    text-align: left;
    gap: 24px;
    padding: 32px 24px;
  }

  /* Cards : tighter padding */
  .card { padding: 24px; }
  .card h3 { font-size: 1.0625rem; }
  .card-icon { width: 44px; height: 44px; }
  .card-icon svg { width: 22px; height: 22px; }

  /* Grids collapse sooner */
  .grid-3, .grid-2 { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Hero badges : smaller pills */
  .hero-badges { gap: 8px; margin-top: 24px; }
  .badge { font-size: 0.75rem; padding: 6px 12px; }

  /* Hero visual : subtle adjustments */
  .hero-visual { aspect-ratio: 4 / 4.5; max-height: 460px; }
  .hero-visual-card {
    left: 14px; right: 14px; bottom: 14px;
    padding: 12px 14px;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .hero-visual-card .big { font-size: 1.6rem; }

  /* Stats : full width single column */
  .stats { gap: 12px; }
  .stat { padding: 22px 20px; }
  .stat-value .display, .stat-value > span { font-size: 2.25rem; }

  /* Trustbar : compact wrap */
  .trustbar { padding: 24px 0; }
  .trustbar-items { flex-wrap: wrap; gap: 12px 18px; justify-content: flex-start; }
  .trustbar-item { font-size: 0.8125rem; }
  .trustbar-label { font-size: 0.7rem; margin-bottom: 12px; }

  /* Hero rules */
  .hero { padding: 48px 0 32px; }

  /* Section heads center */
  .section-head { text-align: left; }
  .section-head.center { text-align: center; }

  /* Page hero (sub-pages) */
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: 1.875rem; }
  .breadcrumb { font-size: 0.75rem; gap: 6px; flex-wrap: wrap; }

  /* Forms : tighter */
  .form-row { gap: 12px; margin-bottom: 12px; }
  .input, .select, .textarea { font-size: 16px; padding: 12px 14px; } /* 16px évite zoom iOS */
  label { font-size: 0.875rem; }

  /* Footer */
  .footer-grid { gap: 28px !important; }
  .footer-col h5 { margin-bottom: 12px; font-size: 0.9375rem; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 0.75rem; }

  /* Partners marquee : speed up on mobile */
  .partners-band { padding: 36px 0; }
  .partners-track { animation-duration: 28s; gap: 36px; }
  .partner-item { font-size: 0.875rem; }
  .partners-title { font-size: 0.65rem; margin-bottom: 24px; }

  /* Hybrid diagram (moderniser-chauffage) */
  .hybrid-diagram { padding: 24px 18px; gap: 14px; }
  .hybrid-node { padding: 22px 18px; }
  .hybrid-arrow { transform: rotate(90deg); padding: 2px 0; }
  .hybrid-arrow svg { width: 28px; height: 28px; }
  .hybrid-legend { padding: 16px 18px; font-size: 0.875rem; margin-top: 20px; }
  .keymsg { padding: 28px 22px; margin-top: 28px; }
  .keymsg h3 { font-size: 1.25rem; }

  /* Synthèse cards */
  .synth-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .synth-card { padding: 22px 20px; }

  /* Strat list */
  .strat-list { grid-template-columns: 1fr !important; gap: 12px; }
  .strat-item { padding: 14px 16px; }

  /* Booking page */
  .booking-card { padding: 24px 20px; }
  .booking-aside { padding: 24px 20px; }
  .booking-aside h3 { font-size: 1.1rem; }
  .form-section-title { margin: 22px 0 12px; font-size: 0.7rem; }
  .slot-grid { gap: 8px; }
  .slot-card { padding: 12px 8px; font-size: 0.875rem; }
  .slot-card .slot-time { font-size: 0.7rem; }
  .reassure-row { gap: 10px 16px; font-size: 0.8125rem; }

  /* Split stat card on .split-media */
  .split-stat-card {
    left: 14px; right: 14px; bottom: 14px;
    padding: 14px 16px;
    gap: 12px;
  }
  .split-stat-value { font-size: 2rem; }
  .split-stat-label { font-size: 0.75rem; }
  .split-stat-tag { font-size: 0.6rem; }

  /* Case study (index) */
  .case-content { padding: 28px 24px; }
  .case-card h3 { font-size: 1.25rem !important; }
  .case-metrics { gap: 12px; }
  .case-metric .value { font-size: 1.5rem; }

  /* FAQ */
  .faq-question { padding: 18px 18px; font-size: 0.9375rem; gap: 12px; }
  .faq-answer-inner { padding: 0 18px 18px; font-size: 0.9rem; }

  /* Scroll-top button : visible plus tôt */
  .scroll-top-btn { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .scroll-top-btn svg { width: 16px; height: 16px; }

  /* Partner item : pause animation pause-friendly on touch */
  .partners-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); }
}

/* === Small mobile (≤ 420 px) === */
@media (max-width: 420px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
  .header-inner { padding: 12px 0; }
  .brand-logo { height: 34px; }
  .header-cta .btn-sm svg { display: none; }
  .header-cta .btn-sm { padding: 7px 12px; font-size: 0.75rem; }

  .hero-visual-card { grid-template-columns: 1fr; text-align: center; }
  .hero-visual-card .big { font-size: 1.5rem; }

  .case-metrics { grid-template-columns: 1fr !important; }

  /* Slot picker : 2 cols on very small */
  .slot-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .slot-grid label:last-child { grid-column: span 2; }
}

/* iOS safe-area for floating elements */
@supports (padding: max(0px)) {
  .scroll-top-btn { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }
}

/* =========================================================
   FINERGIE — Page Contact : Mobile UX
   ========================================================= */

/* Cards compactes (icône à gauche, texte à droite) */
.contact-mini-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}
.contact-mini-card .card-icon {
  margin: 0;
  width: 44px;
  height: 44px;
}
.contact-mini-card .card-icon svg { width: 22px; height: 22px; }
.contact-mini-card .contact-mini-body h3 { margin: 0 0 2px; }
.contact-mini-card .contact-mini-body p { margin: 0; font-size: 0.9375rem; }
.contact-cards { display: grid; gap: 14px; }

@media (max-width: 960px) {
  /* Form en premier, coordonnées en deuxième sur mobile/tablette */
  .contact-grid { display: flex; flex-direction: column; gap: 32px !important; }
  .contact-grid > [id="etude"] { order: 1; }
  .contact-grid .contact-aside { order: 2; }

  /* Cards compactes en 2 colonnes sur tablette */
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-cards .card-dark { grid-column: 1 / -1; }

  /* Aside header un peu plus discret */
  .contact-aside h2 { font-size: 1.25rem !important; margin-bottom: 8px; }
  .contact-aside > p { font-size: 0.9375rem; margin-bottom: 20px; }
}

@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; gap: 10px; }
  .contact-mini-card { padding: 14px 16px; gap: 12px; }
  .contact-mini-card .card-icon { width: 40px; height: 40px; }
  .contact-mini-card .card-icon svg { width: 20px; height: 20px; }
  .contact-mini-card .contact-mini-body h3 { font-size: 0.9375rem !important; }
  .contact-mini-card .contact-mini-body p { font-size: 0.875rem; }

  /* Booster contraste hover icône (pas de hover effect lourd sur mobile) */
  .contact-mini-card:hover { transform: none; }
  .contact-mini-card:hover .card-icon { transform: none; background: linear-gradient(135deg, var(--leaf-50) 0%, #ffffff 100%); }
  .contact-mini-card:hover .card-icon svg { transform: none; color: var(--ink-900); }

  /* Désactiver le hover ::before sur mini-cards */
  .contact-mini-card::before { display: none; }
}
