/* ==========================================================================
   Pharmacie Djiddah — Design system (site public)
   --------------------------------------------------------------------------
   Les couleurs de base viennent du thème réglé dans l'admin
   (--primary-color, --secondary-color, --accent-color, --text-color, --bg-color).
   Toutes les nuances sont dérivées ici : changer la couleur dans l'admin
   met à jour tout le site en gardant des contrastes lisibles.
   ========================================================================== */

/* 0. TOKENS ---------------------------------------------------------------- */
:root {
    --brand: var(--primary-color, #00ACC1);
    --brand-600: color-mix(in srgb, var(--brand) 80%, #000);   /* boutons (texte blanc lisible) */
    --brand-700: color-mix(in srgb, var(--brand) 64%, #000);   /* liens, texte coloré */
    --brand-800: color-mix(in srgb, var(--brand) 42%, #0b1220);/* fonds sombres */
    --brand-50: color-mix(in srgb, var(--brand) 6%, #fff);
    --brand-100: color-mix(in srgb, var(--brand) 12%, #fff);
    --brand-200: color-mix(in srgb, var(--brand) 26%, #fff);
    --brand-ring: color-mix(in srgb, var(--brand) 35%, transparent);

    --secondary: var(--secondary-color, #1565C0);
    --accent: var(--accent-color, #F59E0B);

    --ink: var(--text-color, #0F172A);
    --ink-2: color-mix(in srgb, var(--ink) 80%, #fff);
    --muted: #5b6678;
    --line: #e3e8ee;
    --line-soft: #eef2f6;
    --surface: #ffffff;
    --page: var(--bg-color, #F6F8FA);

    --danger: #c62828;
    --danger-50: #fdecec;
    --success: #1b7f4b;
    --success-50: #e7f6ee;
    --warning: #9a5b00;
    --warning-50: #fff5e0;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 6px 18px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
    --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .22);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 72px;
}

/* 1. BASE ------------------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font);
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.2;
}
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1280px; }
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }
.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand-700) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }

/* 2. BOOTSTRAP OVERRIDES --------------------------------------------------- */
.btn { font-weight: 650; border-radius: 10px; padding: .6rem 1.15rem; letter-spacing: -.005em; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; border-radius: 8px; }
.btn-primary {
    --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
    --bs-btn-active-bg: var(--brand-800); --bs-btn-active-border-color: var(--brand-800);
    --bs-btn-disabled-bg: var(--brand-600); --bs-btn-disabled-border-color: var(--brand-600);
    --bs-btn-focus-shadow-rgb: 0, 140, 158;
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus { color: #fff; }
.btn-outline-primary {
    --bs-btn-color: var(--brand-700); --bs-btn-border-color: var(--brand-200);
    --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-800); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-800); --bs-btn-active-border-color: var(--brand);
    background: var(--surface);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-border-color: var(--brand-200); }
.btn-white { background: #fff; color: var(--brand-800); border: 1px solid #fff; }
.btn-white:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .5); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.form-control, .form-select {
    border: 1px solid var(--line); border-radius: 10px; padding: .65rem .9rem;
    color: var(--ink); background-color: #fff;
}
.form-control-lg, .form-select-lg { padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.form-label { font-weight: 650; font-size: .875rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.invalid-feedback, .form-error-message, ul li.form-error { color: var(--danger); font-size: .85rem; }
.form-control.is-invalid { border-color: var(--danger); }
.form-errors ul, .form-field-errors ul { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--danger); font-size: .85rem; }

.breadcrumb { --bs-breadcrumb-divider: '›'; font-size: .85rem; margin: 0; }
.breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb-item.active { color: var(--ink-2); font-weight: 600; }

/* 3. LAYOUT & TYPO UTILITIES ---------------------------------------------- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0; }
.section-lead { color: var(--muted); margin: .4rem 0 0; max-width: 62ch; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-700); margin-bottom: .45rem;
}
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.surface-pad { padding: 1.5rem; }
@media (min-width: 768px) { .surface-pad { padding: 2rem; } }
.prose { color: var(--ink-2); line-height: 1.75; }
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose > :last-child { margin-bottom: 0; }
.icon-badge {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-100); color: var(--brand-700); font-size: 1.35rem;
}
.icon-badge.sm { width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }
.icon-badge.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.75rem; }

/* 4. HEADER ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--brand-800); color: rgba(255, 255, 255, .88); font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-info { display: flex; align-items: center; gap: 1.25rem; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-msg { font-weight: 600; text-align: center; flex: 1; }
.topbar-links { display: flex; gap: 1rem; }
@media (max-width: 991.98px) {
    .topbar-info, .topbar-links { display: none; }
    .topbar-msg { font-size: .75rem; padding: .35rem 0; }
}

.mainbar .container { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.brand-sub { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.header-search { flex: 1; max-width: 640px; margin: 0 auto; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > i { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.search-field input {
    width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--page); padding: 0 7.25rem 0 2.6rem; font-size: .95rem; color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.search-field input::placeholder { color: #8a94a6; }
.search-field input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.search-field button { position: absolute; right: 5px; height: 36px; padding: 0 1rem; border-radius: 9px; }

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.header-action {
    position: relative; display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none;
    background: transparent; border: 0; font-size: .875rem; font-weight: 600;
}
.header-action:hover { background: var(--brand-50); color: var(--brand-800); }
.header-action i { font-size: 1.35rem; line-height: 1; }
.header-action .label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.header-action .label small { font-weight: 500; font-size: .72rem; color: var(--muted); }
.cart-count {
    position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 750;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.menu-toggle { display: none; }
@media (max-width: 991.98px) {
    :root { --header-h: 62px; }
    .mainbar .container { gap: .5rem; flex-wrap: wrap; padding-bottom: .6rem; }
    .menu-toggle { display: inline-flex; margin-left: -.5rem; }
    .header-search { order: 5; flex-basis: 100%; max-width: none; }
    .header-action .label { display: none; }
    .brand-sub { display: none; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: 1.08rem; }
    .mainbar .container > .brand { min-height: var(--header-h); }
}

/* Navigation catégories (desktop) */
.catnav { border-top: 1px solid var(--line-soft); }
.catnav-list { display: flex; align-items: stretch; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.catnav-item { position: static; }
.catnav-link {
    display: inline-flex; align-items: center; gap: .45rem; height: 48px; padding: 0 .85rem;
    color: var(--ink-2); font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.catnav-link:hover, .catnav-item:focus-within > .catnav-link, .catnav-link.active { color: var(--brand-700); border-bottom-color: var(--brand); }
.catnav-link .bi-chevron-down { font-size: .7rem; opacity: .6; }
.catnav-all { background: var(--brand-600); color: #fff !important; border-radius: 10px; height: 36px; margin: 6px .5rem 6px 0; border: 0 !important; }
.catnav-all:hover { background: var(--brand-700); }
.catnav-spacer { flex: 1; }
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.catnav-item:hover > .mega, .catnav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.mega-inner { padding: 1.75rem 0 2rem; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem 2rem; }
.mega-title { display: flex; align-items: center; gap: .5rem; font-weight: 750; font-size: .95rem; color: var(--ink); text-decoration: none; margin-bottom: .5rem; }
.mega-title i { color: var(--brand-700); }
.mega-title:hover { color: var(--brand-700); }
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links a { display: block; padding: .28rem 0; color: var(--muted); text-decoration: none; font-size: .88rem; }
.mega-links a:hover { color: var(--brand-700); text-decoration: underline; }
.mega-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.catnav { position: relative; }
@media (max-width: 991.98px) { .catnav { display: none; } }

/* Menu mobile (offcanvas) */
.mobile-menu { width: min(88vw, 360px) !important; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-menu-title { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.25rem 0 .5rem; }
.mobile-nav { list-style: none; padding: 0; margin: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav-row { display: flex; align-items: center; }
.mobile-nav a { display: flex; align-items: center; gap: .6rem; padding: .75rem 0; color: var(--ink); text-decoration: none; font-weight: 600; flex: 1; }
.mobile-nav a i { color: var(--brand-700); }
.mobile-nav .sub { list-style: none; padding: 0 0 .5rem 1.9rem; margin: 0; }
.mobile-nav .sub a { padding: .4rem 0; font-weight: 500; color: var(--muted); font-size: .92rem; }
.mobile-nav-toggle { border: 0; background: transparent; padding: .5rem; color: var(--muted); }
.mobile-nav-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.mobile-nav-toggle i { display: inline-block; transition: transform .2s; }

/* 5. FLASH MESSAGES -------------------------------------------------------- */
.flash-stack { position: fixed; right: 1rem; top: calc(var(--header-h) + 3.5rem); z-index: 1080; display: grid; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); }
.flash {
    display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-left: 4px solid var(--success);
    font-size: .92rem; font-weight: 550; transition: opacity .35s, transform .35s;
}
.flash i { font-size: 1.1rem; margin-top: .05rem; }
.flash-success i { color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-error i { color: var(--danger); }
.flash-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 0 .15rem; font-size: 1.1rem; line-height: 1; }
.flash.is-hiding { opacity: 0; transform: translateX(12px); }

/* 6. PAGE HEADER ----------------------------------------------------------- */
.page-header { background: linear-gradient(180deg, var(--brand-50), var(--page)); border-bottom: 1px solid var(--line-soft); padding: 1.1rem 0 2rem; }
.page-header .breadcrumb { margin-bottom: 1.1rem; }
.page-header h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0; }
.page-header .lead { color: var(--muted); font-size: 1.02rem; margin: .6rem 0 0; max-width: 70ch; }
.page-header-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.breadcrumb-bar { padding: 1rem 0 0; }

/* 7. HOME HERO ------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-100), transparent 60%), linear-gradient(180deg, #fff, var(--page)); padding: 3rem 0 3.25rem; border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; margin: .25rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--brand-700); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.6rem; }
.hero-search .search-field input { height: 56px; font-size: 1rem; background: #fff; box-shadow: var(--shadow); border-color: var(--line); }
.hero-search .search-field button { height: 44px; right: 6px; padding: 0 1.25rem; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .8rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s;
}
a.chip:hover { border-color: var(--brand); color: var(--brand-800); background: var(--brand-50); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.hero-proof div { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hero-proof i { color: var(--success); font-size: 1.1rem; }
.hero-visual { position: relative; }
.hero-carousel { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand-800); }
.hero-slide { position: relative; aspect-ratio: 16 / 11; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-caption {
    position: absolute; inset: auto 0 0 0; padding: 4rem 1.75rem 1.75rem; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(8, 20, 30, .85));
}
.hero-slide-caption h2 { color: #fff; font-size: 1.45rem; margin: 0 0 .35rem; }
.hero-slide-caption p { margin: 0 0 1rem; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.hero-carousel .carousel-indicators { margin-bottom: .9rem; justify-content: flex-end; margin-right: 1.25rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 4px; }
.hero-card {
    border-radius: var(--radius-xl); background: linear-gradient(145deg, var(--brand-700), var(--brand-800));
    color: #fff; padding: 2.25rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.hero-card p { color: rgba(255, 255, 255, .85); }
.hero-card-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .65rem; }
.hero-card-list li { display: flex; gap: .6rem; align-items: flex-start; }
.hero-card-list i { color: #9ef0e0; margin-top: .15rem; }
@media (max-width: 991.98px) {
    .hero { padding: 2rem 0 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* 8. TRUST STRIP ----------------------------------------------------------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: .85rem; padding: 1.35rem 1rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line-soft); }
.trust-item strong { display: block; font-size: .92rem; line-height: 1.25; }
.trust-item span { font-size: .8rem; color: var(--muted); }
@media (max-width: 991.98px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(3) { border-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 480px) { .trust-item { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem .75rem; } }

/* 9. CATEGORY TILES -------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.cat-tile {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); color: var(--ink); }
.cat-tile-media { aspect-ratio: 4 / 3; background: var(--brand-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-tile:hover .cat-tile-media img { transform: scale(1.04); }
.cat-tile-media i { font-size: 2.4rem; color: var(--brand-700); }
.cat-tile-body { padding: .85rem 1rem 1rem; }
.cat-tile-title { font-size: .95rem; font-weight: 700; margin: 0; line-height: 1.3; }
.cat-tile-meta { font-size: .78rem; color: var(--muted); }

/* 10. PRODUCT CARD --------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199.98px) { .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.pcard {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow); border-color: var(--brand-200); transform: translateY(-2px); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line-soft); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .35s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 1; }
.badge-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 750; letter-spacing: .01em; }
.badge-promo { background: var(--danger); color: #fff; }
.badge-new { background: var(--accent); color: #1f1300; }
.badge-out { background: #eef1f5; color: var(--ink-2); }
.badge-soft { background: var(--brand-100); color: var(--brand-800); }
.pcard-body { padding: .9rem 1rem .4rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.pcard-brand { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.pcard-title { font-size: .95rem; font-weight: 650; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.pcard-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* toute la carte est cliquable */
.pcard-title a:hover { color: var(--brand-700); }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; margin-top: auto; padding-top: .45rem; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.price small { font-size: .72em; font-weight: 700; }
.price-promo { color: var(--danger); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.pcard-stock { font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.in-stock { color: var(--success); }
.out-stock { color: var(--muted); }
.pcard-cta { padding: .5rem 1rem 1rem; position: relative; z-index: 1; }
.pcard-cta .btn { width: 100%; font-size: .87rem; padding: .55rem .75rem; }
@media (max-width: 480px) {
    .pcard-body { padding: .75rem .75rem .3rem; }
    .pcard-cta { padding: .4rem .75rem .8rem; }
    .pcard-cta .btn-label { display: none; }
    .pcard-title { font-size: .88rem; }
}

/* 11. SERVICE CARD --------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.service-card {
    position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease); height: 100%;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--brand-200); transform: translateY(-2px); }
.service-card h3 { font-size: 1.1rem; margin: .4rem 0 0; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ''; position: absolute; inset: 0; }
.service-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.service-card .link-arrow { margin-top: .4rem; }

/* 12. LISTING (boutique / catégorie) --------------------------------------- */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; padding: 2rem 0 4rem; }
@media (max-width: 991.98px) { .listing { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.25rem; } }
.filters { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 1rem; }
@media (max-width: 991.98px) { .filters { position: static; } }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.15rem; }
.filter-title { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .75rem; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; max-height: 360px; overflow: auto; }
.filter-list a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .42rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.filter-list a:hover { background: var(--brand-50); color: var(--brand-800); }
.filter-list a.active { background: var(--brand-100); color: var(--brand-800); font-weight: 700; }
.filter-list .sub a { padding-left: 1.5rem; font-size: .86rem; color: var(--muted); }
.filter-list .sub a.active { color: var(--brand-800); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center; margin-bottom: .7rem; }
.price-range .form-control { padding: .45rem .6rem; font-size: .88rem; }
.filters-toggle { display: none; }
@media (max-width: 991.98px) {
    .filters-toggle { display: inline-flex; }
    .filters:not(.is-open) { display: none; }
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar-count { font-size: .9rem; color: var(--muted); }
.toolbar-count strong { color: var(--ink); }
.toolbar .form-select { width: auto; padding-top: .45rem; padding-bottom: .45rem; font-size: .88rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }

.pagination-nav { display: flex; justify-content: center; margin-top: 2.25rem; }
.pagination-nav ul { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pagination-nav a, .pagination-nav span {
    min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 650; font-size: .9rem; text-decoration: none;
}
.pagination-nav a:hover { border-color: var(--brand); color: var(--brand-800); background: var(--brand-50); }
.pagination-nav [aria-current="page"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pagination-nav .gap { border: 0; background: transparent; min-width: 20px; padding: 0; }

.empty-state { text-align: center; padding: 3.5rem 1.5rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state .icon-badge { margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.25rem; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: .5rem auto 1.25rem; }

.seo-text { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.seo-text h2 { font-size: 1.1rem; color: var(--ink); }

/* 13. PRODUCT DETAIL ------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 991.98px) { .product-layout { grid-template-columns: 1fr; gap: 1.5rem; } }
.product-gallery { position: sticky; top: calc(var(--header-h) + 64px); }
@media (max-width: 991.98px) { .product-gallery { position: static; } }
.product-image { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.product-image .pcard-badges { top: 1rem; left: 1rem; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .35rem 0 .75rem; }
.product-brand { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .75rem; margin: 1rem 0 .75rem; }
.product-price .price { font-size: 2rem; }
.product-price .price-old { font-size: 1.05rem; }
.product-short { font-size: 1.02rem; color: var(--ink-2); }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; margin: 1.25rem 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.15rem; color: var(--ink-2); }
.qty button:hover { background: var(--brand-50); color: var(--brand-800); }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; font-weight: 750; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.buy-row { display: flex; gap: .75rem; align-items: stretch; }
.buy-row .btn { flex: 1; min-height: 52px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check-list i { color: var(--brand-700); font-size: 1.1rem; line-height: 1.4; }
.product-sections { display: grid; gap: 1.25rem; margin-top: 3rem; }
.product-sections h2 { font-size: 1.2rem; margin-bottom: .85rem; }
.notice { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--warning-50); color: #5d3a00; font-size: .9rem; }
.notice i { font-size: 1.2rem; color: var(--warning); }
.notice.info { background: var(--brand-50); color: var(--brand-800); }
.notice.info i { color: var(--brand-700); }

/* 14. CONTENT BLOCKS ------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 575.98px) { .feature-list { grid-template-columns: 1fr; } }
.feature { display: flex; gap: .85rem; align-items: flex-start; }
.feature strong { display: block; font-size: .95rem; }
.feature span { font-size: .85rem; color: var(--muted); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.value-card h3 { font-size: 1.02rem; margin: 1rem 0 .35rem; }
.value-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.info-panel { background: linear-gradient(160deg, var(--brand-700), var(--brand-800)); color: #fff; border-radius: var(--radius-xl); padding: 2rem; }
.info-panel h2, .info-panel h3 { color: #fff; }
.info-panel a { color: #fff; }
.info-rows { display: grid; gap: 1.1rem; margin: 1.25rem 0 0; }
.info-row { display: flex; gap: .85rem; align-items: flex-start; }
.info-row .icon-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.info-row strong { display: block; font-size: .95rem; }
.info-row span, .info-row a { color: rgba(255, 255, 255, .85); font-size: .92rem; }

.faq { display: grid; gap: .75rem; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-xs); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--brand-700); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 0 1.1rem; color: var(--ink-2); }
.faq .faq-answer p:last-child { margin: 0; }

.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand-800)); color: #fff; border-radius: var(--radius-xl); padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 .4rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 767.98px) { .cta-band { grid-template-columns: 1fr; padding: 1.75rem; } }

/* 15. CART & CHECKOUT ------------------------------------------------------ */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.75rem; gap: .5rem; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 650; color: var(--muted); }
.steps li::before {
    counter-increment: step; content: counter(step);
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid var(--line); font-weight: 750; font-size: .85rem;
}
.steps li::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps li:last-child::after { display: none; }
.steps li.done::before { content: '✓'; background: var(--brand-100); border-color: var(--brand-200); color: var(--brand-800); }
.steps li.current { color: var(--ink); }
.steps li.current::before { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
@media (max-width: 575.98px) { .steps li span { display: none; } .steps li.current span { display: inline; } }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.75rem; align-items: start; }
@media (max-width: 991.98px) { .checkout-grid { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line-img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; object-fit: contain; padding: .35rem; }
.cart-line-name { font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.35; }
.cart-line-name:hover { color: var(--brand-700); }
.cart-line-meta { font-size: .82rem; color: var(--muted); }
.cart-line-controls { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.cart-line-controls .form-control { width: 78px; padding: .35rem .5rem; text-align: center; font-weight: 700; }
.cart-line-total { font-weight: 800; text-align: right; white-space: nowrap; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.btn-icon:hover { color: var(--danger); border-color: #f3c1c1; background: var(--danger-50); }
@media (max-width: 575.98px) {
    .cart-line { grid-template-columns: 60px minmax(0, 1fr); }
    .cart-line-img { width: 60px; height: 60px; }
    .cart-line-total { grid-column: 2; text-align: left; }
}
.summary { position: sticky; top: calc(var(--header-h) + 64px); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .95rem; color: var(--ink-2); }
.summary-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.summary-total .price { font-size: 1.35rem; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 .75rem; }
.mini-lines li { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.mini-lines img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .2rem; }
.mini-lines .name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.mini-lines .qty-label { color: var(--muted); font-size: .8rem; font-weight: 500; }

/* 16. AUTH ----------------------------------------------------------------- */
.auth-wrap { padding: 3rem 0 4.5rem; }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.25rem; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 620px; }
.auth-card .icon-badge { margin: 0 auto 1rem; display: flex; }
.auth-card h1 { font-size: 1.55rem; text-align: center; margin-bottom: .35rem; }
.auth-card .lead { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 1.75rem; }
.auth-foot { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); font-size: .92rem; color: var(--muted); }
@media (max-width: 575.98px) { .auth-card { padding: 1.5rem; border-radius: var(--radius-lg); } }

/* 17. CONTACT -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.75rem; align-items: start; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--line-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours-table { width: 100%; font-size: .92rem; }
.hours-table td { padding: .3rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; }

/* 18. FOOTER --------------------------------------------------------------- */
.site-footer { background: #0d1b24; color: rgba(255, 255, 255, .72); margin-top: 0; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 991.98px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 575.98px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-title { color: #fff; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-contact { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact i { color: var(--brand-200); margin-top: .1rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--brand-600); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-disclaimer { font-size: .8rem; color: rgba(255, 255, 255, .55); margin-top: 1rem; }

/* 19. ERROR PAGE ----------------------------------------------------------- */
.error-page { text-align: center; padding: 4.5rem 0 5rem; }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -.05em; color: var(--brand-200); line-height: 1; }
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1rem 0 .6rem; }
.error-page p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.75rem; }
.error-page .header-search { max-width: 520px; margin: 0 auto 1.5rem; }

/* 20. ACCESSIBILITÉ & IMPRESSION ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .flash-stack, .pcard-cta, .filters { display: none !important; }
    body { background: #fff; }
}

/* ==========================================================================
   21. VERSION ÉPURÉE — moins de texte, plus d'air
   ========================================================================== */
.section { padding: 3.5rem 0; }
.section-head { margin-bottom: 1.5rem; align-items: center; }
.section-title { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }

/* Bandeau haut : infos à gauche, liens à droite ; masqué sur mobile */
.topbar .container { justify-content: space-between; }
@media (max-width: 991.98px) { .topbar { display: none; } }

/* En-tête de page compact */
.page-header { background: var(--surface); padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line-soft); }
.page-header .breadcrumb { margin-bottom: .75rem; }
.page-header h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.page-header-meta { margin-top: .9rem; }

/* Hero */
.hero { padding: 3.5rem 0; }
.hero h1 { margin: 0 0 .75rem; }
.hero-lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-slide-caption { padding: 3rem 1.5rem 1.25rem; }
.hero-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; color: #fff; }
.hero-card:hover { color: #fff; box-shadow: 0 24px 50px -12px rgba(15, 23, 42, .35); }

/* Réassurance : une ligne d'icônes */
.trust-grid { list-style: none; margin: 0; padding: 0; }
.trust-item { justify-content: center; gap: .6rem; padding: 1rem; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.trust-item i { font-size: 1.2rem; color: var(--brand-700); }
@media (max-width: 480px) { .trust-item { flex-direction: row; align-items: center; font-size: .8rem; padding: .85rem .5rem; } }

/* Rayons : image + titre */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-tile-title { display: block; padding: .75rem .9rem; font-size: .9rem; font-weight: 700; line-height: 1.3; }

/* Carte produit : prix + bouton panier rond sur la même ligne */
.pcard-body { padding: .9rem 1rem 1rem; }
.pcard-title a { min-height: 2.7em; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.pcard-foot .pcard-price { padding-top: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.pcard-cta { padding: 0; }
.btn-cart { width: 42px; height: 42px; padding: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
@media (max-width: 480px) {
    .pcard-body { padding: .75rem; }
    .btn-cart { width: 38px; height: 38px; }
    .price { font-size: 1rem; }
}

/* Services */
.service-card { gap: .5rem; padding: 1.4rem; }
.service-card h2, .service-card h3 { font-size: 1.05rem; margin: .5rem 0 0; }
.service-card h2 a { color: var(--ink); text-decoration: none; }
.service-card h2 a::after { content: ''; position: absolute; inset: 0; }

/* Fiche produit */
.product-info h1 { margin: .25rem 0 .5rem; }
.product-short { color: var(--muted); }
.product-perks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.product-perks li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.product-perks i { color: var(--brand-700); }
.product-details { max-width: none; margin: 0; }
.product-details summary { font-size: .95rem; }

/* Panneau d'infos compact */
.info-rows { gap: .9rem; }
.info-row { align-items: center; }
.info-row span, .info-row a { font-size: .95rem; color: #fff; }

/* Pied de page */
.footer-top { padding: 3rem 0 2rem; }
.info-panel .btn-white, .hero-card .btn-white { color: var(--brand-800); }
@media (max-width: 991.98px) {
    .hero-search { display: none; }          /* la recherche de l'en-tête suffit sur mobile */
    .hero { padding: 2rem 0; }
    .hero-grid { gap: 1.25rem; }
    .cat-grid .cat-tile:nth-child(n+7) { display: none; } /* 6 rayons max sur mobile */
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .cat-tile-title { font-size: .8rem; padding: .55rem .6rem; }
}
