/* Kouran Élec — DA : noir carbone, jaune électrique, typographie industrielle */
:root {
  --bg: #0E0E10;
  --bg-2: #17171B;
  --bg-3: #212127;
  --y: #FFD400;
  --y-d: #E6BF00;
  --txt: #F4F4F5;
  --muted: #A1A1AA;
  --line: #2C2C33;
  --paper: #FAFAF7;
  --ink: #0E0E10;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.05; margin: 0 0 .6em; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.dark { background: var(--bg); color: var(--txt); }
.head { max-width: 680px; margin-bottom: 44px; }
.head p:last-child { color: var(--muted); font-size: 1.08rem; }
.dark .head p:last-child { color: var(--muted); }
.muted { color: #52525B; font-size: 1.05rem; }
.kicker { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--y); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.25rem; border-radius: 10px; font: 600 1rem/1.2 "Space Grotesk", sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s cubic-bezier(.22,1,.36,1), color .15s cubic-bezier(.22,1,.36,1), border-color .15s cubic-bezier(.22,1,.36,1), transform .12s cubic-bezier(.22,1,.36,1); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.08rem; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-y { background: var(--y); color: var(--ink); }
.btn-y:hover { background: #FFE14D; }
.btn-o { border-color: currentColor; color: inherit; background: transparent; }
.btn-o:hover { background: var(--y); border-color: var(--y); color: var(--ink); }

/* Bandeau urgence */
.alert { background: var(--y); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: .4rem 1.2rem; flex-wrap: wrap; padding: .55rem 1rem; font-size: .9rem; font-weight: 500; text-align: center; }
.alert a { font-family: "Space Grotesk", sans-serif; font-weight: 600; text-decoration: none; border-bottom: 2px solid; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14,14,16,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--txt); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; font: 600 1.3rem "Space Grotesk", sans-serif; letter-spacing: .02em; }
.logo svg { width: 38px; height: 38px; }
.logo b { color: var(--y); margin-left: .2rem; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { text-decoration: none; color: #D4D4D8; font-weight: 500; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--y); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--y); transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { background: var(--bg); color: var(--txt); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); font-weight: 600; }
.hl { color: var(--y); position: relative; display: inline-block; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .12em; background: var(--y); transform-origin: left; animation: line 1.2s .4s cubic-bezier(.6,0,.2,1) both; }
@keyframes line { from { transform: scaleX(0); } }
.lead { font-size: 1.15rem; color: #C4C4CC; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.cta .btn-o { color: var(--txt); border-color: #52525B; }
.stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; margin: 0; }
.stats dt { font: 600 2rem "Space Grotesk", sans-serif; color: var(--y); font-variant-numeric: tabular-nums; }
.stats dt small { font-size: 1rem; color: var(--muted); }
.stats dd { margin: 0; color: var(--muted); font-size: .9rem; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 9/11; object-fit: cover; border-radius: 22px; filter: saturate(1.1) contrast(1.05); }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wire path { fill: none; stroke: rgba(255,212,0,.25); stroke-width: 3; }
.wire .spark { stroke: var(--y); stroke-width: 4; stroke-dasharray: 60 1200; stroke-linecap: round; animation: spark 3.2s linear infinite; }
@keyframes spark { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1260; } }
.chip { position: absolute; background: var(--bg-2); border: 1px solid var(--line); color: var(--txt); padding: .7rem 1rem; border-radius: 12px; font-size: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.chip b { display: block; color: var(--y); font-family: "Space Grotesk", sans-serif; }
.chip-1 { left: -28px; top: 18%; }
.chip-2 { right: -16px; bottom: 12%; }

/* Diagnostic */
.diag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-card { text-align: left; font: inherit; background: #fff; border: 2px solid #E4E4E7; border-radius: var(--r); padding: 24px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s cubic-bezier(.22,1,.36,1), background-color .15s cubic-bezier(.22,1,.36,1); color: var(--ink); }
.d-card:hover { border-color: var(--ink); }
.d-card.on { border-color: var(--y); background: #FFFBE0; box-shadow: 0 0 0 4px rgba(255,212,0,.25); }
.d-ico { display: block; width: 24px; height: 24px; margin-bottom: 8px; color: var(--ink); }
.d-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-card b { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.d-card small { font-weight: 500; font-size: .85rem; color: #71717A; }
.d-card[data-urg="urgent"] small { color: #B91C1C; }
.diag-out { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--bg); color: var(--txt); border-radius: var(--r); padding: 22px 26px; animation: pop .35s ease; }
.diag-out p { margin: 0; }
.diag-label { font: 600 1.15rem "Space Grotesk", sans-serif; color: var(--y); margin-bottom: .2rem !important; }
.diag-out p:last-child { color: #D4D4D8; max-width: 640px; }
.diag-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* Services */
.svc-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.svc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color .18s cubic-bezier(.22,1,.36,1); position: relative; overflow: hidden; }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.svc:hover { border-color: #3F3F46; }
.svc:hover::after { transform: scaleX(1); }
.svc p { color: var(--muted); margin: 0; }
.num { display: block; font: 500 .9rem "Space Grotesk", sans-serif; color: var(--y); margin-bottom: 2.2rem; }
.svc-img { grid-row: span 2; padding: 0; display: flex; flex-direction: column; }
.svc-img img { width: 100%; flex: 1; min-height: 240px; object-fit: cover; }
.svc-img div { padding: 24px 28px 28px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { width: 100%; border-radius: 22px; aspect-ratio: 5/4; object-fit: cover; }
.split-rev .split-img img { aspect-ratio: 10/11; }
.calc { background: #fff; border: 2px solid #E4E4E7; border-radius: var(--r); padding: 24px; margin-top: 1.5rem; }
.calc label { font-weight: 600; display: block; margin-bottom: .4rem; }
.calc output { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.calc input { width: 100%; accent-color: var(--ink); height: 28px; }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1rem 0 .6rem; }
.calc-res div { background: var(--bg); color: var(--txt); border-radius: 12px; padding: 14px 16px; }
.calc-res div > span { display: block; font-size: .8rem; color: var(--muted); }
.calc-res b { font: 600 1.6rem "Space Grotesk", sans-serif; color: var(--y); font-variant-numeric: tabular-nums; }
.calc small { color: #71717A; }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.stars { color: var(--y); letter-spacing: .15em; margin-bottom: .8rem; }
.rev blockquote { margin: 0 0 1.4rem; color: #E4E4E7; flex: 1; }
.rev figcaption { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--muted); }
.rev figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rev figcaption b { display: block; color: var(--txt); }
.zones { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.zones li { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; color: #D4D4D8; }
.zones li::before { content: "● "; color: var(--y); font-size: .7em; }

/* FAQ */
.faq { margin-top: 1.6rem; display: grid; gap: 10px; }
details { border: 2px solid #E4E4E7; border-radius: 12px; padding: 0 18px; background: #fff; }
details[open] { border-color: var(--ink); }
summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 1.4rem "Space Grotesk", sans-serif; transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: #52525B; margin: 0; padding-bottom: 16px; }

/* Contact */
.contact-sec { background: var(--bg); color: var(--txt); }
.contact-sec .muted { color: #C4C4CC; }
.y { color: var(--y); font-weight: 600; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.coords { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.coords li { display: grid; color: #D4D4D8; }
.coords span { font: 500 .9rem "Space Grotesk", sans-serif; color: var(--y); }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 34px); display: grid; gap: 16px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: .35rem; font-size: .93rem; font-weight: 500; color: #E4E4E7; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { font: inherit; color: var(--txt); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem 1rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: #71717A; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--y); box-shadow: 0 0 0 4px rgba(255,212,0,.15); }
.urg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.urg legend { font-size: .93rem; font-weight: 500; color: #E4E4E7; margin-bottom: .4rem; }
.urg label { cursor: pointer; }
.urg input { position: absolute; opacity: 0; }
.urg span { display: block; text-align: center; padding: .7rem .4rem; border: 1.5px solid var(--line); border-radius: 10px; font-size: .88rem; transition: border-color .2s, background .2s; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot-r { background: #e5484d; } .dot-y { background: var(--y); } .dot-g { background: #4cc38a; }
.urg input:checked + span { border-color: var(--y); background: rgba(255,212,0,.1); color: #fff; }
.urg input:focus-visible + span { outline: 2px solid var(--y); outline-offset: 2px; }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { margin-top: .3rem; accent-color: var(--y); }

/* Footer + barre d'appel mobile */
.foot { background: #000; color: #71717A; padding: 26px 0; font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot a { color: #D4D4D8; }
.callbar { display: none; }

@media (max-width: 980px) {
  .hero-grid, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .chip-1 { left: 8px; } .chip-2 { right: 8px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-img { grid-column: span 2; grid-row: auto; }
  .reviews { grid-template-columns: 1fr; }
  .diag { grid-template-columns: 1fr 1fr; }
  .split-rev .split-img { order: -1; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
  .alert-txt { display: none; }
  .svc-grid, .diag { grid-template-columns: 1fr; }
  .svc-img { grid-column: auto; }
  .form .row, .urg { grid-template-columns: 1fr; }
  .calc-res { grid-template-columns: 1fr; }
  .callbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(14,14,16,.95); border-top: 1px solid var(--line); }
  .callbar .btn-y { flex: 1; }
  .callbar .btn-o { color: var(--txt); }
  body { padding-bottom: 72px; }
}
