/* --- CONFIGURATION GLOBALE --- */
:root {
    --primary-green: #25D366; /* Vert WhatsApp */
    --primary-dark: #128C7E;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --accent-orange: #f97316;
    --radius: 16px;
    --shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 40px;
}

/* --- HEADER --- */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.whatsapp-header-btn {
    color: var(--primary-green);
    font-size: 1.5rem;
    text-decoration: none;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden; /* Empêche le scroll horizontal de la page */
}

/* --- FILTRES CATÉGORIES --- */
.categories-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 10px;
    scrollbar-width: none;
}
.categories-wrapper::-webkit-scrollbar { display: none; }

.cat-btn {
    background: var(--white);
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-btn.active {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

/* --- CARROUSEL (CORRIGÉ) --- */
.carousel-section {
    position: relative;
    max-width: 100%;
    margin-bottom: 25px;
}

.carousel-container {
    overflow: hidden; /* Cache tout ce qui dépasse */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.carousel-track {
    display: flex; /* Aligne les produits côte à côte */
    /* IMPORTANT : Pas de width: 100% ici pour laisser les enfants s'étendre */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform; /* Optimisation mobile */
}

.product-card {
    /* CORRECTION : Force chaque carte à prendre 100% de la largeur du conteneur parent */
    flex: 0 0 100%; 
    max-width: 100%;
    padding: 20px;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.price-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Boutons Navigation */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.nav-btn:active { transform: translateY(-50%) scale(0.9); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* --- SECTION COMMANDE & INFO PRODUIT --- */
.order-section {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Info Produit (Style Ticket) */
.selected-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-icon {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: #059669;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.product-highlight {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.3;
}

/* Formulaire */
.order-title {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.order-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-green);
    background: #fff;
}

/* Bouton Vert */
.cta-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2ecc71 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.cta-button:active { transform: scale(0.98); }

/* --- AVIS & FOOTER --- */
.reviews-section { margin-top: 30px; }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-title h3 { color: var(--primary-green); font-size: 1.4rem; }
.rating { color: #fbbf24; font-weight: 700; }

.review-card {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.stars { color: #fbbf24; }

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-light);
}
