/* =========================================================
   JD Mazout — Feuille de style (refonte 2026)
   Couleurs issues du logo : jaune/or, rouge, bleu marine.
   ========================================================= */

:root {
    --gold:        #FFC400;
    --gold-deep:   #F0A500;
    --red:         #E2342B;
    --red-deep:    #C21E16;
    --navy:        #0F1E3D;
    --navy-700:    #16284C;
    --navy-500:    #29406E;
    --ink:         #1A2233;
    --muted:       #5C6678;
    --line:        #E7EAF0;
    --bg:          #F6F8FC;
    --bg-soft:     #FFFFFF;
    --white:       #FFFFFF;

    --radius:      18px;
    --radius-lg:   28px;
    --radius-sm:   12px;
    --shadow:      0 18px 45px -20px rgba(15, 30, 61, .35);
    --shadow-sm:   0 8px 24px -14px rgba(15, 30, 61, .3);
    --shadow-gold: 0 16px 40px -16px rgba(240, 165, 0, .55);

    --maxw:        1180px;
    --font:        'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display:     'Outfit', var(--font);

    --t:           .28s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; color: var(--navy); letter-spacing: -.02em; }

section { position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red-deep);
    background: rgba(226, 52, 43, .08);
    padding: 7px 14px; border-radius: 100px;
}

/* ---------- Boutons ---------- */
.btn {
    --bg-btn: var(--navy);
    --fg-btn: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--display); font-weight: 800; font-size: 1rem;
    padding: 15px 28px; border-radius: 100px; border: 0; cursor: pointer;
    background: var(--bg-btn); color: var(--fg-btn);
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }
.btn--primary { --bg-btn: linear-gradient(135deg, var(--gold), var(--gold-deep)); --fg-btn: var(--navy); box-shadow: var(--shadow-gold); }
.btn--red { --bg-btn: linear-gradient(135deg, var(--red), var(--red-deep)); --fg-btn: #fff; }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--navy); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* =========================================================
   En-tête
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; }

.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item strong { color: var(--gold); }
.topbar__item--muted { color: rgba(255, 255, 255, .55); }

.navbar {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t);
}
.site-header.is-stuck .navbar { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 18px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 46px; width: auto; max-height: 46px; object-fit: contain; }

.mainnav { display: flex; align-items: center; gap: 6px; }
.mainnav > a {
    font-weight: 600; font-size: .98rem; color: var(--navy-700);
    padding: 9px 14px; border-radius: 100px; transition: background var(--t), color var(--t);
}
.mainnav > a:hover { background: rgba(15, 30, 61, .06); }
.mainnav > a.is-active { color: var(--red-deep); }
.nav-cta { margin-left: 8px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--navy); transition: var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 600px at 88% -10%, rgba(255, 196, 0, .22), transparent 60%),
        radial-gradient(900px 500px at -5% 10%, rgba(226, 52, 43, .12), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    padding: 70px 0 90px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px 0 18px; }
.hero h1 .hl { position: relative; color: var(--navy); white-space: nowrap; }
.hero h1 .hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .32em;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep)); z-index: -1; border-radius: 6px;
    transform: rotate(-1.2deg);
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__cta {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; margin-top: 30px; width: 100%;
}
.hero__phones {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center; align-items: center;
}
.hero__trust {
    display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap;
    justify-content: center; width: 100%;
}
.hero__trust div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__trust b { font-family: var(--display); font-size: 1.7rem; color: var(--navy); }
.hero__trust span { font-size: .85rem; color: var(--muted); }

.hero__visual { position: relative; }
.hero__card-img {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    aspect-ratio: 4 / 3.2; background: var(--navy);
}
.hero__card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute; left: -18px; bottom: 28px;
    background: #fff; border-radius: var(--radius); padding: 16px 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.hero__badge .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy); }
.hero__badge b { display: block; font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.hero__badge span { font-size: .82rem; color: var(--muted); }

/* =========================================================
   Calculateur
   ========================================================= */
.calc { padding: 80px 0; }
.calc__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.calc__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 14px 0 12px; }
.calc__head p { color: var(--muted); font-size: 1.05rem; }

.calc__panel {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    border: 1px solid var(--line); overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
}
.calc__form { padding: 42px; }
.calc__form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.calc__form .sub { color: var(--muted); margin-bottom: 26px; font-size: .96rem; }

.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 700; color: var(--navy-700); margin-bottom: 10px; font-size: .95rem; }

.qty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qty-grid input { position: absolute; opacity: 0; pointer-events: none; }
.qty-grid label {
    display: block; text-align: center; padding: 13px 6px; border-radius: var(--radius-sm);
    border: 2px solid var(--line); font-weight: 700; color: var(--navy-700); cursor: pointer;
    transition: var(--t); font-size: .98rem; background: #fff;
}
.qty-grid label small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); }
.qty-grid label:hover { border-color: var(--gold-deep); }
.qty-grid input:checked + label {
    border-color: var(--gold-deep); background: linear-gradient(135deg, rgba(255,196,0,.16), rgba(240,165,0,.08));
    color: var(--navy); box-shadow: var(--shadow-gold);
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line);
    font: inherit; font-weight: 600; color: var(--ink); background: #fff; transition: var(--t);
}
.input:focus { outline: 0; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(41,64,110,.12); }
.input::placeholder { color: #9aa3b2; font-weight: 500; }

.calc__aside {
    background:
        radial-gradient(600px 400px at 110% -10%, rgba(255,196,0,.18), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
    color: #fff; padding: 42px; display: flex; flex-direction: column;
}
.calc__result { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.result-placeholder { text-align: center; color: rgba(255,255,255,.7); }
.result-placeholder .big-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--gold); }
.result-placeholder h4 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }

.price-cards { display: grid; gap: 14px; }
.price-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 20px; transition: var(--t);
}
.price-card.is-best { background: linear-gradient(135deg, rgba(255,196,0,.22), rgba(255,196,0,.06)); border-color: rgba(255,196,0,.5); }
.price-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.price-card__name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.price-card__tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 4px 10px; border-radius: 100px; }
.price-card__price { font-family: var(--display); font-size: 2.1rem; font-weight: 900; color: #fff; line-height: 1; margin: 8px 0; }
.price-card__price small { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.7); }
.price-card__unit { font-size: .85rem; color: rgba(255,255,255,.7); }
.price-card .btn { margin-top: 16px; }

.result-meta { margin-top: 18px; font-size: .82rem; color: rgba(255,255,255,.6); text-align: center; }

.alert {
    border-radius: var(--radius); padding: 22px; text-align: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.alert h4 { color: #fff; margin-bottom: 8px; }
.alert p { color: rgba(255,255,255,.8); font-size: .95rem; }
.alert .btn { margin-top: 14px; }
.alert--warn { background: rgba(226,52,43,.16); border-color: rgba(226,52,43,.4); }

.is-hidden { display: none !important; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--gold); margin: 0 auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Avantages / features
   ========================================================= */
.features { padding: 30px 0 70px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    transition: var(--t);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(15,30,61,.06); color: var(--navy); }
.feature:nth-child(2) .ico { background: rgba(255,196,0,.18); color: var(--gold-deep); }
.feature:nth-child(3) .ico { background: rgba(226,52,43,.1); color: var(--red-deep); }
.feature h4 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   Bandeau "pourquoi extra"
   ========================================================= */
.band { padding: 70px 0; }
.band__inner {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(255,196,0,.18), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-lg); color: #fff; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
    overflow: hidden;
}
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.band p { color: rgba(255,255,255,.82); margin-bottom: 24px; }
.band__list { list-style: none; display: grid; gap: 14px; }
.band__list li { display: flex; align-items: flex-start; gap: 12px; }
.band__list .check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 900; }
.band__list b { color: #fff; }
.band__list span { color: rgba(255,255,255,.75); font-size: .92rem; display: block; }

/* =========================================================
   Conseils
   ========================================================= */
.advice { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.advice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.advice-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: var(--t); position: relative; overflow: hidden;
}
.advice-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--red)); transform: scaleX(0); transform-origin: left; transition: var(--t); }
.advice-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.advice-card:hover::before { transform: scaleX(1); }
.advice-card .num { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--line); line-height: 1; }
.advice-card h4 { font-size: 1.15rem; margin: 10px 0; }
.advice-card p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   Zones
   ========================================================= */
.zones { padding: 20px 0 80px; }
.zones__inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm); }
.zones__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.zone-pill {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--bg); transition: var(--t); font-weight: 600; color: var(--navy-700);
}
.zone-pill:hover { background: #fff; border-color: var(--gold-deep); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.zone-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; margin-top: 7px; }
.zone-pill__text { display: flex; flex-direction: column; gap: 3px; }
.zone-pill__text b { color: var(--navy); font-weight: 700; font-size: 1rem; }
.zone-pill__text small { color: var(--muted); font-weight: 500; font-size: .82rem; line-height: 1.4; }

/* =========================================================
   CTA final
   ========================================================= */
.cta { padding: 0 0 90px; }
.cta__inner {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: var(--radius-lg); padding: 56px; text-align: center; box-shadow: var(--shadow-gold);
}
.cta__inner h2 { color: var(--navy); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.cta__inner p { color: rgba(15,30,61,.78); font-size: 1.1rem; margin-bottom: 26px; font-weight: 600; }
.cta__phones { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }

/* =========================================================
   Pied de page
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__logo { display: block; height: auto; max-height: 44px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 18px; }
.footer__tag { font-size: .95rem; max-width: 360px; }
.footer__group { margin-top: 16px; font-size: .9rem; }
.footer__group strong { color: var(--gold); }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer__links, .footer__contact { list-style: none; display: grid; gap: 12px; }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact svg { color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.footer__contact a:hover { color: var(--gold); }
.footer__tva { margin-top: 16px; font-size: .82rem; color: rgba(255,255,255,.45); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__credit a { color: var(--gold); font-weight: 700; }
.footer__credit a:hover { text-decoration: underline; }

/* =========================================================
   Pages internes (commande, contact, légales)
   ========================================================= */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg)); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 10px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.breadcrumb { font-size: .85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--red-deep); }

.section { padding: 60px 0; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 40px;
}
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }

.summary { list-style: none; display: grid; gap: 0; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.summary li:last-child { border-bottom: 0; }
.summary .k { color: var(--muted); }
.summary .v { font-weight: 700; color: var(--navy); text-align: right; }
.summary .total .v { font-size: 1.4rem; color: var(--red-deep); }

.jdm-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 700; color: var(--navy-700); margin-bottom: 8px; font-size: .9rem; }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%235C6678'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.notice { border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.notice--info { background: rgba(41,64,110,.07); border: 1px solid rgba(41,64,110,.15); color: var(--navy-700); }
.notice--ok { background: rgba(34,160,90,.1); border: 1px solid rgba(34,160,90,.3); color: #166c40; }
.notice--warn { background: rgba(226,52,43,.08); border: 1px solid rgba(226,52,43,.25); color: var(--red-deep); }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; transition: var(--t); }
.tab-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-pane { display: none; font-size: .92rem; color: var(--muted); }
.tab-pane.is-active { display: block; }

.legal h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Actualités ---------- */
.news-home { padding: 80px 0; background: var(--bg); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 24px 26px 28px; }
.news-card__date { font-size: .82rem; font-weight: 700; color: var(--red-deep); text-transform: uppercase; letter-spacing: .06em; }
.news-card h2, .news-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.news-card h2 a, .news-card h3 a { color: var(--navy); }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--red-deep); }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-card__link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--red-deep); font-size: .9rem; }
.news-card__link:hover { text-decoration: underline; }

.article-body__img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 420px; object-fit: cover; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pagination__info { color: var(--muted); font-weight: 600; }

/* ---------- Admin navigation ---------- */
.admin-nav {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
    padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.admin-nav a {
    padding: 10px 18px; border-radius: 100px; font-weight: 700; font-size: .88rem;
    color: var(--muted); border: 1px solid transparent; transition: var(--t);
}
.admin-nav a:hover { color: var(--navy); background: var(--bg); }
.admin-nav a.is-active { background: var(--navy); color: #fff; }
.admin-nav__out { margin-left: auto; color: var(--red-deep) !important; }
.admin-nav__out:hover { background: rgba(226,52,43,.08) !important; }

.admin-help { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.admin-items-list { display: grid; gap: 16px; }
.admin-item-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px;
}
.admin-item-card h3 { font-size: .95rem; color: var(--navy-500); margin-bottom: 14px; }

.admin-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.admin-img-field label { display: block; font-weight: 700; color: var(--navy-700); margin-bottom: 12px; }
.admin-img-preview {
    background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 16px; margin-bottom: 12px; text-align: center;
}
.admin-img-preview img { max-height: 140px; width: auto; margin: 0 auto; border-radius: 8px; }
.admin-img-hint { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 980px) {
    .admin-img-grid { grid-template-columns: 1fr; }
    .admin-sections-layout { grid-template-columns: 1fr; }
    .admin-sections-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Pages CMS admin ---------- */
.admin-pages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.admin-page-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px 30px; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.admin-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.admin-page-card h2 { font-size: 1.25rem; margin-bottom: 8px; color: var(--navy); }
.admin-page-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.admin-page-card__meta { font-size: .82rem; font-weight: 700; color: var(--red-deep); }

.admin-sections-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.admin-sections-nav {
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px;
    position: sticky; top: 130px;
}
.admin-sections-nav a {
    padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
    color: var(--muted); transition: var(--t);
}
.admin-sections-nav a:hover { background: var(--bg); color: var(--navy); }
.admin-sections-nav a.is-active { background: var(--navy); color: #fff; }

.admin-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-gallery__item {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.admin-gallery__item img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.admin-gallery__del { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--red-deep); margin-top: 8px; cursor: pointer; }

.admin-article-list { list-style: none; display: grid; gap: 12px; }
.admin-article-list__item {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
    background: var(--bg);
}
.admin-article-list__item.is-editing { border-color: var(--gold-deep); background: #fffbeb; }
.admin-article-list__main { margin-bottom: 12px; }
.admin-article-list__title { font-weight: 800; color: var(--navy); font-size: 1rem; display: block; margin-bottom: 6px; }
.admin-article-list__title:hover { color: var(--red-deep); }
.admin-article-list__badge {
    display: inline-block; font-size: .75rem; font-weight: 700; padding: 4px 10px;
    border-radius: 100px; margin-right: 8px;
}
.admin-article-list__badge--on { background: rgba(34,160,90,.12); color: #166c40; }
.admin-article-list__badge--off { background: rgba(92,102,120,.12); color: var(--muted); }
.admin-article-list__date { font-size: .82rem; color: var(--muted); }
.admin-article-list__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-inline-form { display: inline; margin: 0; }
.admin-btn-del { color: var(--red-deep) !important; }

/* ---------- Galerie publique ---------- */
.gallery-section { padding: 80px 0; background: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--t); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { padding: 12px 14px; font-size: .85rem; color: var(--muted); }

@media (max-width: 980px) {
    .admin-pages-grid { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .admin-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .gallery__grid { grid-template-columns: 1fr; }
    .admin-gallery__grid { grid-template-columns: 1fr; }
}

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { order: -1; }
    .calc__panel { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .band__inner { grid-template-columns: 1fr; padding: 40px; }
    .advice__grid { grid-template-columns: 1fr 1fr; }
    .zones__grid { grid-template-columns: 1fr 1fr; }
    .news__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar__item--muted { display: none; }
    .mainnav {
        position: fixed; inset: 118px 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 18px 22px; gap: 4px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); z-index: 90; display: none;
    }
    .mainnav.is-open { display: flex; }
    .mainnav > a { padding: 13px 14px; }
    .nav-cta { margin: 8px 0 0; }
    .burger { display: flex; }
    .calc__form, .calc__aside, .card { padding: 28px; }
    .features__grid { grid-template-columns: 1fr; }
    .advice__grid { grid-template-columns: 1fr; }
    .zones__grid { grid-template-columns: 1fr; }
    .news__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .qty-grid { grid-template-columns: repeat(3, 1fr); }
    .band__inner, .zones__inner, .cta__inner { padding: 32px; }
}

@media (max-width: 420px) {
    .hero__trust { gap: 18px; }
    .qty-grid { grid-template-columns: repeat(2, 1fr); }
}
