/* =========================
   VARIABLES
========================= */

:root {
    --brown-dark: #5c1614;
    --brown-medium: #7a1f1c;
    --brown-deep: #501b18;
    --cream: #f7f2ea;
    --cream-soft: #fbf8f3;
    --gold: #c6a75e;
    --gold-soft: #e3d3a8;
    --text-dark: #241c1a;
    --text-muted: #6b5e58;
    --text-light: #ffffff;
    --border-light: #e7ddcf;

    --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --font-head: "Quicksand", "DM Sans", sans-serif;
    --font-brand: "Enoway", "Quicksand", serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 14px rgba(58, 15, 13, 0.06);
    --shadow-md: 0 14px 34px rgba(58, 15, 13, 0.10);
    --shadow-lg: 0 26px 60px rgba(58, 15, 13, 0.14);

    --container: 1200px;
}

/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    /* Footer toujours au moins en bas de l'écran (sticky footer) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* La zone principale occupe l'espace disponible et pousse le footer en bas */
main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Accessibilité / ergonomie : focus clavier visible et soigné */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--brown-deep);
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Accessibilité : masque visuellement tout en restant lu par les lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Titre de section réutilisable */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.section-title p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
}

.section-title::after,
.products h2::after,
.story-text h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

/* =========================
   LAYOUT
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
    line-height: 1;
}

.btn-primary {
    background: var(--brown-dark);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(92, 22, 20, 0.22);
}

.btn-primary:hover {
    background: var(--brown-medium);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(92, 22, 20, 0.30);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--brown-dark);
    color: var(--brown-dark);
}

.btn-secondary:hover {
    background: var(--brown-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* =========================
   HEADER
========================= */

.site-header {
    background: linear-gradient(180deg, #8a3a2d 0%, #6d2a21 100%);
    color: var(--text-light);
    height: 96px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 18px rgba(58, 15, 13, 0.25);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.logo img {
    height: 76px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.04);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active::after {
    width: 100%;
}

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

#search-input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 160px;
    transition: width 0.3s ease, background 0.3s ease;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

#search-input:focus {
    width: 210px;
    background: rgba(255, 255, 255, 0.18);
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease;
}

.icon-link:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    height: 20px;
    min-width: 20px;
    line-height: 20px;
    padding: 0 5px;
    background: var(--gold);
    color: var(--brown-deep);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    background: linear-gradient(155deg, var(--cream-soft) 0%, #f4e9d8 100%);
    color: var(--text-dark);
    padding: 90px 0;
    overflow: hidden;
}

/* Halo doré décoratif, très léger */
.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(198, 167, 94, 0.22) 0%, rgba(198, 167, 94, 0) 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-content {
    flex: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brown-medium);
    margin-bottom: 1.1rem;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown-deep);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 1.2rem;
}

.hero-content h1 span {
    color: var(--brown-dark);
    position: relative;
    white-space: nowrap;
}

.hero-content h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.08em;
    width: 100%;
    height: 0.22em;
    background: var(--gold-soft);
    opacity: 0.6;
    z-index: -1;
    border-radius: 3px;
}

.hero-content p {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    font-family: var(--font-body);
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 22px;
    left: -18px;
    background: #fff;
    color: var(--brown-dark);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.hero-badge::before {
    content: "✦";
    color: var(--gold);
    margin-right: 8px;
}

@media (max-width: 860px) {
    .hero {
        padding: 60px 0;
    }
    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================
   REASSURANCE
========================= */

.reassurance {
    background: #ffffff;
    color: var(--brown-dark);
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-head);
    font-weight: 500;
}

.reassurance .flex {
    flex-wrap: wrap;
    gap: 14px;
}

.reassurance .flex > div {
    flex: 1;
    min-width: 160px;
    text-align: center;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    position: relative;
    color: var(--text-dark);
}

.reassurance .flex > div + div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1px;
    background: var(--border-light);
}

.reassurance .flex > div::after {
    content: "✦";
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    margin-top: 2px;
}

/* =========================
   PRODUCTS
========================= */

.products {
    padding: 90px 0;
}

.products h2 {
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.products .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--cream-soft);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 16px;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--brown-dark);
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* =========================
   SÉLECTEUR DE QUANTITÉ + AJOUT PANIER
========================= */

.cart-add {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 34px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--brown-dark);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover { background: var(--cream); }

.qty-input {
    width: 40px;
    height: 38px;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    -moz-appearance: textfield;
}

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

.cart-add .add-to-cart { flex: 1; }
.add-to-cart.is-loading { opacity: 0.65; pointer-events: none; }

.product-card .cart-add { margin-top: auto; }

/* Footers de cartes en colonne pour accueillir le sélecteur */
.shop-card-footer,
.coffret-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

/* =========================
   TOASTS (notifications)
========================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brown-dark);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    font-size: 0.92rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-left-color: #2e7d32; }
.toast-error   { border-left-color: #c62828; }
.toast-info    { border-left-color: var(--gold); }

.toast-icon { font-weight: 700; }
.toast-success .toast-icon { color: #2e7d32; }
.toast-error .toast-icon { color: #c62828; }

.toast-msg { flex: 1; }

.toast-action {
    font-weight: 600;
    color: var(--brown-dark);
    white-space: nowrap;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* =========================
   STORY
========================= */

.story {
    padding: 90px 0;
    background: var(--cream-soft);
}

.story-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row;
}

.story-text {
    flex: 1;
    text-align: left;
}

.story-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.2rem;
}

.story-text h2::after {
    margin: 1rem 0 0 !important;
}

.story-text p {
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
    .story-flex {
        flex-direction: column;
        text-align: center;
    }
    .story-text {
        text-align: center;
    }
    .story-text h2::after {
        margin: 1rem auto 0 !important;
    }
}

/* =========================
   NEWSLETTER
========================= */

.newsletter {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-deep) 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.newsletter h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
}

.newsletter form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 13px 18px;
    width: 280px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-body);
    outline: none;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter .btn-primary {
    background: var(--gold);
    color: var(--brown-deep);
    box-shadow: none;
}

.newsletter .btn-primary:hover {
    background: #d8bd76;
}

.newsletter-message {
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 500;
}

.newsletter-message.is-success {
    color: #b9e6c1;
}

.newsletter-message.is-error {
    color: #f3b6ad;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: linear-gradient(180deg, #6d2a21 0%, #4d1812 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 44px;
    padding-bottom: 50px;
}

.footer-col {
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.footer-col h4 {
    margin-bottom: 18px;
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-body);
    outline: none;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.social-links a {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
    color: var(--gold);
}

.site-footer > .container > a {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
}

.site-footer > .container > a:hover {
    color: var(--gold);
}

.footer-bottom {
    background: #3c130e;
    padding: 18px 0;
    font-size: 0.82rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.6);
}

/* =========================
   SEARCH DROPDOWN
========================= */

.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 35px;
    left: 0;
    background: #fff;
    width: 250px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 2000;
    max-width: calc(100vw - 40px);
}

/* Pas de boîte (ni bordure) quand il n'y a aucun résultat */
.search-results:empty {
    display: none;
}

.search-item {
    padding: 8px 10px;
}

.search-item:hover {
    background: var(--cream);
}

.search-item.search-empty {
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: default;
}

.search-item.search-empty:hover {
    background: transparent;
}

/* =========================
   SCROLL TOP
========================= */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--brown-dark);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, background 0.25s ease;
    z-index: 5000;
}

.scroll-top:hover {
    background: var(--brown-medium);
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
========================= */

/* =========================
   MENU MOBILE (BURGER)
========================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .header-actions {
        order: 2;
    }

    /* Masque tout le bloc recherche sur mobile (évite le débordement horizontal) */
    .search-wrapper {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 96px;
        left: 0;
        width: 100%;
        background: #6d2a21;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        max-height: 420px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav li {
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav a::after {
        display: none;
    }

    .story-flex {
        flex-direction: column;
    }
}

.cart-wrapper {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 30px);
    background: #581313;
    border: 1px solid #e5d8c7;
    border-radius: 10px;
    padding: 15px;
    display: none;
    z-index: 3000;
    box-shadow: 0 14px 34px rgba(58, 15, 13, 0.28);
}

.cart-wrapper:hover .mini-cart {
    display: block;
}

/* Sur mobile/tablette : pas de popup, on va directement à la page panier */
@media (max-width: 900px) {
    .mini-cart { display: none !important; }
}

.mini-cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mini-cart-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.mini-cart-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.mini-cart-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.mini-cart-item {
    align-items: center;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-name {
    font-weight: 600;
}

.mini-cart-qty {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.mini-remove-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.mini-remove-btn:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.mini-cart-empty {
    padding: 50px 30px;
    text-align: center;
    font-size: 15px;
    color: #666;
    background: linear-gradient(180deg, #faf7f2, #f3ede6);
    border-radius: 16px;
    animation: fadeInMiniCart 0.3s ease;
}

.mini-cart-empty::before {
    content: "🛒";
    display: block;
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0.5;
}

@keyframes fadeInMiniCart {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   LEGAL PAGE (CGV, Mentions, RGPD)
========================= */

/* =========================
   LEGAL PAGE – PREMIUM VERSION
========================= */

.legal-page {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f5efe6 0%, #efe6da 100%);
    font-family: DMSansRegular;
}

.legal-page > * {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* Carte centrale */
.legal-page {
    position: relative;
}

.legal-page::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 95%;
    height: calc(100% - 120px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    z-index: 0;
}

.legal-page > * {
    position: relative;
    z-index: 1;
}

/* TITRE PRINCIPAL */

.legal-page h1 {
    font-size: 38px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--brown-dark);
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

.legal-page h1::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--gold);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* NUMÉROTATION AUTOMATIQUE */

.legal-page {
    counter-reset: section;
}

.legal-page h2 {
    counter-increment: section;
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--brown-medium);
    position: relative;
    padding-left: 35px;
}

.legal-page h2::before {
    content: counter(section) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: bold;
}

/* PARAGRAPHES */

.legal-page p {
    font-size: 1.2em;
    line-height: 1.4em;
    color: #444;
    /*margin-bottom: 18px;*/
    text-align: justify;
}

/* LISTES */

.legal-page ul {
    margin: 15px 0 15px 30px;
}

/* LIENS */

.legal-page a {
    color: var(--brown-medium);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--gold);
}

/* BLOC INFORMATIONS IMPORTANTES */

.legal-page .highlight {
    background: #faf7f2;
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 14px;
}

/* DATE MISE À JOUR */

.legal-page .update-date {
    margin-top: 60px;
    font-size: 13px;
    color: #777;
    text-align: right;
    font-style: italic;
}

/* Listes RGPD plus élégantes */
.legal-page ul {
    margin: 20px 0 25px 35px;
    padding-left: 10px;
    margin-left: auto;
    margin-right: auto;
}

.legal-page li {
    position: relative;
}

/* Remplace les puces standard */
.legal-page ul li::marker {
    color: var(--gold);
}

/* Sections importantes RGPD */
.legal-page h2 {
    border-bottom: 1px solid rgba(198,167,94,0.3);
    padding-bottom: 8px;
}

/* Encadré droit utilisateurs */
.legal-page .rights-box {
    background: linear-gradient(135deg, #faf7f2 0%, #f2e8da 100%);
    border: 1px solid rgba(198,167,94,0.3);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.legal-page .rights-box h3 {
    margin-bottom: 15px;
    color: var(--brown-dark);
}

.legal-page .rights-box ul {
    margin-left: 20px;
}

/* Bloc contact RGPD */
.legal-page .contact-box {
    background: #ffffff;
    border-left: 4px solid var(--gold);
    padding: 18px 22px;
    margin: 30px 0;
    font-size: 15px;
}

/* Mise en valeur CNIL */
.legal-page strong {
    color: var(--brown-dark);
    font-weight: 600;
}

/* =========================
   FILIGRANE CACAO PREMIUM
========================= */

.legal-page::after {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 95%;
    height: calc(100% - 240px);

    background-image: url('/assets/images/cacao-watermark.png');
    background-repeat: no-repeat;
    background-position: center 200px;
    background-size: 600px;

    opacity: 0.10; /* très subtil */
    filter: blur(1px);

    pointer-events: none;
    z-index: 0;
}

/* =========================
   COOKIE BANNER CNIL
========================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2b1a12;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.6;
}

.cookie-text a {
    color: #c6a75e;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-link {
    background: transparent;
    border: none;
    color: #c6a75e;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Panneau de préférences cookies */
.cookie-prefs {
    position: fixed;
    inset: 0;
    background: rgba(40, 12, 10, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-prefs.open {
    display: flex;
}

.cookie-prefs-box {
    background: #fff;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.cookie-prefs-box h3 {
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
}

.cookie-pref-item p {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cookie-pref-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cookie-prefs-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
}



/* RESPONSIVE */

@media (max-width: 900px) {

    .legal-page {
        padding: 70px 20px;
    }

    .legal-page::before {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    .legal-page h2 {
        font-size: 18px;
    }

    .legal-page::after {
        display: none;
    }

    .legal-page {
        font-size: 15px;
        line-height: 1.8;
    }

    .legal-page ul {
        margin-left: 20px;
    }
}

/* =========================
   FAQ PAGE
========================= */

.faq-page {
    padding: 100px 0;
    max-width: 900px;
}

.faq-page h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--brown-dark);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: var(--brown-medium);
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 20px;
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   LIVRAISON & RETOURS
========================= */

.delivery-page h2 {
    margin-top: 45px;
}

.delivery-page .highlight {
    background: linear-gradient(135deg, #faf7f2 0%, #f2e8da 100%);
    border-left: 4px solid var(--gold);
    padding: 18px 22px;
    margin: auto;
    font-size: 14px;
}

.delivery-page .contact-box {
    background: #ffffff;
    border-left: 4px solid var(--brown-medium);
    padding: 18px 22px;
    margin: auto;
}

/* =========================
   CARTE CADEAU
========================= */

.giftcard-page {
    padding: 100px 0;
}

.giftcard-page h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--brown-dark);
}

.giftcard-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.giftcard-visual img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.giftcard-form {
    flex: 1;
}

.giftcard-form h2 {
    margin-bottom: 25px;
}

.giftcard-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.giftcard-form input,
.giftcard-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.giftcard-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.giftcard-amounts button {
    padding: 8px 15px;
    border: 1px solid var(--brown-medium);
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.giftcard-amounts button.active,
.giftcard-amounts button:hover {
    background: var(--brown-dark);
    color: #fff;
}

.giftcard-info {
    margin-top: 30px;
    font-size: 14px;
    color: #555;
}

.giftcard-checkout {
    margin-top: 30px;
}

.giftcard-input-group {
    display: flex;
    gap: 10px;
}

#giftcard-message {
    margin-top: 10px;
    font-size: 14px;
}


@media (max-width: 900px) {
    .giftcard-wrapper {
        flex-direction: column;
    }
}

/* =========================
   CHECKOUT
========================= */

.checkout-page {
    padding: 100px 0;
}

.checkout-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.checkout-form {
    flex: 2;
}

.checkout-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.checkout-summary {
    flex: 1;
    background: #faf7f2;
    padding: 25px;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.checkout-submit {
    width: 100%;
    margin-top: 20px;
}

/* Checkout — sections, champs, cartes d'option */
.checkout-section { margin-bottom: 30px; }
.checkout-section h2 { font-size: 1.15rem; margin-bottom: 14px; }

.checkout-form .field { margin-bottom: 14px; }
.checkout-form .field label {
    display: block;
    font-weight: 600;
    font-size: 0.86rem;
    margin-bottom: 6px;
}
.checkout-form .field input { margin-bottom: 0; }

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.option-card:hover { border-color: var(--gold-soft); }
.option-card.selected {
    border-color: var(--brown-dark);
    box-shadow: 0 6px 16px rgba(92, 22, 20, 0.10);
}
.option-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-icon { font-size: 1.7rem; line-height: 1; }
.option-body { display: flex; flex-direction: column; }
.option-title { font-weight: 600; }
.option-desc { font-size: 0.8rem; color: var(--text-muted); }

.secure-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.pickup-info p { line-height: 1.7; color: var(--text-dark); }
#summary-delivery { color: var(--text-muted); }

@media (max-width: 560px) {
    .field-grid,
    .option-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .checkout-wrapper {
        flex-direction: column;
    }
}

/* =========================
   PANIER
========================= */

.cart-page {
    padding: 100px 0;
}

.cart-page h1 {
    text-align: center;
    margin-bottom: 50px;
}

.cart-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image img {
    width: 120px;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 10px;
}

.cart-item-price,
.cart-item-total {
    font-weight: bold;
}

.cart-item-qty input {
    width: 70px;
    padding: 5px;
}

.cart-item-remove a {
    color: #b33;
    font-size: 14px;
}

.cart-actions {
    margin-top: 20px;
}

.cart-summary {
    margin-top: 40px;
    text-align: right;
}

.cart-total {
    font-size: 20px;
    margin-bottom: 15px;
}

.btn-checkout {
    padding: 12px 25px;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-notice {
    background: #fff4e5;
    color: #b35309;
    border: 1px solid #f3d9b8;
    padding: 13px 18px;
    border-radius: 10px;
    margin-bottom: 26px;
    font-size: 0.95rem;
}

.cart-stock-hint {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================
   PAGE COFFRETS
========================= */

.coffrets-page {
    padding: 100px 0;
}

.coffrets-page h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--brown-dark);
}

.coffrets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.coffret-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.coffret-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.coffret-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coffret-content h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.coffret-content p {
    flex: 1;
    font-size: 14px;
    margin-bottom: 20px;
}

.coffret-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coffret-price {
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 1000px) {
    .coffrets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .coffrets-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BOUTIQUE
========================= */

.shop-page {
    padding: 80px 0 100px;
}

/* En-tête de page */

.shop-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.shop-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.shop-page h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--brown-dark);
    margin-bottom: 1rem;
}

.shop-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.shop-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Filtres */

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.shop-filter {
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.shop-filter:hover {
    border-color: var(--brown-medium);
    color: var(--brown-medium);
    transform: translateY(-1px);
}

.shop-filter.active {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    color: #fff;
    box-shadow: 0 6px 16px rgba(92, 22, 20, 0.22);
}

/* Grille produits */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.shop-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.shop-card-image {
    position: relative;
    overflow: hidden;
    background: var(--cream-soft);
}

.shop-card-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.06);
}

.shop-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--brown-deep);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(58, 15, 13, 0.18);
}

.shop-card-body {
    padding: 20px 20px 8px;
    flex: 1;
}

.shop-card-body h2 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.shop-card-body p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.shop-card-footer {
    padding: 12px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.shop-price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brown-dark);
}

.shop-card-footer .add-to-cart {
    padding: 10px 18px;
    font-size: 0.82rem;
}

@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .shop-card-footer {
        justify-content: space-between;
    }
}

/* =========================
   SAVOIR-FAIRE
========================= */

.savoir-hero {
    padding: 140px 0 100px;
    text-align: center;
    background: #faf7f2;
}

.savoir-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.savoir-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

.savoir-section {
    padding: 100px 0;
}

.savoir-section.alt {
    background: #f5efe8;
}

.savoir-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.savoir-grid.reverse {
    direction: rtl;
}

.savoir-grid.reverse .savoir-text,
.savoir-grid.reverse .savoir-image {
    direction: ltr;
}

.savoir-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.savoir-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.savoir-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Valeurs */

.savoir-values {
    padding: 100px 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.value-card h3 {
    margin-bottom: 15px;
}

@media (max-width: 900px) {

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

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

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

/* =========================
   NOS BOUTIQUES
========================= */

.stores-hero {
    padding: 140px 0 100px;
    text-align: center;
    background: #faf7f2;
}

.stores-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.stores-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

.stores-list {
    padding: 80px 0;
}

.store-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.store-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.store-info h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.store-address {
    margin-bottom: 15px;
    font-weight: 500;
}

.store-hours {
    margin: 20px 0;
}

.store-hours ul {
    list-style: none;
    padding: 0;
}

.store-hours li {
    margin-bottom: 5px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .store-card {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CONTACT
========================= */

.contact-hero {
    padding: 140px 0 100px;
    text-align: center;
    background: #faf7f2;
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.contact-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.contact-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 14px;
}

.contact-success {
    background: #e6f4ea;
    color: #2e7d32;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-error {
    background: #fdecea;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ---- Contact : refonte (cartes + formulaire) ---- */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-form-wrap h2,
.contact-info h2 {
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
}

.contact-form .field { margin-bottom: 16px; }
.contact-form .field label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 0.88rem;
}
.contact-form .field input,
.contact-form .field textarea { margin-bottom: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-submit { width: 100%; margin-top: 8px; }
.contact-submit.is-loading { opacity: 0.65; pointer-events: none; }

.contact-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.contact-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--brown-dark);
}
.contact-label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brown-medium);
    margin-bottom: 4px;
}
.contact-card p { margin: 0; line-height: 1.5; color: var(--text-dark); }
.contact-card a { color: var(--brown-dark); }
.contact-card a:hover { color: var(--gold); }
.contact-link { display: inline-block; margin-top: 6px; font-size: 0.85rem; font-weight: 600; }

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
    padding: 5px 0;
    font-size: 0.92rem;
    color: var(--text-dark);
    border-bottom: 1px dashed var(--border-light);
}
.hours-list li:last-child { border-bottom: none; }

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   BLOG
========================= */

.blog-hero {
    padding: 140px 0 100px;
    text-align: center;
    background: #faf7f2;
}

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.blog-hero p {
    font-size: 18px;
    color: #555;
}

.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-body {
    padding: 20px;
    flex: 1;
}

.blog-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.blog-category {
    background: var(--gold);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #000;
}

.blog-body h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-body p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.blog-readmore {
    font-weight: 600;
    text-decoration: none;
    color: var(--brown-dark);
}

.blog-readmore:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ARTICLE BLOG
========================= */

.article-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: #faf7f2;
}

.article-hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
    color: var(--brown-dark);
}

.article-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-category {
    background: var(--gold);
    padding: 3px 10px;
    border-radius: 999px;
    color: #000;
    font-size: 12px;
}

.article-content {
    padding: 60px 0 100px;
    max-width: 800px;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
}

.article-intro {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
}

.article-content p,
.article-content li {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.article-cta {
    margin-top: 50px;
    padding: 30px;
    background: #f5efe8;
    border-radius: 12px;
    text-align: center;
}

/* =========================
   COMPTE
========================= */

.account-page {
    padding: 120px 0;
}

.account-page h1 {
    text-align: center;
    margin-bottom: 60px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.account-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.account-box label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.account-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.account-box button {
    margin-top: 25px;
    width: 100%;
}

.account-dashboard {
    background: #faf7f2;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.account-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.account-error {
    background: #fdecea;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   COMMANDES
========================= */

.orders-page {
    padding: 120px 0;
}

.orders-page h1 {
    text-align: center;
    margin-bottom: 60px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.order-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-header strong {
    font-size: 16px;
}

.order-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.order-status.livrée {
    background: #e6f4ea;
    color: #2e7d32;
}

.order-status.en-préparation,
.order-status.en-preparation {
    background: #fff4e5;
    color: #ef6c00;
}

.order-items {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.orders-empty {
    text-align: center;
    padding: 60px 0;
}

/* =========================
   SPLASH SCREEN
========================= */

#splash-screen {
    position: fixed;
    inset: 0;
    background-color: #2a1710;
    animation: splashBake 3s ease-in-out forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Halos dorés décoratifs */
#splash-screen::before,
#splash-screen::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
#splash-screen::before {
    width: 520px; height: 520px;
    top: -170px; right: -160px;
    background: radial-gradient(circle, rgba(198, 167, 94, 0.20), transparent 70%);
}
#splash-screen::after {
    width: 500px; height: 500px;
    bottom: -190px; left: -160px;
    background: radial-gradient(circle, rgba(124, 42, 33, 0.12), transparent 70%);
}

.splash-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

/* Décor de fond : silhouette du massif du Pilat */
.splash-scenery {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
    opacity: 0;
    transform: translateY(26px);
    animation: splashSceneryIn 1.8s ease 1.4s forwards;
    pointer-events: none;
}

.splash-scenery svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes splashSceneryIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Bouton « Passer » de l'intro */
.splash-skip {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(40, 18, 12, 0.30);
    color: #fdf3e2;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 0;
    animation: splashFadeUp 0.6s ease 0.6s forwards;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.splash-skip:hover {
    background: rgba(40, 18, 12, 0.48);
    border-color: rgba(255, 255, 255, 0.6);
}

.splash-logo {
    display: inline-block;
    opacity: 0;
    transform: scale(0.86) translateY(12px);
    animation:
        splashLogoReveal 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s forwards,
        splashGlow 2.8s ease-in-out 2.3s infinite;
}

.splash-logo img {
    display: block;
    width: clamp(240px, 44vw, 400px);
    height: auto;
    margin: 0 auto;
}

.splash-tagline {
    margin-top: 24px;
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: clamp(0.72rem, 1.8vw, 0.95rem);
    color: var(--brown-medium);
    opacity: 0;
    transform: translateY(10px);
    animation: splashFadeUp 1s ease 1.7s forwards;
}

.splash-loader {
    width: 170px;
    height: 2px;
    margin: 28px auto 0;
    background: rgba(124, 42, 33, 0.12);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: splashFadeUp 0.6s ease 2.1s forwards;
}

.splash-loader span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #e6d199);
    animation: splashLoad 0.9s ease 2.3s forwards;
}

/* Tablette de chocolat + Saint-Honoré */
.splash-treats {
    display: flex;
    gap: 46px;
    justify-content: center;
    align-items: flex-end;
    margin-top: 30px;
}

.splash-treat { display: block; height: auto; }

.treat-tablette {
    width: 84px;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    animation: treatIn 0.9s ease 1.9s forwards,
               treatFloat 3.4s ease-in-out 2.9s infinite;
}

.treat-sthonore {
    width: 80px;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    animation: treatIn 0.9s ease 1.9s forwards,
               treatFloatB 3.8s ease-in-out 2.9s infinite;
}

/* Révélation du logo : fondu + zoom + léger relèvement */
@keyframes splashLogoReveal {
    0%   { opacity: 0; transform: scale(0.86) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Halo doré qui respire autour du logo (suit la forme grâce au drop-shadow) */
@keyframes splashGlow {
    0%, 100% { filter: drop-shadow(0 8px 20px rgba(92, 22, 20, 0.15)); }
    50%      { filter: drop-shadow(0 8px 20px rgba(92, 22, 20, 0.18))
                       drop-shadow(0 0 16px rgba(198, 167, 94, 0.55)); }
}

@keyframes splashFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes splashLoad {
    0%   { width: 0; }
    100% { width: 100%; }
}

/* Fondu chocolat (tablette) → doré pâtissier (Saint-Honoré) */
@keyframes splashBake {
    0%   { background-color: #2a1710; }
    40%  { background-color: #5a3520; }
    72%  { background-color: #b27c46; }
    100% { background-color: #e8c898; }
}

/* Entrée des gourmandises + flottement subtil */
@keyframes treatIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes treatFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes treatFloatB {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* Respect des préférences d'accessibilité : pas d'animation si réduit */
@media (prefers-reduced-motion: reduce) {
    #splash-screen { animation: none; background-color: #e8c898; }
    .splash-logo,
    .splash-tagline,
    .splash-loader,
    .splash-treat,
    .splash-scenery,
    .splash-skip { animation: none; opacity: 1; transform: none; }
    .splash-loader span { width: 100%; animation: none; }
}

/* =========================
   FICHE PRODUIT
========================= */

.product-page {
    padding: 50px 0 90px;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

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

.breadcrumb strong {
    color: var(--text-dark);
    font-weight: 600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: relative;
    background: var(--cream-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-gallery img {
    width: 100%;
    height: 100%;
    max-height: 540px;
    object-fit: cover;
}

.product-info h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
}

.product-price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--brown-dark);
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

#product-qty {
    width: 78px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
}

.product-stock {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.product-stock.in {
    color: #2e7d32;
}

.product-stock.in::before {
    content: "● ";
}

.product-stock.out {
    color: #c62828;
}

.product-back {
    display: inline-block;
    color: var(--brown-dark);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}

.product-back:hover {
    border-color: var(--brown-dark);
}

.product-missing {
    text-align: center;
    padding: 80px 0;
}

.product-missing h1 {
    margin-bottom: 1rem;
}

.product-missing p {
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =========================================================
   ADAPTATIONS MOBILE / TABLETTE
========================================================= */

/* ---- Tablette ---- */
@media (max-width: 1024px) {
    .products,
    .story,
    .savoir-section,
    .savoir-values,
    .blog-content,
    .stores-list,
    .contact-content { padding-top: 70px; padding-bottom: 70px; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

    .container { width: 92%; }

    /* Espacements verticaux réduits pour limiter le scroll */
    .products,
    .story,
    .newsletter,
    .shop-page,
    .coffrets-page,
    .giftcard-page,
    .checkout-page,
    .cart-page,
    .account-page,
    .orders-page,
    .product-page,
    .savoir-section,
    .savoir-values,
    .blog-content,
    .stores-list,
    .contact-content { padding-top: 50px; padding-bottom: 50px; }

    .savoir-hero,
    .stores-hero,
    .contact-hero,
    .blog-hero,
    .article-hero { padding: 80px 0 45px; }

    .legal-page,
    .faq-page { padding: 60px 0; }

    /* Header allégé */
    .site-header { height: 78px; }
    .logo img { height: 56px; }
    .header-inner { gap: 12px; }
    .header-actions { gap: 14px; }
    .main-nav { top: 78px; }

    /* Newsletter : champ + bouton en colonne */
    .newsletter form { flex-direction: column; align-items: center; }
    .newsletter input { width: 100%; max-width: 320px; }
}

/* ---- Panier sur mobile ---- */
@media (max-width: 600px) {
    .cart-item { gap: 16px; }
    .cart-item-image img { width: 84px; }
    .cart-item-info h3 { font-size: 1.05rem; }

    /* Footer : la mention de bas de page passe en colonne lisible */
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ---- Très petits écrans : bouton « Ajouter » sous le sélecteur ---- */
@media (max-width: 380px) {
    .cart-add { flex-wrap: wrap; }
    .cart-add .qty-stepper { flex: 1; justify-content: center; }
    .cart-add .add-to-cart { flex: 1 1 100%; }
}

/* =========================
   AVIS CLIENTS (notes + commentaires)
========================= */

.btn.is-loading { opacity: 0.65; pointer-events: none; }

.stars { color: var(--gold); letter-spacing: 2px; }

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
}
.product-rating .stars { font-size: 1.05rem; }
.product-rating-text { font-size: 0.9rem; }

/* Note sur les vignettes produits */
.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.card-rating .stars { font-size: 0.95rem; }
.card-rating--empty .stars { color: #d8cdbb; }
.card-rating--empty { font-size: 0.8rem; }

.reviews-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}
.reviews-section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 4px; }
.reviews-avg {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    margin-left: 10px;
    white-space: nowrap;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 26px;
}
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.reviews-empty { color: var(--text-muted); }

.review-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}
.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-head .stars { font-size: 1rem; }
.review-card p { color: var(--text-dark); line-height: 1.6; margin: 0 0 8px; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }

.review-form-wrap {
    background: var(--cream-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}
.review-form-wrap h3 { margin-bottom: 14px; font-size: 1.15rem; }
.review-form-wrap label { display: block; font-weight: 600; font-size: 0.88rem; margin: 12px 0 6px; }
.review-form-wrap input[type="text"],
.review-form-wrap input[type="email"],
.review-form-wrap textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.review-form-wrap button { margin-top: 16px; }

/* Sélecteur d'étoiles (pur CSS) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
    font-size: 1.9rem;
    color: #dccfbb;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s ease;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

@media (max-width: 800px) {
    .reviews-layout { grid-template-columns: 1fr; }
}

/* ---- Note globale boutique (page /avis) ---- */
.store-rating-big {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.store-rating-big .stars { font-size: 1.5rem; }
.store-rating-num { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--text-dark); }
.store-rating-num small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.store-rating-count { font-size: 0.95rem; color: var(--text-muted); }

/* ---- Encart avis en page d'accueil ---- */
.home-reviews {
    padding: 56px 0;
    background: var(--cream-soft);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.home-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.home-reviews-head h2 { margin: 0 0 6px; }
.home-reviews-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.home-reviews-score .stars { font-size: 1.25rem; }
.home-reviews-score strong { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-dark); }
.home-reviews-count { color: var(--text-muted); font-size: 0.95rem; }
.home-reviews-empty { color: var(--text-muted); margin: 0; }
.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.home-reviews-cta { margin-top: 26px; text-align: center; }

@media (max-width: 700px) {
    .home-reviews-grid { grid-template-columns: 1fr; }
    .home-reviews-head { align-items: flex-start; }
}