/* =============================================================
 *  AD SERVICES — FEUILLE DE STYLE
 *  -----------------------------------------------------------
 *  Thème clair premium, dérivé du logo (bleu profond + argent) :
 *  fond clair lumineux, accents bleu électrique, bandeaux navy.
 *  Pour changer les couleurs : section :root.
 *
 *  Sommaire :
 *   0. Polices (auto-hébergées)   6. Prestations
 *   1. Variables & base           7. Garanties / Étapes / Confiance
 *   2. Boutons & utilitaires      8. Devis (formulaire)
 *   3. Topbar & navigation        9. FAQ / CTA final / Footer
 *   4. Héro + carrousel photo    10. Pages légales / erreur
 *   5. Stats & situations        11. Responsive
 * ============================================================= */

/* ===== 0. POLICES AUTO-HÉBERGÉES ===== */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/archivo-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/archivo-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/archivo-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/archivo-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/archivo-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

/* ===== 1. VARIABLES & BASE ===== */
:root {
  /* Fonds clairs */
  --fond:      #f5f7fc;   /* fond principal */
  --fond-2:    #eef2fa;   /* sections alternées */
  --blanc:     #ffffff;

  /* Navy de la marque (bandeaux, footer, textes) */
  --navy:      #0b1a38;
  --navy-2:    #0e2148;

  /* Accents */
  --bleu:      #2456d6;   /* accent principal */
  --bleu-2:    #2e6fe8;   /* accent clair */
  --glow:      #7fb2ff;
  --rouge:     #e5484d;   /* urgence */

  /* Textes */
  --texte:     #12213f;   /* texte principal */
  --texte-2:   #55658b;   /* texte secondaire */
  --texte-inv: #eef3fd;   /* texte sur fond navy */
  --texte-inv-2: #a3b5da;

  /* Traits & cartes */
  --ligne:     #dfe6f3;
  --ligne-2:   #c8d4ec;

  /* Typographie */
  --police:      'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --police-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Rythme */
  --rayon:    16px;
  --rayon-pt: 10px;
  --ombre:    0 12px 34px -16px rgba(11, 26, 56, 0.18);
  --ombre-2:  0 22px 50px -20px rgba(11, 26, 56, 0.26);
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.14; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 16px; }

a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-2); }

::selection { background: var(--bleu); color: #fff; }

section[id], div[id] { scroll-margin-top: 96px; }

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 4px;
}

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--bleu); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--rayon-pt) 0; z-index: 200; font-weight: 600;
}
.lien-evitement:focus { left: 0; color: #fff; }

.conteneur { width: min(1180px, 100% - 40px); margin-inline: auto; }
.conteneur-etroit { width: min(820px, 100% - 40px); margin-inline: auto; }
.centre-texte { text-align: center; }

/* Étiquette "protocole" en mono — signature visuelle du site */
.eyebrow {
  font-family: var(--police-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin: 0 0 14px;
}
.eyebrow-sep { color: var(--texte-2); opacity: 0.55; }
.eyebrow.centre { text-align: center; }

/* Titre dégradé "métal" (comme le logo) */
.titre-degrade {
  background: linear-gradient(115deg, #0b1a38 0%, #1d3f8f 45%, #2e6fe8 80%, #4d8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Point rouge animé (disponibilité) */
.point-vif {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rouge); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5);
  animation: pulser 2s infinite;
}
@keyframes pulser {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

/* Apparition douce au défilement (activée par main.js) */
.reveal { opacity: 1; transform: none; }
body.js-anim .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
body.js-anim .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  body.js-anim .reveal { opacity: 1; transform: none; }
}

/* ===== 2. BOUTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--police); font-weight: 700; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primaire {
  background: linear-gradient(160deg, var(--bleu-2), var(--bleu) 60%, #1c46b4);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(36, 86, 214, 0.65), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primaire:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(36, 86, 214, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-ligne {
  background: var(--blanc);
  border-color: var(--ligne-2);
  color: var(--navy);
  box-shadow: var(--ombre);
}
.btn-ligne:hover { border-color: var(--bleu); color: var(--bleu); transform: translateY(-2px); }

/* Variante pour fond navy (footer, CTA final) */
.btn-ligne-inv {
  background: rgba(255,255,255,0.06);
  border-color: rgba(148, 178, 255, 0.4);
  color: #fff;
}
.btn-ligne-inv:hover { border-color: var(--glow); color: #fff; background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-grand { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-bloc  { width: 100%; }

/* ===== 3. TOPBAR & NAVIGATION ===== */
.topbar {
  background: var(--navy);
  font-size: 0.83rem;
  color: var(--texte-inv-2);
}
.topbar .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-gauche { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item, .topbar-urgent { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--glow); }
.topbar-urgent { font-family: var(--police-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; color: #ffd7d8; text-transform: uppercase; }
.topbar-droite {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: #fff; white-space: nowrap;
}
.topbar-droite svg { width: 15px; height: 15px; color: var(--glow); }
.topbar-droite:hover { color: var(--glow); }

header#entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow var(--transition);
}
header#entete.compact { box-shadow: 0 10px 28px -18px rgba(11, 26, 56, 0.35); }

.nav .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.marque { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.marque:hover { color: var(--navy); }
.marque-ecusson { width: 44px; height: 50px; filter: drop-shadow(0 4px 8px rgba(36, 86, 214, 0.35)); flex: 0 0 auto; }
.marque-nom { display: flex; flex-direction: column; line-height: 1.15; }
.marque-nom b { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.01em; }
.marque-nom span { font-size: 0.72rem; color: var(--texte-2); font-family: var(--police-mono); letter-spacing: 0.05em; }

.nav-liens { display: flex; align-items: center; gap: 26px; }
.nav-liens > a:not(.btn):not(.nav-tel) {
  color: var(--texte-2); font-weight: 600; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-liens > a:not(.btn):not(.nav-tel):hover { color: var(--navy); border-color: var(--bleu); }
.nav-tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--navy); font-size: 0.98rem; white-space: nowrap;
}
.nav-tel svg { width: 16px; height: 16px; color: var(--bleu); }
.nav-tel:hover { color: var(--bleu); }
.btn-nav { padding: 10px 18px; font-size: 0.92rem; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 4. HÉRO + CARROUSEL ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 58px; }
.hero-fond {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 460px at 84% 0%, rgba(46, 111, 232, 0.14), transparent 62%),
    radial-gradient(520px 400px at 0% 100%, rgba(46, 111, 232, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--fond) 60%);
}
.hero-fond::after {
  /* fine trame technique en fond */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(36, 86, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 214, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 480px at 74% 12%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(700px 480px at 74% 12%, #000 0%, transparent 74%);
}
.hero .conteneur { position: relative; }
.hero-grille {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: 56px; align-items: center;
}
.hero-contenu .eyebrow { margin-bottom: 18px; }
.hero-texte { color: var(--texte-2); font-size: 1.09rem; max-width: 54ch; margin-bottom: 28px; }
.hero-texte strong { color: var(--navy); }
.hero-boutons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-boutons.centre { justify-content: center; margin-bottom: 0; }

.hero-preuves { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; }
.hero-preuves li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--police-mono); font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--texte-2);
}
.hero-preuves svg { width: 14px; height: 14px; color: var(--bleu); flex: 0 0 auto; }

/* --- Carrousel photo --- */
.carrousel {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--ombre-2), 0 0 0 6px rgba(46, 111, 232, 0.07);
}
.carrousel-fenetre { overflow: hidden; border-radius: 20px; border: 1px solid var(--ligne-2); }
.carrousel-piste {
  display: flex;
  transition: transform 450ms cubic-bezier(0.25, 0.8, 0.3, 1);
}
.carrousel-diapo { flex: 0 0 100%; position: relative; }
.carrousel-diapo img {
  width: 100%; aspect-ratio: 5 / 6; object-fit: cover;
}
.carrousel-legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 42px 20px 14px;
  background: linear-gradient(180deg, transparent, rgba(11, 26, 56, 0.82));
  color: #fff; font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.carrousel-legende svg { width: 15px; height: 15px; color: var(--glow); flex: 0 0 auto; }

.carrousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ligne-2);
  color: var(--navy); cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(11, 26, 56, 0.4);
  transition: background var(--transition), transform var(--transition), color var(--transition);
  z-index: 2;
}
.carrousel-btn:hover { background: #fff; color: var(--bleu); transform: translateY(-50%) scale(1.06); }
.carrousel-btn svg { width: 20px; height: 20px; }
.carrousel-btn.prec { left: -18px; }
.carrousel-btn.suiv { right: -18px; }

.carrousel-points {
  position: absolute; bottom: -26px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.carrousel-point {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ligne-2); border: 0; padding: 0; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carrousel-point.actif { background: var(--bleu); transform: scale(1.3); }

.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ligne-2);
  border-radius: 14px; padding: 11px 15px;
  box-shadow: var(--ombre-2);
  max-width: 78%;
  z-index: 3;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--bleu); flex: 0 0 auto; }
.hero-badge span { display: flex; flex-direction: column; line-height: 1.3; }
.hero-badge b { font-size: 0.88rem; color: var(--navy); }
.hero-badge em { font-style: normal; font-size: 0.78rem; color: var(--texte-2); }
.hero-badge-haut { top: 16px; left: -20px; }

/* ===== 5. STATS & SITUATIONS ===== */
.barre-stats {
  background: var(--navy);
  color: var(--texte-inv);
}
.barre-stats .conteneur {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding: 24px 0;
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--police-mono); font-size: 1.55rem;
  font-weight: 600; color: #fff; letter-spacing: -0.02em;
}
.stat span { font-size: 0.85rem; color: var(--texte-inv-2); }

.section { padding: 72px 0; }
.section-alt { background: var(--fond-2); border-block: 1px solid var(--ligne); }

.tete { max-width: 700px; margin-bottom: 38px; }
.tete.centre { margin-inline: auto; text-align: center; }
.tete p:not(.eyebrow) { color: var(--texte-2); font-size: 1.05rem; }

.situations-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.situation {
  position: relative; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 24px 20px;
  box-shadow: var(--ombre);
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
/* Barre d'accent qui se déploie au survol (effet moderne) */
.situation::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--bleu), var(--glow));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.situation:hover { transform: translateY(-5px); border-color: var(--ligne-2); box-shadow: var(--ombre-2); }
.situation:hover::before { transform: scaleX(1); }

/* Grand numéro filigrane (style magazine) */
.situation-num {
  position: absolute; top: 16px; right: 18px; line-height: 1;
  font-family: var(--police-mono); font-size: 1.35rem; font-weight: 700;
  color: var(--ligne-2); transition: color var(--transition);
}
.situation:hover .situation-num { color: var(--bleu); }

.situation-ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--bleu-2), var(--bleu));
  box-shadow: 0 8px 18px -8px rgba(36, 86, 214, 0.55);
  transition: transform var(--transition);
}
.situation:hover .situation-ico { transform: scale(1.07) rotate(-3deg); }
.situation-ico svg { width: 23px; height: 23px; }
.situation h3 { font-size: 1.04rem; margin-bottom: 6px; }
.situation p { margin: 0 0 14px; font-size: 0.88rem; color: var(--texte-2); }
.situation-mots {
  list-style: none; margin: auto 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.situation-mots li {
  font-size: 0.72rem; font-weight: 600; color: var(--bleu);
  background: rgba(46, 111, 232, 0.08); border: 1px solid rgba(46, 111, 232, 0.18);
  border-radius: 6px; padding: 3px 8px;
}

/* ===== 6. PRESTATIONS ===== */
.services-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--ombre);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
/* Barre d'accent qui se déploie au survol */
.service::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--bleu), var(--glow));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service:hover {
  transform: translateY(-5px); border-color: rgba(46, 111, 232, 0.45);
  box-shadow: 0 24px 46px -22px rgba(36, 86, 214, 0.35);
}
.service:hover::before { transform: scaleX(1); }
/* Grand numéro filigrane (style magazine) */
.service-num {
  position: absolute; top: 18px; right: 20px; line-height: 1;
  font-family: var(--police-mono); font-size: 1.4rem; font-weight: 700;
  color: var(--ligne-2); transition: color var(--transition);
}
.service:hover .service-num { color: var(--bleu); }
.service-ico {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--bleu-2), #1c46b4);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(36, 86, 214, 0.75), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform var(--transition);
}
.service:hover .service-ico { transform: scale(1.08); }
.service-ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.05rem; padding-right: 34px; }
.service p { margin: 0 0 14px; font-size: 0.92rem; color: var(--texte-2); }
.service-mots {
  list-style: none; margin: auto 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-mots li {
  font-size: 0.72rem; font-weight: 600; color: var(--bleu);
  background: rgba(46, 111, 232, 0.08); border: 1px solid rgba(46, 111, 232, 0.18);
  border-radius: 6px; padding: 3px 8px;
}

.service-cta {
  justify-content: center;
  background:
    radial-gradient(280px 200px at 85% -10%, rgba(77, 141, 255, 0.35), transparent 70%),
    linear-gradient(170deg, var(--navy-2), var(--navy));
  border-color: var(--navy);
}
.service-cta h3 { color: #fff; }
.service-cta p { color: var(--texte-inv-2); }
.service-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ===== 7. GARANTIES / ÉTAPES / CONFIANCE ===== */
.garanties-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.garantie {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 26px;
  box-shadow: var(--ombre);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.garantie:hover { border-color: var(--ligne-2); box-shadow: var(--ombre-2); }
.garantie-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(46, 111, 232, 0.14), rgba(46, 111, 232, 0.05));
  border: 1px solid rgba(46, 111, 232, 0.25); color: var(--bleu);
}
.garantie-ico svg { width: 24px; height: 24px; }
.garantie h3 { font-size: 1.05rem; margin-bottom: 6px; }
.garantie p { margin: 0; font-size: 0.92rem; color: var(--texte-2); }

/* Déroulement : un chemin relié en 4 étapes */
.etapes-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.etape { position: relative; text-align: center; padding: 0 16px; }
/* La ligne du chemin, reliant chaque nœud au suivant (passe derrière les nœuds) */
.etape:not(:last-child)::before {
  content: ''; position: absolute; z-index: 1;
  top: 26px; left: calc(50% + 26px); width: calc(100% - 52px); height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bleu), var(--ligne-2));
}
.etape-num {
  position: relative; z-index: 2;
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--police-mono); font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(150deg, var(--bleu-2), var(--bleu)); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(36, 86, 214, 0.7);
  transition: transform var(--transition);
}
.etape:hover .etape-num { transform: translateY(-3px) scale(1.05); }
.etape h3 { font-size: 1.04rem; margin-bottom: 6px; }
.etape p { margin: 0; font-size: 0.9rem; color: var(--texte-2); }

.publics-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.public {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 24px 22px; text-align: center;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.public:hover { transform: translateY(-4px); box-shadow: var(--ombre-2); }
.public-ico {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(46, 111, 232, 0.14), rgba(46, 111, 232, 0.05));
  border: 1px solid rgba(46, 111, 232, 0.25); color: var(--bleu);
}
.public-ico svg { width: 22px; height: 22px; }
.public h3 { font-size: 0.98rem; margin-bottom: 4px; }
.public p { margin: 0; font-size: 0.85rem; color: var(--texte-2); }

/* À propos / Nos valeurs */
.apropos-slogan { font-style: italic; color: var(--bleu); font-size: 1.08rem; margin-top: 6px; }
.apropos-texte { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.apropos-texte p { color: var(--texte-2); font-size: 1.05rem; }
.apropos-texte p + p { margin-top: 14px; }
.valeurs-titre {
  text-align: center; font-family: var(--police-mono); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.82rem; color: var(--bleu); margin-bottom: 16px;
}
.valeurs-grille { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }


.zone-bandeau {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(120deg, rgba(46, 111, 232, 0.1), rgba(46, 111, 232, 0.03));
  border: 1px solid rgba(46, 111, 232, 0.3);
  border-radius: var(--rayon); padding: 20px 26px;
}
.zone-bandeau svg { width: 30px; height: 30px; color: var(--bleu); flex: 0 0 auto; }
.zone-bandeau p { margin: 0; color: var(--texte-2); }
.zone-bandeau b { color: var(--navy); }

/* ===== CARTE DES DÉPARTEMENTS (zone d'intervention) ===== */
.zone-carte-wrap { max-width: 560px; margin: 8px auto 0; }
.carte-fr-svg {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 20px 30px rgba(11, 26, 56, 0.16));
}
.carte-fr-deps .dep {
  fill: #e6ebf4; stroke: #ffffff; stroke-width: 0.8;
  transition: fill 0.18s ease;
}
.carte-fr-deps .dep-on { fill: #2e6fe8; stroke: #dbe6fb; stroke-width: 0.7; }
.carte-fr-deps .dep-hq { fill: #0b2350; stroke: #7fb2ff; stroke-width: 1.3; }
.carte-fr-deps .dep:hover { fill: #b9c8e6; cursor: pointer; }
.carte-fr-deps .dep-on:hover { fill: #4d8dff; }
.carte-fr-deps .dep-hq:hover { fill: #12336f; }

.zone-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; margin-top: 28px; }
.zone-leg-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--texte-2); font-weight: 600; }
.zone-leg-carre { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: 0 0 auto; }
.zone-leg-on { background: #2e6fe8; }
.zone-leg-hq { background: #0b2350; border: 1px solid #7fb2ff; }
.zone-leg-off { background: #e6ebf4; border: 1px solid var(--ligne-2); }

/* ===== AVANT / APRÈS (comparateur à curseur) ===== */
.ba-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.ba-carte { margin: 0; }
.ba-slider {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--rayon); background: var(--navy);
  box-shadow: var(--ombre); cursor: ew-resize; touch-action: pan-y; user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-avant-img { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.ba-ligne {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; z-index: 3; box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}
.ba-poignee {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  z-index: 4; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--bleu); border: none; cursor: ew-resize;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(11, 26, 56, 0.35);
}
.ba-poignee:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 12px; z-index: 3; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  padding: 5px 11px; border-radius: 999px;
}
.ba-tag-a { left: 12px; background: rgba(11, 26, 56, 0.72); }
.ba-tag-b { right: 12px; background: rgba(36, 86, 214, 0.9); }
.ba-legende { margin-top: 12px; text-align: center; font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.ba-vide { grid-column: 1 / -1; text-align: center; color: var(--texte-2); font-style: italic; padding: 30px 0; }

/* ===== 8. DEVIS (FORMULAIRE) — bandeau navy pour le contraste ===== */
.devis { background: var(--navy); border-block: 0; }
.devis .eyebrow { color: var(--glow); }
.devis h2 { color: #fff; }
.devis-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.devis-info > p { color: var(--texte-inv-2); margin-bottom: 30px; }

.coord { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.coord-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(148, 178, 255, 0.35); color: var(--glow);
}
.coord-ico svg { width: 21px; height: 21px; }
.coord b, .coord-lien { display: block; font-size: 1.02rem; font-weight: 700; color: #fff; }
.coord-lien:hover { color: var(--glow); }
.coord span { font-size: 0.85rem; color: var(--texte-inv-2); }

.form-carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 20px; padding: 34px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
}
.champ { margin-bottom: 18px; display: flex; flex-direction: column; }
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ label { font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--navy); }
.champ label i { color: var(--rouge); font-style: normal; }
.champ label em { color: var(--texte-2); font-style: normal; font-weight: 400; font-size: 0.82rem; }

.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--ligne-2);
  border-radius: var(--rayon-pt);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
}
.champ input::placeholder, .champ textarea::placeholder { color: #93a3c4; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu); background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 86, 214, 0.16);
}
.champ select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232456d6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
  padding-right: 40px; cursor: pointer;
}
.champ textarea { resize: vertical; min-height: 110px; }

.champ input.invalide, .champ select.invalide, .champ textarea.invalide {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}
.champ-erreur { display: none; font-size: 0.8rem; color: #c92a2e; margin-top: 6px; }

/* Niveau d'urgence — 3 cartes cliquables */
.urgence-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.urgence-carte {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 16px 12px; background: var(--fond); cursor: pointer;
  border: 1.5px solid var(--ligne-2); border-radius: var(--rayon-pt);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
/* Réinitialise le style générique des inputs pour la puce radio */
.urgence-carte input {
  width: 18px; height: 18px; margin: 0; padding: 0;
  accent-color: var(--bleu); cursor: pointer; box-shadow: none;
}
.urgence-carte:hover { border-color: var(--bleu-2); }
.urgence-carte:has(input:checked) {
  border-color: var(--bleu); background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 86, 214, 0.14);
}
.urgence-titre { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.urgence-desc { font-size: 0.8rem; color: var(--texte-2); line-height: 1.35; }

/* Ajout de photos (glisser-déposer) */
.upload-zone {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 22px 18px; text-align: center; cursor: pointer;
  background: var(--fond); color: var(--texte-2);
  border: 1.5px dashed var(--ligne-2); border-radius: var(--rayon-pt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover, .upload-zone.survol { border-color: var(--bleu); background: #fff; }
.upload-zone svg { color: var(--bleu); margin-bottom: 2px; }
.upload-titre { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.upload-sous { font-size: 0.8rem; }
.upload-note { display: block; font-size: 0.78rem; color: var(--texte-2); margin-top: 8px; }
.upload-erreur { display: none; font-size: 0.8rem; color: #c92a2e; margin-top: 8px; }
.upload-erreur.visible { display: block; }
.upload-apercus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.apercu {
  position: relative; width: 76px; height: 76px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--ligne-2);
}
.apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apercu-suppr {
  position: absolute; top: 3px; right: 3px; width: 21px; height: 21px; border-radius: 50%;
  border: none; background: rgba(11, 26, 56, 0.72); color: #fff; font-size: 15px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.apercu-suppr:hover { background: var(--rouge); }
.champ-erreur.visible { display: block; }

/* Piège anti-spam : sorti de l'écran, invisible pour un humain */
.hp-champ {
  position: absolute !important;
  left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-erreur {
  display: none; background: rgba(229, 72, 77, 0.07);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #b02428; border-radius: var(--rayon-pt);
  padding: 12px 15px; font-size: 0.92rem; margin-bottom: 18px;
}
.form-erreur.visible { display: block; }

.form-pied {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.82rem; color: var(--texte-2); margin: 16px 0 0;
}
.form-pied svg { width: 15px; height: 15px; color: var(--bleu); flex: 0 0 auto; }

.confirme { text-align: center; padding: 30px 10px; }
.confirme-coche {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--bleu-2), #1c46b4); color: #fff;
  box-shadow: 0 16px 36px -14px rgba(36, 86, 214, 0.7);
}
.confirme-coche svg { width: 32px; height: 32px; }
.confirme p { color: var(--texte-2); margin-bottom: 22px; }

/* ===== 9. FAQ / CTA FINAL / FOOTER ===== */
.faq-liste { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon-pt); overflow: hidden;
  box-shadow: var(--ombre);
  transition: border-color var(--transition);
}
.faq-item.actif { border-color: rgba(46, 111, 232, 0.45); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--navy);
  background: none; border: 0; cursor: pointer; padding: 18px 22px;
}
.faq-q svg { width: 19px; height: 19px; color: var(--bleu); flex: 0 0 auto; transition: transform var(--transition); }
.faq-item.actif .faq-q svg { transform: rotate(180deg); }
.faq-r { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-r p { padding: 0 22px 20px; margin: 0; color: var(--texte-2); font-size: 0.95rem; }

.cta-final { padding-top: 20px; }
.cta-carte {
  text-align: center; padding: 58px 34px;
  border-radius: 24px;
  background:
    radial-gradient(560px 300px at 50% -20%, rgba(77, 141, 255, 0.4), transparent 70%),
    linear-gradient(170deg, var(--navy-2), var(--navy));
  border: 1px solid var(--navy);
  box-shadow: var(--ombre-2);
}
.cta-carte h2 { color: #fff; margin-bottom: 10px; }
.cta-carte p { color: var(--texte-inv-2); margin-bottom: 28px; }

footer {
  background: var(--navy);
  color: var(--texte-inv-2);
  padding: 60px 0 26px;
  font-size: 0.92rem;
}
footer .marque, footer .marque:hover { color: #fff; }
footer .marque-nom span { color: var(--texte-inv-2); }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-marque p { color: var(--texte-inv-2); margin-top: 18px; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #cbd7ef; margin-bottom: 16px; font-family: var(--police-mono); font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: var(--texte-inv-2); margin: 0 0 10px; }
.footer-col a:hover { color: var(--glow); }
.footer-bas {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(148, 178, 255, 0.18); padding-top: 22px;
  color: var(--texte-inv-2); font-size: 0.83rem;
}

/* ===== 10. PAGES LÉGALES / ERREUR ===== */
.page-legale { padding: 70px 0 90px; }
.page-legale h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.page-legale h2 { font-size: 1.25rem; margin-top: 36px; }
.page-legale p, .page-legale li { color: var(--texte-2); }
.page-legale strong { color: var(--navy); }
.legal-maj { font-family: var(--police-mono); font-size: 0.8rem; color: var(--texte-2); }
.legal-liste { margin: 6px 0 0; padding-left: 20px; }
.legal-liste li { margin-bottom: 4px; }
.legal-note {
  background: rgba(46, 111, 232, 0.07); border: 1px solid rgba(46, 111, 232, 0.3);
  border-radius: var(--rayon-pt); padding: 14px 18px; font-size: 0.9rem; margin-top: 36px;
}
.lien-retour { font-weight: 600; }

.page-erreur { padding: 110px 0 130px; }
.erreur-texte { color: var(--texte-2); font-size: 1.08rem; margin-bottom: 30px; }

/* ===== 11. RESPONSIVE ===== */
@media (max-width: 1020px) {
  .hero-grille { grid-template-columns: 1fr; gap: 52px; }
  .hero-visuel { max-width: 520px; margin-inline: auto; width: 100%; }
  .services-grille { grid-template-columns: repeat(2, 1fr); }
  .situations-grille, .publics-grille { grid-template-columns: repeat(2, 1fr); }
  .valeurs-grille { grid-template-columns: repeat(3, 1fr); }
  /* Le chemin devient une timeline verticale */
  .etapes-grille { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .etape {
    text-align: left; padding: 0 0 30px;
    display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start;
  }
  .etape-num { grid-row: 1 / span 2; margin: 0; }
  .etape h3 { grid-column: 2; }
  .etape p { grid-column: 2; }
  .etape:not(:last-child)::before {
    top: 52px; left: 26px; transform: translateX(-50%);
    width: 3px; height: calc(100% - 52px);
    background: linear-gradient(180deg, var(--bleu), var(--ligne-2));
  }
  .devis-grille { grid-template-columns: 1fr; gap: 42px; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .carrousel-btn.prec { left: 10px; }
  .carrousel-btn.suiv { right: 10px; }
  .hero-badge-haut { left: 10px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .topbar-item { display: none; }
  .barre-stats .conteneur { grid-template-columns: repeat(2, 1fr); }

  .nav-liens {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ligne);
    padding: 14px 20px 20px;
    box-shadow: 0 20px 40px -20px rgba(11, 26, 56, 0.3);
  }
  .nav-liens.ouvert { display: flex; }
  .nav-liens > a:not(.btn):not(.nav-tel) { padding: 12px 4px; border-bottom: 1px solid var(--ligne); }
  .nav-tel { padding: 12px 4px; }
  .btn-nav { margin-top: 10px; }
  .burger { display: block; }

  .services-grille, .garanties-grille, .etapes-grille,
  .situations-grille, .publics-grille { grid-template-columns: 1fr; }
  .valeurs-grille { grid-template-columns: repeat(2, 1fr); }
  .urgence-choix { grid-template-columns: 1fr; }
  .champ-double { grid-template-columns: 1fr; }
  .form-carte { padding: 24px 20px; }
  .hero { padding: 44px 0 56px; }
  .hero-boutons .btn { flex: 1 1 100%; }
  .zone-bandeau { flex-direction: column; text-align: center; }
  .footer-grille { grid-template-columns: 1fr; gap: 28px; }

  /* Carrousel : bien visible sur mobile, boutons dans l'image */
  .carrousel-btn { width: 40px; height: 40px; }
  .carrousel-diapo img { aspect-ratio: 4 / 4.4; }
  .hero-badge b { font-size: 0.82rem; }
  .hero-badge em { font-size: 0.73rem; }
}

/* ---- Très petits téléphones (≤ 400px : iPhone SE, vieux Android) ---- */
@media (max-width: 400px) {
  .conteneur { width: min(1180px, 100% - 28px); }   /* marges latérales réduites */
  .section { padding: 44px 0; }
  .form-carte { padding: 20px 16px; }
  .cta-carte { padding: 44px 20px; }
  .hero-boutons { gap: 10px; }
  .btn { font-size: 0.94rem; padding-inline: 16px; }
  .barre-stats .conteneur { grid-template-columns: 1fr; }  /* stats une par ligne */
}

/* ---- Téléphones en mode paysage (peu de hauteur) ---- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 28px 0 34px; }
  .section { padding: 38px 0; }
  .nav .conteneur { min-height: 58px; }
  .nav-liens.ouvert { max-height: 78vh; overflow-y: auto; }  /* menu défilable */
}

/* ---- Grands écrans (≥ 1600px) : on laisse respirer le contenu ---- */
@media (min-width: 1600px) {
  body { font-size: 17.5px; }
  .conteneur { width: min(1340px, 100% - 80px); }
  .section { padding: 96px 0; }
}

/* ---- Très grands écrans / téléviseurs & 4K (≥ 2100px) ---- */
@media (min-width: 2100px) {
  body { font-size: 19px; }
  .conteneur { width: min(1560px, 100% - 120px); }
  .section { padding: 120px 0; }
  h1 { font-size: 3.6rem; }
}

/* ---- Zones sûres : encoches & barres système (iPhone, Android récents) ----
 * Nécessite viewport-fit=cover dans la balise <meta viewport>. On décale
 * les bords fixes pour que rien ne passe sous l'encoche ou la barre. */
@supports (padding: max(0px)) {
  .topbar .conteneur,
  .nav .conteneur,
  .footer-bas {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  footer { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}

/* ---- Écrans à forte densité tactile : cibles de clic confortables ---- */
@media (hover: none) and (pointer: coarse) {
  .btn, .faq-q, .carrousel-btn, .nav-liens > a, .footer-col a { min-height: 44px; }
  .faq-q { align-items: center; }
}
