/* =============================================================
   Micrologiq — Design system 2026
   ============================================================= */

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

:root {
    /* Couleurs — vert Micrologiq (logo feuille) #95ce80 dominant */
    --bg:        #f4f9f1;
    --surface:   #ffffff;
    --ink:       #2f3a2a;
    --ink-soft:  #586351;
    --muted:     #95a08c;
    --line:      #e6ece1;

    --brand:     #95ce80;   /* vert Micrologiq (dominant) */
    --brand-2:   #b8e1a8;   /* vert clair */
    --brand-ink: #57a23c;   /* vert foncé (texte/hover, lisible sur blanc) */
    --accent:    #95ce80;
    --success:   #4cbb6c;

    --grad: linear-gradient(120deg, #95ce80 0%, #84c66e 45%, #71b85a 100%);
    /* dégradé pour boutons/bandeaux pleins : vert plus foncé -> texte blanc lisible */
    --grad-cta: linear-gradient(135deg, #6cb551 0%, #4f9e36 100%);
    --grad-soft: linear-gradient(160deg, #eef8e8 0%, #f1faec 100%);

    /* Rayons & ombres */
    --r-sm: 12px;
    --r:    18px;
    --r-lg: 26px;
    --shadow:    0 4px 24px rgba(47, 58, 42, .06);
    --shadow-md: 0 12px 40px rgba(47, 58, 42, .10);
    --shadow-lg: 0 26px 60px rgba(149, 206, 128, .30);

    --container: 1180px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;            /* filet anti-débordement horizontal (n'altère pas le sticky) */
}

h1, h2, h3, h4 { font-family: 'Sora', 'Manrope', sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* Widget avis Google (Elfsight) : empêche le carrousel tiers de déborder la page */
[class*="elfsight-app-"] { max-width: 100%; overflow: hidden; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(20px, 2.8vw, 38px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 .8rem/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); background: #eaf6e4; padding: 8px 14px; border-radius: 999px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(14px, 1.8vw, 26px); }
.section-head.center { text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Boutons ---------- */
.btn {
    --pad: 14px 26px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad); border-radius: 999px; font: 600 1rem 'Manrope', sans-serif;
    cursor: pointer; border: 1px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 8px 20px rgba(79,158,54,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,158,54,.40); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.9); color: var(--brand-ink); }
.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { --pad: 10px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Sora'; font-weight: 800; font-size: 1.3rem; }
.brand .logo {
    width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
    display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(149,206,128,.4);
}
.brand .logo svg { width: 21px; height: 21px; }
.brand b { color: var(--brand); }
.brand-logo { height: 60px; width: auto; display: block; }
.footer-brand-logo { height: 44px; background: #fff; padding: 7px 12px; border-radius: 12px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
    padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-soft);
    transition: .2s;
}
.nav-links a:hover { background: #eef7e9; color: var(--ink); }
.nav-links a.active { color: var(--brand); background: #eaf6e4; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.nav-phone svg { width: 18px; height: 18px; color: var(--brand); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 38px) 0 clamp(22px, 3.2vw, 44px); }
.hero::before {
    content: ''; position: absolute; inset: -8% 0 auto auto; width: 44vw; height: 44vw; max-width: 480px; max-height: 480px;
    background: radial-gradient(circle at 30% 30%, rgba(149,206,128,.22), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(132,198,110,.18), transparent 60%);
    filter: blur(10px); z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-text { max-width: 640px; }
/* desktop uniquement : le hero ne clippe pas le menu déroulant de recherche */
@media (min-width: 1041px) { .hero { overflow: visible; } }
.hero-badge { margin-bottom: 22px; }
.hero-badge .star-ic { color: #FBBC05; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.18rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust .rate { display: flex; align-items: center; gap: 10px; }
.hero-trust strong { font-family: 'Sora'; }

.hero-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; box-shadow: var(--shadow-md);
}
.hero-card h3 { display: flex; align-items: center; gap: 10px; }
.hero-card h3 svg { width: 22px; height: 22px; color: var(--brand); }

/* ---------- Recherche intelligente ---------- */
.smart-search { position: relative; }
.smart-search .field {
    display: flex; align-items: center; gap: 10px; background: var(--bg);
    border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 16px; transition: .2s;
}
.smart-search .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(149,206,128,.12); background: #fff; }
.smart-search .field svg.ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.smart-search input {
    flex: 1; border: 0; background: none; outline: none; font: 500 1rem 'Manrope'; color: var(--ink); padding: 10px 0;
}
.search-hint { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-tags button {
    border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px;
    font: 600 .82rem 'Manrope'; color: var(--ink-soft); cursor: pointer; transition: .2s;
}
.search-tags button:hover { border-color: var(--brand); color: var(--brand); }

.search-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    max-height: 380px; overflow: auto; padding: 8px; display: none;
}
.search-results.show { display: block; }
.search-results .res {
    display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; cursor: pointer; transition: .15s;
}
.search-results .res:hover, .search-results .res.kbd { background: #edf7e7; }
.search-results .res .ava { width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; }
.search-results .res .ava img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.search-results .res .ava-ph { background: radial-gradient(circle at 50% 40%, #eef8e8, #e3f1da); color: var(--brand); }
.search-results .res .ava-ph svg { width: 22px; height: 22px; }
.search-results .res .meta { flex: 1; min-width: 0; }
.search-results .res .meta .t { display: block; font-weight: 700; font-size: .96rem; }
.search-results .res .meta .s { display: block; font-size: .82rem; color: var(--muted); }
.search-results .res .go { color: var(--brand); font-weight: 800; font-size: 1.1rem; }
.search-results .empty { padding: 24px; text-align: center; color: var(--muted); }
.search-results .cat-label { padding: 10px 12px 4px; font: 700 .72rem 'Manrope'; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Bouton-icône (loupe header) ---------- */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none; padding: 0;
    background: #eef7e9; color: var(--brand-ink); border: 1px solid transparent; border-radius: 50%;
    cursor: pointer; transition: .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: #e3f1da; }

/* ---------- Overlay de recherche (header) ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(31, 41, 26, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
    background: #fff; padding: 18px clamp(16px, 4vw, 28px) 22px;
    box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
    transform: translateY(-14px); transition: transform .22s ease;
}
.search-overlay.open .search-overlay-inner { transform: none; }
.search-overlay .smart-search { max-width: 720px; margin: 0 auto; }
.search-overlay .field { background: #fff; }
.search-overlay .search-close {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer;
}
.search-overlay .search-close:hover { background: var(--bg); color: var(--ink); }
.search-overlay .search-close svg { width: 20px; height: 20px; }
/* dans l'overlay, les résultats s'affichent dans le flux (pas en position absolue) */
.search-overlay .search-results { position: static; margin-top: 10px; box-shadow: none; max-height: min(60vh, 460px); }
body.no-scroll { overflow: hidden; }

/* ---------- Bandeau atouts ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 26px; box-shadow: var(--shadow); transition: .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; color: var(--brand); margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .94rem; }

/* ---------- Grille produits ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.cards > * { min-width: 0; }   /* autorise les colonnes à rétrécir (évite le débordement) */
.product-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe8c2; }
.product-card .thumb { display: block; aspect-ratio: 1/1; background: #fff; position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--brand); }
.product-card .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--brand); font: 700 .72rem 'Manrope'; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow); }
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.product-card .brand { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 1.05rem; margin: 4px 0 14px; }
.product-card .card-cta { margin-top: auto; }
.product-card .card-cta a {
    display: flex; width: 100%; text-align: center;
    white-space: normal; line-height: 1.25; padding: 10px 12px;   /* tient dans une carte étroite, sans être coupé */
}

/* ---------- Fiche produit ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.product-gallery .main { aspect-ratio: 1/1; display: grid; place-items: center; padding: 30px; }
.product-gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .tag { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--brand); font: 700 .76rem 'Manrope'; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow); }
.pd-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem 'Manrope'; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: #eaf6e4; padding: 7px 13px; border-radius: 999px; }
.product-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 16px 0 10px; }
.pd-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-price { font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.pd-price small { font-family: 'Manrope'; font-weight: 500; font-size: .9rem; color: var(--muted); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.pd-chips span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 .85rem 'Manrope'; color: var(--ink-soft); }
.pd-chips svg { width: 15px; height: 15px; color: var(--success); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pd-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pd-trust div { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.pd-trust svg { width: 20px; height: 20px; color: var(--brand); }

/* liste des réparations possibles (sans tarif) */
.repair-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.repair-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.repair-item .ri-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.repair-item .ri-ic svg { width: 18px; height: 18px; }
.repair-item b { display: block; color: var(--ink); }
.repair-item span { font-size: .9rem; color: var(--muted); }
@media (max-width: 680px) { .repair-list { grid-template-columns: 1fr; } }

@media (max-width: 880px) {
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Avis Google ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: center; margin-bottom: 44px; }
.google-badge { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 22px; box-shadow: var(--shadow); }
.google-badge .g { font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; }
.google-badge .g .b { color:#4285F4 } .google-badge .g .o{color:#EA4335} .google-badge .g .o2{color:#FBBC05} .google-badge .g .g2{color:#34A853}
.google-badge .score { font-family: 'Sora'; font-size: 2rem; font-weight: 800; line-height: 1; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.review .top { display: flex; align-items: center; gap: 12px; }
.review .ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: 'Sora'; }
.review .who { font-weight: 700; }
.review .who small { display: block; color: var(--muted); font-weight: 500; }
.review p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.review .gicon { margin-left: auto; width: 22px; height: 22px; }

/* étoiles */
.stars { display: inline-flex; gap: 2px; }
.stars .star { width: 16px; height: 16px; fill: #d9dee9; }
.stars .star.on { fill: #FBBC05; }

/* ---------- CTA bandeau ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--grad-cta); color: #fff; padding: clamp(32px, 4.5vw, 56px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post .cover { display: block; aspect-ratio: 16/10; background: var(--grad-soft); overflow: hidden; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post:hover .cover img { transform: scale(1.06); }
.post .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .8rem; }
.post .tag { font: 700 .72rem 'Manrope'; letter-spacing:.08em; text-transform: uppercase; color: var(--brand); }
.post h3 { margin: 0 0 8px; }
.post h3 a { color: inherit; }
.post h3 a:hover { color: var(--brand); }
.post .read { color: var(--brand); font-weight: 700; font-size: .9rem; display:inline-flex; gap:6px; align-items:center; margin-top: auto; }

/* ---------- Article ---------- */
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-bottom: 30px; }
.article-body { font-size: 1.06rem; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul { padding-left: 1.2em; }
.article-body p { margin: 0 0 1.1rem; }
.article-body img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); margin: 8px 0 4px; }
.article-body .btn { color: #fff; }
.article-body .btn:hover { color: #fff; }
/* Vidéo YouTube responsive (16:9) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); margin: 10px 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Carrousel d'images (galerie article) ---------- */
.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 30px; background: #0c130c; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; transition: transform .45s cubic-bezier(.4,.0,.2,1); }
.gallery-slide { flex: 0 0 100%; }
.gallery-slide img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--brand-ink); display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: .2s;
}
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.gallery-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.55); transition: .25s; }
.gallery-dot:hover { background: rgba(255,255,255,.8); }
.gallery-dot.active { width: 24px; background: #fff; }
.gallery.single .gallery-nav, .gallery.single .gallery-dots { display: none; }
@media (max-width: 600px) { .gallery-nav { width: 38px; height: 38px; } .gallery-slide img { aspect-ratio: 4/3; } }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 30px; margin-top: 36px; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field-group input, .field-group textarea, .field-group select {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font: 500 1rem 'Manrope'; background: var(--bg); color: var(--ink); transition: .2s;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(149,206,128,.1);
}
.field-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 600; }
.alert.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Split contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list b { display: block; }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: var(--r); margin-top: 24px; filter: grayscale(.2); }

/* ---------- Page header ---------- */
.page-hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .35em; }
.page-hero p { font-size: 1.02rem; max-width: 620px; margin-bottom: 0; }

/* ---------- Placeholder produit sans image ---------- */
.thumb-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 50% 38%, #eef8e8, #e3f1da); color: var(--brand); }
.thumb-ph svg { width: 56px; height: 56px; opacity: .7; }
.thumb-ph b { font: 800 .82rem 'Manrope'; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }

/* ---------- Filtres (liens serveur) ---------- */
.filter-link { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font: 600 .88rem 'Manrope'; color: var(--ink-soft); transition: .2s; }
.filter-link:hover { border-color: var(--brand); color: var(--brand-ink); }
.filter-link.active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.filter-link .cnt { font-size: .72rem; opacity: .7; font-weight: 700; }
.filter-link.active .cnt { opacity: .85; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.page-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font: 700 .9rem 'Manrope'; color: var(--ink); transition: .2s; }
.page-btn:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.page-info { font-weight: 600; color: var(--muted); font-size: .9rem; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font: 600 .9rem 'Manrope'; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.filters button.active, .filters button:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1322; color: #c7cedb; padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: 'Sora'; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #aab3c5; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-primary { color: #fff; }   /* le bouton garde son texte blanc (pas la couleur des liens) */
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .94rem; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #97a1b5; font-size: .94rem; }
.footer-contact { display: grid; gap: 10px; font-size: .94rem; }
.footer-contact span { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand-2); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8593a8; }

/* ---------- Pré-header (topbar) ---------- */
.topbar { background: var(--grad-cta); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 6px 0; }
.topbar-msg { margin: 0; color: rgba(255,255,255,.95); font-weight: 500; line-height: 1.35; }
.topbar-cta { display: inline-flex; align-items: center; gap: 7px; flex: none; background: #fff; color: var(--brand-ink); font-weight: 800; font-size: .82rem; padding: 7px 15px; border-radius: 999px; white-space: nowrap; transition: .2s; }
.topbar-cta svg { width: 15px; height: 15px; }
.topbar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* ---------- Header : boutons Appeler + Devis groupés ---------- */
.cta-group { display: inline-flex; align-items: stretch; border-radius: 999px; box-shadow: var(--shadow); }
.cta-call { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font-weight: 700; font-size: .9rem; transition: .2s; }
.cta-call svg { width: 17px; height: 17px; color: var(--brand-ink); }
.cta-call:hover { background: #f3f9ef; color: var(--brand-ink); }
.cta-quote { display: inline-flex; align-items: center; background: var(--grad-cta); color: #fff; border-radius: 0 999px 999px 0; padding: 9px 18px; font-weight: 800; font-size: .9rem; transition: .2s; }
.cta-quote:hover { filter: brightness(1.05); color: #fff; }

/* ---------- Boutons flottants ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab { display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 10px 26px rgba(47,58,42,.26); transition: .22s; }
.fab svg { width: 22px; height: 22px; }
.fab-call { width: 54px; height: 54px; border-radius: 50%; justify-content: center; background: #fff; color: var(--brand-ink); border: 1px solid var(--line); }
.fab-call:hover { transform: translateY(-3px) scale(1.04); }

/* Bandeau d'appel sticky — affiché uniquement en mobile (voir media query) */
.call-bar { display: none; }

/* ---------- Captcha ---------- */
.captcha-group input { max-width: 220px; }
.field-err { display: block; margin-top: 6px; color: #c0392b; font-size: .85rem; font-weight: 600; }
.field-group input.has-error { border-color: #e0a0a0; background: #fdf3f3; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .hero .container { grid-template-columns: 1fr; gap: 30px; }
    .hero-card { display: none; }   /* recherche du hero = desktop ; en mobile, la loupe du header s'en charge */
    .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .review-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .topbar-msg { font-size: .8rem; }
}
/* Header : bascule en menu burger dès que la barre horizontale ne tient plus */
@media (max-width: 1040px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
        background: #fff; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    }
    .nav-links.open a { padding: 12px 14px; border-radius: 10px; }
    .burger { display: block; order: 3; padding: 10px; }
    .burger span { width: 22px; }
    .nav { gap: 12px; }
    .nav-cta { margin-left: auto; gap: 10px; }   /* pousse les actions à droite (nav-links masqué) */
    .cta-group { box-shadow: none; }
    .cta-quote { display: none; }                /* devis déjà en topbar + bouton flottant */
    .cta-call span { display: none; }            /* bouton appeler en icône seule */
    .cta-call {                                  /* pastille ronde, accent vert discret */
        width: 44px; height: 44px; padding: 0; justify-content: center;
        background: #eef7e9; color: var(--brand-ink);
        border: 1px solid transparent; border-radius: 50%;
    }
    .cta-call svg { color: var(--brand-ink); }
    .cta-call:hover { background: #e3f1da; }
}
@media (max-width: 760px) {
    .topbar-msg { display: none; }                /* garde uniquement le bouton devis en mobile */
    .topbar-inner { justify-content: center; }
    .cta-call { display: none; }                  /* appel déjà couvert par le bandeau bas */
    .features, .review-grid, .blog-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn, .pd-actions .btn { width: 100%; }
    .cta-actions { flex-direction: column; }

    /* Bandeau d'appel sticky en bas (remplace les boutons flottants) */
    .fab-stack { display: none; }
    .call-bar {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: var(--grad-cta); color: #fff;
        font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.02rem;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px rgba(47,58,42,.16);
    }
    .call-bar svg { width: 20px; height: 20px; flex: none; }
    .call-bar strong { font-weight: 800; }
    .call-bar:active { filter: brightness(.96); }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card h3 { font-size: .95rem; }
    .product-card .body { padding: 12px 12px 14px; }
    .product-card .card-cta a { font-size: .82rem; padding: 9px 10px; }   /* CTA carte compact (2 lignes max) */
    h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
    .nav { gap: 10px; }
    .brand-logo { height: 46px; }
    /* Boutons à texte long : autorise le retour à la ligne plutôt que de déborder */
    .btn { white-space: normal; max-width: 100%; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .6s ease forwards; }
