/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, #003087, #0040b3);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #0055ff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle, .cart-icon {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FF0000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.search-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box.active {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 600px;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideInDown 1s ease;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 30px;
    animation: slideInUp 1s ease;
}

/* Promotions Section */
.promotions {
    padding: 60px 0;
    background-color: white;
}

.promotions h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.promo-card {
    background: linear-gradient(to bottom, #FFA500, #FF8C00);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #FF0000;
    transition: transform 0.3s;
}

.promo-card:hover {
    transform: scale(1.05);
}

.promo-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.promo-price {
    font-size: 28px;
    font-weight: bold;
}

.promo-details {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-details ul {
    list-style-type: disc;
    padding-left: 20px;
}

.promo-details li {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* Services Section */
.services {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f0f8ff, #e6f2ff);
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #0055ff;
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 20px;
}

/* Products Section */
.products {
    padding: 60px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border: 2px solid #0040b3;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.product-card img {
    border-radius: 8px;
    margin-bottom: 15px;
    height: 180px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #003087;
}

.product-price {
    font-size: 20px;
    color: #FFA500;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.view-all {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f0f8ff, #e6f2ff);
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.map {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-button {
    text-align: center;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 24px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #FFA500;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #e59400;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #0040b3;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.remove-btn {
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    margin: 20px 0;
    font-size: 20px;
    font-weight: bold;
}

/* Products Page */
.products-page {
    padding: 40px 0;
}

.products-page h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.filter-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-section label {
    font-weight: bold;
}

.filter-section select {
    padding: 8px 15px;
    border: 2px solid #0040b3;
    border-radius: 5px;
}

.products-grid.detailed .product-card {
    padding: 20px;
}

.product-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

.contact-page h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003087;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 20px;
    color: #003087;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    min-width: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #0040b3;
    outline: none;
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .promo-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: #003087;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .promo-grid, .services-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}