/* ══════════════════════════════════════════════════════════════
   MICROTIQ — Site particuliers · THÈME CLAIR MODERNE
   Feuille unique. Base commune en tête ; les variantes d'une
   page à l'autre sont scoppées via la classe du body
   (body.pg-index, body.pg-prestations, …).
   Charte : bleu #2563EB · violet #9333EA · vert #059669
   sur fonds très clairs, à la manière du portail microtiq.com.
   ══════════════════════════════════════════════════════════════ */

/* ─── Jetons ──────────────────────────────────────────────── */
:root {
  --bg:          #F5F8FD;
  --bg-2:        #EEF3FA;
  --surface:     #ffffff;
  --carte-bg:    rgba(255, 255, 255, .8);
  --carte-hover: #ffffff;
  --bordure:     rgba(15, 23, 42, .09);
  --bordure-vive: rgba(37, 99, 235, .4);
  --texte:       #0f172a;
  --texte-2:     #46546b;
  --texte-3:     #7d8ba1;
  --bleu:        #2563eb;
  --bleu-2:      #3b82f6;
  --violet:      #9333ea;
  --violet-2:    #a855f7;
  --vert:        #059669;
  --jaune:       #f59e0b;
  --rouge:       #dc2626;
  --orange:      #ea580c;
  --police-texte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titre: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --police-mono:  "JetBrains Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --degrade:      linear-gradient(120deg, #2563eb, #9333ea);
  --rayon:        18px;
  --ombre-carton: 0 20px 45px -22px rgba(15, 23, 42, .18);
  --lueur-bleue:  0 10px 28px -10px rgba(37, 99, 235, .4);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 88% -10%, rgba(59, 130, 246, .1), transparent 65%),
    radial-gradient(800px 700px at -10% 110%, rgba(168, 85, 247, .08), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  line-height: 1.12;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  color: var(--texte);
}

h1 { font-size: clamp(2.35rem, 4.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; vertical-align: middle; }

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

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #c6d3e8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #9fb4d6; }

.lien-evitement {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--bleu); color: #fff; font-weight: 700;
  padding: .7rem 1.2rem; border-radius: 10px; transition: top .25s;
}
.lien-evitement:focus { top: 1rem; }

/* ─── Utilitaires ──────────────────────────────────────────── */
.conteneur { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.6rem); }

.section { padding: clamp(3.4rem, 7vw, 5.6rem) 0; position: relative; }
.section-xl { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.texte-degrade {
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.centre { text-align: center; margin-top: 2.2rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--police-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--texte-3);
  margin: 0 0 1.1rem;
}
.kicker-vert { color: var(--vert); }

/* Révélation au scroll (activée par scripts.js) */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delai, 0ms);
}
.rv.visible { opacity: 1; transform: none; }
body:not(.avec-js) .rv { opacity: 1; transform: none; }

/* ─── En-tête / navigation ─────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  transition: box-shadow .3s;
}
/* Verre dépoli sur un pseudo-élément : un backdrop-filter directement sur
   .entete ferait de l'entête le bloc conteneur des position:fixed de
   navigation (menu mobile piégé dans la barre d'entête). */
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background .3s;
}
.entete.compact {
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .25);
}
.entete.compact::before { background: rgba(255, 255, 255, .92); }
.entete-in {
  max-width: 1240px; margin-inline: auto;
  padding: 0 clamp(1.1rem, 4vw, 2.6rem);
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  transition: min-height .3s;
}
.entete.compact .entete-in { min-height: 60px; }

.marque { display: inline-flex; align-items: center; gap: .8rem; }
.marque-texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque-nom {
  font-family: var(--police-titre); font-weight: 700;
  font-size: 1.42rem; letter-spacing: 0; color: var(--texte);
  line-height: 1;
}
.marque-accent { color: var(--bleu); }
.marque-sous {
  font-family: var(--police-mono); font-size: .58rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--texte-3);
  margin-top: 3px;
}
.marque-tag {
  padding: .24rem .6rem;
  font-family: var(--police-mono); font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--bleu); background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 999px; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-liste { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav-lien {
  position: relative; font-size: .9rem; font-weight: 600; color: var(--texte-2);
  padding: .4rem 0; transition: color .25s;
}
.nav-lien::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--degrade); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.nav-lien:hover, .nav-lien.nav-actif { color: var(--texte); }
.nav-lien:hover::after, .nav-lien.nav-actif::after { transform: scaleX(1); }
.nav-lien.nav-actif { color: var(--bleu); }

.nav-outils { display: flex; align-items: center; gap: .6rem; }
.nav-retour {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--police-titre); font-size: .8rem; font-weight: 700; color: var(--violet);
  padding: .5rem .95rem; border: 1px solid rgba(147, 51, 234, .32); border-radius: 999px;
  background: #fff; text-decoration: none; white-space: nowrap;
  transition: box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.nav-retour:hover {
  border-color: var(--violet); background: rgba(147, 51, 234, .05); color: #7c3aed;
  box-shadow: 0 12px 26px -16px rgba(147, 51, 234, .55);
}
.nav-appel { position: relative; }
.nav-tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--police-mono); font-size: .85rem; font-weight: 700; color: var(--bleu);
  padding: .55rem 1rem; border: 1px solid rgba(37, 99, 235, .3); border-radius: 999px;
  background: #fff; cursor: pointer;
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.nav-tel:hover { border-color: var(--bleu); box-shadow: var(--lueur-bleue); background: rgba(37, 99, 235, .04); }
.nav-caret { transition: transform .25s; }
.nav-appel.ouvert .nav-caret { transform: rotate(180deg); }
.nav-appel-panneau {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 90;
  min-width: 302px; padding: .55rem;
  display: grid; gap: .25rem;
  background: #fff; border: 1px solid var(--bordure); border-radius: 16px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, .22);
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.nav-appel.ouvert .nav-appel-panneau,
.nav-appel:focus-within .nav-appel-panneau,
.nav-appel:hover .nav-appel-panneau { opacity: 1; transform: none; pointer-events: auto; }
.nav-appel-ligne {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .7rem;
  padding: .6rem .7rem; border-radius: 12px; text-decoration: none;
  transition: background .2s;
}
.nav-appel-ligne:hover { background: rgba(37, 99, 235, .05); }
.nav-appel-agence {
  font-family: var(--police-titre); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--texte-3);
}
.nav-appel-num { font-family: var(--police-mono); font-size: .92rem; font-weight: 700; color: var(--bleu); }
.nav-appel-hor { grid-column: 1 / -1; font-family: var(--police-mono); font-size: .6rem; color: var(--texte-3); }

.burger {
  display: none; width: 44px; height: 44px; flex: none;
  background: #fff; border: 1px solid var(--bordure); border-radius: 12px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--texte); transition: transform .3s, opacity .3s;
}
body.menu-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
body.menu-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--police-texte); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.7rem; border-radius: 14px; border: none; cursor: pointer;
  transition: transform .25s, box-shadow .3s, background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-plein {
  color: #fff;
  background: linear-gradient(120deg, #2563eb, #4f46e5 70%, #9333ea);
  box-shadow: 0 12px 30px -12px rgba(37, 99, 235, .55);
}
.btn-plein:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(37, 99, 235, .7), 0 6px 18px -6px rgba(147, 51, 234, .4);
}

.btn-fantome {
  color: var(--texte); background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
}
.btn-fantome:hover { border-color: rgba(37, 99, 235, .45); box-shadow: var(--lueur-bleue); color: var(--bleu); }
.btn-tel-agence {
  font-size: .64em; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; opacity: .6;
}

.btn-mini {
  font-size: .82rem; padding: .55rem 1.05rem; border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .12); background: #fff;
  color: var(--texte);
}
.btn-mini:hover { border-color: var(--bleu); box-shadow: var(--lueur-bleue); color: var(--bleu); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-actions .btn { margin: 0; }

/* ─── Hero (commun) ───────────────────────────────────────── */
.hero {
  position: relative; overflow: clip;
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  padding: clamp(3rem, 7vh, 5.5rem) 0 0;
  isolation: isolate;
}
.hero-page { min-height: auto; padding: clamp(3rem, 7vh, 5rem) 0 0; }

.hero-in { position: relative; z-index: 3; display: grid; gap: 2.6rem; }
body.pg-index .hero-in,
body.pg-prestations .hero-in,
body.pg-tarifs .hero-in,
body.pg-contact .hero-in { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; }

.hero-grille-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(75% 65% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 40%, #000 30%, transparent 100%);
  animation: glisse-grille 40s linear infinite;
}
@keyframes glisse-grille { to { background-position: 46px 46px, 46px 46px; } }

.hero-lueur { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.hero-lueur-a { width: 460px; height: 460px; top: -120px; right: 6%; background: rgba(59, 130, 246, .14); animation: flotte 11s ease-in-out infinite; }
.hero-lueur-b { width: 420px; height: 420px; bottom: -150px; left: 2%; background: rgba(168, 85, 247, .12); animation: flotte 13s ease-in-out infinite reverse; }
@keyframes flotte { 50% { transform: translateY(34px) scale(1.05); } }

.hero-fondu {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 2;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-texte h1 { margin-bottom: .55em; }
.hero-intro { max-width: 56ch; color: var(--texte-2); font-size: 1.06rem; }

.hero-gages {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  list-style: none; margin: 2rem 0 0; padding: 0;
  font-size: .84rem; color: var(--texte-2);
}
.hero-gages li { display: inline-flex; align-items: center; gap: .5rem; }
.gage-puce {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: rgba(5, 150, 105, .12); color: var(--vert);
  font-size: .62rem; font-weight: 800;
}

.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

/* ─── Hero : illustration établi (accueil) ──────────────────── */
.hero-visuel { position: relative; max-width: 620px; width: 100%; justify-self: end; }
.hero-scene {
  margin: 0;
  background: linear-gradient(160deg, #ffffff, #f3f7ff);
  border: 1px solid var(--bordure);
  border-radius: 26px;
  box-shadow: var(--ombre-carton);
  padding: clamp(.8rem, 2vw, 1.6rem);
}
.il-hero { display: block; width: 100%; height: auto; }

.hero-etiquette {
  position: absolute; right: -4px; bottom: 30px; z-index: 5;
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(37, 99, 235, .25); border-radius: 16px;
  padding: .85rem 1.2rem; backdrop-filter: blur(10px);
  box-shadow: var(--ombre-carton), var(--lueur-bleue);
  animation: flotte 9s ease-in-out infinite;
}
.etiquette-chiffre { margin: 0; font-family: var(--police-titre); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--texte); }
.etiquette-texte { margin: 0; font-family: var(--police-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--texte-2); line-height: 1.45; }

/* ─── Fenêtre terminal (fenêtre sombre « atelier ») ────────── */
.terminal {
  position: relative; z-index: 3;
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .5);
  overflow: hidden;
}
.terminal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 15px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
  opacity: .45;
}
.terminal-barre {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem 1rem;
  background: rgba(148, 163, 184, .08);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.terminal-point { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tp-1 { background: #ff5f56; } .tp-2 { background: var(--jaune); } .tp-3 { background: #27c93f; }
.terminal-titre {
  margin-left: .6rem; font-family: var(--police-mono);
  font-size: .7rem; letter-spacing: .08em; color: #7d8ba1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.terminal-corps { padding: 1.15rem 1.25rem 1.35rem; font-family: var(--police-mono); font-size: clamp(.72rem, 1.7vw, .84rem); }
.term-ligne { margin: 0 0 .42em; color: #b6c5db; letter-spacing: .02em; min-height: 1.2em; }
.term-cmd { color: #7cb7ff; font-weight: 500; }
.term-ok { color: #b6c5db; }
.term-points { color: rgba(125, 139, 161, .8); }
.term-check { color: #34d399; font-weight: 700; }
.term-statut { margin-top: .45em; color: #34d399; font-weight: 700; }
.term-err { color: #ff8695; font-weight: 700; }
.terminal-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .1), transparent);
  animation: balayage 4.6s ease-in-out infinite;
}
@keyframes balayage {
  0% { transform: translateY(-90px); opacity: 0; }
  25% { opacity: 1; }
  90%, 100% { transform: translateY(420px); opacity: 0; }
}

/* mini terminal en overlay sur l'illustration du hero */
.terminal-mini {
  position: absolute; left: -14px; bottom: 26px; z-index: 6;
  width: min(320px, 88%);
  animation: flotte 10s ease-in-out infinite;
}

/* curseur clignotant du terminal en cours de frappe */
.terminal.frappe .term-ligne.derniere::after {
  content: "▋"; margin-left: 2px; color: #7cb7ff;
  animation: clignote 1s steps(1) infinite;
}
@keyframes clignote { 50% { opacity: 0; } }

/* ─── Bandeau matériel défilant (sous le hero) ─────────────── */
.bandeau-equipements {
  border-block: 1px solid rgba(15, 23, 42, .06);
  background: rgba(37, 99, 235, .035);
  padding: 2.3rem 0; overflow: hidden;
}
.eq-piste { animation-duration: 38s; }
.eq-groupe { gap: clamp(2.2rem, 4vw, 3.6rem); padding-right: clamp(2.2rem, 4vw, 3.6rem); }

/* objets détourés sans fond : taille pilotée par --fl-taille,
   flottement vertical légèrement incliné, phase par --fl */
.eq-item {
  display: inline-flex; align-items: center; flex: none;
  filter: drop-shadow(0 16px 14px rgba(15, 23, 42, .17));
  animation: eq-flotte 5.4s ease-in-out infinite;
  animation-delay: var(--fl, 0ms);
}
.eq-item svg { display: block; height: var(--fl-taille, 110px); width: auto; }
@keyframes eq-flotte {
  0%, 100% { transform: translateY(4px) rotate(-1.6deg); }
  50%      { transform: translateY(-13px) rotate(2deg); }
}
.bandeau-equipements:hover .marquee-piste { animation-play-state: paused; }
.bandeau-equipements:hover .eq-item { animation-play-state: paused; }

/* ─── Chiffres (accueil) ──────────────────────────────────── */

/* ─── Têtes de section ────────────────────────────────────── */
.section-tete { max-width: 760px; margin-bottom: clamp(1.9rem, 4vw, 3rem); }
.section-intro { color: var(--texte-2); font-size: 1.02rem; max-width: 62ch; }

/* ─── Cartes (base) + projecteur ──────────────────────────── */
.carte {
  position: relative; overflow: hidden;
  background: var(--carte-bg);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.7rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -26px rgba(15, 23, 42, .3);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s, box-shadow .35s, background .35s;
}
.carte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .07), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.carte:hover { border-color: rgba(37, 99, 235, .32); background: var(--carte-hover); box-shadow: var(--ombre-carton); transform: translateY(-4px); }
.carte:hover::after { opacity: 1; }

.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }

/* ─── Vignettes & illustrations ─────────────────────────────── */
.illus, .illus-page { display: block; width: 100%; height: auto; }

.pilier-vignette {
  height: 148px; overflow: hidden; flex: none;
  margin: -1.7rem -1.7rem 1.3rem;
  padding: 1rem 1.2rem 0;
  background: linear-gradient(170deg, #ffffff, #eff5ff);
  border-bottom: 1px solid var(--bordure);
  border-radius: 17px 17px 0 0;
}
.pilier-vignette svg { width: 100%; height: 100%; }

.vignette-grande {
  width: clamp(210px, 30%, 280px); height: auto;
  margin: 0; padding: .9rem 1.1rem;
  background: linear-gradient(170deg, #ffffff, #eef4ff);
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
}

.hero-illus {
  background: linear-gradient(160deg, #ffffff, #f3f7ff);
  border: 1px solid var(--bordure);
  border-radius: 26px;
  box-shadow: var(--ombre-carton);
  padding: clamp(1rem, 2.4vw, 1.8rem);
  justify-self: end;
  width: min(420px, 100%);
}

/* animations des illustrations */
.il-flotte-a { animation: il-flotte 7s ease-in-out infinite; }
.il-flotte-b { animation: il-flotte 9s ease-in-out infinite reverse; }
@keyframes il-flotte { 50% { transform: translateY(-9px); } }

.il-scintille { animation: il-scintille 2.6s ease-in-out infinite; }
.il-scintille-2 { animation-delay: 1.3s; }
@keyframes il-scintille { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.il-led { animation: il-led-blink 1.6s steps(1) infinite; }
@keyframes il-led-blink { 50% { opacity: .2; } }

.il-drift { animation: il-tourne 7s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes il-tourne { to { transform: rotate(360deg); } }
.il-tourne-rev { animation: il-tourne-rev 5s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes il-tourne-rev { to { transform: rotate(-360deg); } }

.il-ejecte { animation: il-ejecte 3.4s ease-in-out infinite; }
@keyframes il-ejecte {
  0%, 55% { transform: translateX(0); opacity: 1; }
  70% { transform: translateX(10px); opacity: 1; }
  85%, 100% { transform: translateX(0); opacity: 1; }
}

/* établi du hero (page accueil) */
.il-balaye { animation: il-balaye 4.2s ease-in-out infinite; }
@keyframes il-balaye {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50% { transform: translateX(214px); opacity: .75; }
}
.il-progresse { animation: il-progresse 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes il-progresse { 0%, 100% { transform: scaleX(.76); } 55% { transform: scaleX(1); } }
.il-poignee { animation: il-poignee 5.5s ease-in-out infinite; }
@keyframes il-poignee { 0%, 100% { transform: translateX(0); } 55% { transform: translateX(34px); } }
.il-ombre-pin { animation: il-pinscale 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes il-pinscale { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ─── Piliers (accueil) ───────────────────────────────────── */
.pilier { padding: 0 1.7rem 1.7rem; }
.pilier h3 { margin: 0 0 .5rem; font-size: 1.28rem; }
.pilier p { color: var(--texte-2); font-size: .94rem; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.15rem; font-weight: 700; font-size: .88rem; color: var(--bleu);
}
.lien-fleche svg { transition: transform .3s; }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ─── Demarche (accueil + prestations) ────────────────────── */
.section-demarche {
  background: rgba(37, 99, 235, .035);
  border-block: 1px solid rgba(15, 23, 42, .06);
}
.demarche {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
}
.etape {
  position: relative; padding: 1.5rem 1.4rem 1.6rem;
  background: var(--carte-bg); border: 1px solid var(--bordure); border-radius: var(--rayon);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.etape:hover { border-color: rgba(37, 99, 235, .35); transform: translateY(-4px); box-shadow: var(--ombre-carton); }
.etape::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 3px;
  background: var(--degrade); border-radius: 2px; opacity: .55;
}
.etape-entete {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.etape-num {
  display: block; font-family: var(--police-mono); font-weight: 700;
  font-size: 1.6rem; color: rgba(37, 99, 235, .4); letter-spacing: .04em; line-height: 1;
  transition: color .3s;
}
.etape:hover .etape-num { color: var(--bleu); }
.etape-icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: var(--bleu);
  background: rgba(37, 99, 235, .08);
}
.etape h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.etape p { color: var(--texte-2); font-size: .87rem; margin: 0; }

/* ─── Atelier / carte mère animée (accueil) ───────────────── */
.section-atelier { overflow: hidden; }
.atelier-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.atelier-visuel {
  margin: 0; padding: 1.5rem;
  background: linear-gradient(160deg, #ffffff, #eff5ff);
  border: 1px solid var(--bordure); border-radius: 24px;
  box-shadow: var(--ombre-carton);
}
.carte-mere { display: block; width: 100%; height: auto; }

.mb-trace { stroke-dasharray: 5 13; animation: mb-flux 1.5s linear infinite; }
.mb-trace-v { animation-duration: 2.6s; animation-direction: reverse; }
@keyframes mb-flux { to { stroke-dashoffset: -36; } }

.mb-cpu-coeur { animation: mb-cpu-pulse 2.4s ease-in-out infinite; }
@keyframes mb-cpu-pulse { 50% { opacity: .5; stroke-width: 3.2; } }

.mb-led { fill: #059669; animation: mb-led-blink 1.3s steps(1) infinite; }
.mb-led-v { fill: #9333ea; animation-delay: .4s; }
.mb-led-d { fill: #2563eb; animation-delay: .8s; }
@keyframes mb-led-blink { 50% { opacity: .15; } }

.mb-ondes { transform-box: fill-box; transform-origin: center; animation: mb-ondes-expansion 3s ease-out infinite; }
@keyframes mb-ondes-expansion {
  0% { opacity: .8; transform: scale(.4); stroke-width: 2.5; }
  100% { opacity: 0; transform: scale(2.1); stroke-width: .5; }
}

.mb-scanl { animation: mb-scan 5s ease-in-out infinite; }
@keyframes mb-scan {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(350px); opacity: 0; }
}

.mb-texte { font-family: var(--police-mono); font-size: 13px; fill: #64748b; letter-spacing: 2.5px; }
.mb-texte-petit { font-size: 11.5px; fill: #8593a8; }

.atelier-texte .kicker { margin-bottom: .9rem; }
.atelier-texte h2 { margin-bottom: .7rem; }
.atelier-texte > p { color: var(--texte-2); max-width: 58ch; }
.liste-points { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: 1.15rem; }
.liste-points h3 { margin: 0 0 .2rem; font-size: 1.02rem; color: var(--texte); display: flex; align-items: center; gap: .6rem; }
.liste-points h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; flex: none;
  background: var(--degrade); box-shadow: 0 0 10px rgba(37, 99, 235, .45);
}
.liste-points p { margin: 0; color: var(--texte-2); font-size: .92rem; }

/* ─── Photographies : galerie atelier + bandeaux piliers ─── */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-tuile {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--bordure); border-radius: 20px;
  box-shadow: 0 16px 38px -28px rgba(15, 23, 42, .35);
  height: 260px;
}
.photo-tuile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.photo-tuile:hover img { transform: scale(1.045); }
.photo-tuile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(4, 10, 20, .38));
}
.pt-grande { grid-column: span 2; height: 340px; }
.pt-large  { grid-column: 1 / -1; height: 225px; }
.photo-tuile figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: .42rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, .08);
  font-family: var(--police-mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--texte);
}

.bloc-photo {
  position: relative; margin: 0 0 1.8rem; overflow: hidden;
  border: 1px solid var(--bordure); border-radius: 18px;
  box-shadow: 0 16px 38px -28px rgba(15, 23, 42, .35);
  height: 250px;
}
.bloc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.bloc-pilier:hover .bloc-photo img { transform: scale(1.03); }

@media (max-width: 1024px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .pt-grande { grid-column: span 2; }
  .pt-large { grid-column: 1 / -1; }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .galerie { grid-template-columns: 1fr; }
  .pt-grande, .pt-large { grid-column: auto; }
  .photo-tuile, .pt-grande { height: 230px; }
  .pt-large { height: 200px; }
  .bloc-photo { height: 200px; }
}

/* ─── Bandeau marques défilant ────────────────────────────── */
.bandeau-marques {
  border-block: 1px solid rgba(15, 23, 42, .06);
  background: rgba(37, 99, 235, .035);
  padding: 1.1rem 0; overflow: hidden;
}
.marquee-zone { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-piste { display: flex; width: max-content; animation: defilement 30s linear infinite; }
.marquee-piste:hover { animation-play-state: paused; }
.marquee-groupe { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.marque-item {
  font-family: var(--police-mono); font-size: .92rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--texte-3);
  white-space: nowrap; transition: color .3s;
}
.marque-item::after { content: "✦"; margin-left: 2.6rem; color: rgba(37, 99, 235, .4); font-size: .65rem; }
.marque-item:hover { color: var(--bleu); }
@keyframes defilement { to { transform: translateX(-50%); } }

/* ─── Tarifs ─────────────────────────────────────────────── */
.section-extrait-tarifs {
  background: rgba(37, 99, 235, .035);
  border-block: 1px solid rgba(15, 23, 42, .06);
}
.extraits { margin-bottom: 0; }
.tarif-extrait { display: flex; flex-direction: column; gap: .5rem; justify-content: center; text-align: center; padding: 2rem 1.6rem; }
.te-libelle { font-family: var(--police-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--texte-2); margin: 0; }
.te-prix {
  margin: 0; font-family: var(--police-titre); font-size: 2rem; font-weight: 700;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.te-prix small { display: block; font-family: var(--police-texte); font-size: .78rem; font-weight: 500; color: var(--texte-3); -webkit-text-fill-color: var(--texte-3); margin-top: .3rem; }
.te-phare { border-color: rgba(37, 99, 235, .4); box-shadow: 0 16px 36px -18px rgba(37, 99, 235, .45); }

.engagements {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.engagement {
  padding: 1.1rem 1.3rem; border-left: 3px solid rgba(37, 99, 235, .5);
  background: var(--carte-bg); border-radius: 0 14px 14px 0;
  font-size: .88rem; color: var(--texte-2);
  box-shadow: 0 10px 26px -24px rgba(15, 23, 42, .3);
}
.engagement-num {
  display: block; font-family: var(--police-mono); font-weight: 700;
  font-size: 1.15rem; background: var(--degrade); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: .25rem; letter-spacing: .04em;
}

.section-groupe-tarifs { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.section-groupe-tarifs .section-tete { margin-bottom: 1.8rem; }
.grille-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 1.3rem; }
.grille-tarifs-plein { grid-template-columns: 1fr; }

.carte-tarif { display: flex; flex-direction: column; align-items: flex-start; }
.carte-tarif:hover { transform: translateY(-5px); }

.tarif-badge {
  position: absolute; top: 1rem; right: 1rem; margin: 0;
  font-family: var(--police-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding: .32rem .7rem; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, #2563eb, #9333ea);
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .6);
}
.tarif-badge-vert { background: linear-gradient(120deg, #059669, #10b981); box-shadow: 0 6px 16px -8px rgba(5, 150, 105, .55); }

.tarif-nom { font-size: 1.2rem; margin: 0 0 .35rem; padding-right: 6.5rem; }
.tarif-accroche { color: var(--texte-2); font-size: .92rem; margin: 0 0 1.3rem; }
.tarif-prix {
  margin: 0 0 .2rem; font-family: var(--police-titre);
  font-size: 1.9rem; font-weight: 700; color: var(--texte);
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tarif-note { margin: 0 0 1.2rem; color: var(--texte-3); font-size: .84rem; }
.tarif-points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.tarif-points li { display: flex; gap: .6rem; align-items: flex-start; color: var(--texte-2); font-size: .88rem; }
.point-check {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 19px; height: 19px; border-radius: 50%; margin-top: .12rem;
  background: rgba(5, 150, 105, .1); color: var(--vert);
}
.tarif-cta { margin-top: auto; }

.tarif-phare { border-color: rgba(37, 99, 235, .45); box-shadow: 0 18px 44px -20px rgba(37, 99, 235, .45); }

.sur-devis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sur-devis-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--carte-bg); border: 1px solid var(--bordure); border-radius: var(--rayon);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.sur-devis-item:hover { border-color: rgba(37, 99, 235, .35); transform: translateX(6px); box-shadow: var(--ombre-carton); }
.sd-num { font-family: var(--police-mono); font-size: 1.4rem; font-weight: 700; color: rgba(37, 99, 235, .4); }
.sur-devis-item h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.sur-devis-item p { margin: 0; color: var(--texte-2); font-size: .9rem; }
.note-tarifs { margin-top: 2.2rem; text-align: center; color: var(--texte-3); font-size: .84rem; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: .9rem; max-width: 820px; }
.faq-item {
  background: var(--carte-bg); border: 1px solid var(--bordure); border-radius: 15px;
  padding: 0; transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(37, 99, 235, .4); box-shadow: 0 14px 34px -24px rgba(37, 99, 235, .45); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  font-weight: 600; font-size: .98rem; color: var(--texte);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--police-mono); font-weight: 700; color: var(--bleu); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--texte-2); font-size: .93rem; margin: 0; }

/* ─── Agences (accueil + contact) ────────────────────────── */
.carte-agence { padding: 1.8rem; }
.carte-agence h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.agence-adresse { color: var(--texte-2); font-size: .95rem; }
.agence-horaires {
  display: flex; align-items: center; gap: .55rem;
  color: var(--bleu); font-family: var(--police-mono); font-size: .8rem; margin: .9rem 0 1.2rem;
}
.agence-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.agence-carte {
  margin-top: 1.2rem; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--bordure);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .35);
}
.agence-carte iframe {
  display: block; width: 100%; height: 230px; border: 0;
  filter: saturate(.82);
}
/* ─── Vente & montage (accueil) ─────────────────────────── */
.vente-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vente-visuel svg { display: block; width: 100%; height: auto; }

/* carte en plein cadre sur mobile / tablette étroite */
@media (max-width: 980px) {
  .agence-carte iframe { height: 210px; }
  .vente-grille { grid-template-columns: 1fr; }
  .vente-visuel { order: -1; }
}

/* ─── CTA finale ─────────────────────────────────────────── */
.section-cta-finale { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.cta-finale {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.8rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 3.5rem);
  background: radial-gradient(100% 160% at 50% 0%, rgba(59, 130, 246, .12), transparent 60%), var(--carte-bg);
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 26px;
  box-shadow: 0 20px 50px -30px rgba(37, 99, 235, .4);
}
.cta-finale::before, .cta-finale::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid rgba(37, 99, 235, .5);
}
.cta-finale::before { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.cta-finale::after  { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.cta-finale h2 { margin-bottom: .6rem; }
.cta-finale .hero-actions { justify-content: center; margin-top: 1.7rem; }
.cta-intro { color: var(--texte-2); max-width: 52ch; margin-inline: auto; }

/* ─── Page prestations ────────────────────────────────────── */
body.pg-prestations .pilier-zone { display: grid; gap: 1.6rem; padding-top: clamp(2.6rem, 6vw, 4.2rem); }
.bloc-pilier {
  position: relative;
  background: var(--carte-bg);
  border: 1px solid var(--bordure);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 16px 40px -32px rgba(15, 23, 42, .35);
  transition: border-color .35s, box-shadow .35s;
}
.bloc-pilier:hover { border-color: rgba(37, 99, 235, .3); box-shadow: var(--ombre-carton); }
.pilier-nouveau {
  position: absolute; top: 1.6rem; right: 1.6rem; margin: 0;
  font-family: var(--police-mono); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding: .35rem .8rem; border-radius: 999px;
  background: linear-gradient(120deg, #ea580c, #f59e0b); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(234, 88, 12, .55);
  animation: pilier-nouveau-pulse 2.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes pilier-nouveau-pulse { 50% { box-shadow: 0 6px 26px -4px rgba(234, 88, 12, .8); } }

.pilier-tete { display: flex; gap: clamp(1.3rem, 3vw, 1.9rem); align-items: center; margin-bottom: 1.7rem; flex-wrap: wrap; }
.pilier-num { font-family: var(--police-mono); font-size: .8rem; color: rgba(37, 99, 235, .5); margin: .1rem 0 .35rem; letter-spacing: .3em; }
.pilier-accroche { color: var(--texte-2); margin: 0; max-width: 62ch; }
.pilier-tete h2 { margin-bottom: .4rem; }

.pilier-points {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 1.6rem;
}
.point-item { display: flex; align-items: center; gap: .7rem; color: var(--texte-2); font-size: .93rem; }
.pilier-points .point-check { background: rgba(37, 99, 235, .09); color: var(--bleu); }
.pilier-pied { margin: 0; }

/* ─── Page contact ───────────────────────────────────────── */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1.5rem; align-items: start; }

.formulaire {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem;
  padding: clamp(1.7rem, 4vw, 2.5rem);
}
.formulaire h2 { margin-bottom: 1.5rem; }
.form-succes, .form-alerte, .champ-entier, .champ-explique, .formulaire .btn { grid-column: 1 / -1; }

.champ { display: flex; flex-direction: column; gap: .4rem; }
.champ label {
  font-family: var(--police-mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; color: var(--texte-2);
}
.champ label small { text-transform: none; letter-spacing: .02em; color: var(--texte-3); font-weight: 500; }
.champ label span { color: var(--bleu); }

.champ input, .champ select, .champ textarea {
  font-family: var(--police-texte); font-size: .95rem; color: var(--texte);
  background: #f8faff;
  border: 1px solid rgba(15, 23, 42, .13); border-radius: 13px;
  padding: .78rem 1rem; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-3); opacity: .75; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: rgba(37, 99, 235, .3); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
  background: #fff;
}
.champ select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem; cursor: pointer;
}
.champ select:invalid { color: var(--texte-3); }
.champ option { background: #fff; color: var(--texte); }

.erreur { margin: 0; color: var(--rouge); font-size: .8rem; font-weight: 600; }

.form-succes {
  border: 1px solid rgba(5, 150, 105, .35); border-radius: 14px;
  background: rgba(5, 150, 105, .06); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem;
}
.form-succes-titre { margin: 0 0 .35rem; color: var(--vert); font-weight: 700; font-family: var(--police-titre); }
.form-succes p { margin: 0; color: var(--texte-2); font-size: .92rem; }
.form-alerte {
  border: 1px solid rgba(220, 38, 38, .35); border-radius: 14px;
  background: rgba(220, 38, 38, .06); color: #9f1d1d; padding: 1rem 1.3rem; margin-bottom: 1.2rem;
  font-size: .92rem;
}
.champ-explique { font-size: .78rem; color: var(--texte-3); margin: -.2rem 0 .4rem; }

.champ-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-cotes { display: grid; gap: 1.3rem; }
.carte-astuce { border-style: dashed; }
.carte-astuce h3 { margin-bottom: .4rem; }
.carte-astuce p { color: var(--texte-2); font-size: .92rem; }

/* ─── Mentions légales / 404 ──────────────────────────────── */
.page-legale { display: grid; gap: 1.3rem; max-width: 860px; }
.bloc-legal { padding: 1.6rem 1.8rem; }
.bloc-legal h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; margin-bottom: .8rem; }
.bloc-legal h2::before { content: "//"; font-family: var(--police-mono); color: var(--bleu); font-size: 1rem; }
.bloc-legal p { color: var(--texte-2); font-size: .95rem; }
.bloc-legal strong { color: var(--texte); }
.bloc-legal a { color: var(--bleu); font-weight: 600; }
.bloc-legal a:hover { text-decoration: underline; }
.a-completer {
  border: 1px dashed rgba(245, 158, 11, .6); border-radius: 10px;
  background: rgba(245, 158, 11, .07); color: #92600a;
  padding: .7rem 1rem; font-size: .86rem;
}

.err404 { text-align: center; }
.terminal-404 { max-width: 640px; margin: 0 auto 2.2rem; text-align: left; }
.err404-actions { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }

/* ─── Pied de page ────────────────────────────────────────── */
.pied {
  position: relative; border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(238, 243, 250, .8);
}
.pied-fx { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .55), rgba(147, 51, 234, .55), transparent); }
.pied-grille {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr;
  gap: 2rem; padding: clamp(2.5rem, 5vw, 3.8rem) 0 2rem;
}
.pied-marque .marque { margin-bottom: 1rem; }
.pied-baseline { color: var(--texte-2); font-size: .92rem; max-width: 40ch; margin-bottom: 1.2rem; }
.pied-univers { color: var(--texte-3); font-size: .86rem; margin: 0; }
.pied-univers a { color: var(--bleu); font-weight: 600; }
.pied-univers a:hover { text-decoration: underline; }

.pied-titre {
  font-family: var(--police-mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--texte-3);
  margin: 0 0 1rem;
}
.pied-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied-liste a { color: var(--texte-2); font-size: .92rem; transition: color .25s; }
.pied-liste a:hover { color: var(--bleu); }

.pied-adr { color: var(--texte-2); font-size: .9rem; margin: 0 0 .7rem; }
.pied-tel { display: inline-block; color: var(--bleu); font-family: var(--police-mono); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.pied-tel:hover { text-decoration: underline; }
.pied-horaires { color: var(--texte-3); font-size: .82rem; margin: 0; }

.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem;
  border-top: 1px solid rgba(15, 23, 42, .08);
  padding: 1.2rem 0 1.5rem; font-size: .8rem; color: var(--texte-3);
}
.pied-bas p { margin: 0; }
.pied-tuning { font-family: var(--police-mono); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.pg-index .hero-in,
  body.pg-prestations .hero-in,
  body.pg-tarifs .hero-in,
  body.pg-contact .hero-in { grid-template-columns: 1fr; }
  .hero-visuel { justify-self: center; max-width: 560px; }
  .hero-illus { justify-self: center; }
  .hero-page .hero-intro { max-width: 62ch; }
  .atelier-grille { grid-template-columns: 1fr; }
  .demarche { grid-template-columns: repeat(2, 1fr); }
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .contact-grille { grid-template-columns: 1fr; }
  .terminal-mini { left: auto; right: 10px; }
}

/* Entête dense sur les largeurs intermédiaires (burger à partir de 860px) */
@media (max-width: 1080px) {
  .entete-in { gap: .9rem; }
  .nav { gap: 1rem; }
  .nav-liste { gap: 1rem; }
  .nav-outils { gap: .45rem; }
  .nav-retour { font-size: .74rem; padding: .5rem .7rem; }
  .nav-tel { font-size: .8rem; padding: .5rem .8rem; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
    width: min(88vw, 360px);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(37, 99, 235, .14);
    transform: translateX(102%);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 2.2rem; padding: 6.5rem 2.2rem 2.2rem;
    overflow-y: auto; overflow-x: hidden;
  }
  body.menu-ouvert .nav { transform: none; box-shadow: -30px 0 60px rgba(15, 23, 42, .18); }
  body.menu-ouvert::before {
    content: ""; position: fixed; inset: 0; z-index: 94;
    background: rgba(15, 23, 42, .35); backdrop-filter: blur(3px);
  }
  .nav-liste { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .nav-lien { font-size: 1.2rem; }
  .nav-outils { margin-top: auto; width: 100%; flex-direction: column; align-items: stretch; gap: .6rem; }
  .nav-retour { justify-content: center; }
  .nav-appel { width: 100%; }
  .nav-appel .nav-tel { display: none; }
  .nav-appel-panneau {
    position: static; width: 100%; min-width: 0; opacity: 1; transform: none; pointer-events: auto;
    display: grid; gap: .6rem; padding: 0; background: transparent;
    border: 0; box-shadow: none;
  }
  .nav-appel-ligne {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
    padding: .75rem 1.1rem; border: 1px solid rgba(37, 99, 235, .3); border-radius: 999px;
  }
  .nav-appel-hor { flex-basis: 100%; }
  .marque-tag { display: none; }
}

@media (max-width: 720px) {
  .demarche { grid-template-columns: 1fr; }
  .pilier-tete .vignette-grande { width: 100%; }
  .sur-devis-item { grid-template-columns: auto 1fr; }
  .sur-devis-item .btn { grid-column: 2; justify-self: start; }
  .tarif-nom { padding-right: 0; }
  .tarif-badge { position: static; align-self: flex-start; margin-bottom: .8rem; }
  .terminal-mini { width: min(300px, 92%); bottom: 14px; }
  .hero-etiquette { display: none; }
}

@media (max-width: 560px) {
  .engagements { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .grille-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-finale .hero-actions .btn { width: auto; min-width: 180px; }
  .formulaire { grid-template-columns: 1fr; }
  .marque-sous { display: none; }
  .agence-actions .btn { flex: 1 1 40%; }
  .pilier-vignette { height: 120px; }
}

/* ─── Mouvement réduit ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .marquee-piste { animation: none; }
  .hero-lueur, .hero-etiquette, .terminal-scan, .mb-scanl, .mb-ondes, .mb-trace,
  .il-flotte-a, .il-flotte-b, .il-scintille, .il-led, .il-drift, .il-ejecte,
  .il-balaye, .il-progresse, .il-poignee { animation: none; }
}
