/* Concept : « courant électrique ». Barre de navigation flottante en pilule noire, fond gris lavande,
   bleu électrique pour l'action, jaune ampoule pour tout ce qui « s'allume ». */
:root {
  --bg: #ececf2;
  --bg-2: #e2e2ea;
  --surface: #ffffff;
  --ink: #0b0b12;
  --muted: #5b5d6e;
  --line: #d8d9e3;
  --nav: #0b0b10;
  --nav-ink: #ffffff;
  --nav-muted: #a6a7b8;
  --accent: #1f3bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 59, 255, .10);
  --glow: #ffc93c;
  --glow-soft: rgba(255, 201, 60, .35);
  --shadow: 0 18px 40px -18px rgba(11, 11, 30, .35);
  --display: "Sora", "Avenir Next", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 74rem;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090f; --bg-2: #101018; --surface: #14141e; --ink: #f1f1f7; --muted: #9c9eb3; --line: #252535;
    --nav: #000000; --nav-ink: #ffffff; --nav-muted: #9c9eb3;
    --accent: #5b73ff; --accent-ink: #ffffff; --accent-soft: rgba(91, 115, 255, .16);
    --glow: #ffd25a; --glow-soft: rgba(255, 210, 90, .28); --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090f; --bg-2: #101018; --surface: #14141e; --ink: #f1f1f7; --muted: #9c9eb3; --line: #252535;
  --nav: #000000; --nav-ink: #ffffff; --nav-muted: #9c9eb3;
  --accent: #5b73ff; --accent-ink: #ffffff; --accent-soft: rgba(91, 115, 255, .16);
  --glow: #ffd25a; --glow-soft: rgba(255, 210, 90, .28); --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); transition: background-color .5s var(--ease), color .5s var(--ease); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 38rem; }

/* ============ NAVBAR PILULE ============ */
.navbar-shell { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); padding-inline: 14px; pointer-events: none; }
.navbar {
  pointer-events: auto; max-width: var(--wrap); margin-inline: auto; height: 68px; border-radius: 999px;
  background: var(--nav); color: var(--nav-ink); display: flex; align-items: center; gap: .5rem; padding: 0 10px 0 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: nav-in .8s var(--ease) both;
}
.navbar::after { /* éclair qui parcourt la barre au chargement */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(91,115,255,.55) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; animation: current 1.6s .5s var(--ease) both; mix-blend-mode: screen;
}
.navbar-shell.scrolled .navbar { transform: scale(.985); }
@keyframes nav-in { from { transform: translateY(-120%); } to { transform: none; } }
@keyframes current { to { background-position: -30% 0; } }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .5s var(--ease); }
.brand-mark svg { width: 24px; height: 24px; color: #1f3bff; }
.brand-mark img { width: 72%; height: 72%; object-fit: contain; display: block; }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.05); }
.brand:hover .brand-mark img { animation: flicker .6s steps(2) 2; }
.brand-name { font: 700 1.05rem/1 var(--display); letter-spacing: .14em; }

.nav-links { display: flex; flex: 1; align-items: center; justify-content: space-evenly; gap: .15rem; margin: 0; list-style: none; padding: 0 .5rem; position: relative; min-width: 0; }
.nav-links li { display: flex; justify-content: center; }
.nav-link { position: relative; display: flex; align-items: center; gap: .5rem; padding: .62rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--nav-muted); transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-link:hover { color: var(--nav-ink); background: rgba(255,255,255,.07); }
.nav-link[aria-current="page"] { color: var(--nav-ink); background: rgba(255,255,255,.1); }
.nav-ico { width: 22px; height: 22px; flex: none; overflow: visible; }
.nav-ico * { transition: fill .35s var(--ease), stroke .35s var(--ease), opacity .35s var(--ease), transform .45s var(--ease); transform-box: fill-box; transform-origin: center; }

/* Accueil : la maison s'allume */
.ico-home .win { fill: transparent; }
.ico-home .halo { fill: var(--glow); opacity: 0; filter: blur(6px); }
.nav-link:hover .ico-home .win { fill: rgba(255, 201, 60, .5); }
.nav-link[aria-current="page"] .ico-home .win, .nav-link.firing .ico-home .win { fill: var(--glow); }
.nav-link[aria-current="page"] .ico-home .halo, .nav-link.firing .ico-home .halo { opacity: .55; }
.nav-link.firing .ico-home .win { animation: switch-on .5s steps(3) both; }
/* Services : la clé tourne */
.nav-link:hover .ico-tool .tool, .nav-link.firing .ico-tool .tool { animation: wrench .6s var(--ease); }
.nav-link[aria-current="page"] .ico-tool .spark { opacity: 1; }
.ico-tool .spark { opacity: 0; stroke: var(--glow); }
/* Zones : le repère rebondit */
.nav-link:hover .ico-pin .pin, .nav-link.firing .ico-pin .pin { animation: bounce .6s var(--ease); }
.ico-pin .dot { fill: transparent; }
.nav-link[aria-current="page"] .ico-pin .dot { fill: var(--glow); }
.ico-pin .ring { opacity: 0; stroke: var(--glow); }
.nav-link[aria-current="page"] .ico-pin .ring { animation: ring 1.8s ease-out infinite; }
/* Contact : le téléphone sonne */
.nav-link:hover .ico-phone .handset, .nav-link.firing .ico-phone .handset { animation: ringing .5s linear 2; }
.ico-phone .wave { opacity: 0; stroke: var(--glow); }
.nav-link[aria-current="page"] .ico-phone .wave, .nav-link.firing .ico-phone .wave { opacity: 1; }
.nav-link[aria-current="page"] .ico-phone .w2 { animation: blink 1.4s infinite; }

@keyframes switch-on { 0% { fill: transparent; } 33% { fill: var(--glow); } 50% { fill: transparent; } 100% { fill: var(--glow); } }
@keyframes wrench { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 65% { transform: rotate(16deg); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-5px); } 60% { transform: translateY(1px); } }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes ringing { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes flicker { 50% { opacity: .3; } }

.nav-tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--nav-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }

/* Interrupteur thème : soleil ⇄ lune */
.theme-btn .sun, .theme-btn .moon { transition: transform .6s var(--ease), opacity .4s var(--ease); transform-origin: center; transform-box: fill-box; }
.theme-btn .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
  :root:not([data-theme="light"]) .theme-btn .moon { opacity: 1; transform: none; }
}

.lang { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; height: 46px; }
.lang a { text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .06em; padding: 0 .7rem; height: 38px; display: grid; place-items: center; border-radius: 999px; color: var(--nav-muted); transition: background-color .3s, color .3s; }
.lang a[aria-current="true"] { background: var(--nav-ink); color: var(--nav); }
.lang a:not([aria-current="true"]):hover { color: var(--nav-ink); }

.nav-phone { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.1rem; border-radius: 999px; background: #fff; color: #0b0b12; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; transition: transform .3s var(--ease); }
.nav-phone:hover { transform: translateY(-1px); }
.nav-phone svg { width: 16px; height: 16px; color: #1f3bff; }

/* Burger (3 barres) */
.burger .bars > span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.burger .bars { display: grid; gap: 5px; }
.burger[aria-expanded="true"] .bars > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .bars > span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .bars > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau du menu */
.menu-panel { pointer-events: none; max-width: var(--wrap); margin: 10px auto 0; display: flex; justify-content: flex-end; }
.menu-card { width: min(100%, 25rem); background: var(--nav); color: var(--nav-ink); border-radius: 28px; padding: 1rem; box-shadow: var(--shadow); display: grid; gap: .25rem;
  transform-origin: top right; transition: transform .45s var(--ease), opacity .3s var(--ease), visibility .45s; }
.menu-panel[data-open="true"] .menu-card { pointer-events: auto; }
.menu-panel[data-open="false"] .menu-card { opacity: 0; transform: translateY(-10px) scale(.96); visibility: hidden; }
.menu-card a.m-link { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 18px; text-decoration: none; font: 600 1.1rem/1.2 var(--display); color: var(--nav-ink); transition: background-color .25s; }
.menu-card a.m-link:hover, .menu-card a.m-link[aria-current="page"] { background: rgba(255,255,255,.08); }
.menu-card .m-link small { display: block; font: 500 .82rem/1.3 var(--body); color: var(--nav-muted); margin-top: .15rem; }
.menu-card .m-link .nav-ico { width: 26px; height: 26px; }
.menu-panel[data-open="true"] .m-link { animation: slide-in .5s var(--ease) both; }
.menu-panel[data-open="true"] .m-link:nth-child(2) { animation-delay: .04s; }
.menu-panel[data-open="true"] .m-link:nth-child(3) { animation-delay: .08s; }
.menu-panel[data-open="true"] .m-link:nth-child(4) { animation-delay: .12s; }
.menu-panel[data-open="true"] .m-link:nth-child(5) { animation-delay: .16s; }
.menu-panel[data-open="true"] .m-link:nth-child(6) { animation-delay: .2s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .75rem .5rem .25rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: .5rem; }
.menu-foot .nav-phone { flex: 1; justify-content: center; }
.menu-tools { display: none; gap: .4rem; }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) { .nav-tools .nav-phone { display: none; } }
@media (max-width: 980px) {
  .nav-links { gap: 0; padding: 0 .25rem; justify-content: space-between; }
  .nav-links li { flex: 1; }
  .nav-link { width: 100%; align-items: center; }
  .nav-link { flex-direction: column; gap: 2px; padding: .35rem .55rem; font-size: .68rem; letter-spacing: .01em; border-radius: 16px; }
  .nav-link .nav-ico { width: 22px; height: 22px; }
  .nav-tools .nav-phone { display: none; }
}
@media (max-width: 700px) { .brand-name { display: none; } .nav-tools .lang, .nav-tools .theme-btn { display: none; } .menu-tools { display: flex; } }
@media (max-width: 560px) {
  .navbar { height: 64px; padding-inline: 8px; gap: .25rem; }
  .brand-mark { width: 46px; height: 46px; }
  .nav-link { padding: .3rem .4rem; min-width: 52px; }
  .icon-btn { width: 44px; height: 44px; }
}
@media (max-width: 370px) { .nav-link { min-width: 0; padding-inline: .3rem; font-size: .62rem; } .navbar-shell { padding-inline: 8px; } }

/* ============ BOUTONS ============ */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -12px var(--accent); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px var(--accent); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover svg { animation: ringing .5s linear 2; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost .arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============ HÉROS ============ */
main { padding-top: calc(env(safe-area-inset-top, 0px) + 100px); }
.hero { padding-block: 2.5rem 4rem; position: relative; }
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-text { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 .hl { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.hero h1 .hl path { stroke: var(--glow); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.status { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.badges span { display: inline-flex; align-items: center; gap: .45rem; }
.badges svg { width: 18px; height: 18px; color: var(--accent); }

/* Carte interrupteur + ampoule */
.lamp-card { position: relative; border-radius: 36px; background: var(--nav); color: var(--nav-ink); padding: 2rem; min-height: 26rem; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.lamp-card::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(circle at 50% 38%, var(--glow-soft), transparent 45%); opacity: 0; transition: opacity .6s var(--ease); }
.lamp-card.on::before { opacity: 1; }
.lamp-card .grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.lamp { width: min(100%, 15rem); overflow: visible; }
.lamp .wire { stroke: #3a3a4a; stroke-width: 3; fill: none; }
.lamp .flow { stroke: var(--accent); stroke-width: 3; fill: none; stroke-dasharray: 10 22; opacity: 0; }
.lamp-card.on .lamp .flow { opacity: 1; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.lamp .bulb { fill: #2a2a36; transition: fill .5s var(--ease); }
.lamp-card.on .lamp .bulb { fill: var(--glow); }
.lamp .filament { stroke: #5c5c6e; stroke-width: 2.5; fill: none; transition: stroke .4s; }
.lamp-card.on .lamp .filament { stroke: #fff6d6; }
.lamp .base { fill: #6d6d80; }
.lamp .rays line { stroke: var(--glow); stroke-width: 4; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lamp-card.on .lamp .rays line { animation: rays 2.4s var(--ease) infinite; }
.lamp .rays line:nth-child(2n) { animation-delay: .3s !important; }
@keyframes rays { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
.switch { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border: 0; color: var(--nav-ink); border-radius: 999px; padding: .4rem 1rem .4rem .4rem; cursor: pointer; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.switch .track { width: 52px; height: 30px; border-radius: 999px; background: #3a3a4a; position: relative; transition: background-color .4s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); }
.lamp-card.on .switch .track { background: var(--accent); }
.lamp-card.on .switch .track::after { transform: translateX(22px); }
.lamp-tag { position: absolute; top: 1.4rem; left: 1.4rem; font: 600 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--nav-muted); display: flex; gap: .5rem; align-items: center; }
.lamp-tag b { color: var(--nav-ink); font-variant-numeric: tabular-nums; }
.volt { position: absolute; top: 1.2rem; right: 1.4rem; font: 700 1.8rem/1 var(--display); color: rgba(255,255,255,.12); letter-spacing: -.03em; transition: color .5s; }
.lamp-card.on .volt { color: var(--glow); }

/* ============ BANDEAU DÉFILANT ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 600 1.35rem/1 var(--display); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee span::after { content: ""; width: 12px; height: 20px; background: var(--accent); clip-path: polygon(60% 0, 0 58%, 45% 58%, 35% 100%, 100% 40%, 55% 40%); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
section.block { padding-block: 5rem; }
.head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: 2.75rem; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

.services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.svc { position: relative; display: grid; gap: .7rem; align-content: start; padding: 1.75rem; border-radius: var(--r); background: var(--surface); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); overflow: hidden; isolation: isolate; }
.svc::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; }
.svc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--accent), 0 24px 40px -26px var(--accent); }
.svc:hover::before { opacity: 1; }
.svc .ico { width: 58px; height: 58px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .5s var(--ease); }
.svc:hover .ico { background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg); }
.svc .ico svg { width: 30px; height: 30px; overflow: visible; }
.svc .ico svg * { transform-box: fill-box; transform-origin: center; }
.svc:hover .a-flicker { animation: flicker .25s steps(2) 3; }
.svc:hover .a-lever { animation: lever .5s var(--ease) both; }
.svc:hover .a-lever:nth-of-type(2) { animation-delay: .1s; }
.svc:hover .a-lever:nth-of-type(3) { animation-delay: .2s; }
.svc:hover .a-check { stroke-dasharray: 30; animation: dash .6s var(--ease) both; }
.svc:hover .a-plug { animation: plug .7s var(--ease); }
.svc:hover .a-wave { animation: wave 1s ease-in-out infinite; }
.svc:hover .a-wave:nth-of-type(2) { animation-delay: .15s; }
.svc:hover .a-light { animation: lightup .8s steps(2) both; }
@keyframes lever { 50% { transform: translateY(4px); } }
@keyframes dash { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes plug { 40% { transform: translateX(-4px); } 70% { transform: translateX(2px); } }
@keyframes wave { 50% { transform: translateY(-3px); } }
@keyframes lightup { from { fill: transparent; } to { fill: var(--glow); } }
.svc p { color: var(--muted); font-size: .98rem; }
.svc .more { margin-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: var(--accent); }
.svc .more svg { width: 16px; transition: transform .35s var(--ease); }
.svc:hover .more svg { transform: translateX(5px); }

/* Engagements */
.promises { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.promise { padding: 2rem; border-radius: var(--r); background: var(--nav); color: var(--nav-ink); display: grid; gap: .8rem; align-content: start; position: relative; overflow: hidden; }
.promise .num { font: 700 3rem/1 var(--display); color: var(--glow); letter-spacing: -.04em; }
.promise p { color: var(--nav-muted); }

/* Étapes : une ligne de courant les relie */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: left; animation: charge 2.2s .3s var(--ease) both; }
@supports (animation-timeline: view()) { .steps::after { animation: charge linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; } }
@keyframes charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps li { counter-increment: s; display: grid; gap: .5rem; position: relative; z-index: 1; }
.steps li::before { content: counter(s); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font: 700 1.2rem/1 var(--display); margin-bottom: .6rem; transition: background-color .3s, color .3s; }
.steps li:hover::before { background: var(--accent); color: var(--accent-ink); }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; animation-name: charge-v; }
  .steps li { grid-template-columns: 56px 1fr; column-gap: 1.1rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}
@keyframes charge-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Panne : carte sombre */
.panne { border-radius: 36px; background: var(--nav); color: var(--nav-ink); padding: clamp(1.5rem, 5vw, 3.5rem); display: grid; gap: 2.5rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); position: relative; overflow: hidden; }
@media (max-width: 860px) { .panne { grid-template-columns: 1fr; } }
.panne .head { margin: 0; align-content: start; }
.panne .lede { color: var(--nav-muted); }
.panne .kicker { color: var(--glow); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.1rem; border-radius: 18px; background: rgba(255,255,255,.05); transition: background-color .3s; }
.checks li:hover { background: rgba(255,255,255,.09); }
.checks .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); font: 700 1rem/1 var(--display); color: var(--glow); }
.checks strong { display: block; font-family: var(--display); font-weight: 600; }
.checks span { color: var(--nav-muted); font-size: .97rem; }
.danger { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 201, 60, .12); color: var(--nav-ink); }
.danger svg { width: 22px; height: 22px; color: var(--glow); flex: none; margin-top: .15rem; animation: flicker 1.6s steps(2) infinite; }

/* CTA */
.cta-box { border-radius: 36px; padding: clamp(2rem, 6vw, 4rem); background: var(--accent); color: var(--accent-ink); display: grid; gap: 1.5rem; justify-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 20% 120%, rgba(255,255,255,.25), transparent 45%), radial-gradient(circle at 90% -20%, rgba(255, 201, 60, .45), transparent 40%); }
.cta-box p { opacity: .85; max-width: 34rem; }
.cta-box .btn-primary { background: #fff; color: #0b0b12; box-shadow: none; }
.cta-box .btn-primary svg { color: #1f3bff; }
.cta-box .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* Page intérieure */
.page-head { padding-block: 2.5rem 3rem; }
.page-head .wrap { display: grid; gap: 1.25rem; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 20ch; }

/* Services détaillés */
.svc-detail { display: grid; gap: 2rem; grid-template-columns: 5rem minmax(0, .8fr) minmax(0, 1.2fr); padding: 2.5rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 110px; transition: box-shadow .4s; }
.svc-detail + .svc-detail { margin-top: 1rem; }
.svc-detail:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.svc-detail:target { box-shadow: inset 0 0 0 2px var(--accent); }
.svc-detail .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.svc-detail .ico svg { width: 32px; height: 32px; }
.svc-detail h2 { font-size: 1.7rem; }
.svc-detail .side { display: grid; gap: .6rem; align-content: start; }
.svc-detail .body { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.25rem; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%231f3bff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: .15rem; }
.brands { display: flex; flex-wrap: wrap; gap: .75rem; }
.brands span { padding: .7rem 1.3rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 1.05rem/1 var(--display); }

/* Zones */
.zones-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.zones-grid li { position: relative; padding: 1.1rem 1.1rem 1rem; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .15rem; transition: transform .35s var(--ease), box-shadow .35s, background-color .35s; overflow: hidden; }
.zones-grid li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent); }
.zones-grid li::after { content: ""; position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .3s, box-shadow .3s; }
.zones-grid li:hover::after { background: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); }
.zones-grid strong { font: 700 1.5rem/1 var(--display); letter-spacing: -.03em; }
.zones-grid span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.zones-grid li.home { background: var(--nav); color: var(--nav-ink); box-shadow: none; }
.zones-grid li.home span { color: var(--glow); }
.zones-grid li.home::after { background: var(--glow); animation: pulse-y 2s infinite; }
@keyframes pulse-y { 0% { box-shadow: 0 0 0 0 var(--glow-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Contact */
.contact { display: grid; gap: 1rem; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.card { border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(1.4rem, 4vw, 2.25rem); display: grid; gap: 1.1rem; min-width: 0; }
.card.dark { background: var(--nav); color: var(--nav-ink); box-shadow: none; }
.card.dark .muted { color: var(--nav-muted); }
.big-phone { font: 700 clamp(2rem, 6vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; gap: .7rem; }
.big-phone svg { width: .8em; height: .8em; color: var(--glow); animation: ringing .5s linear infinite; animation-delay: 2s; animation-iteration-count: 3; }
.sep { height: 1px; background: rgba(255,255,255,.12); border: 0; margin: 0; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 16px; padding: .85rem 1rem; width: 100%; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 8rem; resize: vertical; }
.row-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: 999px; background: var(--bg); width: fit-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-error { color: #d92d20; font-weight: 700; font-size: .95rem; }
:root[data-theme="dark"] .form-error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #ff8a80; } }
.form .btn { justify-content: center; width: 100%; }
.small { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 50rem; margin-inline: auto; }
.faq details { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 1.15rem 1.35rem; transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.faq summary { list-style: none; cursor: pointer; font: 600 1.05rem/1.4 var(--display); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231f3bff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin-top: .75rem; color: var(--muted); }
.faq details[open] p { animation: rise .45s var(--ease) both; }

/* Légal */
.legal { max-width: 46rem; display: grid; gap: 1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.25rem; }
.placeholder { background: var(--glow-soft); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Pied de page */
.footer { margin-top: 2rem; padding-block: 3.5rem 2.5rem; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.footer h4 { margin: 0 0 .7rem; font: 700 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-logo { display: inline-block; width: fit-content; background: #fff; border-radius: 18px; padding: .8rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.footer-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.footer .about { display: grid; gap: 1rem; align-content: start; color: var(--muted); }
.footer .bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ============ ANIMATIONS D'ENTRÉE ============ */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.in { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
body.leaving main { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
