body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

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

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 0; /* Supprime toute marge entre le header et la section hero */
    padding: 0;
}


.hero-image {
    width: 100%;
    height: 100%;
    background: url('../images/bureau.png') no-repeat center center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    font-size: 1.2rem;
}

.hero-text {
    position: absolute;
    bottom: -20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    width: 80%;
    max-width: 900px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Description Section */
.description {
    background-color: #9bd4d0;
    padding: 50px 20px;
    text-align: center;
}

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

.description h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #054d3b;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

/* Categories Section */
.categories-section {
    background-color: #e8f1f5;
    padding: 40px 20px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixe 3 colonnes */
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 10px;
    box-sizing: border-box;
}

.category-overlay h3 {
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
    margin: 5px;
    text-align: center;
    width: 100%;
}

/* Responsive Styles */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    .hero {
        height: 200px;
    }

    .hero-overlay,
    .hero-text {
        font-size: 1rem;
        max-width: 600px;
        padding: 15px;
    }

    .description h2 {
        font-size: 2rem;
    }

    .description p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Smartphones (480px et moins) */
@media (max-width: 480px) {
    .hero {
        height: 200px; /* Réduit la hauteur sur les écrans petits */
    }

    .hero-overlay,
    .hero-text {
        font-size: 14px; /* Réduit légèrement la taille du texte */
        padding: 10px; /* Ajuste le padding */
    }


    .description h2 {
        font-size: 1.5rem;
    }

    .description p {
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-overlay h3 {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablettes */
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}