/* ==========================================================================
   M'phone — feuille de style principale
   Charte : technologique. Bleu électrique, dégradés, halos, grille technique,
   chasse fixe sur les données. Space Grotesk pour les titres, IBM Plex Mono
   pour tout ce qui se mesure, Montserrat pour le reste.
   Voir CLAUDE.md à la racine pour les règles complètes.
   ========================================================================== */

/* --------------------------------------------------------------- Polices */
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Grotesk';
  src: url('../assets/fonts/grotesk-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Grotesk';
  src: url('../assets/fonts/grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('../assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('../assets/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  /* accents — communs aux deux thèmes */
  --blue:   #2f6bff;   /* accent principal : CTA, liens, icônes */
  --blue-h: #1f56e0;   /* survol */
  --cyan:   #16c8e8;   /* fin des dégradés, unités dans les chiffres */
  --violet: #7c5cff;   /* dégradés uniquement */
  --amber:  #ffb648;   /* étoiles de notation, rien d'autre */
  --ok:     #25d07a;   /* pastille de disponibilité */

  /* typographie */
  --disp: 'Grotesk', 'Montserrat', sans-serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Plex', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font: var(--sans);

  /* rayons */
  --r:      16px;   /* cartes */
  --r-btn:  12px;   /* boutons, encarts */
  --r-hero: 22px;   /* visuel du hero */
  --r-cta:  26px;   /* bandeau CTA */
  --r-pill: 980px;  /* pastilles */

  /* mouvement */
  --ease: cubic-bezier(.25, .1, .3, 1);
  --t-fast: 140ms;
  --t-base: 300ms;
  --t-slow: 750ms;
}

html[data-theme="light"] {
  --bg:       #f6f8fd;   /* fond principal — bleuté, pas blanc pur */
  --bg2:      #eef2fb;   /* section alternée */
  --surf:     #ffffff;   /* cartes */
  --line:     #e2e8f5;   /* bordures, séparateurs, grille technique */
  --ink:      #0d1526;   /* texte principal */
  --soft:     #5a6782;   /* texte secondaire */
  --deep:     #0b1220;   /* bandeaux nuit, footer, CTA */
  --deep-ink: #c3cee2;
  --glow:     rgba(47, 107, 255, .20);
  --chip:     #eaf0ff;
}

html[data-theme="dark"] {
  --bg: #0b1220; --bg2: #0e1728; --surf: #131d33; --line: #22304d;
  --ink: #eef3fc; --soft: #93a2bf; --deep: #060b15; --deep-ink: #b9c6de;
  --glow: rgba(47, 107, 255, .42); --chip: #17223b;
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }
figure { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--disp); font-weight: 700; }

h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}

h3 { font-size: 19px; margin: 0 0 8px; }

/* Mot en dégradé bleu → cyan — signature typographique du h1 */
.grad {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

section { padding: 88px 0; }
.section-alt { background: var(--bg2); }

.head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.head p { color: var(--soft); font-size: clamp(15.5px, 1.8vw, 17px); margin: 0; }

/* Surtitre en mono — signe de mesure, de donnée vérifiée */
.kick {
  display: block; font-family: var(--mono); font-weight: 600; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* -------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn);
  padding: 12px 24px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-base) ease,
              border-color var(--t-base) ease,
              box-shadow var(--t-base) var(--ease);
}
.btn-primary {
  background: linear-gradient(100deg, var(--blue), #3f7dff); color: #fff;
  box-shadow: 0 10px 26px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-primary:hover {
  background: linear-gradient(100deg, var(--blue-h), var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.975); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ------------------------------------------------- Barre de progression */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  z-index: 100;
}

/* --------------------------------------------------------------- Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 253, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease, background var(--t-base) ease;
}
header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(13, 21, 38, .35);
  background: rgba(246, 248, 253, .93);
}
header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: 1120px; margin: 0 auto;
}
header .logo { height: 28px; width: auto; transform-origin: left center; transition: transform var(--t-base) var(--ease); }
header.scrolled .logo { transform: scale(.92); }
.logo-link { display: block; }

nav { display: flex; gap: 32px; }
nav a {
  position: relative; font-size: 14.5px; font-weight: 500;
  text-decoration: none; transition: color .2s ease;
}
nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}
nav a:hover { color: var(--blue); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 820px) { nav { display: none; } }

/* ------------------------------------------------- Entrées / révélations */
.rise {
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
body.loaded .rise { opacity: 1; transform: none; }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.stagger.in > * { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h, 72px));
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 72px;
  overflow: hidden;
}

/* Grille technique en fond, estompée sur les bords — référence au plan */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 62% 34%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 62% at 62% 34%, #000 0%, transparent 72%);
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 52px;
}

.hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.hero h1 span.rise { display: inline-block; }

.kick.eyebrow { margin-bottom: 20px; }

.hero .lead {
  font-family: var(--sans);
  font-size: clamp(16px, 2vw, 19px); color: var(--soft);
  max-width: 560px; margin: 0 0 28px;
}

/* Pastille de statut — point vert pulsé */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink);
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px 7px 12px; margin-bottom: 22px;
}
.status i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none;
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0   rgba(37, 208, 122, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 208, 122, 0); }
  100% { box-shadow: 0 0 0 0   rgba(37, 208, 122, 0); }
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  background: var(--surf); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; font-size: 11.5px; font-weight: 500; color: var(--soft);
}
.pill svg { fill: var(--amber); flex: none; }

/* Le visuel encadré comme un écran qui émet de la lumière */
.hero-visual { position: relative; }

.screen {
  position: relative; border-radius: var(--r-hero); padding: 10px;
  background: linear-gradient(150deg, var(--blue), var(--violet) 55%, var(--cyan));
  box-shadow: 0 40px 80px -34px var(--glow);
}
.screen .in { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.1; background: #000; }
.screen picture, .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen::after {
  content: ''; position: absolute; inset: -32px; border-radius: 40px; z-index: -1;
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%); filter: blur(6px);
}

/* Encart de diagnostic, posé en débord sur le visuel */
.diagnostic {
  position: absolute; left: -16px; bottom: 24px; z-index: 2;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 12px 16px; box-shadow: 0 20px 40px -22px rgba(13, 21, 38, .3);
  min-width: 152px;
}
.diagnostic .kick { margin: 0 0 8px; }
.diagnostic p {
  display: flex; align-items: center; gap: 8px;
  margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink);
}
.diagnostic i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

@media (max-width: 920px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .diagnostic { left: 12px; bottom: -18px; }
}

/* ------------------------------------------------------- Bandeau de chiffres */
.stats {
  position: relative; overflow: hidden;
  background: var(--deep); color: #fff;
}
.stats::after {
  content: ''; position: absolute; top: -180px; right: -120px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}
.stats ul {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 44px 0;
}
.stat { text-align: center; }
.stat .val {
  font-family: var(--disp); font-weight: 700; font-size: 34px; letter-spacing: -.03em;
  color: #fff;
}
.stat .val span { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--cyan); margin-left: 2px; }
.stat .legend { font-family: var(--sans); font-size: 12.5px; color: #fff; opacity: .75; margin: 4px 0 0; }
@media (max-width: 780px) { .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }

/* ------------------------------------------------------------- Services */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .s-grid { grid-template-columns: 1fr; } }

.s-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px;
  transition: opacity .7s var(--ease), transform .45s var(--ease),
              box-shadow .45s var(--ease), background var(--t-base) ease, border-color var(--t-base) ease;
}
.s-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.s-card:hover::before { transform: scaleX(1); }
.s-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -28px rgba(13, 21, 38, .25);
}
.s-icon { width: 42px; height: 42px; color: var(--blue); margin-bottom: 18px; transition: transform .45s var(--ease); }
.s-card:hover .s-icon { transform: scale(1.08) rotate(-3deg); }
.s-card p.s-desc { font-size: 14px; color: var(--soft); margin: 0 0 16px; }

.specs { margin: 0 0 20px; }
.specs li {
  position: relative; padding-left: 16px; padding-top: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--soft);
  border-top: 1px dashed var(--line);
}
.specs li:first-child { border-top: none; padding-top: 0; }
.specs li:not(:first-child) { margin-top: 8px; }
.specs li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--blue);
}
.specs li:first-child::before { top: 5px; }

.s-price {
  margin: auto 0 0 !important; font-family: var(--mono); font-size: 21px; font-weight: 600;
  color: var(--ink) !important;
}
.s-price .pre { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.s-price .cur { font-size: 15px; color: var(--soft); }

/* ---------------------------------------------------------------- Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px;
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--chip);
  font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--blue);
  margin: 0 0 18px;
}
.step h3 { font-size: 19px; }
.step p { font-size: 14.5px; color: var(--soft); margin: 0; }

/* --------------------------------------------------- Qui vient chez vous */
.who { background: var(--bg2); }
.who-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .who-grid { grid-template-columns: 1fr; gap: 28px; } }

.who-photo {
  aspect-ratio: 4 / 5; border-radius: var(--r);
  border: 1px dashed var(--line);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 28px; color: var(--soft); font-size: 13.5px;
}
.who-text h2 { text-align: left; }
.who-text p { color: var(--soft); font-size: 15.5px; }
.who-text blockquote {
  font-family: var(--disp); font-weight: 600; font-size: 20px; color: var(--ink);
  margin: 22px 0 0; padding-left: 20px; border-left: 3px solid var(--blue);
}

/* ------------------------------------------------------------------ Avis */
.r-summary { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 0 auto 10px; }
.r-score { font-family: var(--disp); font-size: 42px; font-weight: 700; margin: 0; line-height: 1; }
.r-score span { font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--soft); }
.r-count { font-family: var(--mono); font-size: 13px; color: var(--soft); margin: 0; }

.r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .r-grid { grid-template-columns: 1fr; } }

.r-card {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  transition: opacity .7s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.r-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -28px rgba(13, 21, 38, .22); }

.r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.r-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.r-name { font-size: 14px; font-weight: 600; margin: 0; }
.r-city { font-family: var(--mono); font-size: 11.5px; color: var(--soft); margin: 0; }

.stars { display: flex; gap: 2px; margin-bottom: 14px; }
.stars svg, .stars-lg svg { fill: var(--amber); }
.stars svg {
  opacity: 0; transform: scale(.5);
  transition: opacity .4s var(--ease), transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.r-grid.in .stars svg { opacity: 1; transform: none; }
.r-grid.in .stars svg:nth-child(1) { transition-delay: .18s; }
.r-grid.in .stars svg:nth-child(2) { transition-delay: .25s; }
.r-grid.in .stars svg:nth-child(3) { transition-delay: .32s; }
.r-grid.in .stars svg:nth-child(4) { transition-delay: .39s; }
.r-grid.in .stars svg:nth-child(5) { transition-delay: .46s; }
.stars-lg { display: flex; gap: 3px; justify-content: center; }
.r-card blockquote { font-size: 15px; margin-bottom: 0; }

.r-foot {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--soft);
}
.r-foot svg { flex: none; }
.r-date { margin-left: auto; }

/* ------------------------------------------------------- Zone d'intervention */
.zone { background: var(--bg2); text-align: center; }
.zone .head { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 18px;
}

/* -------------------------------------------------------------- CTA final */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--deep); color: #fff; text-align: center;
  border-radius: var(--r-cta); margin: 0 24px; padding: 72px 24px;
  opacity: 0; transform: scale(.96);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.cta-band.in { opacity: 1; transform: none; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 46px 46px;
}
.cta-band::after {
  content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}
.cta-band h2, .cta-band p, .cta-band .btn { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 10px; }
.cta-band p { color: var(--deep-ink); font-size: 16px; margin: 0 0 30px; }

/* ----------------------------------------------------------------- Footer */
footer { background: var(--deep); color: var(--deep-ink); padding: 64px 0 32px; }
footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 780px) { footer .top { grid-template-columns: 1fr; gap: 32px; } }
footer .logo { height: 26px; width: auto; margin-bottom: 16px; }
footer .tagline { font-size: 14px; max-width: 260px; margin: 0; }
footer .f-title {
  font-family: var(--mono); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 16px; font-weight: 600;
}
footer li { margin-bottom: 11px; font-size: 14px; }
footer a { text-decoration: none; transition: color .2s ease; }
footer a:hover { color: var(--cyan); }
footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 12.5px; }
footer .bottom p { margin: 0; }

/* ------------------------------------------------ Page intérieure (devis) */
.page-hero { position: relative; padding: 96px 0 56px; text-align: center; overflow: hidden; }
.page-hero .lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--soft);
  max-width: 560px; margin: 0 auto;
}

/* -------------------------------------------- Page légale (mentions, CGV) */
.legal { padding: 0 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 21px; margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--soft); font-size: 15px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .todo { color: var(--blue); font-weight: 600; }

.form-card {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 40px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 30px 60px -34px rgba(13, 21, 38, .16);
}

.form-alert {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 16px 18px; font-size: 14px; margin-bottom: 28px;
}
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-alert p { margin: 0; }
.form-alert.success { border-color: var(--blue); background: var(--chip); }
.form-alert.success svg { color: var(--blue); }
.form-alert.error { border-color: var(--line); background: var(--bg2); }
.form-alert.error svg { color: var(--soft); }
.form-alert[hidden] { display: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 7px; }
.field .optional { color: var(--soft); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surf); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow);
}

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 26px; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--blue); }
.consent label { font-size: 13px; color: var(--soft); }
.consent a { color: var(--blue); text-decoration: underline; }

.btn-block { display: flex; width: 100%; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 760px) {
  .hero { padding: 56px 0 48px; }
  .hero-actions { margin-bottom: 20px; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  section { padding: 64px 0; }
  .head { margin-bottom: 38px; }
  .cta-band { margin: 0 16px; padding: 56px 22px; border-radius: 22px; }
  header .bar { padding: 12px 18px; }
  header .logo { height: 24px; }
  .wrap { padding: 0 18px; }
  .page-hero { padding: 56px 0 40px; }
  .form-card { padding: 28px 22px; }
}

/* ----------------------------------------- Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal, .stagger > *, .stars svg, .cta-band {
    opacity: 1 !important; transform: none !important;
  }
  .status i { box-shadow: none !important; }
  .progress { display: none; }
}
