/* =========================================
   SOMMAIRE
   1. VARIABLES & RESET
   2. HEADER & NAVIGATION
   3. HERO SECTION
   4. SECTION PRODUITS (GRILLE & CARTES)
   5. SECTION "MON TRAVAIL" (ABOUT)
   6. PAGE CONTACT
   7. PAGE PRODUIT (STYLE ROSE)
   8. ADMIN PANEL
   9. FOOTER
   10. ANIMATIONS & LOADER
   11. RESPONSIVE - TABLETTE & MOBILE
   ========================================= */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-rose: #FFC5D3;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --font-title: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SÉCURITÉ ABSOLUE ANTI-DÉBORDEMENT MOBILE */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body.is-admin .admin-menu-container {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-title);
    font-weight: bold;
    color: var(--text-dark);
    white-space: nowrap;
    font-size: clamp(1.1rem, 4.5vw, 1.8rem);
    margin-right: 15px;
}

nav {
    flex: 1;
    margin-left: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-rose);
}

.nav-links li:last-child {
    margin-left: auto;
}

/* Menu Burger (Caché sur PC) */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Menu spécifique pour page contact/produit */
.page-contact-body #navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.page-contact-body #navbar .nav-links a,
.page-contact-body #navbar .logo {
    color: #333333 !important;
}

.page-contact-body #navbar .burger-menu span {
    background-color: #333333 !important;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 69vh;
    height: auto;
    /* background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 80px 20px;
    position: relative;
    animation: fadeInHero 1.2s ease-in-out forwards;
}

@keyframes fadeInHero {
    from { opacity: 0.5; transform: scale(1.04); }
    to   { opacity: 1;   transform: scale(1); }
}

/* 1. ON CACHE TOUT LE GROUPE AU DÉMARRAGE (Titre, paragraphe, et bouton) */
body:not(.fonts-loaded) .hero h1,
body:not(.fonts-loaded) .hero p,
body:not(.fonts-loaded) .cta-button {
    opacity: 0;
    visibility: hidden;
}

/* 2. LE TITRE */
.hero h1 {
    font-family: var(--font-title);
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Même vitesse d'apparition pour tous */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 3. LE TEXTE */
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    /* Même vitesse d'apparition pour tous */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 4. LE BOUTON */
.cta-button {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: inline-block;
    border-radius: 4px;
    /* On garde l'effet de survol (0.3s) ET on ajoute l'apparition (0.8s) */
    transition: opacity 0.8s ease, visibility 0.8s ease, background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-rose);
    color: var(--white);
}

/* =========================================
   4. SECTION PRODUITS (GRILLE)
   ========================================= */
.container {
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid #ddd;
    background: transparent;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-rose);
    border-color: var(--primary-rose);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}
#collection .product-grid {
    opacity: 0;
    transition: opacity 0.5s ease;
}
#collection .product-grid.visible {
    opacity: 1;
}

.product-card {
    background: var(--white);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 300px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.4s ease;
    position: absolute;
    top: 0; left: 0;
}

.card-image .hover-img {
    opacity: 0;
}

.product-card:hover .card-image:has(.hover-img) .main-img {
    opacity: 0;
}

.product-card:hover .card-image .hover-img {
    opacity: 1;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 1.5rem 0;
    text-align: center;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-style: italic;
}

.price {
    color: var(--primary-rose);
    font-weight: 600;
    font-size: 1.1rem;
}

/* =========================================
   5. SECTION "MON TRAVAIL" (ABOUT)
   ========================================= */
.about-section {
    background-color: #fff5f8;
    padding: 5rem 5%;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 10px 10px 0px var(--primary-rose);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    word-spacing: 15px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
}

.signature {
    width: 150px;
    opacity: 0.6;
}

/* =========================================
   6. PAGE CONTACT
   ========================================= */
.contact-section {
    padding: 4rem 5%;
    background-color: #fff;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.contact-form {
    flex: 2;
    min-width: 350px;
    background-color: #fff5f8;
    border: 2px solid var(--primary-rose);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.contact-form h3 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    background-color: white;
    transition: border-color 0.3s;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.send-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-rose);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.send-btn:hover {
    background-color: #ffadc2;
    transform: translateY(-2px);
}

.instagram-box {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border: 2px dashed var(--primary-rose);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.instagram-box:hover {
    background-color: var(--primary-rose);
    color: white;
    border-style: solid;
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.instagram-box h3 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   7. PAGE PRODUIT (STYLE ROSE)
   ========================================= */
.product-details-section {
    padding: 3rem 5% 2rem;
    background-color: var(--white);
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-rose);
    font-weight: 600;
}

.separator-arrow {
    margin: 0 8px;
    color: #ccc;
}

.product-details-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.product-image-col {
    flex: 1.4 1 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-image-col .main-display {
    width: 100%;
    height: 480px;
    background-color: #fcfcfc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative !important;
}
.img-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f0f3;
    z-index: 5;
    border-radius: 15px;
}

.img-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #ffc5d3;
    border-top-color: var(--primary-rose);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centre parfaitement à la verticale */
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc légèrement transparent */
    color: #333333;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%; /* Fait un rond parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Ombre élégante */
}

/* 3. L'effet au survol de la souris */
.nav-arrow:hover {
    background-color: var(--primary-rose);
    color: white;
    transform: translateY(-50%) scale(1.1); /* Petit effet de zoom très pro */
}

/* 4. Le placement à gauche et à droite */
.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}
.product-image-col .main-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.p-thumb {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-thumb:hover, .p-thumb.active {
    border-color: var(--primary-rose);
}

.product-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#detail-title {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.detail-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2.5rem;
    color: var(--primary-rose);
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-portions {
    margin-bottom: 1rem;
}

.portion-label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.portion-buttons {
    display: flex;
    gap: 12px;
}

.portion-buttons .p-btn {
    background: white;
    border: 1px solid #ccc;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.portion-buttons .p-btn:hover, .portion-buttons .p-btn.active {
    background: var(--primary-rose);
    color: #fff;
    border-color: var(--primary-rose);
}

.btn-order {
    background-color: var(--primary-rose);
    color: #fff;
    text-align: center;
    padding: 18px 30px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    margin-bottom: 0;
    display: block;
    box-shadow: 0 5px 15px rgba(255, 197, 211, 0.5);
    transition: all 0.3s ease;
}

.btn-order:hover {
    background-color: #ffadc2;
    transform: translateY(-2px);
}

.detail-description-box {
    background-color: #fff5f8;
    padding: 2rem;
    border-radius: 15px;
}

.detail-description-box h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.detail-description-box h3:first-child {
    margin-top: 0;
}

.detail-description-box p {
    font-size: 0.95rem;
    color: #555;
}

/* =========================================
   8. ADMIN PANEL
   ========================================= */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 40px 0;
}

.admin-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 95%;
    max-width: 950px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-height: none !important;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.admin-content h2 {
    color: var(--primary-rose);
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.admin-content input,
.admin-content textarea,
.admin-content select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.close-admin {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #222;
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-rose);
}

.socials {
    margin: 1.5rem 0;
}

.socials a {
    margin: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-instagram { width: 25px; border-radius: 9px; }
.logo-instagram1 { width: 60px; border-radius: 9px; }

.copyright {
    font-size: 0.7rem;
    color: #666;
}

/* =========================================
   10. ANIMATIONS & LOADER
   ========================================= */
.site-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--white);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity, visibility;
}

.site-loader.hidden {
    opacity: 0; visibility: hidden;
}

.loader-dots { display: flex; gap: 10px; margin-bottom: 20px; }
.loader-dots span {
    width: 18px; height: 18px; background-color: var(--primary-rose);
    border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both;
    will-change: transform;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.animate-from-left { animation: slideInLeft 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards; opacity: 0; }
.animate-from-right { animation: slideInRight 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards; opacity: 0; }

@keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-60px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateX(60px); } 100% { opacity: 1; transform: translateX(0); } }

/* =========================================
   11. RESPONSIVE - TABLETTE & MOBILE
   ========================================= */
@media screen and (max-width: 992px) {
    .product-details-container { gap: 2rem; }
    .form-two-columns { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    
    /* --- LE MENU MOBILE ABSOLUMENT PARFAIT --- */
    .burger-menu {
        display: block;
        z-index: 10001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0; /* FIX 1 : Remplace height: 100vh pour éviter le bug de saut Safari */
        width: 75%;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 100px 0 0 0 !important; /* FIX 2 : Retire les marges invisibles */
        margin: 0 !important;
        list-style: none !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }
    

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-links li a {
        display: block; /* FIX 3 : Force la prise d'espace total pour un centrage net */
        width: 100%;
        font-size: 1.3rem;
        font-weight: 600; /* Gras permanent */
        padding: 15px 0;
    }

    .nav-links li:last-child {
        margin-top: auto; /* Glisse doucement en bas */
        margin-bottom: 50px;
        /* PLUS BESOIN de absolute. C'est le bottom:0 du conteneur qui règle tout ! */
    }

    /* --- LAYOUT GENERAL MOBILE --- */
    .hero h1 { font-size: 3rem; }
    .about-container { flex-direction: column; }
    .about-text { order: -1; text-align: center; }
    .about-image img { max-width: 400px; margin: 0 auto; display: block; }
    
   /* --- RÉORGANISATION DE LA PAGE PRODUIT MOBILE (SÉPARATION TITRE / PRIX) --- */
    
    .product-details-container { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 0 !important; /* On gère les espaces élément par élément */
    }

    /* La magie : on "dissout" la colonne info pour pouvoir manipuler chaque texte individuellement */
    .product-info-col {
        display: contents !important; 
    }

    /* On donne un numéro d'ordre à chaque élément ! */
    #detail-title { 
        order: 1; 
        margin-bottom: 5px;
        text-align: center; /* Plus joli centré sur mobile */
    }
    
    .detail-subtitle { 
        order: 2; 
        margin-bottom: 25px !important; 
        text-align: center;
    }
    
    /* On glisse l'image en 3ème position, pile entre le sous-titre et le prix */
    .product-image-col { 
        order: 3; 
        width: 100%;
        margin-bottom: 25px;
    }
    
    .detail-price { 
        order: 5; 
        text-align: center;
    }
    
    .detail-portions { 
        order: 6; 
    }
    
    .btn-order { 
        order: 7; 
    }
    
    .detail-description-box { 
        order: 4; 
    }

    /* Ajustement des miniatures pour mobile */
    .product-image-col .main-display { height: 320px; }
    .image-thumbnails { grid-template-columns: repeat(3, 1fr); }

}
/* =========================================
   CARROUSEL "VOUS AIMEREZ AUSSI"
   ========================================= */
.related-products-section {
    padding: 2rem 5% 3rem;
    background-color: #fffafb;
    text-align: center;
    border-top: 1px solid #ffeeed;
}

.related-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

/* Wrapper avec flèches */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--primary-rose);
    color: white;
    border-color: var(--primary-rose);
}

/* Le conteneur qui défile */
.carousel-container {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Les cartes individuelles */
.carousel-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(255, 197, 211, 0.45);
}

.carousel-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.carousel-info {
    padding: 1rem 0.9rem 1.2rem;
}

.carousel-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    color: var(--text-dark);
}

.carousel-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 6px;
}

.carousel-price {
    color: var(--primary-rose);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .carousel-arrow { display: none; }
    .carousel-item { flex: 0 0 200px; }
    .carousel-item img { height: 160px; }
}

/* ============================================================
   ESPACE ADMIN — styles spécifiques à admin.html
   ============================================================ */

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 14px 18px;
    min-width: 240px;
    max-width: 340px;
    border-left: 4px solid #000;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 0.88rem;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: #27ae60; }
.toast.error   { border-left-color: #e74c3c; }
.toast.info    { border-left-color: #3498db; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
@keyframes toastIn  { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to   { transform: translateX(110%); opacity: 0; } }

/* Modale de confirmation */
#confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
#confirm-modal.active { display: flex; }
#confirm-modal .confirm-box {
    background: white;
    padding: 2rem;
    border: 1px solid #000;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: toastIn 0.2s ease;
}
#confirm-message {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-body);
}
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-cancel-btn {
    padding: 12px 28px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
    transition: background 0.2s;
}
.confirm-cancel-btn:hover { background: #f5f5f5; }

/* Toggle mot de passe */
.password-wrapper { position: relative; margin-bottom: 20px; }
.password-wrapper input {
    width: 100%;
    padding: 15px;
    padding-right: 48px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-sizing: border-box;
}
.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #aaa;
    padding: 4px;
    transition: color 0.2s;
}
.toggle-pwd-btn:hover { color: #555; }

/* Barre de statistiques */
.stats-bar { display: flex; gap: 15px; margin-bottom: 2rem; flex-wrap: wrap; }
.stat-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 16px 28px;
    text-align: center;
    min-width: 120px;
}
.stat-number { font-size: 2rem; font-weight: bold; display: block; }
.stat-label  { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #999; }

/* Barre de recherche */
.admin-search {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 0.9rem;
    width: 260px;
    max-width: 100%;
    box-sizing: border-box;
}
.admin-search:focus { outline: none; border-color: #000; }

/* Skeleton de chargement */
.skeleton-card { background: white; border: 1px solid #ddd; padding: 15px; }
.skeleton-block {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 2px;
}
.skeleton-img  { width: 100%; height: 200px; margin-bottom: 12px; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Badge catégorie sur les cartes admin */
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

/* Carte masquée par la recherche */
.product-card.hidden { display: none !important; }

/* Feedback visuel sur les boutons de réordonnancement */
.btn-top:hover, .btn-up:hover, .btn-down:hover, .btn-bottom:hover { background: #f5f5f5 !important; }
.btn-top:disabled, .btn-up:disabled, .btn-down:disabled, .btn-bottom:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}