/* =========================================================
   Version A — « Clair et rassurant » : sections crème, hero sombre, accent rouge
   ========================================================= */
body { background: var(--cream-2); }

/* Portée claire : les tokens de texte s'inversent */
.light {
  --ink: #0C0B09;
  --ink-2: #4A453C;
  --ink-3: #6B6458;
  --white: #0C0B09;
  --line: #DED5C5;
  --line-2: #CFC6B6;
  --surface: #FFFFFF;
  --surface-2: #EDE6DA;
  background: var(--cream-2);
  color: var(--ink);
}
.light .btn-red, .light .panne-cta, .light .panne-tag, .light .panne a:hover .panne-ico, .light .level, .light .bubble.alert, .light .btn-dark, .light .chip[aria-pressed="true"] { color: #FFFFFF; }
.light .chip[aria-pressed="true"] { background: var(--bg); border-color: var(--bg); }
.light .eyebrow { color: var(--red-ink); }
.light .bubble.me { background: var(--bg); color: #FFFFFF; }
.light .bubble .b-level { color: var(--red-ink); }
.light :focus-visible { outline-color: var(--red-ink); }
.white-bg { background: #FFFFFF; }

/* ---------- Header clair ---------- */
.header { background: rgb(246 241 232 / 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #DED5C5; color: #0C0B09; }
.header .logo img { border-radius: 12px; }
.header .nav a { color: #0C0B09; }
.header .lang { border-color: #CFC6B6; }
.header .lang a { color: #0C0B09; }
.header .lang a[aria-current="true"] { background: #0C0B09; color: #FFFFFF; }
.header .burger { border-color: #CFC6B6; color: #0C0B09; }

/* ---------- Hero sombre ---------- */
.hero { background: var(--bg); color: var(--ink); position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(#1A1814 1px, transparent 1px), linear-gradient(90deg, #1A1814 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); }
.hero h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1; color: var(--white); margin: 22px 0 22px; }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-quote { color: var(--ink); font-weight: 600; font-size: 17px; padding: 14px 8px; text-underline-offset: 5px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats dd { margin: 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 30px; color: var(--white); line-height: 1.1; }
.hero-stats dd sub { font-size: 0.55em; vertical-align: baseline; color: var(--red); }
.hero-stats dt { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

/* Carte « Une panne maintenant ? » avec tableau électrique animé */
.now-card { background: var(--cream); color: var(--bg); border-radius: 24px; padding: 26px; box-shadow: 0 30px 70px rgb(0 0 0 / 0.45); }
.board { background: #0C0B09; border-radius: 16px; padding: 16px; margin-bottom: 22px; }
.board svg { width: 100%; height: auto; }
.board .trip { animation: trip 4s var(--ease) infinite 1.2s; }
.board .led { animation: blink 4s steps(1) infinite 1.2s; }
.now-k { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-ink); }
.now-phone { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 32px; margin: 6px 0 18px; }
.now-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.now-steps li { display: flex; gap: 12px; line-height: 1.5; }
.now-steps li > span:first-child { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: #FFFFFF; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.now-card .btn { width: 100%; margin-top: 22px; }
.now-note { font-size: 13px; color: var(--cream-ink-2); margin-top: 12px; }

/* ---------- Pannes (structure de la photo) ---------- */
.pannes-wrap { max-width: 860px; margin: 0 auto; }
.pannes-wrap .h2 { margin: 16px 0 14px; }
.pannes-wrap .lead { margin-bottom: 36px; }
.light .panne-ico { background: #EDE6DA; }
.light .panne a:hover { background: #FFFFFF; }
.marquee.dark { background: var(--bg); border-color: var(--bg); }

/* ---------- Assistant IA ---------- */
.ia-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.ia-badge { display: inline-flex; align-items: center; gap: 8px; background: #FBE3E3; color: var(--red-ink); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.ia-card .h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 16px 0 14px; }
.ia-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.ia-points li { display: flex; gap: 10px; align-items: flex-start; }
.ia-points .icon { color: var(--red-ink); margin-top: 3px; }
.ia-chat { background: var(--cream-2); border-radius: 20px; padding: 20px; }
.ia-chat .chat-log { min-height: 220px; max-height: 420px; }
.ia-chat .bubble.bot { background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); }
.ia-chat .bubble.alert { background: var(--red); border: 0; color: #FFFFFF; }
.ia-chat .chat-form input { background: #FFFFFF; border-color: var(--line-2); }
.sym-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sym-chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.sym-chips button:hover { background: var(--bg); color: #FFFFFF; border-color: var(--bg); }
.diag-inline { margin-top: 28px; }

/* ---------- Services : cartes ---------- */
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.svc-head .h2 { margin-top: 16px; max-width: 640px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 30px; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease); }
.svc:hover { transform: translateY(-6px); border-color: var(--bg); box-shadow: 0 24px 50px -24px rgb(12 11 9 / 0.35); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); color: #FFFFFF; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s, transform 0.5s var(--ease); }
.svc:hover .svc-ico { background: var(--red); transform: rotate(-8deg); }
.svc-ico .icon { width: 24px; height: 24px; }
.svc-n { position: absolute; top: 28px; right: 30px; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 14px; color: var(--red-ink); }
.svc h3 { font-size: 22px; margin: 22px 0 8px; color: var(--ink); }
.svc p { color: var(--ink-2); font-size: 15px; }

/* ---------- Étapes (sombre) ---------- */
.process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; }
.process .h2 { margin-top: 16px; }
.process-intro { position: sticky; top: 120px; align-self: start; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: 18px; }
.steps-rail { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-rail span { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); opacity: 0.5; transition: opacity 0.5s, border-color 0.5s, transform 0.5s var(--ease); }
.step::before { content: ''; position: absolute; left: -38px; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-active { opacity: 1; border-color: var(--line-2); transform: translateX(6px); }
.step.is-active::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgb(227 38 43 / 0.2); }
.step-n { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 40px; color: var(--red); line-height: 1; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step h3 { font-size: 22px; color: var(--white); margin-bottom: 6px; }
.step p { color: var(--ink-2); }

/* ---------- Tarifs ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pcard { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.pcard.is-dark { background: var(--bg); border-color: var(--bg); color: var(--cream); }
.pcard.is-dark .pcard-k, .pcard.is-dark p { color: #C9BFAE; }
.pcard-k { font-size: 15px; color: var(--ink-2); }
.pcard-v { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 38px; line-height: 1.05; }
.pcard.is-dark .pcard-v { color: var(--red-soft); }
.pcard p { color: var(--ink-2); font-size: 15px; }
.price-table { margin-top: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 8px 30px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-l { display: block; font-weight: 600; }
.price-n { display: block; font-size: 14px; color: var(--ink-3); }
.price-row strong { font-family: var(--f-display); font-stretch: 112%; font-size: 20px; white-space: nowrap; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pay span { background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 32px; align-items: stretch; }
.score-card { background: var(--bg); color: var(--cream); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.score-card .n { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 64px; line-height: 1; color: #FFFFFF; }
.stars { display: flex; gap: 3px; color: var(--tbc); }
.stars .icon { width: 20px; height: 20px; fill: currentColor; }
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.skel { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #EFE8DC 0%, #E2D9C9 50%, #EFE8DC 100%); background-size: 200% 100%; animation: skel 1.6s linear infinite; }
.review-src { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.review-who { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-3); }
.review-who i { width: 36px; height: 36px; border-radius: 50%; background: #EDE6DA; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- Zones + délai ---------- */
.zones-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.zones-grid .h2 { margin: 16px 0 14px; }
.zones { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones li { background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 15px; }
.eta-card.dark .chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.faq-grid .h2 { margin-bottom: 20px; }
.faq-side { position: sticky; top: 120px; display: grid; gap: 16px; }
.light .brief { background: var(--cream-2); border-color: var(--line); }
.geo-note { font-size: 13px; color: var(--ink-3); }

/* ---------- CTA + footer ---------- */
.cta { background: var(--red); color: #FFFFFF; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { font-size: clamp(30px, 3.8vw, 48px); color: #FFFFFF; }
.cta p { margin-top: 8px; font-size: 17px; }
.cta .btn-dark { min-height: 64px; font-size: 19px; padding: 0 30px; }
.footer { background: var(--bg); color: var(--ink-3); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.footer-top img { height: 72px; width: auto; }
.footer h3 { font-family: var(--f-body); font-stretch: 100%; font-size: 14px; font-weight: 600; color: #FFFFFF; margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--line); }

/* ---------- Page contact ---------- */
.page-hero { background: var(--bg); color: var(--ink); padding: 64px 0 120px; position: relative; overflow: hidden; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #FFFFFF; }
.page-hero h1 { font-size: clamp(42px, 5.4vw, 70px); color: #FFFFFF; margin: 18px 0 16px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -72px; position: relative; z-index: 2; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: #FFFFFF; text-decoration: none; box-shadow: 0 24px 50px -28px rgb(12 11 9 / 0.4); transition: transform 0.4s var(--ease), border-color 0.3s; }
.ccard:hover { transform: translateY(-5px); border-color: var(--bg); }
.ccard.is-urgent { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.ccard.is-wa .icon { color: var(--wa); }
.ccard .icon { width: 28px; height: 28px; }
.ccard small { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ccard strong { font-family: var(--f-display); font-stretch: 112%; font-size: 24px; }
.ccard span { font-size: 15px; opacity: 0.85; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.form-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.form-card h2 { font-size: 32px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.light .field input, .light .field select, .light .field textarea { background: var(--cream-2); }
.light .field .err, .light .field .req { color: var(--red-ink); }
.light .success { background: #E3F4EA; border-color: #9BD3B0; }
.aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.box { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #FFFFFF; }
.box h3 { font-size: 20px; margin-bottom: 12px; }
.box.dark, .eta-card.dark { background: var(--bg); border-color: var(--bg); color: var(--cream); --ink: #EDE6DA; --ink-2: #C9BFAE; --ink-3: #9A9184; --line: #2A2723; --line-2: #3A3731; --surface: #15140F; --surface-2: #1C1A16; --white: #FFFFFF; }
.box.dark h3 { color: #FFFFFF; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours div:last-child { border-bottom: 0; }
.map { display: block; position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; aspect-ratio: 16 / 10; background: #E5DDCF; border: 1px solid var(--line); }
.map > svg { width: 100%; height: 100%; }
.map-label { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #FFFFFF; border-radius: 12px; padding: 12px 14px; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner, .ia-card, .process-grid, .zones-grid, .faq-grid, .reviews, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .process-intro, .faq-side { position: static; }
  .svc-grid, .price-cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-inner { padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .link-quote { width: 100%; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .ia-card { padding: 22px 16px; border-radius: 22px; }
  .svc-grid, .price-cards, .review-row, .contact-cards, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { padding-left: 36px; }
  .step { padding: 20px; flex-direction: column; gap: 10px; }
  .step::before { left: -30px; }
  .steps-rail { left: 9px; }
  .price-table { padding: 4px 18px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cta .btn-dark { width: 100%; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 22px 18px; }
  .page-hero { padding-bottom: 100px; }
}

/* =========================================================
   Effets « réparation » propres à la version A : « on rallume »
   ========================================================= */

/* Lampe du hero : --light va de 0 (panne) à 1 (courant rétabli) */
.hero { --light: 1; }
.hero .pill, .hero h1, .hero-sub, .hero-stats, .hero-grid-bg { filter: brightness(calc(0.32 + 0.68 * var(--light))); }
.lamp { position: absolute; top: 0; left: calc(50% + 80px); width: 104px; z-index: 3; }
.lamp svg { width: 104px; height: auto; overflow: visible; }
.lamp-bulb { opacity: var(--light); }
.lamp-halo { opacity: calc(var(--light) * 0.9); }
.lamp-cone { position: absolute; top: 124px; left: calc(50% + 132px); width: 1100px; height: 760px; transform: translateX(-50%); pointer-events: none; opacity: var(--light); background: radial-gradient(ellipse 50% 58% at 50% 0%, rgb(255 222 160 / 0.13), rgb(255 222 160 / 0.04) 55%, transparent 75%); }
.lamp-cord { position: absolute; left: 58px; top: 116px; width: 44px; height: 64px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lamp-cord span { position: absolute; left: 21px; top: 0; width: 2px; height: 42px; background: #6B6458; }
.lamp-cord span::after { content: ''; position: absolute; left: -4px; bottom: -8px; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 3px rgb(237 230 218 / 0.15); }
.lamp-cord.is-pulled span { animation: pull 0.5s var(--ease); }
.lamp-cord::before { content: 'Tirez'; position: absolute; left: 34px; top: 40px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.lamp-cord:hover::before, .lamp-cord:focus-visible::before { opacity: 1; }
@keyframes pull { 30% { transform: translateY(10px); } 100% { transform: none; } }

/* Ampoules de progression sous l'en-tête */
.bulbs { position: absolute; left: 0; right: 0; bottom: -5px; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.bulbs span { width: 8px; height: 8px; border-radius: 50%; background: #D8CFBF; border: 1px solid #CFC6B6; transition: background-color 0.3s, box-shadow 0.4s, border-color 0.3s; }
.bulbs span.is-lit { background: #FFD98A; border-color: #F0B94A; box-shadow: 0 0 10px 2px rgb(255 200 90 / 0.65); }

/* Icônes de pannes qui « se réparent » au survol : grésillement, étincelles, puis pastille verte */
.light .panne-ico { position: relative; }
.light .panne-ico::before { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; opacity: 0; pointer-events: none; }
.light .panne-ico::after { content: ''; position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #FFFFFF; background: #1F9D55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; transform: scale(0); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s; }
.light .panne a:hover .panne-ico .icon, .light .panne a:focus-visible .panne-ico .icon { animation: buzz 0.6s steps(1) 1; }
.light .panne a:hover .panne-ico::before, .light .panne a:focus-visible .panne-ico::before { animation: sparks 0.6s ease-out 1; }
.light .panne a:hover .panne-ico::after, .light .panne a:focus-visible .panne-ico::after { transform: scale(1); transition-delay: 0.6s; }
@keyframes buzz { 0% { opacity: 1; } 15% { opacity: 0.2; } 30% { opacity: 1; } 45% { opacity: 0.35; } 60% { opacity: 1; transform: translateX(1px); } 75% { transform: translateX(-1px); } 100% { opacity: 1; transform: none; } }
@keyframes sparks {
  0% { opacity: 1; box-shadow: 0 0 #FFD98A, 0 0 #FFD98A, 0 0 #FFFFFF, 0 0 #FFD98A, 0 0 #FFFFFF; }
  100% { opacity: 0; box-shadow: -22px -20px #FFD98A, 24px -16px #FFD98A, -26px 14px #FFFFFF, 20px 22px #FFD98A, 2px -30px #FFFFFF; }
}

/* Comparateur avant / après */
.ba-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.ba-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.ba-points li { display: flex; gap: 10px; }
.ba-points .icon { color: var(--red-ink); margin-top: 3px; }
.ba { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: pan-y; }
.ba-img, .ba-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 16px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; pointer-events: none; }
.ba-tag-l { left: 16px; background: #0C0B09; color: #FFFFFF; }
.ba-tag-r { right: 16px; background: #FFFFFF; color: #0C0B09; border: 1px solid var(--line); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #FFFFFF; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgb(12 11 9 / 0.15); }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--red-ink); outline-offset: 3px; }

@media (max-width: 1080px) {
  .ba-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lamp { left: auto; right: 24px; }
  .lamp-cone { left: auto; right: -510px; transform: none; }
}
@media (max-width: 760px) {
  .hero-inner { padding-top: 118px; }
  .lamp { right: 12px; width: 64px; }
  .lamp svg { width: 64px; }
  .lamp-cord { left: 28px; top: 72px; }
  .lamp-cord::before { display: none; }
  .bulbs { padding: 0 8px; }
  .bulbs span { width: 7px; height: 7px; }
  .ba { aspect-ratio: 4 / 3; }
}

/* ---------- Médias réels (version A) ---------- */
.ba.is-photo { aspect-ratio: 4 / 5; max-height: 640px; margin-left: auto; }
.ba.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.light .g-filters .chip:not([aria-pressed="true"]) { background: #FFFFFF; }
.g-grid { margin: 0; padding: 0; columns: 3 280px; column-gap: 18px; }
.g-grid .g-item { margin-bottom: 18px; }
@media (max-width: 760px) {
  .g-grid { columns: 2 150px; column-gap: 10px; }
  .g-grid .g-item { margin-bottom: 10px; }
  .g-cap { left: 10px; right: 10px; bottom: 10px; font-size: 13px; }
  .g-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 20px; padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .g-filters .chip { flex: none; }
  .ba.is-photo { max-height: 520px; }
}

/* Menus déroulants sur en-tête clair */
.header { --mega-bg: #FFFFFF; --mega-ink: #0C0B09; --mega-ink-3: #6B6458; --mega-line: #DED5C5; --mega-hover: #F6F1E8; }
.header .mega-head strong { color: var(--red-ink); }
.header .mega-eta { color: var(--red-ink); }

/* =========================================================
   Remarques client du 5 novembre 2026 : maquette A retenue, sur fond blanc
   ========================================================= */
body, .light, .white-bg { background: #FFFFFF; }
.light { --surface-2: #F3EFE8; --line: #E8E2D7; }
.light + .light, .marquee + .light { border-top: 1px solid #EEE9E0; }
.header { background: rgb(255 255 255 / 0.94); border-bottom-color: #ECE6DC; }
.light .panne-ico { background: #F3EFE8; }
.light .panne a:hover { background: #FAF8F4; }
.light .brief { background: #FAF8F4; }

/* Encart 118 / 144 (repris de la maquette B) */
.danger-note { margin: 0 0 28px; display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid rgb(227 38 43 / 0.45); background: #FDF1F1; font-size: 15px; color: #0C0B09; }
.danger-note .icon { color: var(--red); width: 24px; height: 24px; }
.danger-note strong { color: #0C0B09; }

/* « Où êtes-vous ? » + déroulement de l'intervention */
.intervention-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.intervention-grid .eta-card { position: sticky; top: 110px; }
.intervention-steps .step { background: #FFFFFF; }
.intervention-steps .step h3 { color: #0C0B09; }

/* Réalisations : lecteur vidéo + mosaïque (mise en page de la maquette B) */
.field-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.reel { position: sticky; top: 100px; display: grid; gap: 14px; }
.reel-screen { position: relative; border-radius: 24px; overflow: hidden; background: #0C0B09; aspect-ratio: 9 / 14; max-height: 74vh; }
.reel-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-rec { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgb(12 11 9 / 0.72); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; }
.reel-rec .dot { background: var(--red); }
.reel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reel-btn { width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFFFFF; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.reel-btn img { width: 100%; height: 70px; object-fit: cover; display: block; filter: grayscale(0.6); transition: filter 0.4s; }
.reel-btn span { display: block; padding: 8px 10px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.reel-btn small { display: block; color: var(--red-ink); font-size: 11px; }
.reel-btn[aria-pressed="true"] { border-color: var(--red); color: #0C0B09; }
.reel-btn[aria-pressed="true"] img, .reel-btn:hover img { filter: none; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mosaic-col { margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.mosaic-col:nth-child(2) { margin-top: 80px; }
.mosaic-col:nth-child(3) { margin-top: 30px; }

/* Tarifs (mise en page de la maquette B) */
.tarifs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.price-from { margin-top: 32px; display: inline-flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: 18px; background: #0C0B09; color: #C9BFAE; }
.price-from span { font-size: 14px; }
.price-from strong { font-family: var(--f-display); font-stretch: 112%; font-size: 36px; line-height: 1.05; color: #FFFFFF; }
.tarifs-grid .price-table { margin-top: 0; }

@media (max-width: 1080px) {
  .intervention-grid, .field-grid, .tarifs-grid { grid-template-columns: minmax(0, 1fr); }
  .intervention-grid .eta-card, .reel { position: static; }
  .reel-screen { aspect-ratio: 4 / 5; max-height: 70vh; }
}
@media (max-width: 760px) {
  .mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; scrollbar-width: none; }
  .mosaic-col { display: contents; }
  .mosaic .g-item { flex: none; width: 62vw; scroll-snap-align: start; }
  .mosaic-col:nth-child(2), .mosaic-col:nth-child(3) { margin-top: 0; }
  .reel-list { gap: 6px; }
  .reel-btn img { height: 54px; }
  .reel-btn span { padding: 6px; font-size: 11px; }
  .price-from strong { font-size: 30px; }
}

/* Pages de la structure (générées par _outils/generer-pages-A.js) */
.tpl-link { display: block; text-decoration: none; color: inherit; transition: transform 0.4s var(--ease), border-color 0.3s; }
.tpl-link:hover { transform: translateY(-4px); border-color: #0C0B09; }
.tpl-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--red-ink); }
.tpl-more .icon { width: 16px; height: 16px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); line-height: 1.7; }
.legal a { color: var(--red-ink); }
.tpl-hero .price-from { border: 1px solid #3A3731; }

/* Remarques du 7 novembre : sélecteur de commune dans le hero, carte d'appel dans « Intervention », photos de tableaux côte à côte */
.hero .eta-card { box-shadow: 0 30px 70px rgb(0 0 0 / 0.45); }
.intervention-grid .eta-card { position: static; }
.intervention-grid > :first-child { position: sticky; top: 110px; align-self: start; }
.duo .g-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .intervention-grid > :first-child { position: static; } }
