/* =========================================================
   URGENCE ELEC — styles communs aux versions A et B
   1. Tokens  2. Base  3. Boutons  4. Bandeau + header  5. Menu mobile
   6. Pannes (structure « Quelle panne ? »)  7. Communes  8. Diagnostic
   9. FAQ  10. Formulaires  11. Barre mobile  12. Effets premium
   13. Mode « À valider »  14. Responsive  15. Mouvement réduit
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0C0B09;
  --surface: #15140F;
  --surface-2: #1C1A16;
  --line: #2A2723;
  --line-2: #3A3731;
  --ink: #EDE6DA;
  --ink-2: #C9BFAE;
  --ink-3: #9A9184;
  --white: #FFFFFF;
  --red: #E3262B;
  --red-hover: #C91F24;
  --red-ink: #B01C21;
  --red-soft: #FF6B6F;
  --cream: #EDE6DA;
  --cream-2: #F6F1E8;
  --cream-line: #CFC6B6;
  --cream-ink-2: #4A453C;
  --green: #3DDC84;
  --wa: #13803F;
  --tbc: #F5B83D;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;

  --wrap: 1240px;
  --pad: 24px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 92px;
  --bar-h: 0px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--bar-h);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 104px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.h2 { font-size: clamp(34px, 4.2vw, 52px); color: var(--white); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.red { color: var(--red); }
.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; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--white); color: var(--bg); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 16px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); color: var(--white); }
.btn-ghost { border-color: #4A463F; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--white); }
.btn-cream { background: var(--cream); color: var(--bg); }
.btn-cream:hover { background: var(--white); }
.btn-dark { background: var(--bg); color: var(--white); }
.btn-dark:hover { background: #26231E; color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn small { display: block; font-size: 13px; font-weight: 500; opacity: 0.85; }
.btn .btn-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
/* Reflet qui balaie le bouton (repris de Désinsecta) */
.btn-shine::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) infinite 2s;
}
.halo { animation: halo 1.8s ease-out infinite; }
.ring-icon { animation: ring 3s ease-in-out infinite 1.2s; transform-origin: 50% 50%; }

/* ---------- 4. Bandeau + header ---------- */
.topbar { background: var(--red); color: var(--white); font-size: 14px; position: relative; z-index: 60; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar-live { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.topbar-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); display: inline-block; flex: none; }
.dot.pulse { animation: dotpulse 1.8s ease-out infinite; }
.dot-green { background: var(--green); box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); animation: greenpulse 2s ease-out infinite; }

.header { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height 0.3s var(--ease); }
.header.is-scrolled .wrap { height: 68px; }
.logo { display: block; flex: none; }
.logo img { height: 64px; width: auto; transition: height 0.3s var(--ease); }
.header.is-scrolled .logo img { height: 46px; }
.nav { display: flex; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav { align-items: center; }
.nav > a { text-decoration: none; padding: 12px 0; position: relative; }
.nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--cream); color: var(--bg); }
.header-call { min-height: 48px; padding: 0 20px; font-size: 16px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.burger .icon { width: 22px; height: 22px; }

/* Menus déroulants (structure multipage) */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: inherit; cursor: pointer; }
.nav-trigger .caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.nav-item.is-open .caret { transform: rotate(-90deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -24px; z-index: 70; width: min(600px, 78vw); padding: 16px; border-radius: 18px; background: var(--mega-bg, #15140F); color: var(--mega-ink, #EDE6DA); border: 1px solid var(--mega-line, #2A2723); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.25s; }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.is-open .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
@media (hover: hover) { .nav-item:hover .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); } .nav-item:hover .caret { transform: rotate(-90deg); } }
.mega a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.mega a:hover, .mega a:focus-visible { background: var(--mega-hover, #1C1A16); }
.mega a strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.mega code { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mega-ink-3, #9A9184); font-family: ui-monospace, Consolas, monospace; }
.mega-head { border-bottom: 1px solid var(--mega-line, #2A2723); margin-bottom: 6px; }
.mega-head strong { color: var(--red-soft); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--mega-hover, #24221E); color: var(--mega-ink-3, #9A9184); }
.mega-tag.is-tbc { background: rgb(245 184 61 / 0.16); color: #B98410; }
.mega-eta { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--red-soft); }
.mega-foot { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 10px 12px 2px; border-top: 1px solid var(--mega-line, #2A2723); font-size: 13px; color: var(--mega-ink-3, #9A9184); }
.mega-foot a { display: inline; padding: 0; color: inherit; text-decoration: underline; }
.mega-foot a:hover { background: none; }

/* Plan du site en pied de page */
.footer-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer-map h3 { font-family: var(--f-body); font-stretch: 100%; font-size: 14px; font-weight: 600; color: #FFFFFF; margin-bottom: 12px; letter-spacing: 0; }
.footer-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-map a { text-decoration: none; }
.footer-map a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-map-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.footer-map-note a { text-decoration: underline; }
@media (max-width: 760px) { .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 5. Menu mobile ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; padding: 20px var(--pad) 32px; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s; }
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { height: 48px; width: auto; }
.drawer nav { display: flex; flex-direction: column; margin: 28px 0; border-top: 1px solid var(--line); }
.drawer nav a { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 28px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.drawer { overflow-y: auto; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 28px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .caret { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.drawer details[open] summary .caret { transform: rotate(-90deg); }
.drawer-sub { display: grid; padding: 0 0 14px 4px; }
.drawer nav .drawer-sub a { font-family: var(--f-body); font-stretch: 100%; font-weight: 500; font-size: 17px; padding: 10px 0; border-bottom: 0; color: var(--ink-2); }
.drawer-sub small { font-size: 12px; color: var(--ink-3); }
.drawer .btn { width: 100%; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
html.menu-open { overflow: hidden; }

/* ---------- 6. Pannes : « Quelle panne électrique avez-vous ? » ---------- */
.pannes-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.panne { border-bottom: 1px solid var(--line); }
.panne a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; padding: 18px 6px; text-decoration: none; position: relative; transition: background-color 0.3s; border-radius: 12px; }
.panne a:hover { background: var(--surface); }
.panne-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.panne-ico .icon { width: 26px; height: 26px; }
.panne a:hover .panne-ico { background: var(--red); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.panne-title { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--white); }
.panne-sub { display: block; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.panne-tag { display: inline-block; margin-left: 8px; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 3px 8px; border-radius: 999px; vertical-align: 3px; font-stretch: 100%; }
.panne-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--red); color: var(--white); font-weight: 600; font-size: 16px; transition: gap 0.3s var(--ease); }
.panne a:hover .panne-cta { gap: 12px; }

/* ---------- 7. Communes / délai ---------- */
.eta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chip { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.eta-label { font-size: 15px; color: var(--ink-2); }
.eta-big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 64px; line-height: 1; color: var(--white); margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.eta-big small { font-size: 0.42em; font-weight: 700; color: var(--ink-2); }
.eta-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.eta-fill { height: 100%; background: var(--red); border-radius: 3px; transform-origin: left; transition: width 0.7s var(--ease); }
.eta-note { font-size: 13px; color: var(--ink-3); margin: 14px 0 20px; }
.eta-card .btn { width: 100%; }

/* ---------- 8. Diagnostic ---------- */
.sym-list { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.sym { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; min-height: 56px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--cream-line); background: var(--cream-2); color: var(--bg); font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, padding 0.3s var(--ease); }
.sym:hover { padding-left: 24px; }
.sym[aria-pressed="true"] { background: var(--bg); border-color: var(--bg); color: var(--white); }
.diag-panel { background: var(--bg); color: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.diag-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.diag-title { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 26px; color: var(--white); }
.level { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--line); color: var(--white); }
.level.is-high { background: var(--red); animation: halo 1.8s ease-out infinite; }
.diag-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.diag-steps li { display: flex; gap: 14px; font-size: 16px; line-height: 1.5; }
.diag-steps li span:first-child { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--red); color: var(--red-soft); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.diag-foot { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.diag-foot .k { font-size: 14px; color: var(--ink-3); }
.diag-foot .v { font-size: 17px; font-weight: 600; color: var(--white); margin-top: 4px; }
.mini-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.swap-in { animation: swap-in 0.55s var(--ease) both; }

/* Chat IA */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 120px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; line-height: 1.5; font-size: 15px; animation: swap-in 0.45s var(--ease) both; }
.bubble.bot { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--cream); color: var(--bg); border-bottom-right-radius: 4px; }
.bubble.alert { background: var(--red); color: var(--white); }
.bubble .b-level { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; color: var(--red-soft); }
.bubble ol { margin: 6px 0; padding-left: 20px; }
.bubble .btn { margin-top: 8px; min-height: 44px; font-size: 15px; padding: 0 16px; }
.bubble.alert .btn { background: var(--bg); color: #FFFFFF; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; color: var(--ink); }
.chat-form input::placeholder { color: var(--ink-3); }
.chat-form button { min-width: 52px; }
.chat-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- 9. FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 18px; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s; }
.faq .plus::before, .faq .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--red); transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] .plus { background: var(--red); border-color: var(--red); transform: rotate(180deg); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: var(--white); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-2); line-height: 1.65; }
.faq details[open] p { animation: swap-in 0.45s var(--ease) both; }

.brief { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.brief p { line-height: 1.7; font-size: 15px; }
.brief .updated { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- 10. Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--red-soft); }
.field input, .field select, .field textarea { min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 12px 16px; transition: border-color 0.2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgb(227 38 43 / 0.35); }
.field .err { font-size: 14px; color: var(--red-soft); min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.hint { font-size: 13px; color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.drop:hover { border-color: var(--ink-2); background: var(--surface); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.success { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px; background: rgb(61 220 132 / 0.12); border: 1px solid rgb(61 220 132 / 0.4); animation: swap-in 0.5s var(--ease) both; }

/* ---------- 11. Barre d'appel mobile ---------- */
.mobile-bar { display: none; }

/* ---------- 12. Effets premium (GSAP) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.js-motion [data-fade] { opacity: 0; }

/* Écran « mise sous tension » */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.loader img { width: 220px; height: auto; }
.loader-row { display: flex; align-items: baseline; gap: 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.loader-num { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 34px; color: var(--white); letter-spacing: 0; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.loader-bar { width: 220px; height: 3px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
html:not(.js-motion) .loader { display: none; }

/* Curseur personnalisé */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--red); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgb(237 230 218 / 0.5); transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.3s, border-color 0.3s; display: flex; align-items: center; justify-content: center; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); background: rgb(227 38 43 / 0.12); }
.cursor.has-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); border-color: var(--red); }
.cursor-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity 0.2s; }
.cursor.has-label .cursor-label { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label { cursor: none; }

/* Barre de progression de lecture */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); z-index: 120; pointer-events: none; }

/* Bandeau défilant */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 3vw, 34px); color: var(--ink); white-space: nowrap; }
.marquee-track span::after { content: ''; width: 14px; height: 14px; background: var(--red); clip-path: polygon(55% 0, 15% 55%, 45% 55%, 35% 100%, 85% 40%, 55% 40%); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Halo qui suit le curseur sur les cartes (repris de Désinsecta) */
[data-spotlight] { position: relative; }
[data-spotlight]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(227 38 43 / 0.14), transparent 60%); }
[data-spotlight]:hover::before { opacity: 1; }

/* ---------- 12b. Réalisations : vignettes + visionneuse ---------- */
.g-item { list-style: none; break-inside: avoid; }
.g-item[hidden] { display: none; }
.g-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; isolation: isolate; }
.g-btn img, .g-btn video { display: block; width: 100%; height: auto; transition: transform 0.9s var(--ease), filter 0.5s; }
.g-btn:hover img, .g-btn:hover video { transform: scale(1.05); }
.g-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(12 11 9 / 0.78)); opacity: 0.9; transition: opacity 0.4s; pointer-events: none; }
.g-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; text-align: left; color: #FFFFFF; font-weight: 600; font-size: 15px; line-height: 1.3; transform: translateY(4px); transition: transform 0.4s var(--ease); }
.g-cap span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #FFD0D1; margin-bottom: 3px; }
.g-btn:hover .g-cap { transform: none; }
.g-play { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgb(12 11 9 / 0.7); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.g-play .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }

.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 7 6 / 0.94); color: #FFFFFF; }
.lb::backdrop { background: rgb(8 7 6 / 0.6); }
.lb[open] { display: flex; align-items: center; justify-content: center; animation: swap-in 0.35s var(--ease); }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(92vw, 1100px); }
.lb-media img, .lb-media video { display: block; max-width: min(92vw, 1100px); max-height: 80vh; width: auto; height: auto; border-radius: 14px; }
.lb-cap { font-size: 16px; font-weight: 600; text-align: center; }
.lb-cap span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3, #9A9184); margin-bottom: 4px; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25); background: rgb(12 11 9 / 0.6); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; } .lb-media img, .lb-media video { max-height: 70vh; } }

/* ---------- 12c. Pages modèles (panne, commune) ---------- */
.tpl-hero { padding-bottom: 72px !important; }
.tpl-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tpl-hero h1 { font-size: clamp(38px, 4.6vw, 62px) !important; }
.tpl-answer { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 660px; margin-bottom: 28px; padding-left: 18px; border-left: 3px solid var(--red); }
.tpl-answer strong { color: var(--white); }
.tpl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.tpl-facts li { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); }
.tpl-facts b { color: var(--white); }
.tpl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 32px; }
.tpl-head .h2 { margin-top: 14px; max-width: 700px; }
.tpl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpl-steps li, .tpl-card-s { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 26px; }
.tpl-steps .n { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; color: var(--red); margin-bottom: 14px; }
.tpl-steps strong, .tpl-card-s h3 { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--white); margin-bottom: 8px; }
.tpl-steps p, .tpl-card-s p { color: var(--ink-2); font-size: 15px; }
.tpl-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpl-card-s dl { margin: 14px 0 0; display: grid; gap: 10px; }
.tpl-card-s dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tpl-card-s dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.tpl-card-s .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--red); }
.tpl-box { border: 1px solid var(--red); background: rgb(227 38 43 / 0.07); }
.tpl-big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 40px; line-height: 1; color: var(--white); margin-bottom: 10px; }
.tpl-danger { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid rgb(227 38 43 / 0.5); background: rgb(227 38 43 / 0.08); color: var(--ink); }
.tpl-danger .icon { color: var(--red); width: 24px; height: 24px; }
.tpl-danger strong { color: var(--white); }
.tpl-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tpl-chips a, .tpl-chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--surface); }
.tpl-chips a:hover { border-color: var(--red); }
.tpl-chips a .icon { width: 16px; height: 16px; color: var(--red); }
.tpl-chips span { color: var(--ink-3); }
.g-pick { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; columns: auto !important; margin: 0; padding: 0; }
.g-pick .g-item { margin: 0 !important; }
.g-pick .g-btn img, .g-pick .g-btn video { aspect-ratio: 4 / 5; object-fit: cover; }
.tpl-faq { max-width: 860px; }
.tpl-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1080px) { .tpl-hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .tpl-steps, .tpl-grid3, .tpl-links { grid-template-columns: minmax(0, 1fr); }
  .g-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tpl-answer { font-size: 16px; }
}

/* ---------- 13. Mode « À valider » ---------- */
.tbc-toggle { position: fixed; left: 16px; bottom: calc(16px + var(--bar-h)); z-index: 130; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tbc); background: #1D1709; color: var(--tbc); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); }
.tbc-toggle[aria-pressed="true"] { background: var(--tbc); color: #1D1709; }
.tbc-panel { position: fixed; left: 16px; bottom: calc(72px + var(--bar-h)); z-index: 130; width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: #1D1709; color: #F7E7C2; border: 1px solid var(--tbc); border-radius: 16px; padding: 18px 20px; font-size: 14px; line-height: 1.5; display: none; }
.tbc-panel.is-open { display: block; animation: swap-in 0.35s var(--ease) both; }
.tbc-panel strong { display: block; color: var(--tbc); margin-bottom: 8px; }
.tbc-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.show-tbc [data-tbc] { outline: 2px dashed var(--tbc); outline-offset: 3px; border-radius: 4px; position: relative; }
.show-tbc [data-tbc]::after { content: attr(data-tbc); position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; background: var(--tbc); color: #1D1709; font: 600 11px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; padding: 3px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; font-stretch: 100%; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .lang { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; --header-h: 72px; --bar-h: 76px; }
  .section { padding: 72px 0; }
  .topbar-links a[href^="mailto"] { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar-links { display: none; }
  .logo img { height: 48px; }
  .header.is-scrolled .logo img { height: 40px; }
  .header-call { display: none; }
  .panne a { grid-template-columns: 48px 1fr auto; gap: 14px; padding: 16px 0; }
  .panne-ico { width: 48px; height: 48px; border-radius: 12px; }
  .panne-ico .icon { width: 22px; height: 22px; }
  .panne-title { font-size: 17px; }
  .panne-sub { font-size: 14px; }
  .panne-cta { padding: 0 14px; font-size: 15px; }
  .panne-cta .icon { display: none; }
  .eta-big { font-size: 52px; }
  .diag-panel { padding: 24px 20px; }
  .faq details p { padding-right: 0; }
  .mobile-bar { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--white); }
  .mobile-bar .is-call { background: var(--red); }
  .mobile-bar .is-wa { background: var(--wa); }
  .tbc-toggle { left: 12px; padding: 0 14px; }
  .show-tbc [data-tbc]::after { white-space: normal; max-width: 220px; }
}

/* ---------- 15. Animations ---------- */
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgb(227 38 43 / 0.55); } 70% { box-shadow: 0 0 0 14px rgb(227 38 43 / 0); } 100% { box-shadow: 0 0 0 0 rgb(227 38 43 / 0); } }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.7); } 70% { box-shadow: 0 0 0 9px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }
@keyframes greenpulse { 0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); } 70% { box-shadow: 0 0 0 10px rgb(61 220 132 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0); } }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 78% { transform: rotate(12deg); } 82% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
@keyframes flow { to { stroke-dashoffset: -240; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes trip { 0%, 62%, 100% { transform: translateY(0); } 66%, 92% { transform: translateY(13px); } }
@keyframes blink { 0%, 62%, 100% { opacity: 1; } 66%, 92% { opacity: 0.15; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .js-motion [data-fade] { opacity: 1; }
}

/* ---------- Bouton WhatsApp flottant (masqué sur mobile : la barre du bas le propose) ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 115; display: flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0 16px; border-radius: 999px; background: #25D366; color: #FFFFFF; text-decoration: none; box-shadow: 0 14px 34px -10px rgb(0 0 0 / 0.45); transition: transform 0.35s var(--ease), background-color 0.3s; animation: wa-in 0.6s var(--ease) 1.2s both; }
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 16px; color: #0B3D20; transition: max-width 0.4s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); background: #1EBE5A; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 120px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: wa-ping 2.4s ease-out infinite 2s; pointer-events: none; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: none; } }
html.is-blackout .wa-float, html.menu-open .wa-float { display: none; }
@media (max-width: 760px) { .wa-float { display: none; } }
@media print { .wa-float { display: none; } }

/* ---------- Bannière de consentement (cookies) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--bar-h)); z-index: 140; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: 18px; background: #0C0B09; color: #EDE6DA; border: 1px solid #3A3731; box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6); font-size: 14px; line-height: 1.5; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s; }
.consent.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.consent p { flex: 1 1 260px; margin: 0; }
.consent a { color: #FFFFFF; text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.consent .btn-ghost { color: #EDE6DA; border-color: #4A463F; }
.cookie-manage { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 14px; color: inherit; text-decoration: underline; cursor: pointer; }
@media print { .consent { display: none; } }
