/* =====================================================================
   DESIGN 2026 — chargé APRÈS style.css. Il modernise l'apparence sans
   toucher au contenu. Les couleurs restent celles de la marque.
   ===================================================================== */

:root {
  --fond: #0F1C16;
  --fond-2: #13241C;          /* surfaces légèrement plus claires */
  --carte: #162A21;
  --bord: rgba(200, 245, 66, 0.12);
  --bord-doux: rgba(255, 255, 255, 0.08);
  --vert: #C8F542;
  --vert-doux: rgba(200, 245, 66, 0.14);
  --texte: #FFFFFF;
  --texte-doux: #B9C6BF;
  --rayon: 22px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,245,66,0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(200,245,66,0.05), transparent 60%),
    var(--fond);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--vert); color: var(--fond); }

/* ---------- En-tête collant, flouté ---------- */
.entete-2026 {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(15, 28, 22, 0.72);
  border-bottom: 1px solid var(--bord-doux);
}
.entete-2026 .entete { padding-top: 12px; padding-bottom: 12px; }
.entete-2026 .logo { height: 54px; }
.entete-2026 .menu a:not(.bouton):not(.tel-entete) { padding: 6px 2px; position: relative; }
.entete-2026 .menu a:not(.bouton):not(.tel-entete)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--vert); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.entete-2026 .menu a:not(.bouton):hover::after { transform: scaleX(1); }

/* ---------- Boutons ---------- */
.bouton { transition: transform .15s ease, box-shadow .2s ease; box-shadow: 0 8px 30px rgba(200,245,66,0.18); }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(200,245,66,0.28); filter: none; }
.bouton-fantome {
  display: inline-block; padding: 14px 22px; border-radius: 999px; text-decoration: none;
  color: var(--texte); border: 1px solid var(--bord-doux); font-weight: 600;
}
.bouton-fantome:hover { border-color: var(--vert); color: var(--vert); }

/* ---------- Haut de page (héros) ---------- */
.heros {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.pastille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px;
  background: var(--vert-doux); color: var(--vert); border: 1px solid var(--bord);
}
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 12px var(--vert); }
.heros h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.03em; margin: 18px 0 20px; }
.heros .intro { max-width: 560px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.heros-confiance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--texte-doux); font-size: 15px; }
.heros-confiance span::before { content: "✓ "; color: var(--vert); font-weight: 600; }

/* ---------- Illustration : téléphone ---------- */
.telephone {
  position: relative; width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 16;
  border-radius: 44px; padding: 14px; background: #0A130F;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 0 8px #0B1611, 0 0 90px rgba(200,245,66,0.12);
}
.ecran { height: 100%; border-radius: 32px; background: #F4F6F3; overflow: hidden; color: #1B2520; font-size: 13px; }
.ecran-recherche { margin: 14px; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); color: #4A5550; }
.ecran-carte {
  height: 30%; margin: 0 14px 10px; border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #E6EDE4;
  position: relative;
}
.epingle { position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #9AA59F; }
.epingle.vous { background: #0F1C16; box-shadow: 0 0 0 4px rgba(200,245,66,.9); }
.resultat { margin: 0 14px 8px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.resultat b { display: block; font-size: 13px; }
.resultat .etoiles { color: #E8A317; letter-spacing: 1px; }
.resultat small { color: #6B7570; }
.resultat.vous { outline: 2px solid var(--vert); background: #FBFFF0; }
.etiquette-flottante {
  position: absolute; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: var(--fond-2); color: var(--texte); border: 1px solid var(--bord);
  box-shadow: 0 12px 30px rgba(0,0,0,.35); white-space: nowrap;
}
.etiquette-flottante.e1 { left: -40px; top: 12%; }
.etiquette-flottante.e2 { right: -30px; top: 58%; }
.etiquette-flottante em { color: var(--vert); font-style: normal; }
.legende-illustration { text-align: center; color: var(--texte-doux); font-size: 12px; margin-top: 14px; }

/* ---------- Bandeau de métiers qui défile ---------- */
.defile { overflow: hidden; border-top: 1px solid var(--bord-doux); border-bottom: 1px solid var(--bord-doux); padding: 18px 0; margin: 12px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile-piste { display: flex; gap: 36px; width: max-content; animation: defile 40s linear infinite; }
.defile-piste span { color: var(--texte-doux); font-size: 17px; white-space: nowrap; }
.defile-piste span::before { content: "•"; color: var(--vert); margin-right: 36px; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Titres de section ---------- */
.section { padding: 88px 0 24px; }
.sur-titre { color: var(--vert); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.section h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.02em; margin: 0 0 16px; max-width: 760px; }
.section .chapo { color: var(--texte-doux); font-size: 19px; max-width: 640px; margin: 0 0 40px; }

/* ---------- Grille « bento » des offres ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tuile {
  background: linear-gradient(180deg, var(--carte), var(--fond-2));
  border: 1px solid var(--bord-doux); border-radius: var(--rayon); padding: 28px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease, transform .2s ease;
}
.tuile:hover { border-color: var(--bord); transform: translateY(-2px); }
.tuile.grande { grid-column: span 4; }
.tuile.moyenne { grid-column: span 2; }
.tuile.demi { grid-column: span 3; }
.tuile h3 { font-size: 24px; margin: 4px 0 0; }
.tuile p { color: var(--texte-doux); margin: 0; }
.tuile .prix-tuile { margin-top: auto; padding-top: 14px; font-family: "Inter Display", sans-serif; font-size: 26px; font-weight: 600; }
.tuile .prix-tuile small { display: block; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 400; color: var(--texte-doux); }
.icone { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--vert-doux); border: 1px solid var(--bord); }
.icone svg { width: 22px; height: 22px; stroke: var(--vert); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.puces-tuile { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puces-tuile li { font-size: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--bord-doux); }

/* ---------- Les trois familles ---------- */
.familles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.famille { position: relative; display: block; text-decoration: none; color: var(--texte); padding: 28px; border-radius: var(--rayon);
  background: var(--fond-2); border: 1px solid var(--bord-doux); overflow: hidden; transition: border-color .2s, transform .2s; }
.famille:hover { border-color: var(--vert); transform: translateY(-3px); }
.famille h3 { font-size: 24px; margin: 16px 0 8px; }
.famille p { color: var(--texte-doux); margin: 0 0 18px; }
.famille .fleche { color: var(--vert); font-weight: 600; }

/* ---------- Étapes horizontales ---------- */
.etapes-2026 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: e; }
.etapes-2026 li { counter-increment: e; position: relative; padding: 26px 22px; border-radius: var(--rayon); background: var(--fond-2); border: 1px solid var(--bord-doux); }
.etapes-2026 li::before { content: "0" counter(e); display: block; font-family: "Inter Display", sans-serif; font-size: 34px; font-weight: 600; color: var(--vert); margin-bottom: 10px; }
.etapes-2026 b { display: block; font-size: 18px; margin-bottom: 6px; }
.etapes-2026 span { color: var(--texte-doux); font-size: 15px; }

/* ---------- Engagements ---------- */
.engagements-2026 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.engagement { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--rayon); background: var(--fond-2); border: 1px solid var(--bord-doux); }
.engagement b { display: block; margin-bottom: 4px; }
.engagement span { color: var(--texte-doux); font-size: 15px; }

/* ---------- Appel final ---------- */
.appel-2026 {
  margin: 96px 0 72px; padding: 64px 32px; text-align: center; border-radius: 32px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(200,245,66,0.22), transparent 70%),
    var(--fond-2);
  border: 1px solid var(--bord);
}
.appel-2026 h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.02em; margin: 0 0 14px; }
.appel-2026 p { color: var(--texte-doux); max-width: 560px; margin: 0 auto 28px; font-size: 18px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--bord-doux); }

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .apparait { opacity: 1; transform: none; transition: none; }
  .defile-piste { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 960px) {
  .heros { grid-template-columns: 1fr; padding-top: 40px; }
  .bento .tuile.grande, .bento .tuile.moyenne, .bento .tuile.demi { grid-column: span 6; }
  .familles, .etapes-2026 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .familles, .etapes-2026, .engagements-2026 { grid-template-columns: 1fr; }
  .etiquette-flottante.e1 { left: 0; } .etiquette-flottante.e2 { right: 0; }
  .section { padding-top: 64px; }
  .appel-2026 { padding: 44px 20px; }
}

/* ---------- Plus d'espace sur grand écran ---------- */
main, .entete { max-width: 1200px; }
@media (min-width: 1400px) { main, .entete { max-width: 1280px; } }

/* ---------- Version épurée (moins de texte, plus de visuel) ---------- */
.section h2 { margin-bottom: 32px; }
.familles-visuel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tuile-photo {
  position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: 26px; overflow: hidden;
  text-decoration: none; color: #fff; border: 1px solid var(--bord-doux);
  background:
    linear-gradient(180deg, rgba(15,28,22,0) 35%, rgba(15,28,22,0.92) 100%),
    var(--photo, none) center / cover no-repeat,
    radial-gradient(400px 260px at 70% 20%, rgba(200,245,66,0.18), transparent 70%),
    var(--fond-2);
  transition: transform .25s ease, border-color .25s ease;
}
.tuile-photo:hover { transform: translateY(-4px); border-color: var(--vert); }
.tuile-photo-texte { padding: 26px; display: block; }
.tuile-photo-texte b { display: block; font-family: "Inter Display", sans-serif; font-size: 26px; }
.tuile-photo-texte span { color: var(--texte-doux); }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trois .tuile h3 { font-size: 26px; }
.bande-confiance { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding: 28px 0; margin-top: 64px;
  border-top: 1px solid var(--bord-doux); border-bottom: 1px solid var(--bord-doux); font-weight: 600; }
.bande-confiance span { display: inline-flex; align-items: center; gap: 10px; }
.bande-confiance svg { width: 22px; height: 22px; stroke: var(--vert); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .familles-visuel, .trois { grid-template-columns: 1fr; } .tuile-photo { min-height: 240px; } }

/* ---------- Ancres : ne pas cacher les titres sous l'en-tête collant ---------- */
[id] { scroll-margin-top: 110px; }

/* Étiquette « Inclus : » / « Pas inclus : » collée à sa liste */
p:has(+ .coches) { margin-bottom: 0; }
p:has(+ .coches) + .coches { margin-top: 4px; }

/* Offres : le prix suit le texte, sans grand vide au-dessus */
.bento .tuile .prix-tuile { margin-top: 0; }

/* ---------- En-tête compact sur téléphone (≈ 95 px au lieu de 225) ----------
   Ligne 1 : logo + bouton Diagnostic. Ligne 2 : les 4 liens. */
@media (max-width: 720px) {
  .entete-2026 .entete { flex-wrap: wrap; align-items: center; gap: 4px 0; padding-top: 8px; padding-bottom: 4px; }
  .entete-2026 .logo { height: 44px; }
  .entete-2026 .entete > a:first-child { order: 1; }
  .entete-2026 .menu { display: contents; }
  .entete-2026 .menu a.bouton { display: inline-block; width: auto; order: 2; margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .entete-2026 .entete::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .entete-2026 .menu a:not(.bouton):not(.tel-entete) { order: 4; flex: 1 1 auto; text-align: center; font-size: 13px; letter-spacing: -0.1px; white-space: nowrap; padding: 8px 0; }
  .entete-2026 .menu a:nth-of-type(1) { text-align: left; }
  .entete-2026 .menu a:nth-of-type(4) { text-align: right; }
  .entete-2026 .menu a.tel-entete { order: 2; margin-left: auto; }
  .entete-2026 .menu a.tel-entete span { display: none; }
  .entete-2026 .menu a.bouton { margin-left: 8px; }
}
@media (max-width: 360px) { .entete-2026 .menu a:not(.bouton):not(.tel-entete) { font-size: 12px; } .entete-2026 .menu a.bouton { padding: 7px 11px; font-size: 13px; } }

/* ---------- Téléphone en avant (en-tête, accueil, diagnostic) ---------- */
.tel-entete { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--texte); text-decoration: none; }
.tel-entete svg, .bouton svg, .bouton-fantome svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.tel-entete:hover { color: var(--vert); }
@media (max-width: 720px) {
  .entete-2026 .menu a.tel-entete { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--bord-doux); border-radius: 999px; }
}
.heros h1.h1-long { font-size: clamp(34px, 4.6vw, 60px); }
.contact-choix { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 640px) { .contact-choix a, .appel-2026 .heros-actions a { width: 100%; text-align: center; justify-content: center; } }
