/* =========================================================================
   Daily Ink — boutique (consommables d'impression + impression à la demande)
   Ergonomie inspirée des grandes boutiques de consommables : recherche guidée
   par imprimante, réassurance, gammes original / compatible / reconditionné.
   ========================================================================= */

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

main {
    display: block;
    min-height: 50vh;
}

.section {
    padding: var(--space-5) 0;
}

.section-tight {
    padding: var(--space-4) 0;
}

.section-white {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.section-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.section-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.section-head a {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Bandeau promo + barre utilitaire ---------- */

.promo-bar {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    font-size: 0.86rem;
    padding: 7px 12px;
}

.promo-bar a {
    color: var(--yellow);
    font-weight: 700;
    text-decoration: none;
}

.promo-bar a:hover {
    text-decoration: underline;
}

.util-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

.util-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    min-height: 34px;
}

.util-bar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.util-bar a {
    color: var(--text);
    text-decoration: none;
}

.util-bar a:hover {
    color: var(--primary);
}

.util-bar .util-highlight {
    color: var(--success);
    font-weight: 600;
}

/* ---------- En-tête ---------- */

.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 var(--border);
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-4);
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.logo svg {
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.search-box {
    position: relative;
    max-width: 640px;
    width: 100%;
    justify-self: center;
}

.search-box form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 11px 18px;
    font-size: 0.95rem;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 0 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 60;
    max-height: 70vh;
    overflow-y: auto;
}

.search-suggest h4 {
    margin: 8px 8px 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.suggest-item:hover,
.suggest-item:focus {
    background: var(--primary-soft);
}

.suggest-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--light);
}

.suggest-item small {
    display: block;
    color: var(--muted);
}

.suggest-item .suggest-price {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.header-action:hover {
    background: var(--light);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--magenta);
    color: var(--white);
    font-size: 0.7rem;
    line-height: 19px;
    text-align: center;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 250px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    z-index: 70;
}

.account-dropdown a {
    display: block;
    padding: 7px 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.account-dropdown a:hover {
    color: var(--primary);
}

.account-dropdown .btn-primary {
    color: var(--white);
    margin-bottom: 8px;
}

.account-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.nav-toggle {
    display: none;
}

/* ---------- Navigation principale ---------- */

.main-nav {
    background: var(--primary);
}

.main-nav > .container {
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 14px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item:focus-within > .nav-link,
.nav-item.is-open > .nav-link {
    background: rgba(255, 255, 255, 0.14);
}

.nav-link-promo {
    color: var(--yellow);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    z-index: 55;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
    display: block;
}

.nav-dropdown-wide {
    min-width: 640px;
}

.nav-dropdown h4 {
    margin: 0 0 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.nav-dropdown a {
    display: block;
    padding: 6px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
}

.nav-dropdown a:hover {
    color: var(--primary);
}

.nav-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 24px;
}

.nav-more {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

/* ---------- Réassurance ---------- */

.reassurance {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.reassurance ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 14px 0;
    list-style: none;
}

.reassurance li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.reassurance strong {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
}

.reassurance svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* ---------- Fil d'Ariane / en-têtes de page ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--space-3) 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.page-head {
    margin: var(--space-3) 0 var(--space-4);
}

.page-head h1 {
    margin: 0 0 6px;
    font-size: 1.85rem;
}

.page-head p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

/* ---------- Accueil : hero + recherche guidée ---------- */

.hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(0, 163, 224, 0.22), transparent 38%),
        radial-gradient(circle at 78% 92%, rgba(230, 0, 126, 0.18), transparent 36%),
        linear-gradient(135deg, #072f66 0%, var(--primary) 100%);
    color: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-5);
    align-items: center;
    padding-top: 52px;
    padding-bottom: 56px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.35rem;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin: 0 0 22px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.hero-points li::before {
    content: "✓";
    color: var(--yellow);
    font-weight: 800;
    margin-right: 6px;
}

.finder-card {
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.finder-card h2 {
    margin: 0;
    padding: 20px 24px 6px;
    font-size: 1.2rem;
}

.finder-card > p {
    margin: 0;
    padding: 0 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

.finder-tabs {
    padding: 14px 24px 24px;
}

.finder-tabs > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.finder-tab-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 16px;
}

.finder-tab-labels label {
    text-align: center;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
}

.finder-panel {
    display: none;
}

#finder-printer:checked ~ .finder-tab-labels label[for="finder-printer"],
#finder-reference:checked ~ .finder-tab-labels label[for="finder-reference"] {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

#finder-printer:checked ~ .finder-panel-printer,
#finder-reference:checked ~ .finder-panel-reference {
    display: block;
}

#finder-printer:focus-visible ~ .finder-tab-labels label[for="finder-printer"],
#finder-reference:focus-visible ~ .finder-tab-labels label[for="finder-reference"] {
    outline: 3px solid rgba(11, 79, 168, 0.35);
}

.finder-help {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- Gammes (original / compatible / reconditionné) ---------- */

.range-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.range-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
}

.range-card h3 {
    margin: 10px 0 6px;
    font-size: 1.1rem;
}

.range-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.range-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.86rem;
}

.range-card li {
    padding: 4px 0;
}

.range-card li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 800;
}

.range-card-featured {
    border: 2px solid var(--primary);
}

.range-ribbon {
    position: absolute;
    top: -11px;
    right: 18px;
    background: var(--magenta);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.eco-leaves {
    color: #9ca3af;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.eco-leaves .on {
    color: var(--success);
}

/* ---------- Pastilles de gamme / couleur / stock ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pill-original { background: #eef1f6; color: #374151; }
.pill-compatible { background: var(--primary-soft); color: var(--primary); }
.pill-reconditionne { background: var(--success-soft); color: var(--success); }
.pill-promo { background: var(--magenta); color: var(--white); }
.pill-new { background: var(--yellow); color: var(--dark); }
.pill-print { background: #f3e8ff; color: #6d28d9; }

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    vertical-align: middle;
}

.stock-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.stock-line::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }
.stock-info { color: var(--primary); }

/* ---------- Marques & catégories ---------- */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.05rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.brand-tile img {
    max-height: 40px;
    width: auto;
}

.brand-tile small {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
}

.brand-tile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.cat-tile {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--dark);
    transition: box-shadow var(--transition), transform var(--transition);
}

.cat-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cat-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--light);
}

.cat-tile span {
    padding: 12px 14px;
    font-weight: 700;
}

.cat-tile small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
}

.chip:hover,
.chip.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* ---------- Cartes produit ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d5dbe5;
}

.pc-media {
    position: relative;
    display: block;
    background: #fafbfd;
    aspect-ratio: 1 / 1;
}

.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.pc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pc-saving {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--magenta);
    color: var(--white);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.pc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    flex: 1;
}

.pc-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
}

.pc-name {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    line-height: 1.35;
}

.pc-name:hover {
    color: var(--primary);
}

.pc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.78rem;
    color: var(--muted);
}

.pc-price {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.pc-price strong {
    font-size: 1.2rem;
    color: var(--dark);
}

.pc-price .from {
    font-size: 0.78rem;
    color: var(--muted);
}

.pc-compare {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.pc-ht {
    width: 100%;
    font-size: 0.75rem;
    color: var(--muted);
}

.pc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pc-actions .btn-primary,
.pc-actions .btn-secondary {
    flex: 1;
    padding: 9px 10px;
    font-size: 0.86rem;
}

/* ---------- Onglets CSS (accueil) ---------- */

.tabs > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-3);
}

.tab-labels label {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.tab-panel {
    display: none;
}

#tab-1:checked ~ .tab-labels label[for="tab-1"],
#tab-2:checked ~ .tab-labels label[for="tab-2"],
#tab-3:checked ~ .tab-labels label[for="tab-3"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

#tab-1:checked ~ .tab-panel-1,
#tab-2:checked ~ .tab-panel-2,
#tab-3:checked ~ .tab-panel-3 {
    display: block;
}

/* ---------- Bloc impression à la demande ---------- */

.print-band {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-4);
    align-items: center;
    background: linear-gradient(135deg, #fff7fb 0%, #eef6ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.print-band h2 {
    margin-top: 0;
}

.print-band .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.print-band .pc-meta {
    display: none;
}

/* ---------- Avis ---------- */

.stars {
    color: #f5a400;
    letter-spacing: 1px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: var(--space-3);
}

.rating-summary .rating-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.9rem;
}

.review-card p {
    margin: 8px 0;
}

.review-card footer {
    color: var(--muted);
    font-size: 0.8rem;
}

.verified {
    color: var(--success);
    font-weight: 700;
    font-size: 0.78rem;
}

/* ---------- Blog / contenus ---------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.post-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.post-card div {
    padding: 14px 16px 18px;
}

.post-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.prose {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    max-width: 860px;
    font-size: 1rem;
}

.prose h2 {
    font-size: 1.3rem;
    margin: 1.6em 0 0.5em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.08rem;
}

.faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 18px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    padding: 15px 0;
    font-weight: 700;
    color: var(--dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    margin: 0 0 16px;
    color: var(--text);
}

.seo-text {
    color: var(--muted);
    font-size: 0.9rem;
    column-count: 2;
    column-gap: 40px;
}

.seo-text h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 0;
}

/* ---------- Listes avec filtres ---------- */

.listing {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-5);
}

.filters {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: sticky;
    top: 140px;
}

.filters h3 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.filter-group + .filter-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-option:hover,
.filter-option.is-active {
    color: var(--primary);
    font-weight: 700;
}

.filter-option small {
    color: var(--muted);
    font-weight: 500;
}

.filter-reset {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.listing-toolbar select {
    padding: 7px 10px;
    border: 1px solid #cfd5df;
    border-radius: var(--radius-sm);
    background: var(--white);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: var(--space-4) 0;
}

.pagination a,
.pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

.pagination .is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.empty-state {
    background: var(--white);
    border: 1px dashed #cfd5df;
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    color: var(--muted);
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

/* ---------- Pages imprimante / marque ---------- */

.printer-head {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: var(--space-4);
}

.printer-head h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.printer-head p {
    margin: 0;
    color: var(--muted);
}

.printer-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.gamme-group {
    margin-bottom: var(--space-5);
}

.gamme-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gamme-group-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.gamme-group-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: var(--space-4);
}

.series-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.series-card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.series-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.series-card li {
    padding: 3px 0;
}

.series-card a {
    text-decoration: none;
}

.series-card small {
    color: var(--muted);
}

/* ---------- Fiche produit ---------- */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
    margin-bottom: var(--space-5);
}

.gallery {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 140px;
}

.gallery-main {
    display: block;
    width: 100%;
    max-height: 460px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-thumbs button {
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.gallery-thumbs button.is-active {
    border-color: var(--primary);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h1 {
    font-size: 1.6rem;
    margin: 6px 0 8px;
}

.product-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.product-kicker a {
    font-weight: 700;
    text-decoration: none;
}

.compat-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -6px 0 12px;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

.product-lead {
    color: var(--muted);
    margin: 0 0 16px;
}

.buy-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0;
}

.price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 6px;
}

.price-block .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.price-block .price-ht {
    color: var(--muted);
    font-size: 0.9rem;
}

.saving-line {
    display: inline-block;
    background: var(--success-soft);
    color: var(--success);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.buy-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 14px;
}

.buy-row .btn-primary {
    flex: 1;
}

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #cfd5df;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
}

.qty-stepper button {
    width: 38px;
    border: none;
    background: var(--light);
    font-size: 1.1rem;
    cursor: pointer;
}

.qty-stepper input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 700;
    -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-message {
    margin: 10px 0 0;
    font-size: 0.88rem;
    min-height: 1.2em;
}

.buy-message.is-error {
    color: var(--danger);
}

.buy-message.is-success {
    color: var(--success);
}

.buy-perks {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    font-size: 0.85rem;
    display: grid;
    gap: 6px;
}

.buy-perks li::before {
    content: "✓";
    color: var(--success);
    font-weight: 800;
    margin-right: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 40%;
    background: #fafbfd;
    color: var(--muted);
    font-weight: 600;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.content-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: var(--space-4);
}

.content-block h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.printer-filter {
    margin-bottom: 12px;
    max-width: 320px;
}

.alt-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(90deg, var(--success-soft), #f3fbf6);
    border: 1px solid #b9e3c6;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: var(--space-3);
    font-size: 0.92rem;
}

/* Configurateur (impression) */

.configurator .form-field select {
    font-weight: 600;
}

.configurator-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 6px 0 4px;
}

.configurator-price .price {
    font-size: 1.8rem;
    font-weight: 800;
}

.file-choice {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
}

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mode-switch label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.86rem;
    cursor: pointer;
}

.upload-zone {
    border: 2px dashed #c4ccd8;
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    background: #fafbfd;
}

.upload-zone.is-dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-progress {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.upload-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 120ms linear;
}

.quick-order {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    margin: 16px 0;
}

.quick-order summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 800;
    color: var(--dark);
    list-style: none;
}

.quick-order summary::-webkit-details-marker {
    display: none;
}

.quick-order summary small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.quick-order form {
    padding: 0 20px 20px;
}

.quick-total {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.quick-total div {
    display: flex;
    justify-content: space-between;
}

/* ---------- Panier & commande ---------- */

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-5);
}

.cart-lines {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cart-line {
    display: grid;
    grid-template-columns: 84px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
    border-bottom: none;
}

.cart-line img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fafbfd;
    border-radius: var(--radius-sm);
}

.cart-line h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.cart-line h3 a {
    color: var(--dark);
    text-decoration: none;
}

.cart-line ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--muted);
}

.cart-line .line-total {
    font-weight: 800;
    min-width: 100px;
    text-align: right;
}

.summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 140px;
}

.summary-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.92rem;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}

.summary-row .discount {
    color: var(--success);
    font-weight: 700;
}

.summary-lines {
    margin: 0 0 10px;
    padding: 0 0 10px;
    list-style: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
}

.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}

.free-ship {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.84rem;
    margin: 10px 0;
}

.free-ship-bar {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.free-ship-bar span {
    display: block;
    height: 100%;
    background: var(--success);
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 16px;
}

.checkout-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.82rem;
}

.pro-billing summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-row input {
    flex: 1;
}

.coupon-message {
    font-size: 0.84rem;
    margin-top: 6px;
}

.coupon-message.is-valid {
    color: var(--success);
}

.coupon-message.is-invalid {
    color: var(--danger);
}

.confirmation {
    max-width: 680px;
    margin: var(--space-5) auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    text-align: center;
}

.confirmation .check {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.steps-list {
    text-align: left;
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 16px 20px 16px 38px;
    margin: 20px 0;
}

/* ---------- Espace client ---------- */

.account-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: var(--space-4);
    align-items: start;
    margin: var(--space-4) 0 var(--space-5);
}

.account-nav {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
}

.account-nav a {
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
}

.account-nav a.active,
.account-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.account-nav form {
    margin: 6px 12px 4px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.card h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-line {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.order-line-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.order-line h3 {
    margin: 0;
    font-size: 1rem;
}

.inline-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: var(--warning-soft);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.segmented label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.pro-fields[hidden] {
    display: none;
}

/* ---------- Pied de page ---------- */

.newsletter-band {
    background: var(--primary);
    color: var(--white);
}

.newsletter-band .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
}

.newsletter-band h2 {
    color: var(--white);
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.newsletter-band p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    width: 0; /* pas de largeur intrinsèque : évite le débordement horizontal sur mobile */
    min-width: 0;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.site-footer {
    background: var(--dark);
    color: #c7cdd8;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
    padding-top: 40px;
    padding-bottom: 28px;
}

.site-footer h3 {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    padding: 4px 0;
}

.site-footer a {
    color: #c7cdd8;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-brand p {
    margin: 10px 0;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.footer-badges span {
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f2937;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 40;
}

/* ---------- Erreurs ---------- */

.error-page {
    text-align: center;
    padding: 70px 20px;
}

.error-page .code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

/* ---------- Utilitaires ---------- */

.table-wrap {
    overflow-x: auto;
}

.chip svg,
.finder-tab-labels label svg,
.btn-primary svg,
.btn-secondary svg {
    vertical-align: -3px;
}

.finder-tab-labels label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---------- Listes : variantes ---------- */

.listing-full {
    grid-template-columns: 1fr;
}

.filters > summary {
    display: none;
}

.range-card .btn-secondary {
    margin-top: 16px;
}

.steps-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.steps-band > div {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.88rem;
    color: var(--muted);
}

.steps-band strong {
    display: block;
    color: var(--dark);
    margin: 8px 0 2px;
}

/* ---------- Fiche produit : compléments ---------- */

.product-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin-top: 6px;
}

.product-subnav {
    margin: 0 0 var(--space-3);
}

.rich-text h2 {
    font-size: 1.1rem;
    margin: 1.2em 0 0.4em;
}

.rich-text h3 {
    font-size: 1rem;
}

.rich-text > :first-child {
    margin-top: 0;
}

.printer-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.review-form {
    margin-top: 18px;
}

.review-form > summary {
    display: inline-flex;
    list-style: none;
    margin-bottom: 14px;
}

.review-form > summary::-webkit-details-marker {
    display: none;
}

.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    border: none;
    margin: 0 0 12px;
    padding: 0;
}

.rating-input legend {
    width: 100%;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.rating-input input {
    position: absolute;
    opacity: 0;
}

.rating-input label {
    font-size: 1.8rem;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #f5a400;
}

.rating-input input:focus-visible + label {
    outline: 3px solid rgba(11, 79, 168, 0.35);
}

/* ---------- Commande : modes de livraison ---------- */

.shipping-options {
    border: none;
    margin: 0 0 var(--space-3);
    padding: 0;
}

.shipping-options legend {
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark);
}

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    background: var(--white);
}

.shipping-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.shipping-option input {
    margin-top: 4px;
}

.shipping-option small {
    display: block;
    color: var(--muted);
}

.pro-billing {
    margin-bottom: 8px;
}

/* ---------- Notifications (toast) ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
    pointer-events: none;
}

.toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.toast.is-success {
    border-left: 4px solid #34d399;
}

.toast.is-error {
    border-left: 4px solid #f87171;
}

.toast a {
    color: var(--yellow);
    font-weight: 700;
    white-space: nowrap;
}

.suggest-all {
    justify-content: center;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--primary);
}

/* ---------- Contact, devis, erreurs, blog ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
}

.contact-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.contact-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

.error-search {
    max-width: 520px;
    margin: 0 auto 18px;
}

.article h1 {
    margin: 4px 0 6px;
    font-size: 1.9rem;
}

.article-cover {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 12px 0 18px;
}

.article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0 18px;
}

/* ---------- Espace client : compléments ---------- */

.auth-form-wide {
    max-width: 640px;
}

fieldset.segmented {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.order-progress {
    display: flex;
    gap: 0;
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
    counter-reset: none;
    overflow-x: auto;
}

.order-progress li {
    flex: 1;
    min-width: 110px;
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 40px;
}

.order-progress li span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    font-weight: 800;
    z-index: 1;
}

.order-progress li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.order-progress li:first-child::before {
    display: none;
}

.order-progress li.is-done,
.order-progress li.is-current {
    color: var(--dark);
    font-weight: 700;
}

.order-progress li.is-done span {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.order-progress li.is-done::before,
.order-progress li.is-current::before {
    background: var(--success);
}

.order-progress li.is-current span {
    border-color: var(--primary);
    color: var(--primary);
}

.notification {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.notification:last-child {
    border-bottom: none;
}

.notification h2 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.notification p {
    margin: 0 0 4px;
}

.notification.is-unread h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--magenta);
    vertical-align: middle;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline;
    margin-left: 10px;
}

.confirmation .data-table {
    text-align: left;
    margin-top: 10px;
}

.confirmation .data-table tfoot td,
.confirmation .data-table tfoot th {
    border-bottom: none;
    padding-top: 6px;
    padding-bottom: 6px;
}

.confirmation-actions {
    justify-content: center;
    margin-top: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero-inner,
    .print-band,
    .product-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .listing {
        grid-template-columns: 1fr;
    }

    .filters > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 700;
        color: var(--dark);
        list-style: none;
    }

    .filters > summary::-webkit-details-marker {
        display: none;
    }

    .filters > summary::after {
        content: "+";
        color: var(--primary);
        font-size: 1.2rem;
    }

    .filters[open] > summary {
        margin-bottom: 12px;
    }

    .filters[open] > summary::after {
        content: "–";
    }

    .steps-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .filters,
    .gallery,
    .summary-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reassurance ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-dropdown-wide {
        min-width: 480px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 14.5px;
    }

    .util-bar {
        display: none;
    }

    .site-header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo actions toggle" "search search search";
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: 0;
    }

    .logo {
        grid-area: logo;
        font-size: 1.2rem;
    }

    .search-box {
        grid-area: search;
        max-width: none;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
    }

    .header-action span:not(.cart-badge) {
        display: none;
    }

    .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--white);
        cursor: pointer;
    }

    .main-nav {
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav > .container {
        flex-direction: column;
        padding: 6px 0;
    }

    .nav-dropdown,
    .nav-dropdown-wide {
        position: static;
        min-width: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-item:hover > .nav-dropdown {
        display: none;
    }

    .nav-item.is-open > .nav-dropdown {
        display: block;
    }

    .nav-columns {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-inner {
        padding-top: 30px;
        padding-bottom: 34px;
        gap: var(--space-4);
    }

    .range-grid,
    .grid-2,
    .steps-band,
    .newsletter-band .container {
        grid-template-columns: minmax(0, 1fr);
    }

    .reassurance ul {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-grid,
    .print-band .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pc-actions {
        flex-direction: column;
    }

    .cart-line {
        grid-template-columns: 64px 1fr;
    }

    .cart-line img {
        width: 64px;
        height: 64px;
    }

    .cart-line .line-total {
        text-align: left;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .seo-text {
        column-count: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .printer-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .promo-bar,
    .util-bar,
    .site-header,
    .main-nav,
    .site-footer,
    .newsletter-band,
    .whatsapp-float {
        display: none !important;
    }
}
