/* ==========================================================
   DTO - Feuille de style (mobile first, sans dépendance)
   Couleurs issues du logo : orange #E8821E, vert #3E9A2A
   ========================================================== */
:root {
    --orange: #e8821e;
    --orange-d: #c96a0e;
    --orange-l: #fdf0e1;
    --green: #3e9a2a;
    --green-d: #2c7a1c;
    --green-l: #e8f4e4;
    --ink: #1b2320;
    --ink-2: #404c45;
    --muted: #6b766f;
    --bg: #f5f6f2;
    --card: #ffffff;
    --line: #e2e6df;
    --red: #c0392b;
    --red-l: #fbeae8;
    --blue: #1f6fb2;
    --blue-l: #e6f1fa;
    --yellow-l: #fff6dc;
    --yellow: #8a6500;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(27, 35, 32, .06), 0 6px 18px rgba(27, 35, 32, .06);
    --shadow-lg: 0 12px 34px rgba(27, 35, 32, .14);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
    color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--green-d); text-decoration: none; }
a:hover { color: var(--orange-d); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.icon { display: inline-block; vertical-align: -.2em; flex-shrink: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: #b8c2bc; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--orange-d); margin-bottom: .6rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hide-sm { display: none !important; }
.hide-xs { display: none !important; }
@media (min-width: 640px) { .hide-xs { display: inline !important; } }
@media (min-width: 900px) { .hide-sm { display: inline-flex !important; } }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.3em; border-radius: 10px; border: 1.5px solid transparent;
    font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
    transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(232, 130, 30, .35); }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-d); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a02d21; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--orange-l); color: var(--orange-d); }
.btn-sm { padding: .45em .9em; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink); color: #d6ddd8; font-size: .85rem; }
.topbar a { color: #d6ddd8; }
.topbar a:hover { color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 48px; width: auto; display: block; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange-d); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Menu mobile */
.main-nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px 18px 18px;
}
.main-nav a { padding: 12px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.main-nav a.active { color: var(--orange-d); }
.nav-search { display: flex; margin-top: 12px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.nav-search input { flex: 1; border: 0; padding: .65em .9em; font: inherit; min-width: 0; background: transparent; }
.nav-search input:focus { outline: none; }
.nav-search button { border: 0; background: var(--green); color: #fff; padding: 0 14px; cursor: pointer; }
.nav-search:focus-within { border-color: var(--green); }

@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .main-nav { display: flex; align-items: center; gap: 4px; }
    .main-nav a { padding: 8px 12px; border: 0; border-radius: 8px; font-size: .95rem; }
    .main-nav a:hover { background: var(--bg); color: var(--ink); }
    .main-nav a.active { background: var(--orange-l); }
    .nav-search { margin: 0 0 0 10px; width: 200px; }
    .brand { margin-right: 14px; }
    .header-inner { justify-content: space-between; }
    .main-nav { margin-left: auto; margin-right: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #e8ede9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-bottom: 0; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.row-between .section-head { margin-bottom: 0; }

.page-hero { background: linear-gradient(135deg, var(--ink) 0%, #26332c 100%); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(232, 130, 30, .22); }
.page-hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-hero p { color: #c9d3cc; margin: 0; max-width: 640px; }
.crumbs { font-size: .85rem; color: #a9b6ae; margin-bottom: 10px; }
.crumbs a { color: #d6ddd8; }
.crumbs a:hover { color: var(--orange); }

/* ---------- Hero accueil ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(232, 130, 30, .30), transparent 60%),
        radial-gradient(700px 360px at 5% 100%, rgba(62, 154, 42, .30), transparent 60%),
        linear-gradient(135deg, #151c18 0%, #24322a 100%);
    padding: 64px 0 72px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { color: #d3dcd6; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; color: #d3dcd6; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--green); background: rgba(62, 154, 42, .2); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.hero-panel { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); }
.hero-panel h2 { font-size: 1.05rem; color: #fff; margin-bottom: 14px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-panel li a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: .96rem; }
.hero-panel li a:hover { background: var(--orange); color: #fff; }
.hero-panel li a .icon { color: var(--orange); }
.hero-panel li a:hover .icon { color: #fff; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr .75fr; } .hero { padding: 88px 0 96px; } }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card-flat { box-shadow: none; }

.usage-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%; }
.usage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); color: var(--ink); }
.usage-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-l); color: var(--orange-d); display: flex; align-items: center; justify-content: center; }
.usage-card h3 { margin: 6px 0 0; font-size: 1.05rem; }
.usage-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.usage-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--green-d); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

.brand-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); height: 100%; transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.brand-card .brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.brand-card .brand-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.brand-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.brand-card .count { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 600; color: var(--green-d); }
.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-strip a { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.brand-strip a:hover { border-color: var(--green); color: var(--green-d); }

/* Bande défilante des clients */
.marquee { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.marquee-group img { height: 52px; width: auto; max-width: none; flex-shrink: 0; mix-blend-mode: multiply; transition: transform .2s; }
.marquee-group img:hover { transform: scale(1.06); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee-group { flex-wrap: wrap; justify-content: center; gap: 28px 48px; padding: 0 16px; }
    .marquee-group[aria-hidden="true"], .marquee-group img:nth-child(n+7) { display: none; }
}

.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.cta-band { background: linear-gradient(120deg, var(--green-d), var(--green)); color: #fff; border-radius: 18px; padding: 34px 28px; display: grid; gap: 18px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #e6f3e1; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 40px; } }

.activity { display: flex; gap: 16px; align-items: flex-start; }
.activity .ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--green-l); color: var(--green-d); display: flex; align-items: center; justify-content: center; }
.activity.core .ico { background: var(--orange-l); color: var(--orange-d); }
.activity h3 { margin-bottom: .25em; font-size: 1.05rem; }
.activity p { margin: 0; color: var(--muted); font-size: .94rem; }
.tag-core { display: inline-block; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 3px; }

/* ---------- Produits ---------- */
.products { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .products.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard .thumb-wrap { display: block; background: #f0f2ee; aspect-ratio: 4 / 3; }
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { display: flex; align-items: center; justify-content: center; color: #a9b2ab; background: linear-gradient(135deg, #eef1ec, #e2e7df); aspect-ratio: 4 / 3; width: 100%; }
.pcard .body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1; }
.pcard .pbrand { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--green-d); }
.pcard h3 { font-size: .98rem; margin: 0; font-weight: 700; line-height: 1.3; }
.pcard h3 a { color: var(--ink); }
.pcard h3 a:hover { color: var(--orange-d); }
.pcard .pref { font-size: .78rem; color: var(--muted); }
.pcard .pfoot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard .flag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.price { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.price-quote { font-weight: 600; color: var(--muted); font-size: .88rem; }
.price-unit { font-size: .82rem; color: var(--muted); }

.catalog-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .catalog-layout { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters > summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 18px 18px; }
@media (min-width: 960px) { .filters > summary { cursor: default; pointer-events: none; } .filters > summary .icon-chev { display: none; } .filters { position: sticky; top: 88px; } }
.filter-group { margin-top: 14px; }
.filter-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.filter-list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; }
.filter-list a:hover { background: var(--bg); }
.filter-list a.active { background: var(--green-l); color: var(--green-d); font-weight: 700; }
.filter-list .n { color: var(--muted); font-size: .82rem; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .result-count { color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; background: var(--green-l); color: var(--green-d); border-radius: 999px; font-size: .86rem; font-weight: 600; }
.chip a { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(44, 122, 28, .15); color: var(--green-d); }
.chip a:hover { background: var(--green-d); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager .page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pager a.page:hover { border-color: var(--orange); color: var(--orange-d); }
.pager .current { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager .gap { border: 0; background: transparent; }
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .icon { color: #b6beb8; margin-bottom: 8px; }

/* Fiche produit */
.product-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-media .thumb, .product-media .thumb-ph { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.product-media .thumb-ph { background: linear-gradient(135deg, #f1f3ef, #e5e9e2); }
.product-info h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .35em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--orange-l); color: var(--orange-d); font-size: .84rem; font-weight: 600; }
.tags a:hover { background: var(--orange); color: #fff; }
.buy-box { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.buy-box .price { font-size: 1.7rem; }
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; background: var(--blue-l); color: #14507f; }
.notice.warn { background: var(--yellow-l); color: var(--yellow); }
.notice .icon { margin-top: 3px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 40%; background: #f8f9f6; font-weight: 600; color: var(--ink-2); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; border: 0; background: #f3f5f1; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.qty button:hover { background: var(--orange-l); }
.qty input { width: 54px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; padding: 0; background: #fff; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .94rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=url], input[type=file], select, textarea {
    width: 100%; padding: .7em .9em; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #cfd6cc; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(62, 154, 42, .18); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 3px; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.auth-wrap { max-width: 520px; margin: 0 auto; }
.field-error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.checkbox-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checkbox-grid label { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; margin: 0; cursor: pointer; background: #fff; }
.checkbox-grid label:hover { border-color: var(--green); }

/* ---------- Alertes & badges ---------- */
.flashes { padding-top: 16px; display: grid; gap: 10px; }
.alert { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.alert-success { background: var(--green-l); border-color: #b9dcb0; color: #1f5a12; }
.alert-error { background: var(--red-l); border-color: #f0c2bc; color: #8c2217; }
.alert-info { background: var(--blue-l); border-color: #bcd8ee; color: #14507f; }
.alert-warn { background: var(--yellow-l); border-color: #efd88f; color: var(--yellow); }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 4px; }
.alert-close:hover { opacity: 1; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--green-l); color: #1f5a12; }
.badge-warn { background: var(--yellow-l); color: var(--yellow); }
.badge-bad { background: var(--red-l); color: #8c2217; }
.badge-info { background: var(--blue-l); color: #14507f; }
.badge-muted { background: #eceeea; color: var(--muted); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8f9f6; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfa; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table .thumb-mini { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #eef1ec; display: flex; align-items: center; justify-content: center; color: #a9b2ab; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: .84rem; color: var(--muted); }

/* ---------- Panier / commande ---------- */
.cart-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb, .cart-line .thumb-ph { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 10px; object-fit: cover; }
.cart-line .info h3 { font-size: 1rem; margin: 0 0 2px; }
.cart-line .controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.summary { position: sticky; top: 88px; }
.summary dl { margin: 0 0 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; }

/* Suivi de commande */
.tracker { display: flex; flex-direction: column; gap: 0; margin: 8px 0 4px; padding: 0; list-style: none; }
.tracker li { position: relative; padding: 0 0 18px 34px; color: var(--muted); font-weight: 600; }
.tracker li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tracker li:last-child::before { display: none; }
.tracker li::after { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.tracker li.done { color: var(--ink); }
.tracker li.done::after { background: var(--green); border-color: var(--green); }
.tracker li.done::before { background: var(--green); }
.tracker li.current::after { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 5px rgba(232, 130, 30, .2); }
.tracker li.current { color: var(--orange-d); }
@media (min-width: 760px) {
    .tracker { flex-direction: row; }
    .tracker li { flex: 1; padding: 30px 6px 0 0; text-align: left; font-size: .9rem; }
    .tracker li::before { left: 18px; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
    .tracker li::after { top: 0; }
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { padding-left: 16px; border-left: 3px solid var(--green); }
.timeline .when { font-size: .82rem; color: var(--muted); }

.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
a.stat:hover { border-color: var(--orange); color: var(--ink); }
.stat .n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .88rem; }
.stat.alert-stat { border-color: var(--orange); background: var(--orange-l); }
.account-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.account-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .94rem; }
.account-nav a.active, .account-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.account-nav form { display: inline; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; } }
.contact-info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); list-style: none; }
.contact-info { margin: 0; padding: 0; }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .ico { flex: 0 0 42px; height: 42px; border-radius: 10px; background: var(--green-l); color: var(--green-d); display: flex; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #121815; color: #c4cec7; margin-top: 56px; }
.footer-grid { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #c4cec7; }
.site-footer a:hover { color: var(--orange); }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--orange); margin-top: 4px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .82rem; color: #8d9a92; }
.footer-legal p { margin: 0 0 4px; }

/* ==========================================================
   ADMINISTRATION
   ========================================================== */
.admin-body { background: #eff1ed; }
.admin-shell { display: block; min-height: 100vh; }
.admin-side { position: fixed; inset: 0 auto 0 0; width: 264px; background: var(--ink); color: #cdd6d0; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 60; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
.admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
.admin-brand { display: block; padding: 4px 8px 16px; }
.admin-brand img { height: 44px; width: auto; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side a, .admin-side .linklike { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cdd6d0; font-weight: 500; width: 100%; }
.admin-side a:hover, .admin-side .linklike:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side a.active { background: var(--orange); color: #fff; }
.admin-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.count-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--orange-d); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.admin-side a.active .count-badge { background: #fff; }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); min-height: 62px; }
.admin-title { margin: 0; font-size: 1.2rem; flex: 1; }
.admin-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.admin-content { padding: 20px 18px 60px; max-width: 1280px; }
@media (min-width: 980px) {
    .admin-side { transform: none; }
    .admin-main { margin-left: 264px; }
    .admin-toggle { display: none; }
    .admin-top { padding: 10px 28px; }
    .admin-content { padding: 26px 28px 60px; }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.panel > h2 { font-size: 1.1rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; flex: 1 1 160px; max-width: 280px; }
.two-col { display: grid; gap: 22px; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } .two-col.even { grid-template-columns: 1fr 1fr; } }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; padding: .4em .6em; }
.img-preview { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: #f0f2ee; display: block; margin-bottom: 8px; }
.stack { display: grid; gap: 10px; }
.mt { margin-top: 18px; }
.mb0 { margin-bottom: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

@media print {
    .topbar, .site-header, .site-footer, .admin-side, .admin-top, .btn, .account-nav { display: none !important; }
    .admin-main { margin: 0; }
    body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
