/* ==========================================================================
   MyStore — identité visuelle du site public (Bootstrap 5.3)
   --------------------------------------------------------------------------
   Idée directrice : des projets web vendus comme des tirages numérotés.
   - Encre pétrole + papier froid ; un seul accent, l'ocre, réservé à
     l'« estampille d'édition » (1/1, 12/50…) et aux appels à l'action forts.
   - Schibsted Grotesk pour tout le texte ; IBM Plex Mono uniquement pour les
     données de code (versions, numéros d'édition, références).
   - Fiches produit sobres : filets plutôt qu'ombres, peu d'animations.
   ========================================================================== */

:root {
    /* Palette */
    --ink: #0f2e33;          /* encre pétrole : textes forts, fonds sombres, boutons */
    --ink-2: #1b4a50;        /* survol des éléments encre */
    --paper: #f5f7f6;        /* fond de page */
    --surface: #ffffff;      /* cartes, encadrés */
    --line: #dce3e1;         /* filets, bordures */
    --muted: #5b6e70;        /* textes secondaires (contraste AA sur blanc) */
    --ochre: #e9a93b;        /* accent unique : édition, CTA sur fond sombre */
    --ochre-soft: #fcf1dc;
    --ochre-ink: #6b4304;    /* texte sur fond ocre clair */

    /* Typographie */
    --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Rayons : petits et hiérarchisés (pas un rayon unique partout) */
    --r-sm: 6px;   /* images, badges */
    --r-md: 8px;   /* boutons, champs */
    --r-lg: 12px;  /* encadrés */

    /* Thème Bootstrap */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: #1d3236;
    --bs-body-bg: #ffffff; /* fond des composants (cartes, menus, champs) ; le fond de page est sur body */
    --bs-emphasis-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--r-md);
    --bs-border-radius-lg: var(--r-lg);
    --bs-border-radius-sm: var(--r-sm);
    --bs-primary: var(--ink);
    --bs-primary-rgb: 15, 46, 51;
    --bs-primary-bg-subtle: #e3eded;
    --bs-primary-border-subtle: #b9cccc;
    --bs-primary-text-emphasis: var(--ink);
    --bs-link-color: #17645f;
    --bs-link-color-rgb: 23, 100, 95;
    --bs-link-hover-color: var(--ink);
    --bs-link-hover-color-rgb: 15, 46, 51;
    --bs-focus-ring-color: rgba(233, 169, 59, .45);
    --bs-tertiary-bg: #eef2f1;
}

body {
    background: var(--paper);
    font-feature-settings: "ss01";
    -webkit-font-smoothing: antialiased;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-6 {
    color: var(--ink);
    font-weight: 750;
    letter-spacing: -0.022em;
    line-height: 1.12;
}
.display-6 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.55; }
.font-monospace, code, .mono { font-family: var(--font-mono) !important; }
::selection { background: var(--ochre); color: var(--ink); }

/* Focus clavier visible partout */
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .22rem var(--bs-focus-ring-color);
    border-color: var(--ink-2);
}

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: var(--r-md); padding: .55rem 1.05rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.02rem; }
.btn-sm { padding: .3rem .7rem; }
.btn-primary {
    --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink-2); --bs-btn-hover-border-color: var(--ink-2);
    --bs-btn-active-bg: #0a2125; --bs-btn-active-border-color: #0a2125;
    --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink);
}
.btn-outline-primary {
    --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ink-2); --bs-btn-active-border-color: var(--ink-2);
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: #eef2f1; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #c8d2d0;
    --bs-btn-active-bg: #e3e9e7; --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: #c8d2d0;
}
/* Appel à l'action fort, réservé aux fonds sombres */
.btn-ochre {
    --bs-btn-bg: var(--ochre); --bs-btn-border-color: var(--ochre); --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: #f3bd5c; --bs-btn-hover-border-color: #f3bd5c; --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: #d9962a; --bs-btn-active-border-color: #d9962a; --bs-btn-active-color: var(--ink);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); }

/* ---------- Formulaires ---------- */
.form-control, .form-select { border-color: #cdd6d4; padding: .6rem .8rem; }
.form-control-sm, .form-select-sm { padding: .3rem .6rem; }
.form-label { font-weight: 600; color: var(--ink); font-size: .94rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.input-group-text { background: #eef2f1; border-color: #cdd6d4; color: var(--muted); }

/* ---------- Composants Bootstrap ---------- */
.card { border-color: var(--line); border-radius: var(--r-lg); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 46, 51, .06) !important; }
.alert { border-radius: var(--r-md); border-width: 1px; }
.badge { font-weight: 600; border-radius: var(--r-sm); letter-spacing: .01em; }
.nav-pills .nav-link { color: var(--ink); border-radius: var(--r-md); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--ink); }
.nav-tabs .nav-link { color: var(--muted); font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--ink); }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-border-radius: var(--r-md); }
.breadcrumb { --bs-breadcrumb-divider-color: #9fb0ae; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.progress { background: #e4eae8; }
.progress-bar { background: var(--ink); }
.accordion { --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .22rem var(--bs-focus-ring-color); }
.text-primary { color: var(--ink) !important; }
.bg-primary-subtle { background-color: #e3eded !important; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-top: 1.05rem; padding-bottom: 1.05rem;   /* un peu plus haut ; le logo garde sa taille (34 px) */
}
.site-nav .navbar-brand { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; }
.site-nav .nav-link { font-weight: 600; color: var(--muted); padding-left: .9rem !important; padding-right: .9rem !important; }
.site-nav .nav-link:hover { color: var(--ink); }
.site-nav .nav-link.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ochre); }

/* --------------------------------------------------------------------------
   Méga-menu « Produits »
   -------------------------------------------------------------------------- */
.mega-menu { border: 0; padding: 0; margin: 0; font-size: .92rem; }
.mega-quick { background: var(--ink); color: #fff; padding: 1rem .75rem; }
.mega-quick-link {
    display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .75rem; border-radius: .6rem;
    color: #fff; text-decoration: none;
}
.mega-quick-link i { margin-top: .2rem; color: var(--ochre); }
.mega-quick-link .mega-hint { color: rgba(255, 255, 255, .68); }
.mega-quick-link:hover, .mega-quick-link:focus-visible, .mega-quick-link.is-active { background: var(--ink-2); color: #fff; }
.mega-quick-link.is-accent .fw-semibold { color: var(--ochre); }
.mega-cats { padding: 1.25rem 1rem; background: var(--surface, #fff); }
.mega-title { font-weight: 800; color: var(--ink); font-size: 1rem; }
.mega-hint { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.mega-cat { height: 100%; }
.mega-cat-head { display: flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; padding: .35rem; border-radius: .6rem; }
.mega-cat-head:hover, .mega-cat-head:focus-visible { background: var(--paper); color: var(--ink); }
.mega-cat-icon {
    flex: 0 0 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: .6rem; background: var(--ochre-soft); color: #8a4b0f; font-size: 1.05rem;
}
.mega-subs { margin: .2rem 0 0 3.45rem; }
.mega-subs a { display: flex; justify-content: space-between; gap: .5rem; padding: .18rem 0; color: var(--muted); text-decoration: none; }
.mega-subs a:hover, .mega-subs a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mega-count { font-size: .72rem; color: #8a9b9c; }

/* Mobile (menu replié) : panneau empilé, défilant */
@media (max-width: 991.98px) {
    .mega-menu { max-height: 70vh; overflow-y: auto; border-radius: .75rem; margin-bottom: .5rem; border: 1px solid var(--line); }
    .mega-menu > .container { padding: 0; }
    .mega-quick { border-radius: .75rem .75rem 0 0; }
}

/* Ordinateur : panneau pleine largeur sous l'en-tête, ouvert au survol comme au clic */
@media (min-width: 992px) {
    .site-nav .mega-dropdown { position: static; }
    .site-nav .mega-menu {
        left: 0; right: 0; top: 100%; width: 100%;
        border-top: 1px solid var(--line); border-radius: 0 0 1rem 1rem;
        box-shadow: 0 24px 40px -24px rgba(15, 46, 51, .35);
    }
    .site-nav .mega-menu { padding: 1rem 0 1.25rem; background: var(--paper); }
    .mega-menu > .container > .row { border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
    .mega-quick { padding: 1.25rem 1rem; }
    .mega-cats { padding: 1.5rem 1.75rem; }
    /* Pont invisible : le panneau reste ouvert quand la souris descend du lien vers lui */
    .site-nav .mega-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 1.4rem; }
}
@media (min-width: 992px) and (hover: hover) {
    .site-nav .mega-dropdown:hover > .mega-menu { display: block; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
    .site-nav .mega-menu.show, .site-nav .mega-dropdown:hover > .mega-menu { animation: mega-in .14s ease-out; }
    @keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Marque : carré encre avec le coin ocre — rappel de l'estampille */
.brand-mark {
    width: 34px; height: 34px; border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; position: relative; flex-shrink: 0;
}
.brand-mark::after {
    content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px;
    border-radius: 50%; background: var(--ochre); border: 2px solid var(--surface);
}

/* ==========================================================================
   Estampille d'édition (l'élément mémorable du site)
   ========================================================================== */
.edition {
    display: inline-flex; align-items: stretch; border-radius: var(--r-sm);
    overflow: hidden; font-size: .78rem; line-height: 1; white-space: nowrap;
    border: 1px solid var(--ochre);
}
.edition-label { background: var(--ochre); color: var(--ink); font-weight: 700; padding: .38rem .55rem; }
.edition-count { background: var(--ochre-soft); color: var(--ochre-ink); font-family: var(--font-mono); font-weight: 600; padding: .38rem .55rem; }
.edition.is-open { border-color: var(--line); }
.edition.is-open .edition-label { background: #eef2f1; color: var(--muted); }
.edition-lg { font-size: .95rem; }
.edition-lg .edition-label, .edition-lg .edition-count { padding: .55rem .75rem; }

/* ==========================================================================
   Sections de la page d'accueil
   ========================================================================== */
.landing-section { padding: 5.5rem 0; }
.landing-section + .landing-section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* --- Bannière principale --- */
.hero { padding: 4.5rem 0 4.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em;
    line-height: 1.02; margin-bottom: 1.4rem; max-width: 14ch;
}
.hero .lead { max-width: 34rem; font-size: 1.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; color: var(--muted); font-size: .95rem; }
.hero-proof i { color: var(--ink); margin-right: .4rem; }
.hero-visual { border-radius: var(--r-lg); border: 1px solid var(--line); }

/* Fiche « comment ça se passe » : la vraie séquence d'une commande */
.process-card { background: var(--ink); color: #d6e2e1; border-radius: var(--r-lg); padding: 2rem; position: relative; }
.process-card h2 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 1.5rem; }
.process-card .edition { position: absolute; top: -14px; right: 1.5rem; }
.process-step { display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.process-step:first-of-type { border-top: 0; padding-top: 0; }
.process-step .num {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; color: #fff; font-size: .9rem;
}
.process-step strong { display: block; color: #fff; font-weight: 650; margin-bottom: .15rem; }
.process-step p { margin: 0; font-size: .93rem; color: #a9bebd; }

/* --- Avantages : colonnes séparées par des filets, pas de cartes --- */
/* On garde le padding de la grille Bootstrap (alignement avec le titre), on n'ajoute que l'espace autour des filets */
.features-row > div { padding-top: .5rem; padding-bottom: .5rem; }
.features-row > div:not(:last-child) { padding-right: 2rem; }
.features-row > div + div { border-left: 1px solid var(--line); padding-left: 2rem; }
.feature-icon { font-size: 1.4rem; color: var(--ink); margin-bottom: 1rem; display: inline-block; }
.feature-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feature-text { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) {
    .features-row > div, .features-row > div + div, .features-row > div:not(:last-child) {
        padding: 1.5rem calc(var(--bs-gutter-x) * .5);
    }
    .features-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- Chiffres --- */
.stats-band { background: var(--ink); color: #fff; border-top: 0 !important; }
.stats-band h2 { color: #fff; }
.stat-value { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.stat-label { color: #a9bebd; margin-top: .5rem; }
.stats-row > div { border-left: 2px solid var(--ochre); padding-left: 1.25rem; }

/* --- Témoignages --- */
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; height: 100%; }
.testimonial blockquote p { font-size: 1.05rem; color: var(--ink); }
.testimonial .avatar {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e3eded;
    display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 700;
}

/* --- FAQ --- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0 !important; }
.faq .accordion-button { font-weight: 650; font-size: 1.08rem; background: transparent; padding: 1.25rem 0; color: var(--ink); box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--ink); }
.faq .accordion-body { padding: 0 0 1.25rem; color: var(--muted); }

/* --- Appel à l'action --- */
.cta-band { background: var(--ink); color: #c9d8d7; border-radius: var(--r-lg); padding: 3.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: #a9bebd; font-size: 1.1rem; }

/* ==========================================================================
   Produits
   ========================================================================== */
.product-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; height: 100%; transition: border-color .15s;
}
.product-card:hover { border-color: #9fb3b1; }
.product-card:focus-within { border-color: var(--ink); }
.product-thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #e9eeed; border-bottom: 1px solid var(--line); }
.product-thumb-placeholder {
    aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(135deg, #eef2f1 0 12px, #e7edec 12px 24px);
    color: #9fb3b1; font-size: 2rem; border-bottom: 1px solid var(--line);
}
.product-card .card-meta { font-size: .85rem; color: var(--muted); }
.product-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.product-card .product-foot { border-top: 1px dashed var(--line); padding-top: .9rem; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; }
.price-old { text-decoration: line-through; color: #8a9b9c; font-size: .88rem; }
/* Promotions : badge ocre sur la vignette, prix remisé en rouge brique (contraste AA sur blanc) */
.price-promo { color: #b3401f; }
.promo-badge {
    position: absolute; top: .75rem; left: .75rem; z-index: 2;
    background: var(--ochre); color: var(--ink); font-weight: 800; font-size: .78rem;
    padding: .28rem .6rem; border-radius: 999px; line-height: 1.2;
    box-shadow: 0 2px 0 rgba(15, 46, 51, .18); max-width: calc(100% - 1.5rem);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-badge-inline { position: static; box-shadow: none; }
.promo-ends { color: #8a4b0f; background: var(--ochre-soft); border-radius: .5rem; padding: .35rem .6rem; display: inline-block; }
.badge-unique { background: var(--ochre); color: var(--ink); }

.tech-tag { display: inline-block; font-family: var(--font-mono); font-size: .78rem; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); background: var(--surface); }

.buy-box { position: sticky; top: 96px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.buy-box .spec { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.buy-box .spec i { color: var(--ink); width: 1.1rem; margin-top: .2rem; }
.prose { line-height: 1.75; color: #2b4246; max-width: 68ch; }

/* Catalogue : catégories */
@media (min-width: 992px) { .cat-link { width: 100%; } }
.cat-link.btn-light { border-color: transparent; background: transparent; color: var(--muted); font-weight: 600; }
.cat-link.btn-light:hover { background: #eef2f1; color: var(--ink); }

/* ==========================================================================
   Tunnel de paiement & espace client
   ========================================================================== */
.pay-option-label { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; cursor: pointer; background: var(--surface); width: 100%; }
.btn-check:checked + .pay-option-label { border-color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); background: #f3f7f6; }
.btn-check:focus-visible + .pay-option-label { outline: 3px solid var(--ochre); outline-offset: 2px; }
/* Carte produit : mode de livraison + lien de démo (posé au-dessus du lien étiré) */
.delivery-tag { color: var(--muted); }
.card-over-link { position: relative; z-index: 2; font-weight: 600; color: var(--ink); text-decoration: none; }
.card-over-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Fiche produit : services en option */
.addon-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; background: var(--surface); }
/* Service complémentaire cochable au paiement : la carte entière est la zone de clic */
.addon-option { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; cursor: pointer; background: var(--surface); }
.addon-option:hover { border-color: #b9cccc; }
.addon-option:has(.addon-check:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f3f7f6; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; height: 100%; }
.stat-tile .icon { width: 42px; height: 42px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink); color: #a9bebd; }
.site-footer a { color: #d6e2e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .5rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.social-link { width: 38px; height: 38px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .18); }
.social-link:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ink) !important; text-decoration: none !important; }

/* ==========================================================================
   Mouvement : une seule entrée orchestrée (la bannière), le reste est statique
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .hero .hero-in { animation: hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
    .hero .hero-in-2 { animation: hero-in .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
    .hero .hero-in-3 { animation: hero-in .7s .24s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
    .landing-section { padding: 3.5rem 0; }
    .hero { padding: 3rem 0; }
    .buy-box { position: static; }
    .cta-band { padding: 2.25rem 1.5rem; }
}

/* ---------- Sélecteur de langue (fenêtre) ---------- */
.lang-option { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; color: inherit; text-decoration: none; background: #fff; }
.lang-option:hover { border-color: #b9cccc; background: #f6f9f8; color: inherit; }
.lang-option.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lang-option:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.lang-flag { width: 1.6rem; height: 1.2rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 46, 51, .12); flex-shrink: 0; }

/* ==========================================================================
   Newsletter : bloc du pied de page + pages de confirmation / désinscription
   ========================================================================== */
.footer-newsletter { padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); }
.footer-newsletter .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.footer-newsletter .form-control::placeholder { color: #8fa6a5; }
.footer-newsletter .form-control:focus { background: rgba(255, 255, 255, .1); border-color: var(--ochre); box-shadow: 0 0 0 .2rem rgba(233, 169, 59, .3); color: #fff; }
.footer-newsletter .form-check-input { background-color: transparent; border-color: rgba(255, 255, 255, .4); }
.footer-newsletter .form-check-input:checked { background-color: var(--ochre); border-color: var(--ochre); }
.btn-newsletter { background: var(--ochre); border-color: var(--ochre); color: var(--ink); font-weight: 700; }
.btn-newsletter:hover, .btn-newsletter:focus-visible { background: #f0bb5e; border-color: #f0bb5e; color: var(--ink); }
.newsletter-result-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--ochre-soft); color: var(--ochre-ink); }
.newsletter-result-icon.is-ok { background: #e3f3ee; color: #17645f; }
.newsletter-result-icon.is-error { background: #fbe6e4; color: #a3271b; }

/* ==========================================================================
   Bannière cookies (RGPD) : carte discrète en bas à gauche, refuser = accepter en visibilité
   ========================================================================== */
.cookie-banner {
    position: fixed; left: 1rem; bottom: 1rem; z-index: 1080; width: min(440px, calc(100vw - 2rem));
    background: var(--surface); color: var(--bs-body-color); border: 1px solid var(--line); border-top: 3px solid var(--ochre);
    border-radius: var(--r-lg); padding: 1.15rem 1.25rem; box-shadow: 0 12px 32px rgba(15, 46, 51, .16);
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.btn-cookie { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; min-width: 8.5rem; }
.btn-cookie:hover, .btn-cookie:focus-visible { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.cookie-category { padding: .9rem 0; border-top: 1px solid var(--line); }
.cookie-category:first-of-type { border-top: 0; padding-top: .25rem; }
.footer-cookie-link { color: #d6e2e1; text-decoration: none; vertical-align: baseline; }
.footer-cookie-link:hover { color: #fff; text-decoration: underline; }
@media (max-width: 575.98px) {
    .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
    .btn-cookie { flex: 1 1 0; min-width: 0; white-space: nowrap; }
    .cookie-actions .btn-link { flex-basis: 100%; text-align: center; }
}

/* ==========================================================================
   Page profil
   ========================================================================== */
.nav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.profile-avatar-sm { width: 56px; height: 56px; }
.profile-avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; border: 0; }
.profile-avatar-sm.profile-avatar-initials { font-size: 1.1rem; }
.profile-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: .15rem; }
.profile-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: .55rem .75rem; border-radius: var(--r-md); border-left: 2px solid transparent; }
.profile-nav a:hover { color: var(--ink); background: var(--surface); }
.profile-nav a.active { color: var(--ink); background: var(--surface); border-left-color: var(--ochre); }
.profile-section { scroll-margin-top: 96px; }
.profile-2fa { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.profile-danger { padding: 1rem 1.1rem; border: 1px solid #f1c7c2; border-radius: var(--r-md); background: #fdf3f2; color: #5c1d16; }
@media (max-width: 991.98px) {
    .profile-nav { position: static; flex-direction: row; overflow-x: auto; gap: .25rem; padding-bottom: .25rem; }
    .profile-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
    .profile-nav a.active { border-bottom-color: var(--ochre); }
}
.min-w-0 { min-width: 0; }
.price-free { color: #17645f; }
.earning-example { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem .9rem; }
.sold-banner { display: flex; align-items: center; justify-content: center; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.1rem; }
.pwa-steps li { margin-bottom: .5rem; }

/* ==========================================================================
   Page Contact
   ========================================================================== */
.contact-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 768px) { .contact-types { grid-template-columns: repeat(4, 1fr); } }
.contact-type { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--bs-body-color); background: var(--surface); transition: border-color .15s, background-color .15s; }
.contact-type i { color: var(--muted); font-size: 1.1rem; }
.contact-type:hover { border-color: var(--ink-2); }
.btn-check:checked + .contact-type { border-color: var(--ink); background: #e3eded; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-check:checked + .contact-type i { color: var(--ink); }
.btn-check:focus-visible + .contact-type { outline: 2px solid var(--ochre); outline-offset: 2px; }
.contact-aside { position: sticky; top: 110px; padding: 1.75rem; border-radius: var(--r-lg); background: var(--ink); color: #c9d8d7; }
.contact-aside h2 { color: #fff; }
.contact-aside a { color: #fff; }
.contact-aside i { color: var(--ochre); }
.contact-aside .text-body-secondary { color: #a9bebd !important; }
.contact-aside hr { border-color: rgba(255, 255, 255, .18); }

/* ==========================================================================
   Refonte visuelle (v2, 18/10) — plus de profondeur, même identité
   --------------------------------------------------------------------------
   - L'élément fort : une bannière d'accueil « table de tirage » (encre pétrole,
     quadrillage fin, halo ocre) ; le reste reste calme et lisible.
   - Profondeur douce et hiérarchisée (ombres teintées encre), rayons plus généreux
     pour les cartes, sections alternées blanc / papier au lieu de filets.
   ========================================================================== */
:root {
    --r-xl: 18px;
    --shadow-1: 0 1px 2px rgba(15, 46, 51, .05), 0 6px 18px -10px rgba(15, 46, 51, .14);
    --shadow-2: 0 2px 6px rgba(15, 46, 51, .06), 0 24px 44px -20px rgba(15, 46, 51, .30);
    --ink-deep: #0b2428;     /* pied de page */
    --grad-ink: linear-gradient(155deg, #123c42 0%, #0f2e33 48%, #0b2428 100%);
}

/* ---------- Boutons : un peu de relief ---------- */
.btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 16px -8px rgba(15, 46, 51, .55); }
.btn-ochre { box-shadow: 0 8px 22px -10px rgba(233, 169, 59, .75); }
.btn-lg { border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
    .btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
    .btn-primary:hover, .btn-ochre:hover { transform: translateY(-1px); }
}

/* ---------- Haut de page : verre dépoli ---------- */
.site-nav {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom-color: rgba(15, 46, 51, .08);
}
.brand-mark { box-shadow: 0 6px 14px -6px rgba(15, 46, 51, .6); }

/* ---------- Bannière d'accueil ---------- */
.hero {
    position: relative; overflow: hidden; border-bottom: 0;
    padding: 6.5rem 0 7rem;
    color: #cddcdb;
    background-color: var(--ink);
    background-image:
        radial-gradient(42rem 26rem at 100% 0%, rgba(240, 178, 70, .13), transparent 60%),
        radial-gradient(38rem 28rem at 0% 100%, rgba(52, 128, 128, .28), transparent 62%),
        var(--grad-ink);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; text-wrap: balance; }
.hero .lead { color: #b8cdcb; }
.hero .text-body-secondary { color: #9db5b3 !important; }
.hero .btn-primary {
    --bs-btn-bg: var(--ochre); --bs-btn-border-color: var(--ochre); --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: #f3bd5c; --bs-btn-hover-border-color: #f3bd5c; --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: #d9962a; --bs-btn-active-border-color: #d9962a; --bs-btn-active-color: var(--ink);
    box-shadow: 0 10px 26px -10px rgba(233, 169, 59, .8);
}
.hero .btn-outline-secondary {
    --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .32);
    --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255, 255, 255, .55);
    --bs-btn-active-bg: rgba(255, 255, 255, .16); --bs-btn-active-color: #fff; --bs-btn-active-border-color: rgba(255, 255, 255, .55);
}
.hero-proof { gap: .6rem; margin-top: 2.25rem; }
.hero-proof { gap: .75rem 1.4rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 40rem; }
.hero-proof span { display: inline-flex; align-items: center; color: #c6d6d5; font-size: .92rem; font-weight: 500; }
.hero-proof i { color: var(--ochre); }
.hero-visual { border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }

/* La fiche « comment se passe une commande » devient un bon de commande clair posé sur la table */
.hero .process-card {
    background: #fff; color: var(--muted); border-radius: var(--r-xl); padding: 2.25rem 2rem 1.5rem;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .6);
}
.hero .process-card h2 { color: var(--ink); font-size: 1.2rem; }
.hero .process-card .edition { top: -15px; box-shadow: 0 8px 18px -8px rgba(233, 169, 59, .9); }
.hero .process-step { border-top: 1px dashed var(--line); position: relative; }
.hero .process-step:first-of-type { border-top: 0; }
.hero .process-step .num { background: var(--ink); border: 0; color: var(--ochre); box-shadow: 0 0 0 4px #e9f0ef; }
.hero .process-step strong { color: var(--ink); }
.hero .process-step p { color: var(--muted); }

/* ---------- Sections : fonds alternés, plus de filets ---------- */
.landing-section + .landing-section { border-top: 0; }
.section-features, .section-testimonials, .section-latest_posts { background: var(--surface); }
.section-head h2::after {
    content: ""; display: block; width: 3rem; height: 4px; border-radius: 2px; margin-top: 1rem;
    background: linear-gradient(90deg, var(--ochre), #f3c97a);
}
.section-head { margin-bottom: 2.75rem; }

/* Avantages : tuiles avec pastille d'icône */
.features-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin: 0;
}
.features-row > div,
.features-row > div + div,
.features-row > div:not(:last-child) {
    width: auto; max-width: none; padding: 1.9rem 1.75rem; border: 1px solid var(--line); border-left: 1px solid var(--line);
    border-radius: var(--r-xl); background: linear-gradient(180deg, #fbfcfc, var(--paper));
}
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem;
    border-radius: 14px; font-size: 1.25rem; margin-bottom: 1.25rem;
    background: var(--ink); color: var(--ochre); box-shadow: 0 10px 20px -10px rgba(15, 46, 51, .7);
}
@media (max-width: 767.98px) {
    .features-row > div, .features-row > div + div, .features-row > div:not(:last-child) { padding: 1.5rem; border-top: 1px solid var(--line); }
}

/* ---------- Cartes produit (et articles) ---------- */
.product-card {
    border-radius: var(--r-xl); border-color: rgba(15, 46, 51, .09); box-shadow: var(--shadow-1);
    transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s, border-color .22s;
}
.product-card:hover { border-color: rgba(15, 46, 51, .16); box-shadow: var(--shadow-2); }
.product-thumb, .product-thumb-placeholder { border-bottom: 0; }
.product-thumb { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
    .product-card:hover { transform: translateY(-4px); }
    .product-card:hover .product-thumb { transform: scale(1.035); }
}
.product-thumb-placeholder {
    color: #8fa9a6; font-size: 2.1rem;
    background: radial-gradient(14rem 9rem at 85% 0%, rgba(240, 178, 70, .16), transparent 70%), linear-gradient(160deg, #f4f8f7 0%, #e6eeec 100%);
}
.product-card .card-meta {
    display: inline-block; font-size: .74rem; font-weight: 650; color: var(--ink-2);
    background: #edf3f2; border-radius: 999px; padding: .22rem .6rem;
}
.product-card h3 { font-size: 1.14rem; letter-spacing: -0.015em; }
.product-card .product-foot { border-top: 1px solid #edf1f0; }
.price { font-size: 1.3rem; }
.tech-tag { background: var(--paper); border-color: #e3e9e8; }
.promo-badge { top: .9rem; left: .9rem; padding: .32rem .7rem; box-shadow: 0 6px 14px -6px rgba(233, 169, 59, .9); }

/* ---------- Chiffres ---------- */
.stats-band {
    position: relative;
    background-color: var(--ink);
    background-image: radial-gradient(36rem 18rem at 100% 0%, rgba(240, 178, 70, .1), transparent 62%), var(--grad-ink);
}
.stat-value { background: linear-gradient(180deg, #fff 30%, #cfe0de); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Témoignages ---------- */
.testimonial { position: relative; border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: 2rem; overflow: hidden; }
.testimonial::before {
    content: "\201C"; position: absolute; top: -1.4rem; right: 1rem; font-size: 8rem; line-height: 1;
    font-family: Georgia, serif; color: var(--ochre-soft); pointer-events: none;
}
.testimonial > * { position: relative; }
.testimonial .avatar { background: var(--ink); color: var(--ochre); }

/* ---------- FAQ : questions en cartes ---------- */
.faq .accordion-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px !important;
    margin-bottom: .75rem; box-shadow: 0 1px 2px rgba(15, 46, 51, .04); overflow: hidden;
}
.faq .accordion-button { padding: 1.15rem 1.4rem; }
.faq .accordion-button:not(.collapsed) { background: #f7faf9; }
.faq .accordion-body { padding: 0 1.4rem 1.3rem; }

/* ---------- Appel à l'action ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: 22px; padding: 4rem 3.5rem;
    background-color: var(--ink);
    background-image:
        radial-gradient(30rem 18rem at 100% 100%, rgba(233, 169, 59, .28), transparent 65%),
        radial-gradient(26rem 18rem at 0% 0%, rgba(52, 128, 128, .35), transparent 65%),
        var(--grad-ink);
    box-shadow: var(--shadow-2);
}
.cta-band > * { position: relative; }

/* ---------- En-tête des pages (catalogue, blog, boutiques) ---------- */
.page-head {
    position: relative; padding: 3.5rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; }
.page-head .input-group, .page-head .form-select { box-shadow: var(--shadow-1); border-radius: 10px; }

/* Catalogue : catégories actives en encre, compteur discret */
.cat-link.btn-primary { box-shadow: 0 8px 18px -10px rgba(15, 46, 51, .7); }

/* ---------- Fiche produit ---------- */
.buy-box { border-radius: var(--r-xl); box-shadow: var(--shadow-2); border-color: rgba(15, 46, 51, .08); }
.buy-box .price { font-size: 2.1rem; }

/* ---------- Pied de page ---------- */
/* Pied de page : voir « Pied de page (v3) » en fin de fichier */

@media (max-width: 767.98px) {
    .hero { padding: 4rem 0 4.5rem; }
    .cta-band { padding: 2.5rem 1.5rem; border-radius: var(--r-xl); }
    .page-head { padding: 2.5rem 0 2rem; }
}

/* ==========================================================================
   Refonte visuelle (v2) — composants communs à toutes les pages
   ========================================================================== */

/* ---------- Titres de page ---------- */
.site-main h1.fw-bold, .site-main h1.h3 { letter-spacing: -0.03em; }
.site-main .container > h1.fw-bold:first-child, .site-main h1.display-6 { text-wrap: balance; }

/* ---------- Cartes ---------- */
.card { border-radius: var(--r-xl); border-color: rgba(15, 46, 51, .09); box-shadow: var(--shadow-1); }
.card.border-0 { border: 1px solid rgba(15, 46, 51, .07) !important; }
.card.rounded-4, .rounded-4 { border-radius: var(--r-xl) !important; }
.card-header { background: transparent; border-bottom-color: #edf1f0; }
.card-header:first-child { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.card-footer { background: #fafcfb; border-top-color: #edf1f0; }
.shadow-sm { box-shadow: var(--shadow-1) !important; }
.shadow { box-shadow: var(--shadow-2) !important; }
.stat-tile { border-radius: var(--r-xl); box-shadow: var(--shadow-1); border-color: rgba(15, 46, 51, .08); }
.stat-tile .icon { width: 46px; height: 46px; border-radius: 12px; font-size: 1.1rem; }

/* Bouton d'avertissement aux couleurs du site (ocre) */
.btn-warning {
    --bs-btn-bg: var(--ochre); --bs-btn-border-color: var(--ochre); --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: #f3bd5c; --bs-btn-hover-border-color: #f3bd5c; --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: #d9962a; --bs-btn-active-border-color: #d9962a; --bs-btn-active-color: var(--ink);
}
.btn-success { --bs-btn-bg: #1f8a6b; --bs-btn-border-color: #1f8a6b; --bs-btn-hover-bg: #187257; --bs-btn-hover-border-color: #187257; }
.btn-danger { --bs-btn-bg: #c2412d; --bs-btn-border-color: #c2412d; --bs-btn-hover-bg: #a63624; --bs-btn-hover-border-color: #a63624; }
.btn-outline-danger { --bs-btn-color: #b3401f; --bs-btn-border-color: #e6b8af; --bs-btn-hover-bg: #c2412d; --bs-btn-hover-border-color: #c2412d; }

/* ---------- Formulaires ---------- */
.form-control, .form-select {
    border-radius: 10px; border-color: #cfd9d7; background-color: #fff; padding: .65rem .9rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:hover, .form-select:hover { border-color: #b3c3c0; }
.form-control:focus, .form-select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 .25rem rgba(233, 169, 59, .28); }
.form-control-lg, .form-select-lg { border-radius: 12px; padding: .8rem 1rem; }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.input-group > .form-control, .input-group > .form-select { border-radius: 10px; }
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { border-radius: 10px; background: var(--paper); border-color: #cfd9d7; }
.form-check-input { width: 1.15em; height: 1.15em; border-color: #b3c3c0; }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(233, 169, 59, .28); border-color: var(--ink-2); }
.form-switch .form-check-input { width: 2.3em; }
.form-label { margin-bottom: .4rem; }
.invalid-feedback { font-weight: 500; }

/* ---------- Pagination ---------- */
.pagination {
    --bs-pagination-border-radius: 10px; --bs-pagination-border-color: var(--line);
    --bs-pagination-hover-bg: var(--paper); --bs-pagination-hover-color: var(--ink); --bs-pagination-hover-border-color: #b9cccc;
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(233, 169, 59, .35);
    --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: #9fb0ae; --bs-pagination-disabled-border-color: transparent;
    gap: .4rem; flex-wrap: wrap; margin-bottom: 0;
}
.page-item .page-link {
    min-width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px !important; margin-left: 0 !important; font-weight: 650; background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 46, 51, .05);
}
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 46, 51, .8); }
.page-item.disabled .page-link { box-shadow: none; }
/* Texte « Affichage de 1 à 12 sur 40 » de Laravel */
nav .small.text-muted { color: var(--muted) !important; margin: 0 1.5rem 0 0; }

/* ---------- Tableaux (espace client, factures…) ---------- */
.table { --bs-table-hover-bg: #f6f9f8; --bs-table-striped-bg: #f8faf9; border-color: #edf1f0; }
.table > thead > tr > th {
    font-size: .8rem; font-weight: 650; color: var(--muted); background: #f7faf9;
    border-bottom: 1px solid var(--line); padding-top: .8rem; padding-bottom: .8rem; white-space: nowrap;
}
.table > :not(caption) > * > * { padding-left: 1rem; padding-right: 1rem; }
.card > .table-responsive > .table, .card > .table { margin-bottom: 0; }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:first-child { border-top-left-radius: var(--r-xl); }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:last-child { border-top-right-radius: var(--r-xl); }

/* ---------- Listes ---------- */
.list-group { --bs-list-group-border-color: #edf1f0; }
.list-group-item-action { border-radius: 12px; transition: background-color .15s; }
.list-group-item-action:hover, .list-group-item-action:focus { background: #f4f8f7; }
.list-group-item.active { background: var(--ink); border-color: var(--ink); }

/* ---------- Alertes ---------- */
.alert {
    border-radius: 14px; border: 1px solid transparent; border-left-width: 4px; padding: .95rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 46, 51, .04);
}
.alert-success { background: #eaf6f2; border-color: #cfe9e0; border-left-color: #1f8a6b; color: #11463a; }
.alert-danger { background: #fdf0ee; border-color: #f4d3ce; border-left-color: #c2412d; color: #6b1f14; }
.alert-warning { background: #fdf5e6; border-color: #f4e2bd; border-left-color: var(--ochre); color: #5e3d07; }
.alert-info { background: #ecf4f6; border-color: #d3e4e8; border-left-color: #2f7f8f; color: #173f47; }
.alert-secondary, .alert-light { background: var(--paper); border-color: var(--line); border-left-color: #9fb0ae; }
.alert .btn-close { padding: 1.1rem; }
.alert > i:first-child, .alert > .fa-solid:first-child { opacity: .85; }

/* ---------- Badges ---------- */
.badge { border-radius: 999px; padding: .38em .7em; font-weight: 650; }
.badge.text-bg-light { background: #eef3f2 !important; color: var(--ink-2) !important; }
.badge.text-bg-success { background: #1f8a6b !important; }
.badge.text-bg-warning { background: var(--ochre) !important; color: var(--ink) !important; }
.badge.text-bg-primary { background: var(--ink) !important; }

/* ---------- Onglets et pastilles ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .7rem .9rem; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--ink); border-bottom-color: #cfd9d7; }
.nav-tabs .nav-link.active { color: var(--ink); background: transparent; border-bottom-color: var(--ochre); }
.nav-pills { gap: .35rem; }
.nav-pills .nav-link { padding: .5rem 1rem; border-radius: 999px; }
.nav-pills .nav-link:not(.active):hover { background: #eaf0ef; }
.nav-pills .nav-link.active { box-shadow: 0 8px 18px -10px rgba(15, 46, 51, .8); }

/* ---------- Menus déroulants, fenêtres, info-bulles ---------- */
.dropdown-menu {
    border: 1px solid rgba(15, 46, 51, .08); border-radius: 14px; padding: .45rem;
    box-shadow: 0 18px 40px -16px rgba(15, 46, 51, .35);
}
.dropdown-item { border-radius: 9px; padding: .55rem .75rem; font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: #f1f6f5; color: var(--ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--ink); color: #fff; }
.dropdown-divider { margin: .4rem .25rem; border-color: #edf1f0; }
/* Le méga-menu garde sa forme (ce n'est pas un petit menu déroulant) */
.mega-menu.dropdown-menu { padding: 0; border: 0; }
@media (max-width: 991.98px) { .mega-menu.dropdown-menu { border: 1px solid var(--line); border-radius: .75rem; box-shadow: none; } }
@media (min-width: 992px) {
    .site-nav .mega-menu.dropdown-menu { padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); border-radius: 0 0 1rem 1rem; }
}
.modal-content { border: 0; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(15, 46, 51, .55); }
.modal-header { border-bottom: 0; padding: 1.4rem 1.5rem .5rem; }
.modal-body { padding: 1rem 1.5rem; }
.modal-footer { border-top: 0; padding: .5rem 1.5rem 1.4rem; }
.modal-backdrop.show { opacity: .45; }
.tooltip { --bs-tooltip-bg: var(--ink); --bs-tooltip-border-radius: 8px; }
.toast { border-radius: 14px; border: 1px solid rgba(15, 46, 51, .08); box-shadow: var(--shadow-2); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-item-padding-x: .55rem; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; padding: .4rem .85rem; background: rgba(255, 255, 255, .75); border: 1px solid rgba(15, 46, 51, .07); border-radius: 999px; }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Accordéons, barres de progression ---------- */
.accordion-item { border-color: var(--line); }
.accordion-item:first-of-type { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.accordion-item:last-of-type { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: #f6f9f8; color: var(--ink); box-shadow: none; }
.progress { height: .6rem; border-radius: 999px; background: #e4ecea; }
.progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--ink), #2c7a78); }

/* ---------- Pages d'authentification ---------- */
.auth-wrap { min-height: calc(100vh - 260px); display: flex; align-items: center; }
.auth-wrap > .container { position: relative; }
.auth-wrap .brand-mark { width: 56px !important; height: 56px !important; border-radius: 16px; font-size: 1.3rem !important; color: var(--ochre); }
.auth-wrap .card { box-shadow: var(--shadow-2); }
.auth-wrap .card-body { padding: 2.25rem !important; }
@media (max-width: 575.98px) { .auth-wrap .card-body { padding: 1.5rem !important; } }

/* ---------- Fiche produit ---------- */
.detail-title::after {
    content: ""; display: block; width: 2.25rem; height: 3px; border-radius: 2px; margin-top: .6rem;
    background: linear-gradient(90deg, var(--ochre), #f3c97a);
}
#gallery { border: 0 !important; box-shadow: var(--shadow-2); border-radius: var(--r-xl) !important; }
#gallery .carousel-control-prev, #gallery .carousel-control-next { width: auto; padding: 0 1rem; opacity: 1; }
#gallery .carousel-control-prev-icon, #gallery .carousel-control-next-icon {
    width: 2.6rem; height: 2.6rem; border-radius: 50%; background-color: rgba(15, 46, 51, .72);
    background-size: 45%; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.addon-row { border-radius: 14px; border-color: rgba(15, 46, 51, .09); box-shadow: 0 1px 2px rgba(15, 46, 51, .04); transition: border-color .15s, box-shadow .15s; }
.addon-row:hover { border-color: #b9cccc; box-shadow: var(--shadow-1); }
.buy-box .spec i { color: var(--ochre); }
.sold-banner { border-radius: 12px; background-image: var(--grad-ink); }

/* ---------- Tunnel de paiement ---------- */
.pay-option-label, .addon-option { border-radius: 14px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.pay-option-label:hover { border-color: #b9cccc; }
.btn-check:checked + .pay-option-label, .addon-option:has(.addon-check:checked) { box-shadow: inset 0 0 0 1px var(--ink), 0 10px 22px -16px rgba(15, 46, 51, .8); }

/* ---------- Espace client ---------- */
.profile-nav a { border-radius: 10px; }
.profile-nav a.active { box-shadow: var(--shadow-1); }
.profile-avatar { box-shadow: 0 0 0 3px #fff, 0 6px 16px -8px rgba(15, 46, 51, .5); }
.profile-2fa, .profile-danger { border-radius: 14px; }

/* ---------- Contact ---------- */
.contact-type { border-radius: 14px; padding: .95rem 1rem; }
.contact-aside {
    border-radius: var(--r-xl); background-color: var(--ink);
    background-image: radial-gradient(22rem 14rem at 100% 0%, rgba(240, 178, 70, .14), transparent 65%), var(--grad-ink);
    box-shadow: var(--shadow-2);
}

/* ---------- Langues, cookies, newsletter ---------- */
.lang-option { border-radius: 12px; }
.cookie-banner { border-radius: var(--r-xl); box-shadow: 0 30px 60px -24px rgba(15, 46, 51, .45); }
.footer-newsletter { border-radius: var(--r-xl); background: rgba(255, 255, 255, .04); }
.newsletter-result-icon { box-shadow: 0 0 0 8px rgba(233, 169, 59, .08); }

article .lead { color: #3d5559; }

/* ==========================================================================
   Pied de page (v3) — sobre : fond uni, newsletter en tête, colonnes de liens,
   barre légale avec moyens de paiement
   ========================================================================== */
.site-footer { background: var(--ink-deep); color: #9fb6b4; font-size: .95rem; }
.site-footer a { color: #cfdcdb; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer li { margin-bottom: .65rem; }
.footer-top { background: rgba(255, 255, 255, .025); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-title { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 1.1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff !important; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.footer-brand .brand-mark { box-shadow: none; background: rgba(255, 255, 255, .1); }
.footer-about { max-width: 36ch; line-height: 1.65; }
.footer-contact i { color: #6f8d8b; width: 1rem; text-align: center; }
.social-link { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); color: #cfdcdb; }
.social-link:hover { background: #fff; border-color: #fff; color: var(--ink) !important; }
.footer-newsletter { padding: 0; border: 0; border-radius: 0; background: transparent; }
.footer-newsletter .footer-title { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: .4rem; }
.footer-newsletter .form-control { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; padding: .8rem 1rem; }
.footer-newsletter .btn-newsletter { padding-left: 1.4rem; padding-right: 1.4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); color: #7f9997; font-size: .86rem; }
.footer-bottom a, .footer-bottom .footer-cookie-link { color: #9fb6b4; font-size: .86rem; }
.footer-bottom a:hover, .footer-bottom .footer-cookie-link:hover { color: #fff; }
.footer-payments { display: flex; align-items: center; gap: .7rem; font-size: 1.7rem; color: #6f8d8b; }

/* ==========================================================================
   FAQ (/faq)
   ========================================================================== */
.faq-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: .25rem; }
.faq-nav-link {
    display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-radius: 12px;
    color: var(--muted); font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s;
}
.faq-nav-link i { color: #8fa9a6; }
.faq-nav-link:hover, .faq-nav-link:focus-visible { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.faq-nav-link:hover i { color: var(--ochre); }
.faq-nav-link.is-dim { opacity: .4; }
.faq-count { font-size: .75rem; font-weight: 700; color: var(--ink-2); background: #e9f0ef; border-radius: 999px; padding: .1rem .5rem; }
.faq-group { scroll-margin-top: 100px; margin-bottom: 3rem; }
.faq-group-title { display: flex; align-items: center; gap: .75rem; font-size: 1.35rem; margin-bottom: 1.25rem; }
.faq-group-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--ochre); font-size: 1rem; flex-shrink: 0;
}
.faq-item .accordion-body.markdown { font-size: 1rem; line-height: 1.7; }
.faq-item .accordion-body.markdown p:last-child, .faq-item .accordion-body.markdown ul:last-child { margin-bottom: 0; }
.faq-help {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 1.75rem 2rem; border-radius: var(--r-xl); background: var(--surface); border: 1px solid rgba(15, 46, 51, .09); box-shadow: var(--shadow-1);
}
@media (max-width: 991.98px) {
    .faq-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
    .faq-nav-link { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
    .faq-count { display: none; }
}

/* Produits vendus gardés dans la vitrine */
.product-card.is-sold .product-thumb, .product-card.is-sold .product-thumb-placeholder { filter: grayscale(.85); opacity: .75; }
.product-card.is-sold h3 a { color: var(--muted) !important; }
.sold-badge {
    position: absolute; top: .9rem; left: .9rem; z-index: 2;
    background: var(--ink); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .02em;
    padding: .32rem .75rem; border-radius: 999px; line-height: 1.2; box-shadow: 0 6px 14px -6px rgba(15, 46, 51, .8);
}

/* ==========================================================================
   Galerie de la fiche produit + visionneuse plein écran
   ========================================================================== */
.product-gallery { display: grid; gap: .75rem; }
.gallery-stage {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: var(--r-xl); overflow: hidden; background: #e9eeed; box-shadow: var(--shadow-2);
    aspect-ratio: 16 / 10;
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: no-preference) { .gallery-stage:hover img { transform: scale(1.02); } }
.gallery-zoom, .gallery-counter {
    position: absolute; display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(15, 46, 51, .78); color: #fff; border-radius: 999px; font-size: .82rem; font-weight: 600;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gallery-zoom { top: .9rem; right: .9rem; width: 2.3rem; height: 2.3rem; justify-content: center; opacity: 0; transition: opacity .2s; }
.gallery-stage:hover .gallery-zoom, .gallery-stage:focus-visible .gallery-zoom { opacity: 1; }
.gallery-counter { bottom: .9rem; right: .9rem; padding: .3rem .7rem; }
.gallery-strip { display: flex; gap: .6rem; overflow-x: auto; padding: .15rem .1rem .4rem; scroll-snap-type: x proximity; }
.gallery-strip-item {
    flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 12px;
    overflow: hidden; background: #e9eeed; cursor: pointer; scroll-snap-align: start; opacity: .7; transition: opacity .15s, border-color .15s;
}
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-strip-item:hover, .gallery-strip-item:focus-visible { opacity: 1; }
.gallery-strip-item.is-active { opacity: 1; border-color: var(--ochre); }

.lightbox { background: #0a1c1f; color: #dbe6e5; border: 0; border-radius: 0 !important; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; }
.lightbox-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem 1.5rem; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.1rem;
}
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: rgba(255, 255, 255, .18); }
.lightbox-nav.is-prev { left: 1rem; }
.lightbox-nav.is-next { right: 1rem; }
@media (max-width: 575.98px) {
    .lightbox-stage { padding: 0 .5rem 1rem; }
    .lightbox-nav { top: auto; bottom: 1rem; transform: none; width: 2.6rem; height: 2.6rem; background: rgba(0, 0, 0, .45); }
    .gallery-strip-item { width: 84px; }
}

/* Carte produit : nombre d'images */
.gallery-badge {
    position: absolute; top: .9rem; right: .9rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(15, 46, 51, .72); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ==========================================================================
   Module « Publicités » : emplacements (partials/ad)
   ========================================================================== */
.ad-slot { margin: 1.5rem auto; max-width: 100%; text-align: center; }
.ad-slot[hidden] { display: none !important; } /* en attente du consentement, même avec d-md-block */
.ad-slot-top { margin: .75rem auto 0; }
.ad-slot-footer { margin: 2.5rem auto 2rem; }
.ad-slot-product_side { margin: 1.25rem 0 0; }
.ad-label { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #8a9a9c; margin-bottom: .35rem; }
.ad-sponsor { display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; text-decoration: none; }
.ad-sponsor img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ad-sponsor:focus-visible { outline: 3px solid var(--ochre, #e9a93b); outline-offset: 3px; }
.ad-text { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; padding: .9rem 1.2rem;
           border: 1px dashed rgba(15, 46, 51, .25); border-radius: 12px; color: var(--ink, #0f2e33); background: #fff; }
.ad-sponsor:hover .ad-text { border-color: var(--ink, #0f2e33); }
.ad-code { overflow: hidden; max-width: 100%; }
