/* Variables améliorées */
:root {
    --primary-red: #781E34;
    --dark-red: #5a1528;
    --light-red: #9a2b48;
    --accent-red: #b3415d;
    --soft-red: #d45d7c;
    --light-pink: #f9e8ee;
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f7;
    --medium-gray: #e8e8e8;
    --text-dark: #1a1a1a;
    --text-medium: #555555;
    --text-light: #888888;
    
    --shadow-sm: 0 4px 12px rgba(120, 30, 52, 0.08);
    --shadow-md: 0 8px 24px rgba(120, 30, 52, 0.12);
    --shadow-lg: 0 15px 40px rgba(120, 30, 52, 0.15);
    --shadow-hover: 0 10px 35px rgba(120, 30, 52, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== SECTION BOUTIQUE AMÉLIORÉE ===== */
.shop-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 0.95) 0%,
        rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.shop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    
    opacity: 0.8;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.shop-header h1 {
    font-size: 3.2rem;
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.shop-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    border-radius: 2px;
}

.shop-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

/* ===== GRILLE BOUTIQUE ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* ===== CARTES PRODUITS ===== */
.shop-card {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 30, 52, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-red);
}

/* Effet de surbrillance en haut */
.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-red), 
        var(--accent-red), 
        var(--soft-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.shop-card:hover::before {
    transform: scaleX(1);
}

/* Badge "Nouveau" ou "Promo" */
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-red), var(--soft-red));
    color: var(--pure-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(179, 65, 93, 0.3);
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== IMAGE PRODUIT ===== */
.shop-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    height: 220px;
    background: var(--light-pink);
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    filter: brightness(0.98);
}

.shop-card:hover .shop-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Overlay sur image au hover */
.shop-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        transparent 40%, 
        rgba(120, 30, 52, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shop-card:hover .shop-image-container::after {
    opacity: 1;
}

/* ===== CONTENU CARTE ===== */
.shop-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
    padding: 0 10px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PRIX ===== */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -0.5px;
}

.price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.price-discount {
    background: var(--light-pink);
    color: var(--accent-red);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== BOUTON COMMANDER ===== */
.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--pure-white);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.btn-order:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--light-red));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(120, 30, 52, 0.25);
    gap: 15px;
}

.btn-order:active {
    transform: translateY(-1px);
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.btn-order:hover::before {
    left: 100%;
}

/* Icône dans le bouton */
.btn-order::after {
    content: '🛒';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-order:hover::after {
    transform: scale(1.2) rotate(10deg);
}

/* ===== FORMULAIRE DE COMMANDE ===== */
.order-form {
    max-width: 500px;
    margin: 40px auto 0;
    padding: 35px;
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(120, 30, 52, 0.1);
    position: relative;
    overflow: hidden;
}

.order-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-red), 
        var(--accent-red));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.order-form h3 {
    text-align: center;
    color: var(--dark-red);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.order-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.order-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.order-form input,
.order-form textarea,
.order-form select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--pure-white);
    transition: var(--transition);
    outline: none;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(179, 65, 93, 0.1);
    transform: translateY(-2px);
}

.order-form input::placeholder,
.order-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.order-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== BOUTON ENVOYER COMMANDE ===== */
.order-form .btn-order {
    width: 100%;
    max-width: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ===== ANIMATIONS ===== */
.shop-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.6s ease-out forwards;
}

.shop-card:nth-child(1) { animation-delay: 0.1s; }
.shop-card:nth-child(2) { animation-delay: 0.2s; }
.shop-card:nth-child(3) { animation-delay: 0.3s; }
.shop-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
    }
    
    .shop-header h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 80px 0;
    }
    
    .shop-header h1 {
        font-size: 2.4rem;
    }
    
    .shop-header p {
        font-size: 1.1rem;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }
    
    .shop-card {
        padding: 20px;
    }
    
    .shop-image-container {
        height: 200px;
    }
    
    .order-form {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .shop-section {
        padding: 60px 0;
    }
    
    .shop-header h1 {
        font-size: 2rem;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 30px auto;
    }
    
    .shop-image-container {
        height: 220px;
    }
    
    .order-form {
        padding: 25px 20px;
    }
}

/* ===== ÉTAT VIDE ===== */
.shop-grid:empty::after {
    content: 'Aucun produit disponible pour le moment.';
    display: block;
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    background: var(--pure-white);
    border-radius: var(--radius);
    border: 2px dashed rgba(120, 30, 52, 0.1);
}

/* ===== ACCESSIBILITY ===== */
.shop-card:focus-within,
.order-form input:focus-visible,
.order-form textarea:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

.btn-order:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shop-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .shop-card:hover {
        transform: none;
    }
    
    .shop-image {
        transition: none;
    }
    
    .btn-order:hover::before {
        display: none;
    }
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   Hero Section
================================ */
.hero {
    background:rgba(255, 255, 255, 0.95);
    background-image: url(../uploads/bgl.png);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
    border-bottom: 5px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), var(--primary-red));
}

.hero h1 {
    color: var(--dark-red);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.hero p {
    color: var(--text-light);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 2.5rem auto;
    line-height: 1.8;
}



/* Bouton Ajouter un projet   */
.add-project-container {
    width: 100%;
    margin: 35px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;
}

.btn-add-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); /* ROUGE */
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 280px;
}

.btn-add-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red)); /* ROUGE inversé */
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-add-project:hover::before {
    width: 100%;
}

.btn-add-project:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.btn-add-project:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.25);
}

.btn-add-project i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.btn-add-project:hover i {
    transform: rotate(180deg) scale(1.2);
}


/* ===============================
   shop Actions Container
================================ */
.shop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    width: 100%;
}

/* ===============================
   Button Base Styles
================================ */
.shop-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

/* ===============================
   Edit Button
================================ */
.shop-actions .btn-success {
    background-color: #28a745; /* Vert Bootstrap-like */
    color: var(--pure-white);
}

.shop-actions .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ===============================
   Delete Button
================================ */
.shop-actions .btn-danger {
    background-color: var(--primary-red); 
    color: var(--pure-white);
}

.shop-actions .btn-danger:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 30, 52, 0.3);
}

/* ===============================
   Icons
================================ */
.shop-actions .btn i {
    font-size: 0.9rem;
}

/* ===============================
   Form Styles (pour le bouton supprimer)
================================ */
.shop-actions form {
    margin: 0;
    display: inline;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 480px) {
    .shop-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .shop-actions .btn {
        width: 100%;
        justify-content: center;
    }
}