/* ============================================
   Les Délices d'Océ — Theme Kawaii Gourmand
   Doux, arrondi, chaleureux, pâtisserie
   ============================================ */

:root {
    --bordeaux: #C44569;
    --bordeaux-dark: #A83854;
    --rose: #F19CBB;
    --rose-light: #FADED9;
    --bg-light-pink: #FFF6F8;
    --peach: #FFCCBC;
    --lavande: #E1BEE7;
    --mint: #C8E6C9;
    --cream: #FFF8E1;
    --text-dark: #4A3728;
    --text-muted: #8D6E63;
    --shadow-soft: 0 4px 20px rgba(196, 69, 105, 0.08);
    --shadow-hover: 0 8px 30px rgba(196, 69, 105, 0.15);
    --radius-soft: 20px;
    --radius-round: 50px;
}

/* ---- Global ---- */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    padding-top: 76px;
    background: var(--bg-light-pink);
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
}

/* ---- Ombre douce côtés ---- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(to right,
        rgba(196, 69, 105, 0.12) 0%,
        transparent 8%,
        transparent 92%,
        rgba(196, 69, 105, 0.12) 100%
    );
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.02em;
}

a {
    color: var(--bordeaux);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--bordeaux-dark);
}

::selection {
    background: var(--rose-light);
    color: var(--bordeaux-dark);
}

.text-bordeaux { color: var(--bordeaux) !important; }
.text-rose { color: var(--rose) !important; }
.text-rose-light { color: var(--rose-light) !important; }
.bg-bordeaux { background-color: var(--bordeaux) !important; }
.bg-rose { background-color: var(--rose) !important; }
.bg-light-pink { background-color: var(--bg-light-pink) !important; }

/* ---- Navbar ---- */
#mainNavbar {
    background: linear-gradient(135deg, var(--bordeaux) 0%, #E36B8A 100%);
    padding: 0.85rem 0;
    transition: all 0.4s ease;
    border-bottom: 3px solid var(--rose);
}

#mainNavbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 25px rgba(196, 69, 105, 0.2);
}

.brand-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-text-stroke: 0.6px currentColor;
    paint-order: stroke fill;
}

#mainNavbar .nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-round);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

#mainNavbar .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.badge.bg-rose {
    background: linear-gradient(135deg, var(--rose), #F2B8C6) !important;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 0.3em 0.55em;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--bordeaux) 0%, #E36B8A 100%);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.2);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #E36B8A 0%, var(--bordeaux) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 69, 105, 0.35);
}

.btn-outline-custom {
    border: 2px solid var(--bordeaux);
    color: var(--bordeaux);
    border-radius: var(--radius-round);
    padding: 0.55rem 1.6rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--bordeaux);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.2);
}

.btn-filter {
    border: 2px solid var(--rose-light);
    border-radius: var(--radius-round);
    padding: 0.45rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
}

.btn-filter.active,
.btn-filter:hover {
    background: linear-gradient(135deg, var(--bordeaux), #E36B8A);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.2);
}

/* ---- Hero Section (accueil) ---- */
.hero-section {
    position: relative;
    background: linear-gradient(to right, #9A1A45 0%, #B03860 50%, #9A1A45 100%);
    margin-top: -76px;
    padding-top: 76px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 204, 188, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(225, 190, 231, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.hero-title .text-rose-light {
    color: var(--rose-light) !important;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.btn-hero-primary {
    background: white;
    color: var(--bordeaux);
    border: none;
    border-radius: var(--radius-round);
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
    background: var(--cream);
    color: var(--bordeaux-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    border-radius: var(--radius-round);
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

/* ---- Trust Bar ---- */
.trust-bar {
    background: white;
    padding: 1.4rem 0;
    border-bottom: 2px solid var(--rose-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    color: var(--bordeaux);
}

.trust-icon {
    font-size: 1.3rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--bordeaux) 0%, #E36B8A 50%, #F48FB1 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 204, 188, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.85rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.btn-cta {
    background: white;
    color: var(--bordeaux);
    border: none;
    border-radius: var(--radius-round);
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background: var(--cream);
    color: var(--bordeaux-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* ---- Page Header (other pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--bordeaux), #E36B8A, #F48FB1);
    padding: 2.5rem 0 1.5rem;
    margin-top: -76px;
    padding-top: calc(76px + 1.5rem);
    color: white;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-weight: 400;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}
.page-header .breadcrumb-item.active {
    color: white;
}

/* ---- Section titles ---- */
.section-title {
    font-weight: 700;
    color: var(--bordeaux);
    font-size: 1.7rem;
    position: relative;
    display: inline-block;
}

/* ---- About / Mon histoire ---- */
.about-section {
    background: white;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rose-light), var(--bg-light-pink));
    border-radius: var(--radius-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-badge {
    background: var(--rose-light);
    color: var(--bordeaux);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-round);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
}

/* ---- Product Cards ---- */
.product-card {
    border: none;
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-soft);
    background: white;
}

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

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rose-light), var(--bg-light-pink));
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rose-light), var(--bg-light-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rose);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--bordeaux), #E36B8A);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-round);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(196, 69, 105, 0.3);
}

.product-card {
    position: relative;
    overflow: visible;
}

.best-seller-badge {
    position: absolute;
    top: 10px;
    right: -8px;
    background: linear-gradient(135deg, #FF6B35, #E85D26);
    color: white;
    padding: 4px 12px 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.best-seller-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border-width: 0 8px 6px 0;
    border-style: solid;
    border-color: transparent #B8471E transparent transparent;
}

.product-price {
    color: var(--bordeaux);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
}

.product-card .card-body {
    padding: 0.85rem 1rem;
}

.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

/* ---- Allergen Badges ---- */
.allergen-badge {
    background: var(--cream);
    color: #E65100;
    border: 2px solid #FFCC80;
    border-radius: var(--radius-round);
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.allergen-badge i {
    font-size: 0.75rem;
}

/* ---- Product Detail ---- */
.product-detail-img img {
    border-radius: var(--radius-soft);
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.product-img-placeholder-lg {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rose-light), var(--bg-light-pink));
    border-radius: var(--radius-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
}

.product-detail-title {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bordeaux);
    font-family: 'Fredoka', sans-serif;
}

/* ---- Options ---- */
.option-group-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bordeaux);
}

.option-card {
    display: block;
    border: 2px solid var(--rose-light);
    border-radius: 16px;
    padding: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: var(--rose);
    background: var(--bg-light-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.1);
}

.option-card.selected,
.option-card:has(input:checked) {
    border-color: var(--bordeaux);
    background: var(--rose-light);
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.15);
}

.option-input,
.variante-input {
    display: none;
}

.option-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.option-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
}

.option-price {
    display: block;
    font-size: 0.8rem;
    color: var(--bordeaux);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.option-included {
    display: block;
    font-size: 0.75rem;
    color: #43A047;
    font-weight: 600;
}

/* ---- Quantity Selector ---- */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--rose-light);
    border-radius: var(--radius-round);
    overflow: hidden;
    background: white;
}

.quantity-selector-sm {
    display: inline-flex;
}

.btn-qty {
    border: none;
    background: none;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bordeaux);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Fredoka', sans-serif;
}

.btn-qty:hover {
    background: var(--rose-light);
    color: var(--bordeaux-dark);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

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

/* ---- Cart ---- */
.cart-item {
    transition: background 0.3s ease;
    border-radius: 12px;
}

.cart-item:hover {
    background: var(--rose-light);
}

.cart-img-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rose-light), var(--bg-light-pink));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    font-size: 1.5rem;
}

.cart-summary {
    border: 2px solid var(--rose);
    border-radius: var(--radius-soft);
    background: white;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.5rem;
}

.site-footer h5 {
    color: white;
    margin-bottom: 1.2rem;
    font-family: 'Fredoka', sans-serif;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--rose-light);
    padding-left: 5px;
}

.social-link {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--rose-light);
    transform: scale(1.15);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Cards general ---- */
.card {
    border: none;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    background: white;
}

/* ---- Form Controls ---- */
.form-control,
.form-select {
    border: 2px solid var(--rose-light);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.2);
}

.form-label {
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--bordeaux);
    border-color: var(--bordeaux);
}

/* ---- Pagination ---- */
.page-link {
    color: var(--bordeaux);
    border-color: var(--rose-light);
    border-radius: 12px !important;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    margin: 0 3px;
}

.page-link:hover {
    background: var(--rose-light);
    color: var(--bordeaux-dark);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--bordeaux), #E36B8A);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(196, 69, 105, 0.2);
}

/* ---- Dropdown ---- */
.dropdown-menu {
    border: 2px solid var(--rose-light);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    overflow: hidden;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--rose-light);
    color: var(--bordeaux);
}

/* ---- Alerts ---- */
.alert {
    border-radius: 16px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: var(--mint);
    color: #2E7D32;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }

    .hero-section {
        margin-top: -68px;
        padding-top: 68px;
    }

    .hero-section .row {
        min-height: 340px !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .brand-text {
        font-size: 1.5rem;
    }

    .trust-item {
        font-size: 0.8rem;
    }

    .page-header {
        margin-top: -68px;
        padding-top: calc(68px + 1rem);
        padding-bottom: 1rem;
    }

    .product-detail-title {
        font-size: 1.6rem;
    }

    .product-detail-price {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cta-banner {
        padding: 2.5rem 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
    }
}
