/* ==========================================================================
   FLASH CLIM - Feuille de style principale
   Thème clair / sombre piloté par variables CSS ([data-theme] sur <html>).
   Mobile-first : les media queries élargissent la mise en page.
   ========================================================================== */

/* ---------- 1. Variables de thème ---------- */
:root {
  --c-primary: #0284c7;          /* bleu glacier */
  --c-primary-strong: #0369a1;
  --c-accent: #06b6d4;           /* cyan */
  --c-ice: #e0f2fe;
  --c-urgent: #f97316;           /* orange réservé au dépannage urgent */
  --grad-brand: linear-gradient(135deg, #0ea5e9 0%, #0284c7 45%, #1e3a8a 100%);
  --grad-ice: linear-gradient(135deg, #67e8f9 0%, #38bdf8 100%);

  --bg: #f6fafd;
  --bg-alt: #eaf3fa;
  --surface: #ffffff;
  --surface-2: #f1f7fc;
  --text: #0f1b2d;
  --text-muted: #4b5d73;
  --border: #d9e6f1;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px -12px rgba(2, 64, 110, .25);
  --shadow-lg: 0 30px 60px -20px rgba(2, 64, 110, .35);
  --header-bg: rgba(255, 255, 255, .82);
  --hero-overlay: linear-gradient(100deg, rgba(6, 22, 44, .88) 0%, rgba(6, 30, 60, .70) 45%, rgba(2, 132, 199, .25) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 72px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --c-primary: #38bdf8;
  --c-primary-strong: #7dd3fc;
  --c-accent: #22d3ee;
  --c-ice: #0c2a43;
  --bg: #0a1220;
  --bg-alt: #0e1a2e;
  --surface: #111e33;
  --surface-2: #15243c;
  --text: #e6eef8;
  --text-muted: #9fb2c8;
  --border: #1f3350;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(10, 18, 32, .78);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s var(--ease), color .3s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-strong); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.075rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-ice); border-radius: 2px; }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text-muted); }

/* ---------- 3. Boutons ---------- */
.btn {
  --b-bg: var(--c-primary); --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--b-fg); background: var(--b-bg);
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { color: var(--b-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--grad-brand); }
[data-theme="dark"] .btn--primary { color: #fff; }
.btn--light { --b-bg: #fff; --b-fg: #0b3a5e; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); border-color: var(--border); }
.btn--ghost-light { --b-bg: rgba(255,255,255,.08); --b-fg: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--urgent { --b-bg: var(--c-urgent); --b-fg: #fff; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 4. En-tête & navigation ---------- */
.topbar { background: #071a2f; color: #cfe3f5; font-size: .85rem; display: none; }
.topbar .container { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #fff; }
.topbar__group { display: flex; gap: 22px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { color: var(--c-accent); width: 1em; height: 1em; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   lui-même deviendrait le repère des éléments "fixed" et couperait le menu mobile. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text span { background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__sub { display: block; font: 600 .62rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

/* Menu mobile : panneau plein écran sous l'en-tête */
.nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  z-index: 99; background: var(--bg);
  padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 14px; border-radius: 14px; color: var(--text); font-weight: 600; font-size: 1.08rem; border: 1px solid transparent; }
.nav__link .nav__ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--c-ice); color: var(--c-primary); flex: none; }
.nav__link .nav__ico .icon { width: 20px; height: 20px; }
.nav__link .nav__arrow { margin-left: auto; color: var(--text-muted); width: 18px; height: 18px; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-primary); background: var(--surface); border-color: var(--border); }
.nav.is-open .nav__list li { animation: navIn .4s var(--ease) both; }
.nav.is-open .nav__list li:nth-child(2) { animation-delay: .03s; }
.nav.is-open .nav__list li:nth-child(3) { animation-delay: .06s; }
.nav.is-open .nav__list li:nth-child(4) { animation-delay: .09s; }
.nav.is-open .nav__list li:nth-child(5) { animation-delay: .12s; }
.nav.is-open .nav__list li:nth-child(6) { animation-delay: .15s; }
@keyframes navIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.nav__cta { display: grid; gap: 10px; }
.nav__info { margin-top: auto; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.nav__info a, .nav__info span { display: flex; gap: 10px; align-items: center; color: var(--text-muted); }
.nav__info .icon { color: var(--c-primary); width: 1.05em; height: 1.05em; }
body.menu-open .mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background-color .2s, transform .2s, color .2s;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--c-primary); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.header-call { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hero::after { /* halo givré */
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(103, 232, 249, .35), transparent 65%); filter: blur(10px);
}
.hero .container { padding-top: 56px; padding-bottom: 96px; }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d8e9f7; max-width: 620px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .9rem; font-weight: 500; backdrop-filter: blur(6px); }
.chip .icon { color: #67e8f9; width: 1.05em; height: 1.05em; }
.hero--page .container { padding-top: 56px; padding-bottom: 64px; }
.hero--page h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }

.breadcrumb { font-size: .875rem; margin-bottom: 18px; color: #b9d3ea; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }

/* Bandeau de chiffres-clés sous le hero */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.stat { background: var(--surface); padding: 22px 18px; text-align: center; }
.stat__value { font: 800 clamp(1.6rem, 4vw, 2.2rem)/1 var(--font-head); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .stat__value { background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; }
.stat__label { margin-top: 6px; font-size: .9rem; color: var(--text-muted); }

/* ---------- 6. Cartes & grilles ---------- */
.grid { display: grid; gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-primary) 40%, var(--border)); }
.card__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--c-ice); color: var(--c-primary); margin-bottom: 18px; transition: transform .35s var(--ease), background .35s; }
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); background: var(--grad-brand); color: #fff; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card--compact { padding: 22px; }

/* Cartes "pôle" avec image */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; background: rgba(7, 26, 47, .75); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(4px); }
.service-card__tag .icon { width: 1em; height: 1em; color: #67e8f9; }
.service-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card__body ul { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; color: var(--text-muted); }
.service-card__body li { display: flex; gap: 10px; align-items: flex-start; }
.service-card__body li .icon { color: var(--c-accent); margin-top: 3px; width: 1.05em; height: 1.05em; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Bloc image + texte */
.split { display: grid; gap: 40px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__badge { position: absolute; right: -6px; bottom: -18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center; max-width: 260px; }
.split__badge strong { display: block; font-family: var(--font-head); font-size: 1.4rem; line-height: 1; }
.split__badge span { font-size: .85rem; color: var(--text-muted); }
.split__badge .card__icon { margin: 0; width: 46px; height: 46px; }

.checklist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > .icon { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--c-ice); color: var(--c-primary); margin-top: 1px; }
.checklist strong { color: var(--text); }

/* Étapes numérotées */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 22px; left: 28px; font: 800 1.9rem/1 var(--font-head);
  background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Marques */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.brands li { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font: 700 1rem/1 var(--font-head); color: var(--text-muted); letter-spacing: .02em; transition: color .2s, border-color .2s; }
.brands li:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* Zone d'intervention */
.zones { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: .95rem; }
.zones .icon { color: var(--c-primary); width: 1em; height: 1em; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); min-height: 320px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }

/* Galerie réalisations */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(4, 16, 32, .85)); }

/* FAQ (balises <details> natives) */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--c-primary); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-head); color: var(--c-primary); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 44px 28px; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-lg); isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(103,232,249,.55), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #dbeefc; margin: 0; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band--urgent { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #f97316 100%); }

/* Encadré urgence */
.urgent-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--c-urgent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c-urgent) 40%, var(--border)); }
.urgent-box .icon { color: var(--c-urgent); width: 28px; height: 28px; }
.urgent-box p { margin: 0; color: var(--text-muted); }

/* ---------- 7. Formulaire ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label .req { color: var(--c-urgent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 18%, transparent); background: var(--surface); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-primary); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #dcfce7; color: #14532d; }
.form-status.is-error { background: #fee2e2; color: #7f1d1d; }
.g-recaptcha { min-height: 78px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
a.contact-item:hover { transform: translateX(4px); border-color: var(--c-primary); color: var(--text); }
.contact-item .card__icon { margin: 0; flex: none; width: 48px; height: 48px; }
.contact-item small { display: block; color: var(--text-muted); font-size: .82rem; }
.contact-item strong { font-size: 1.05rem; word-break: break-word; }

/* ---------- 8. Pied de page ---------- */
.site-footer { background: #06111f; color: #a9bdd3; padding: 64px 0 0; margin-top: 0; }
.site-footer a { color: #d6e6f5; }
.site-footer a:hover { color: #67e8f9; }
.site-footer .logo { color: #fff; }
.site-footer .logo__sub { color: #8aa3bd; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #22d3ee; margin-top: 3px; width: 1.05em; height: 1.05em; }
.footer-bottom { border-top: 1px solid #13243a; padding: 20px 0 96px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Barre d'appel collante (mobile uniquement) */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.mobile-cta .btn { min-height: 46px; padding: 10px 14px; font-size: .95rem; }

/* ---------- 9. Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Responsive (tablette puis desktop) ---------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__media { order: 2; }
  .cta-band { padding: 56px; }
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
  .hero .container { padding-top: 120px; padding-bottom: 140px; }
  .hero--page .container { padding-top: 88px; padding-bottom: 100px; }
}
@media (min-width: 1080px) {
  :root { --header-h: 80px; }
  .topbar { display: block; }
  .menu-toggle { display: none; }
  .header-call { display: inline-flex; }
  .nav { position: static; height: auto; transform: none; opacity: 1; visibility: visible; background: none; padding: 0; overflow: visible; display: block; z-index: auto; }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__list li { animation: none !important; }
  .nav__link { font-size: .95rem; padding: 10px 14px; min-height: 0; border: 0; }
  .nav__link:hover, .nav__link[aria-current="page"] { background: var(--surface-2); }
  .nav__link .nav__ico, .nav__link .nav__arrow { display: none; }
  .nav__cta, .nav__info { display: none; }
  .mobile-cta { display: none; }
  .footer-bottom { padding-bottom: 24px; }
}
@media (max-width: 1079px) { .contact-layout > * + * { margin-top: 32px; } }

/* ---------- 11. Ajustements en-tête desktop ---------- */
.logo__text, .nav__link, .header-call { white-space: nowrap; }
@media (min-width: 1080px) and (max-width: 1240px) {
  .nav__link { padding: 10px 9px; font-size: .9rem; }
  .header-call { padding: 10px 16px; }
}

/* ---------- 12. Avis Google (widget SociableKit) ---------- */
.reviews { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.reviews iframe { display: block; width: 100%; height: 560px; border: 0; }

/* ---------- 13. Petits écrans (≤ 420 px) ---------- */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__sub { letter-spacing: .1em; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .08em; }
  .hero__ctas .btn { width: 100%; }
  .section { padding: 56px 0; }
  .card { padding: 22px; }
  .stat { padding: 18px 10px; }
  .cta-band { padding: 32px 20px; }
  .cta-band__actions .btn { width: 100%; }
  .form-card { padding: 20px; }
  .split__badge { right: 8px; }
  .g-recaptcha { transform: scale(.9); transform-origin: 0 0; }
}

/* ---------- 14. Garde-fous anti-débordement ---------- */
.split > *, .grid > *, .contact-layout > *, .footer-grid > *, .cta-band__inner > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
body { overflow-x: clip; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }

/* ---------- 15. Mobile : barre de liens rapides + barre d'appel robuste ---------- */
body { overflow-x: hidden; }                 /* remplace "clip" (non reconnu par d'anciens Chrome Android) */
@supports (overflow-x: clip) { body { overflow-x: clip; } }
.quicknav { border-top: 1px solid var(--border); }
.quicknav__list { list-style: none; margin: 0; padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.quicknav__list::-webkit-scrollbar { display: none; }
.quicknav__list li { flex: none; scroll-snap-align: start; }
.quicknav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.quicknav a .icon { width: 1em; height: 1em; color: var(--c-primary); }
.quicknav a[aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.quicknav a[aria-current="page"] .icon { color: #fff; }
body.menu-open .quicknav { display: none; }
@media (min-width: 1080px) { .quicknav { display: none; } }
@media (max-width: 1079px) { html { scroll-padding-top: 140px; } }

.mobile-cta { width: 100%; max-width: 100vw; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mobile-cta .btn { min-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
