/* ==========================================================
   AMPÈRE HABITAT — DÉMO SITE VITRINE ÉLECTRICIEN
   Identité : panneau électrique / disjoncteurs, ambre sécurité
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
    --bg: #0d1220;
    --bg-alt: #10182a;
    --panel: #141d33;
    --panel-line: #263252;
    --text: #eef1f8;
    --muted: #9aa7c2;
    --amber: #f2c14e;
    --amber-dim: #8a6d1f;
    --copper: #c9814f;
    --ok: #4caf7d;
    --radius: 14px;
    --maxw: 1180px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
    font-family:'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:'Space Grotesk', sans-serif; line-height:1.15; letter-spacing:-.01em; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.container{ width:min(var(--maxw), calc(100% - 2.5rem)); margin:0 auto; }
section{ padding:5.5rem 0; }
.eyebrow{
    display:inline-flex; align-items:center; gap:.5rem;
    font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
    color: var(--amber); margin-bottom:1rem;
}
.eyebrow::before{ content:""; width:18px; height:2px; background:var(--amber); display:inline-block; }
.muted{ color:var(--muted); }

/* ---------- barre démo (méta, appartient à pires14.fr) ---------- */
.demo-bar{
    background:#4f46e5; color:#fff; font-size:.82rem; font-weight:600;
    text-align:center; padding:.55rem 1rem;
}
.demo-bar a{ text-decoration:underline; text-underline-offset:2px; }

/* ---------- header ---------- */
.site-header{
    position:sticky; top:0; z-index:50;
    background: rgba(13,18,32,.9); backdrop-filter: blur(10px);
    border-bottom:1px solid var(--panel-line);
}
.nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:1.1rem 0;
}
.brand{ display:flex; align-items:center; gap:.6rem; font-family:'Space Grotesk'; font-weight:700; font-size:1.15rem; }
.brand__mark{
    width:38px; height:38px; border-radius:9px;
    background:linear-gradient(135deg, var(--amber), var(--copper));
    display:grid; place-items:center; color:#1a1200; font-weight:700;
}
.nav__menu{ display:flex; gap:2rem; }
.nav__menu a{ font-size:.92rem; font-weight:600; color:var(--muted); }
.nav__menu a:hover{ color:var(--text); }
.nav__actions{ display:flex; align-items:center; gap:1rem; }
.phone-link{ display:flex; align-items:center; gap:.4rem; font-weight:700; font-size:.92rem; }
.phone-link .dot{ width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(76,175,125,.18); }
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    padding:.8rem 1.4rem; border-radius:10px; font-weight:700; font-size:.92rem;
    border:1px solid transparent; cursor:pointer;
}
.btn--primary{ background:var(--amber); color:#1a1200; }
.btn--primary:hover{ background:#f6ca6c; }
.btn--ghost{ border-color:var(--panel-line); color:var(--text); }
.btn--ghost:hover{ border-color:var(--amber); }
.menu-toggle{ display:none; background:none; border:1px solid var(--panel-line); border-radius:8px; padding:.5rem; color:var(--text); }

/* ---------- hero ---------- */
.hero{ padding-top:5rem; position:relative; overflow:hidden; }
.hero::before{
    content:""; position:absolute; inset:-20% -10% auto; height:600px;
    background: radial-gradient(circle, rgba(242,193,78,.12), transparent 60%);
    pointer-events:none;
}
.hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:3.5rem; align-items:center; position:relative; }
.hero h1{ font-size:clamp(2.1rem, 3.6vw, 3.1rem); margin-bottom:1.15rem; }
.hero h1 span{ color:var(--amber); }
.hero__lead{ color:var(--muted); font-size:1.08rem; max-width:520px; margin-bottom:1.8rem; }
.hero__ctas{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:2.2rem; }
.trust-row{ display:flex; gap:1.5rem; flex-wrap:wrap; }
.trust-row div{ display:flex; align-items:center; gap:.5rem; font-size:.85rem; color:var(--muted); }
.trust-row i{ color:var(--amber); font-style:normal; }

.hero__media{ position:relative; }
.hero__media .frame{
    border-radius:20px; overflow:hidden; border:1px solid var(--panel-line);
    box-shadow:0 30px 60px rgba(0,0,0,.4);
}
.hero__media img{ width:100%; height:420px; object-fit:cover; }
.badge-float{
    position:absolute; left:-1.2rem; bottom:-1.2rem;
    background:var(--panel); border:1px solid var(--panel-line);
    border-radius:14px; padding:1rem 1.2rem; display:flex; gap:.9rem; align-items:center;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}
.badge-float strong{ display:block; font-size:1.3rem; font-family:'Space Grotesk'; }
.badge-float span{ font-size:.78rem; color:var(--muted); }
.badge-float .icon{ width:42px; height:42px; border-radius:10px; background:rgba(242,193,78,.15); color:var(--amber); display:grid; place-items:center; }

/* ---------- bandeau disjoncteurs (signature) ---------- */
.breaker-strip{ background:var(--bg-alt); border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line); }
.breaker-strip .container{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.breaker{
    display:flex; align-items:center; gap:.9rem; padding:1.6rem 1rem;
    border-right:1px solid var(--panel-line);
}
.breaker:last-child{ border-right:none; }
.breaker__switch{
    width:26px; height:44px; border-radius:6px; background:#1b2540; border:1px solid var(--panel-line);
    position:relative; flex:none;
}
.breaker__switch::after{
    content:""; position:absolute; left:3px; right:3px; top:3px; height:18px;
    background:var(--amber); border-radius:4px;
    box-shadow:0 0 12px rgba(242,193,78,.55);
}
.breaker strong{ display:block; font-family:'Space Grotesk'; font-size:1.35rem; }
.breaker span{ font-size:.8rem; color:var(--muted); }

/* ---------- section header générique ---------- */
.section__head{ max-width:640px; margin-bottom:3rem; }
.section__head p{ color:var(--muted); margin-top:.8rem; }

/* ---------- services ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.service-card{
    background:var(--panel); border:1px solid var(--panel-line); border-radius:16px; padding:1.7rem;
}
.service-card .icon{
    width:46px; height:46px; border-radius:12px; background:rgba(242,193,78,.13); color:var(--amber);
    display:grid; place-items:center; margin-bottom:1.1rem;
}
.service-card h3{ font-size:1.15rem; margin-bottom:.6rem; }
.service-card p{ color:var(--muted); font-size:.94rem; }

/* ---------- pourquoi nous / conformité ---------- */
.compliance{ background:var(--bg-alt); }
.compliance__grid{ display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:center; }
.compliance__media{ border-radius:18px; overflow:hidden; border:1px solid var(--panel-line); }
.compliance__media img{ width:100%; height:360px; object-fit:cover; }
.check-list{ display:grid; gap:1rem; margin-top:1.6rem; }
.check-list li{ display:flex; gap:.8rem; align-items:flex-start; color:var(--muted); font-size:.96rem; }
.check-list .mark{ flex:none; width:22px; height:22px; border-radius:50%; background:rgba(76,175,125,.18); color:var(--ok); display:grid; place-items:center; font-size:.75rem; margin-top:.1rem; }

/* ---------- galerie réalisations ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.gallery-item{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:4/3; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover img{ transform:scale(1.07); }
.gallery-item span{
    position:absolute; left:0; right:0; bottom:0; padding:.9rem 1rem .8rem;
    background:linear-gradient(0deg, rgba(0,0,0,.75), transparent);
    font-size:.85rem; font-weight:700;
}

/* ---------- avis ---------- */
.reviews-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.review-card{ background:var(--panel); border:1px solid var(--panel-line); border-radius:16px; padding:1.6rem; }
.stars{ color:var(--amber); letter-spacing:.15em; margin-bottom:.9rem; font-size:.95rem; }
.review-card p{ color:var(--text); font-size:.95rem; margin-bottom:1.1rem; }
.review-card footer{ font-size:.82rem; color:var(--muted); }

/* ---------- cta band ---------- */
.cta-band{
    background:linear-gradient(120deg, rgba(242,193,78,.14), rgba(201,129,79,.08));
    border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line);
}
.cta-band__inner{ display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.cta-band h2{ font-size:1.7rem; max-width:520px; }

/* ---------- contact ---------- */
.contact__grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:3.5rem; }
.contact-cards{ display:grid; gap:1rem; margin-top:1.8rem; }
.contact-card{
    display:flex; gap:1rem; align-items:center; background:var(--panel); border:1px solid var(--panel-line);
    border-radius:14px; padding:1rem 1.2rem;
}
.contact-card .icon{ width:40px; height:40px; border-radius:10px; background:rgba(242,193,78,.13); color:var(--amber); display:grid; place-items:center; flex:none; }
.contact-card strong{ display:block; font-size:.95rem; }
.contact-card span{ font-size:.82rem; color:var(--muted); }

.contact-form{ background:var(--panel); border:1px solid var(--panel-line); border-radius:18px; padding:2rem; display:grid; gap:1.1rem; }
.contact-form label{ display:grid; gap:.5rem; font-size:.88rem; font-weight:600; color:var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea{
    background:var(--bg-alt); border:1px solid var(--panel-line); border-radius:10px; padding:.75rem .9rem;
    color:var(--text); font-family:inherit; font-size:.95rem;
}
.contact-form textarea{ resize:vertical; }
.form-note{ font-size:.78rem; color:var(--muted); }

/* ---------- footer ---------- */
.footer{ padding:3rem 0 2.2rem; border-top:1px solid var(--panel-line); }
.footer__grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:1.5rem; align-items:center; }
.footer small{ color:var(--muted); font-size:.8rem; }
.footer__links{ display:flex; gap:1.6rem; font-size:.85rem; color:var(--muted); }

/* ---------- responsive ---------- */
@media (max-width:900px){
    .hero__grid, .compliance__grid, .contact__grid{ grid-template-columns:1fr; }
    .services-grid, .reviews-grid{ grid-template-columns:1fr 1fr; }
    .gallery-grid{ grid-template-columns:1fr 1fr; }
    .breaker-strip .container{ grid-template-columns:1fr 1fr; }
    .breaker{ border-bottom:1px solid var(--panel-line); }
    .nav__menu{ display:none; }
    .menu-toggle{ display:inline-grid; }
}
@media (max-width:600px){
    section{ padding:3.5rem 0; }
    .services-grid, .reviews-grid, .gallery-grid{ grid-template-columns:1fr; }
    .breaker-strip .container{ grid-template-columns:1fr 1fr; }
    .cta-band__inner{ flex-direction:column; align-items:flex-start; }
    .hero__media img{ height:280px; }
}
