/* Aslam GANGAT — domotique et impression 3D à La Réunion. Palette : blanc, anthracite, noir, bleu électrique. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --ink: #111318;
  --anthracite: #2b2f36;
  --muted: #5c636e;
  --line: #e1e5ea;
  --blue: #0a66ff;
  --blue-deep: #0047c2;
  --blue-soft: #e8f0ff;
  --panel: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 19, 24, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --bg-alt: #151920; --ink: #eef1f5; --anthracite: #1b1f26; --muted: #a3abb7;
    --line: #262c35; --blue: #3b82ff; --blue-deep: #8fb4ff; --blue-soft: #15223d; --panel: #171b22;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow-line { display: inline-block; width: 44px; height: 3px; background: var(--blue); border-radius: 2px; margin-bottom: 14px; }

/* Barre de navigation collante */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: .75em 1.25em; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); background: var(--blue); color: #fff; transition: transform .2s ease, background .2s ease; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 10px 0; border-top: 1px solid var(--line); }
  .top nav .btn { margin-top: 10px; justify-content: center; }
}

/* Héros : grille technique en fond, titre fort, panneau de signaux à droite */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; padding: 64px 20px 56px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 96px 20px 84px; } }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin: 1em 0 1.5em; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .3em .8em; background: var(--panel); }

/* Panneau "maison connectée" : états qui s'allument un à un au chargement */
.panel { background: var(--anthracite); color: #eef1f5; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); max-width: 440px; margin: 0 auto; width: 100%; }
.panel header { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: #aab3bf; margin-bottom: 14px; }
.panel header b { color: #fff; font-weight: 600; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 12px; opacity: 0; transform: translateY(6px); animation: rise .5s ease forwards; }
.panel li:nth-child(1) { animation-delay: .15s; } .panel li:nth-child(2) { animation-delay: .35s; } .panel li:nth-child(3) { animation-delay: .55s; } .panel li:nth-child(4) { animation-delay: .75s; }
.panel li svg { width: 22px; height: 22px; stroke: #9fc2ff; }
.panel li span { font-size: .95rem; }
.panel li .state { font-size: .8rem; color: #9fc2ff; font-weight: 600; }
.panel li .state.on { color: #5ef0a5; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ef0a5; margin-right: 6px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

section { padding: 72px 0 8px; }
section.alt { background: var(--bg-alt); padding-bottom: 72px; margin-top: 64px; }
.lede { font-size: 1.1rem; color: var(--muted); }
.two { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two { grid-template-columns: .9fr 1.3fr; gap: 56px; } }

/* Listes de prestations : icône + texte, pas de cartes identiques */
.services { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
.services li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.services svg { width: 28px; height: 28px; stroke: var(--blue); flex: none; margin-top: 2px; }
.services strong { display: block; font-weight: 600; }
.services p { margin: 2px 0 0; color: var(--muted); font-size: .98rem; }

/* Pourquoi : cartes, ici demandées explicitement, différenciées par leur chiffre d'accent */
.cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.cards li svg { width: 30px; height: 30px; stroke: var(--blue); margin-bottom: 12px; }
.cards h3 { margin-bottom: 6px; }
.cards p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Contact : une seule chose à faire, écrire */
.contact { background: var(--anthracite); color: #eef1f5; border-radius: 20px; padding: 40px 28px; margin-top: 64px; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.2fr .8fr; padding: 48px 40px; } }
.contact h2 { color: #fff; }
.contact p { color: #c6cdd6; }
.contact .card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 22px; }
.contact .card dt { font-size: .8rem; color: #aab3bf; letter-spacing: .02em; }
.contact .card dd { margin: 2px 0 14px; font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.contact .card dd a { color: #9fc2ff; text-decoration: none; }
.contact .card dd a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 44px; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Apparition discrète au défilement ; désactivée si l'utilisateur le demande */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel li { opacity: 1; transform: none; animation: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* Crédit de réalisation : visible, petit, atténué, lien suivi */
footer .credit { margin-left: auto; font-size: .8rem; color: var(--muted, var(--ink-soft)); text-decoration: none; border-bottom: 1px dotted currentColor; }
footer .credit:hover { color: inherit; }
