/*=============== GOOGLE FONTS ===============*/
@font-face {
    font-family: "Denira Signature";
    src: local("Denira Signature"), local("DeniraSignature"),
        url("../fonts/denira-signature-z5A82xa.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Police secondaire installée localement ; sinon fallback */
@font-face {
    font-family: "Trajan Pro 3 Semibo", 'Times New Roman', Times, serif;
    src: local("Trajan Pro 3 Semibo"),
        url("../fonts/trajan-pro-3-2-6aEAYwd.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gotham";
    src: local("Gotham"),
        url("../fonts/gotham-medium-ZNFZ2nU.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/*=============== VARIABLES CSS ===============*/
:root {
    /*========== Colors ==========*/
    /* Fonds */
    --color-light: hsla(0, 0%, 100%, 1);
    /* fond clair principal */
    --color-light-secondary: hsla(21.82, 29.73%, 92.75%, 1);
    /* fond clair secondaire */

    /* Texte */
    --color-primary: hsla(24.71, 82.93%, 16.08%, 1);
    /* titres */
    --color-accent: hsla(26.34, 55.16%, 43.73%, 1);
    /* accentuation texte */
    --color-secondary: hsla(20.8, 40.11%, 36.67%, 1);

}

/* GLOBAL STYLES */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Gotham";
    line-height: 1.6;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}



.section {
    margin: 0 0;
    padding: 1.5rem 0;
}

.section-secondary {
    background-color: var(--color-light-secondary);
}

.section-primary {
    background-color: var(--color-light);
}

.section-title {
    font-size: 2rem;
    font-family: "Trajan Pro 3 Semibo", "Times New Roman", serif;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

h1 {
    font-family: "Denira Signature", "Times New Roman", serif;
    margin-bottom: 1rem;
    color: var(--color-light);
}

p {
    font-family: "Gotham";
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    font-family: "gotham";
    font-size: 1rem;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: var(--color-secondary);
    color: var(--color-light);
    border: 1px solid var(--color-secondary);
}

.btn:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
    border: 1px solid var(--color-accent);
}

/* ------------------------- Navbar ------------------------- */
.navbar {
    background: var(--color-light);
    padding: 0 0
}

.navbar-brand {
    font-family: "Denira Signature", serif;
    font-size: 2.1rem;
    color: var(--color-primary);
    text-align: center;
    padding: 0 0;
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    align-items: center
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-family: "Gotham", serif;
    color: var(--color-primary) !important;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: color .18s ease
}

.nav-link:hover {
    color: var(--color-accent) !important;
}

.nav-link.active {
    color: var(--color-accent) !important;
    font-weight: bold;
}

/* Ensure sticky navbar sits above content and has a solid background when stuck */
.navbar.sticky-top {
    z-index: 1050;
    background: var(--color-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04)
}

/* Responsive: collapse behaviour under 992px (Bootstrap lg) */
@media (max-width: 992px) {

    /* Reduce brand size so it doesn't overflow */
    .navbar .navbar-brand,
    .navbar-brand.brand-font {
        font-size: 1.1rem;
        padding-left: 0;
        padding-right: 0;
    }

    /* Make toggler slightly smaller and vertically centered */
    .navbar .navbar-toggler {
        padding: .25rem .5rem;
        border-radius: 6px;
    }

    /* Remove ugly default focus/border on click, keep an accessible focus-visible ring */
    .navbar .navbar-toggler {
        border: 0;
        background: transparent;
    }

    .navbar .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar .navbar-toggler:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, var(--color-accent) 80%);
    }

    /* When collapsed (mobile), ensure the menu has the light background and full-width */
    .navbar-collapse {
        background: var(--color-light);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0.75rem 1rem;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        z-index: 1040;
    }

    /* Show separators between items for clarity */
    .navbar-collapse .nav-link {
        padding: .6rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: var(--color-light);
    }

    .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none
    }

    /* Keep the brand and toggler visible above the collapsed menu */
    .navbar-brand,
    .navbar-toggler {
        position: relative;
        z-index: 1055
    }
}

    .cart-section {
        background: var(--color-light);
        padding: clamp(2rem, 5vw, 4rem) 0;
    }

    .cart-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    .cart-header {
        color: var(--color-primary);
    }

    .cart-eyebrow {
        letter-spacing: .3em;
        font-size: .75rem;
        margin-bottom: .5rem;
        color: var(--color-secondary);
    }

    .cart-title {
        font-family: "Denira Signature", serif;
        font-size: clamp(2.5rem, 6vw, 4rem);
        margin-bottom: .5rem;
        color: var(--color-primary);
    }

    .cart-subtitle {
        font-size: 1rem;
    }

    .cart-card {
        background: var(--color-light-secondary);
        border: 1px solid #e4ded5;
        padding: clamp(1.5rem, 4vw, 2.5rem);
    }

    .cart-card-empty {
        border-style: dashed;
        background: var(--color-light-secondary);
    }

    .cart-table thead th {
        text-transform: uppercase;
        font-size: .8rem;
        letter-spacing: .08em;
        color: var(--color-secondary);
        border-color: #f0e9e2;
    }

    .cart-table tbody td,
    .cart-table tfoot th {
        border-color: #f0e9e2;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .cart-product-name {
        font-size: 1.05rem;
        color: var(--color-primary);
    }

    .cart-quantity-form {
        display: inline-flex;
        gap: .5rem;
        align-items: center;
        justify-content: center;
    }

    .cart-quantity-input {
        width: 80px;
        text-align: center;
    }

    .cart-update-button {
        border-radius: 999px;
        padding-inline: 1rem;
    }

    .cart-price {
        font-weight: 600;
        color: var(--color-primary);
    }

    .cart-remove-button {
        border: 0;
        background: transparent;
        padding: .25rem;
        color: var(--color-secondary);
        transition: color .18s ease;
    }

    .cart-remove-button:hover,
    .cart-remove-button:focus-visible {
        color: var(--color-accent);
    }

    .cart-remove-button:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
        outline-offset: 2px;
    }

    .cart-remove-icon {
        width: 20px;
        height: 20px;
    }

    .cart-summary-row {
        background: #faf6f2;
    }

    .cart-footer {
        align-items: stretch;
    }

    .cart-summary-card {
        background: var(--color-light-secondary);
        border: 1px solid #e4ded5;
        padding: 1.5rem;
        min-width: min(100%, 320px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
    }

    .cart-summary-values span {
        font-size: .95rem;
        color: var(--color-secondary);
    }

    .cart-summary-values strong {
        font-size: 1.25rem;
        color: var(--color-primary);
    }

    .cart-cta {
        letter-spacing: .08em;
        text-transform: uppercase;
    }

.navbar {
    position: sticky;
    top: 0;
    z-index: 60
}


/*=============== Hero ===============*/

.hero {
    min-height: 45vh;
    padding: 2rem 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--color-light);
    background:
        url("../media/hero-jWwsgXZ.webp") center/cover no-repeat;
    position: relative;
    isolation: isolate;
}

.hero h1 {
    font-family: "Denira Signature";
    font-size: 7rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-light);
}

.hero .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    background-clip: padding-box;
    border: 2px solid var(--color-light);
}

.hero .btn:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 2px solid var(--color-light);
    transform: scale(0.95);
}

.hero .btn.hero-cta {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* Subtle dark overlay to improve text contrast */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

/*=============== Featured (Home) ===============*

    /* Card anchor with background image */
.card-featured {
    border: 0;
    border-radius: 0;
    transition: transform .18s ease;
    color: var(--color-light);
    width: 100%;
    height: 320px;
    background-color: #f3e9e3;
    /* fallback */
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.card-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

/* subtle zoom on hover */
.card-featured:hover {
    transform: scale(1.02);
}

/* overlay gradient to ensure legible text */
.card-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.48) 70%);
    transition: background .18s ease;
    pointer-events: none;
    z-index: 1;
}

/* content container anchored to bottom */
.card-featured-content,
.card-featured .card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--color-light);
    z-index: 2;
}

.card-featured-content h5,
.card-featured .card-content h5 {
    margin: 0 0 .5rem 0;
    font-family: "Gotham";
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card-featured-cta,
.card-featured .card-cta {
    display: inline-block;
    margin-top: .75rem;
    font-size: .9rem;
    color: var(--color-light);
    background-color: color-mix(in srgb, var(--color-secondary) 90%, black 10%);
    border: 1px solid var(--color-secondary);
    padding: .4rem .75rem;
    text-decoration: none;
    line-height: 1.2;
}

.card-featured:hover .card-featured-cta,
.card-featured:focus .card-featured-cta {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}


/*=============== Product Show ===============*/
.product-info-panels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-panel {
    background: #fff;
    border: 1px solid #e4ded5;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.info-panel:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.info-title {
    position: relative;
    padding-bottom: .6rem;
    margin-bottom: 1.7rem;
}

.info-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #5c3d2e, #c7a792);
}

.toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    text-align: start;
}

.toggle:focus {
    outline: 2px solid rgba(0, 0, 0, .1);
    outline-offset: 2px;
    text-align: start;
}

.toggle-content {
    display: none;
    transition: max-height .25s ease;
    text-align: start;
}

.toggle[aria-expanded="true"]+.toggle-content {
    display: block;
    text-align: start;
}

.toggle-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    line-height: 1;
    text-align: start;
}

.toggle-icon svg {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
    text-align: start;
}

.toggle[aria-expanded="true"] .toggle-icon svg {
    transform: rotate(180deg);
    text-align: start;
}

/* ========== Catalogue (tuile cliquable) ========== */
.product-tile {
    display: block;
    text-decoration: none;
    text-align: center;
    color: inherit;
    background: var(--color-light-secondary);
    position: relative;
    /* nécessaire pour stretched-link */
}

.product-category-block .carousel-control-prev,
.product-category-block .carousel-control-next {
    z-index: 5;
    opacity: 1;
    transition: transform .18s ease;
}
.product-category-block .carousel-control-prev {
    left: -5%;
}
.product-category-block .carousel-control-next {
    right: -5%;
}
.product-category-block .carousel-control-prev:hover,
.product-category-block .carousel-control-prev:focus-visible {
    transform: scale(1.5) translateX(-5%);
}

.product-category-block .carousel-control-next:hover,
.product-category-block .carousel-control-next:focus-visible {
    transform: scale(1.5) translateX(5%);
}


.product-tile:hover .product-tile-img img {
    transform: scale(1.05);
    transform-origin: center center;
    will-change: transform;
}

.product-tile-img {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.product-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-tile-content {
    padding: .85rem 1rem 1rem;
}

.product-tile-title {
    margin: 0 0 .25rem;
    text-transform: uppercase;
    color: var(--color-primary);
}

.product-tile-subtitle {
    margin: 0 0 .25rem;
    color: var(--color-accent);
    font-size: .95rem;
}

.product-tile-price {
    margin: .5rem 0 0;
    color: var(--color-primary);
}

/* CTA overlay on image (appears on hover) */
.product-tile-cta {
    position: absolute;
    left: 50%;
    bottom: 12px;
    background: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-light);
    padding: .35rem .75rem;
    line-height: 1.1;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity .2s ease, transform .2s ease;
    /* clickable indépendamment du lien étendu */
    z-index: 1;
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
}

.product-tile:hover .product-tile-cta {
    opacity: 1;
    transform: translate(-50%, 0);
}