.services {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

/* Titre de la section */
.services .heading {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Conteneur des boîtes */
.services .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Style des boîtes individuelles */
.services .box {
    background: #fff;
   
    border-radius: 5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    flex: 1 1 calc(25% - 4rem); /* 4 boîtes par ligne sur grand écran */
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol */
.services .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image dans les boîtes */
.services .box img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

/* Titre dans les boîtes */
.services .box h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Paragraphe dans les boîtes */
.services .box p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design pour les téléphones */
@media (max-width: 768px) {
    .services .box {
        flex: 1 1 calc(50% - 2rem); /* 2 boîtes par ligne sur tablette */
    }
}

@media (max-width: 480px) {
    .services .box {
        flex: 1 1 100%; /* 1 boîte par ligne sur téléphone */
    }

    .services .heading {
        font-size: 2rem;
    }

    .services .box h3 {
        font-size: 1.3rem;
    }

    .services .box p {
        font-size: 0.9rem;
    }
}
/* Style de base pour la section */
/* Style de base pour la section */
#about {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Conteneur principal */
#about .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

/* Boîte du calculateur d'IMC */
#about .boxz {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem; /* Padding réduit pour éviter le débordement */
    flex: 1 1 50%;
    max-width: 600px;
    box-sizing: border-box; /* Inclure le padding dans la largeur totale */
}

/* Titre du calculateur */
#about .boxz h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Contenu du calculateur */
#about .boxz .content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Style des inputs */
#about .boxz .input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#about .boxz .input label {
    font-size: 1rem;
    color: #333;
}

#about .boxz .input input {
    width: 100%; /* Prendre toute la largeur disponible */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur */
}

/* Style des boutons radio (genre) */
#about .boxz .gender {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#about .boxz .gender .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#about .boxz .gender .container input[type="radio"] {
    margin: 0;
}

#about .boxz .gender .container .text {
    font-size: 1rem;
    color: #333;
}

/* Conteneur pour la taille et le poids */
#about .boxz .containerHW {
    display: flex;
    gap: 0.5rem;
    
    flex-wrap: wrap; /* Permettre le retour à la ligne si nécessaire */
}

#about .boxz .inputH,
#about .boxz .inputW {
    flex: 1;
    max-width: 150px; /* Largeur maximale réduite */
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur */
}

/* Bouton de calcul */
#about .boxz .calculate {
    background: #c1c0bf;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%; /* Prendre toute la largeur disponible */
    box-sizing: border-box; /* Inclure le padding dans la largeur totale */
}

#about .boxz .calculate:hover {
    background: #000000;
}

/* Section des résultats */
#about .boxz .result {
    text-align: center;
    margin-top: 1.5rem;
}

#about .boxz .result p {
    font-size: 1.2rem;
    color: #333;
}

#about .boxz .result #result {
    font-size: 2rem;
    font-weight: bold;
    color: #000205;
    margin: 0.5rem 0;
}

#about .boxz .result .comment {
    font-size: 1rem;
    color: #666;
}

/* Section des images */
#about .photo {
    flex: 1 1 40%;
    max-width: 500px;
    text-align: center;
}

#about .photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal */
#about .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#about .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

#about .modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    #about .boxz {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #about .photo {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #about .boxz .containerHW {
        flex-direction: column;
    }

    #about .boxz .inputH,
    #about .boxz .inputW {
        max-width: 100%; /* Prendre toute la largeur sur les petits écrans */
    }
}

@media (max-width: 480px) {
    #about .boxz h1 {
        font-size: 1.5rem;
    }

    #about .boxz .input input {
        font-size: 0.9rem;
    }

    #about .boxz .calculate {
        font-size: 0.9rem;
    }

    #about .boxz .result #result {
        font-size: 1.5rem;
    }
}
/* Style général pour la section blog */
.blog {
    padding: 60px 0;
    background-color: #f9f9f9; /* Couleur de fond */
    text-align: center;
}

.blog .heading {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

/* Conteneur des boîtes */
.blog .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les boîtes */
    justify-content: center;
    padding: 0 20px; /* Espacement sur les côtés */
}

/* Style pour chaque boîte */
.blog .box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.333% - 20px); /* 3 boîtes par ligne avec espace */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Style pour l'image */
.blog .box .image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Assure que l'image couvre la zone */
}

/* Style pour le contenu */
.blog .box .content {
    padding: 20px;
    text-align: left;
}

.blog .box .content .link {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.blog .box .content .link:hover {
    color: #3498DB; /* Changement de couleur au survol */
}

.blog .box .content .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498DB;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.blog .box .content .btn:hover {
    background-color: #2980B9; /* Changement de couleur au survol */
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog .box {
        width: calc(50% - 20px); /* 2 boîtes par ligne sur tablettes */
    }
}

@media (max-width: 768px) {
    .blog .box {
        width: 100%; /* 1 boîte par ligne sur mobiles */
    }
}
/* Style de base pour la section */
#boutique {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

#boutique h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Liste des boutiques */
.boutique-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.boutique-list .boutique-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boutique-list .boutique-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.boutique-list .boutique-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.boutique-list .boutique-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1rem;
}

/* Section des produits */
.produits-container {
    margin-top: 2rem;
}

.produits-container h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.produits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.produits-list .produit-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 200px;
    text-align: center;
}

.produits-list .produit-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.produits-list .produit-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1rem;
}

.produits-list .produit-item p {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Bouton Retour */
#retourBoutique {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

#retourBoutique:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .boutique-list .boutique-item,
    .produits-list .produit-item {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .boutique-list .boutique-item,
    .produits-list .produit-item {
        width: 100%;
    }
}