/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #2ecc71;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu Burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* En-tête et navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.nav-links a {
    margin-left: 2rem;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Section Héro */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 80px; /* Pour compenser le header fixe */
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/accueil.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: white;
}

/* Animation pour le contenu hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries pour la section hero */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
        margin-top: 70px;
        padding: 1rem;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Ancien style pour compatibilité */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 70px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Section Produits */
.products {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-category {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-category.professionnelle {
    background-color: #e3f2fd;
    color: #1565c0;
}

.product-category.haut-de-gamme {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.product-specs {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #555;
}

.product-specs span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-specs span::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.product-specs .production::before {
    content: '\f017';
}

.product-specs .power::before {
    content: '\f0e7';
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.stock-warning {
    color: #e53935;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px 0 0;
    font-style: italic;
}

.product-image {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: #ff5252;
}

/* Section À propos */
.about {
    padding: 6rem 0;
    text-align: center;
}

.about h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Section Contact */
.contact {
    padding: 6rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.contact-info i {
    color: var(--primary-color);
}

/* Cartes de produits simplifiées */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.8rem 0;
    color: var(--dark-color);
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    flex-grow: 1;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* Styles spécifiques pour les pièces détachées */
.piece-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.piece-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.piece-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.piece-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.piece-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.piece-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
    flex-grow: 1;
}

.piece-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Grille des pièces détachées */
.pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Style pour les boutons d'ajout au panier */
.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: #ff5252;
}

.add-to-cart i {
    font-size: 1rem;
}

.view-details {
    background: none;
    border: 1px solid #ddd;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-details:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn i {
    font-size: 0.9em;
}

.product-card .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem;
}

/* Bouton Ajouter au panier */
.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Style pour les caractéristiques dans le slide */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-card .feature i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    display: block;
}

.product-card .add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.product-card .add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: -1;
}

.product-card .add-to-cart:hover::before {
    left: 0;
}

/* Badge de promotion */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Styles pour la modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: var(--dark-color);
    background: rgba(0, 0, 0, 0.1);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-left {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.modal-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnail {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 10px;
    margin-bottom: 10px;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    padding: 3px 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-product-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-product-image:hover {
    transform: scale(1.02);
}

.modal-right {
    padding: 2rem;
}

.modal-right h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.modal-features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-modal {
    flex: 1;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-modal:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Boutons des cartes produits */
.product-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(to bottom, #fcfcfc, #f5f5f5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto; /* Pousse les boutons vers le bas de la carte */
}

.product-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Effet de vague au survol */
.product-actions button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, transparent 10.01%) no-repeat 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
    pointer-events: none;
}

.product-actions button:active::after {
    transform: scale(0, 0);
    opacity: 0.2;
    transition: 0s;
}

/* Style du bouton Ajouter au panier */
.product-actions .add-to-cart {
    background: linear-gradient(135deg, #4a90e2 0%, #357ABD 100%);
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-actions .add-to-cart:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #2c6aad 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.product-actions .add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style du bouton Voir les détails */
.product-actions .view-details {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-actions .view-details:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #2d3748;
}

.product-actions .view-details:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Icônes dans les boutons */
.product-actions button i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.product-actions button:hover i {
    transform: translateX(2px);
}

/* Animation de chargement pour le bouton d'ajout */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.add-to-cart.loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* Style pour les boutons désactivés */
.product-actions button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .product-actions button {
        width: 100%;
    }
}

/* Menu de catégorie */
.category-menu {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.menu-item {
    position: relative;
}

.menu-link {
    padding: 0.8rem 1.5rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 4px;
}

.menu-link:hover, 
.menu-link.active,
.menu-item:hover > .menu-link {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
}

.menu-link::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.menu-item:hover .menu-link::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    list-style: none;
    padding: 0.75rem 0;
    margin: 5px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid #eee;
}

.menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
    position: relative;
    margin: 0;
}

.sub-menu-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sub-menu-link:hover,
.sub-menu-link.active {
    background-color: #f8f9fa;
    color: #4a90e2;
    padding-left: 1.75rem;
}

/* Message quand pas de produits */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.no-products h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-products p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-products .btn {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.no-products .btn:hover {
    background-color: #3a7bc8;
}

/* Styles pour la page Nos Machines */
.machines-page {
    padding-top: 80px;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtres */
.filters {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filters .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select, 
.filter-btn {
    padding: 0.65rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus, 
.filter-btn:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.filter-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 1.5rem;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background-color: #3a7bc8;
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(0);
}

.reset-filters {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    margin-left: auto;
}

.reset-filters:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Styles pour les sélecteurs */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2.5rem;
}

select::-ms-expand {
    display: none;
}

/* Styles pour les options du select */
select option {
    padding: 0.5rem;
    background-color: white;
    color: #333;
}

/* Style pour les groupes d'options */
optgroup {
    font-weight: normal;
    font-style: normal;
    color: #333;
}

/* Style pour les options au survol */
select option:hover {
    background-color: #f0f7ff;
    color: #333;
}

/* Style pour les options sélectionnées */
select option:checked {
    background-color: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

/* Amélioration de l'accessibilité */
select:focus {
    outline: 3px solid #e3f2fd;
    outline-offset: 2px;
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .filters .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .filter-btn, 
    .reset-filters {
        width: 100%;
        margin: 0.5rem 0;
    }
}

.cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9f9f9;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Styles pour le menu simplifié */
.simple-menu {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.simple-menu .container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.menu-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.menu-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.menu-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.menu-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .simple-menu {
        padding: 1rem 0;
        position: static;
    }
    
    .simple-menu .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .menu-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #666;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.add-to-cart-modal i {
    font-size: 1.2rem;
}

/* Animation pour la modale */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour la modale */
@media (min-width: 992px) {
    .modal-content {
        flex-direction: row;
    }
    
    .modal-left {
        flex: 1;
        border-right: 1px solid #eee;
        border-bottom: none;
    }
    
    .modal-right {
        flex: 1;
        max-width: 400px;
        overflow-y: auto;
    }
    
    .modal-image {
        height: 350px;
    }
}

/* Panier */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.cart-overlay.show {
    display: flex;
}

.cart {
    width: 100%;
    max-width: 400px;
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-overlay.show .cart {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--dark-color);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

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

.item-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-amount button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-amount button:hover {
    background-color: #f5f5f5;
}

.remove-item {
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff5252;
}

.empty-cart {
    text-align: center;
    color: var(--gray-color);
    margin: 2rem 0;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #ff5252;
}

/* Pied de page */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Réactivité */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart {
        max-width: 100%;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
