/* =========================================================================
   Flashelp — Site vitrine
   Feuille de styles unique. Charte extraite de l'app (DESIGN.md).
   Pour changer les couleurs : modifier les variables CSS ci-dessous (:root).
   ========================================================================= */

/* L'attribut [hidden] doit toujours masquer, même sur les éléments dont le
   CSS impose un display (ex. .hero-trust en flex). Utilisé par main.js pour
   masquer compteurs / badge note / section avis quand l'API ne fournit pas de
   donnée réelle (jamais de valeur inventée). */
[hidden] { display: none !important; }

/* ----------------------------------------------------------------------- */
/*  1. Variables de charte                                                  */
/* ----------------------------------------------------------------------- */
:root {
  /* Orange (Flasher / client) */
  --orange:        #F07200;
  --orange-dark:   #C45D00;
  --orange-light:  #FFF3E8;
  --orange-end:    #FB923C;

  /* Bleu (Helper) */
  --blue:          #1B4FBE;
  --blue-dark:     #0F3494;
  --blue-light:    #EEF3FF;
  --blue-mid:      #C5D4F8;
  --blue-end:      #2563EB;

  /* Vert : uniquement comme couleur de succès (charte app) */
  --green:         #22C55E;

  /* Neutres */
  --bg:            #fbfaf8;
  --bg-alt:        #f4f1ec;
  --card:          #ffffff;
  --ink:           #111827;
  --sub:           #6b7280;
  --border:        #e5e9f0;
  --placeholder:   #c0c8d8;

  /* Dégradés */
  --grad-orange:   linear-gradient(145deg, #C45D00, #F07200 60%, #FB923C);
  --grad-blue:     linear-gradient(145deg, #0F3494, #1B4FBE 60%, #2563EB);

  /* Rayons & ombres */
  --radius-sm:     12px;
  --radius:        18px;
  --radius-lg:     24px;
  --shadow-sm:     0 4px 16px rgba(17, 24, 39, .06);
  --shadow:        0 12px 32px rgba(17, 24, 39, .10);
  --shadow-orange: 0 12px 28px rgba(240, 114, 0, .28);

  /* Mise en page */
  --maxw:          1140px;
  --header-h:      72px;

  /* Typo */
  --font-title:    'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ----------------------------------------------------------------------- */
/*  2. Reset & base                                                         */
/* ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* Accessibilité : focus visible */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue-end);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------------- */
/*  3. Boutons                                                              */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--grad-orange);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(240, 114, 0, .36); }

.btn-blue {
  color: #fff;
  background: var(--grad-blue);
  box-shadow: 0 12px 28px rgba(27, 79, 190, .28);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Boutons de stores (App Store / Google Play) */
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn span > span { display: block; }
.store-btn .store-small { font-size: 10px; line-height: 1.1; opacity: .85; }
.store-btn .store-big { font-family: var(--font-title); font-weight: 700; font-size: 15px; line-height: 1.2; }

/* ----------------------------------------------------------------------- */
/*  4. En-tête / navigation                                                 */
/* ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 48px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--sub);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span::before { transform: translate(-50%, -8px); }
.burger span::after  { transform: translate(-50%, 6px); }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger.open span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ----------------------------------------------------------------------- */
/*  5. Sections génériques                                                  */
/* ----------------------------------------------------------------------- */
section { position: relative; }

.section-pad { padding: 88px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.blue  { color: var(--blue);  background: var(--blue-light); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p  { color: var(--sub); font-size: 18px; margin: 0; }

/* ----------------------------------------------------------------------- */
/*  6. Hero                                                                 */
/* ----------------------------------------------------------------------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--orange-light), transparent 60%),
    radial-gradient(700px 500px at -5% 20%, var(--blue-light), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -1px;
}
.hero h1 .hl { color: var(--orange); }
.hero h1 .hl-blue { color: var(--blue); }
.hero .lead {
  font-size: 19px;
  color: var(--sub);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 500;
}
.stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: var(--grad-blue);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--grad-orange); }

/* Maquette de téléphone (CSS pur) */
.hero-visual { display: grid; place-items: center; }
.phone {
  width: 290px;
  background: #fff;
  border-radius: 38px;
  padding: 14px;
  box-shadow: var(--shadow), 0 0 0 10px #fff, 0 0 0 12px var(--border);
  transform: rotate(2.5deg);
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.phone-top {
  background: var(--grad-orange);
  color: #fff;
  padding: 22px 18px 28px;
}
.phone-top .hi { font-size: 13px; opacity: .9; }
.phone-top .q  { font-family: var(--font-title); font-weight: 700; font-size: 19px; margin-top: 2px; }
.phone-search {
  background: #fff; color: var(--sub);
  border-radius: 12px; padding: 11px 14px;
  font-size: 13px; margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
}
.phone-body { padding: 16px; }
.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.mini-card .ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 19px;
  background: var(--orange-light);
}
.mini-card:nth-child(2) .ico { background: var(--blue-light); }
.mini-card .t { font-weight: 700; font-size: 14px; }
.mini-card .s { font-size: 12px; color: var(--sub); }
.mini-card .price { margin-left: auto; font-weight: 800; color: var(--orange); font-size: 14px; }

/* Cadre de téléphone pour les vraies captures d'écran */
.device {
  width: 270px;
  max-width: 78vw;
  background: #0d1117;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(17,24,39,.06);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}
.hero-visual .device { transform: rotate(2deg); }

/* ----------------------------------------------------------------------- */
/*  7. Bandeau de stats (compteurs)                                         */
/* ----------------------------------------------------------------------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  background: linear-gradient(120deg, #FB923C, #F07200);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat .num .suffix { -webkit-text-fill-color: #fff; color: #fff; }
.stat .label { margin-top: 8px; color: #cbd2dc; font-size: 14px; font-weight: 500; }

/* ----------------------------------------------------------------------- */
/*  8. Comment ça marche                                                    */
/* ----------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step .step-n {
  position: absolute;
  top: -18px; left: 26px;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 18px;
  color: #fff; background: var(--grad-orange);
  box-shadow: var(--shadow-orange);
}
.step:nth-child(2) .step-n { background: var(--grad-blue);  box-shadow: 0 12px 28px rgba(27,79,190,.28); }
.step h3 { font-size: 20px; margin-top: 16px; }
.step p { color: var(--sub); margin: 0; }

/* ----------------------------------------------------------------------- */
/*  9. Services                                                             */
/* ----------------------------------------------------------------------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform .18s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .ico {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 27px;
  background: var(--orange-light);
}
.service:nth-child(even) .ico { background: var(--blue-light); }
/* Image réelle de catégorie (Chantier F) : remplit le carré .ico, fallback emoji sinon */
.service .ico-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.service h3 { font-size: 16px; margin: 0 0 4px; }
.service p { font-size: 13px; color: var(--sub); margin: 0; }

/* ----------------------------------------------------------------------- */
/*  10. Avis                                                                */
/* ----------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Layout Avis : capture profil à gauche + avis empilés à droite */
.reviews-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.reviews-visual { display: grid; place-items: center; }
.reviews-visual .device { transform: rotate(2deg); }
.reviews-col { grid-template-columns: 1fr; }
.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review .stars { font-size: 15px; margin-bottom: 12px; }
.review p { color: var(--ink); font-size: 15px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review .who .av {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: var(--grad-blue);
}
/* Code couleur des rôles : Flasher = orange, Helper = bleu */
.review .who .av.flasher { background: var(--grad-orange); }
.review .who .av.helper  { background: var(--grad-blue); }
.review .who .name { font-weight: 700; font-size: 14px; }
.review .who .role { font-size: 12px; color: var(--sub); }

/* ----------------------------------------------------------------------- */
/*  11. Devenir Helper (section verte)                                      */
/* ----------------------------------------------------------------------- */
.helper {
  background: var(--grad-blue);
  color: #fff;
  overflow: hidden;
}
.helper::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 90% 10%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.helper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.helper .eyebrow { color: #fff; background: rgba(255,255,255,.18); }
.helper h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.helper .lead { color: rgba(255,255,255,.92); font-size: 18px; max-width: 520px; }
.helper-points { display: grid; gap: 14px; margin: 24px 0 30px; }
.helper-points li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.helper-points .chk {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px; background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.helper .btn-ghost { color: var(--blue-dark); border-color: #fff; }
.helper .btn-ghost:hover { color: var(--blue-dark); border-color: #fff; }

.helper-stats {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.helper-stats .hs-row { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.helper-stats .hs-row:last-child { border-bottom: none; }
.helper-stats .hs-num { font-family: var(--font-title); font-weight: 800; font-size: 34px; }
.helper-stats .hs-txt { color: rgba(255,255,255,.9); font-size: 15px; }

.helper-visual { display: grid; place-items: center; }
.helper-visual .device { transform: rotate(-2deg); }

/* ----------------------------------------------------------------------- */
/*  12. Avantages                                                           */
/* ----------------------------------------------------------------------- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.perk .ico {
  width: 50px; height: 50px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--orange-light);
}
.perk:nth-child(even) .ico { background: var(--blue-light); }
.perk h3 { font-size: 17px; margin: 0 0 4px; }
.perk p { font-size: 14px; color: var(--sub); margin: 0; }

/* ----------------------------------------------------------------------- */
/*  13. FAQ (accordéon)                                                     */
/* ----------------------------------------------------------------------- */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--ink);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .plus {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px; background: var(--orange-light); color: var(--orange);
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  transition: transform .25s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { color: var(--sub); padding: 0 22px 20px; margin: 0; }

/* ----------------------------------------------------------------------- */
/*  14. CTA final                                                           */
/* ----------------------------------------------------------------------- */
.cta-final { padding: 96px 0; }
.cta-box {
  background: var(--grad-orange);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 50% -20%, rgba(255,255,255,.25), transparent 60%);
}
.cta-box h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); position: relative; }
.cta-box p { color: rgba(255,255,255,.95); font-size: 18px; max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-box .store-btns { justify-content: center; position: relative; }

/* ----------------------------------------------------------------------- */
/*  15. Pied de page                                                        */
/* ----------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #cbd2dc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand b { color: var(--orange-end); }
.footer-brand p { max-width: 320px; font-size: 14px; color: #94a0b0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.18); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: #94a0b0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #7a8696;
}
.footer-bottom a { color: #94a0b0; }
.footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------------------- */
/*  16. Pages légales & 404                                                 */
/* ----------------------------------------------------------------------- */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sub); font-weight: 600; font-size: 14px; margin-bottom: 24px;
}
.legal .back:hover { color: var(--orange); }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--sub); font-size: 14px; margin-bottom: 36px; }
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.legal-card h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-card p,
.legal-card li { color: #374151; font-size: 15.5px; }
.legal-card ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.legal-card ol { padding-left: 22px; margin: 0 0 1em; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--blue); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }
.legal-card .todo {
  background: var(--orange-light);
  border: 1px dashed var(--orange);
  color: var(--orange-dark);
  padding: 2px 7px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
}

/* Page 404 */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(700px 400px at 80% 0%, var(--orange-light), transparent 60%),
    radial-gradient(600px 400px at 10% 30%, var(--blue-light), transparent 55%);
}
.error-page .code {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(80px, 18vw, 150px);
  line-height: 1;
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: clamp(26px, 4vw, 36px); margin: 10px 0 12px; }
.error-page p { color: var(--sub); font-size: 18px; max-width: 460px; margin: 0 auto 28px; }

/* ----------------------------------------------------------------------- */
/*  17. Animations au scroll (reveal)                                       */
/* ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------- */
/*  18. Menu mobile                                                         */
/* ----------------------------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 28px 24px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-title); font-weight: 700; font-size: 20px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 18px; }

/* ----------------------------------------------------------------------- */
/*  19. Responsive                                                          */
/* ----------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .helper-grid { grid-template-columns: 1fr; gap: 36px; }
  .helper-visual { order: -1; }
  .reviews-layout { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: block; }
  .section-pad { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-card { padding: 26px 22px; }
  .cta-box { padding: 44px 24px; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
}

/* ----------------------------------------------------------------------- */
/*  Formulaire de contact (Chantier E)                                      */
/* ----------------------------------------------------------------------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--bg-alt);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Honeypot : hors-écran, JAMAIS display:none (certains bots l'ignorent). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 14px; font-weight: 600; margin: 0; }
.form-status.success { color: var(--green); }
.form-status.error { color: #C0392B; }
.form-privacy { font-size: 12px; color: var(--sub); margin: 16px 0 0; line-height: 1.5; }
.form-privacy a { color: var(--blue); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px 18px; }
}
