/* css/style.css */

:root {
    --font-family: Arial, sans-serif;
    --primary-color: #4CAF50;
    --secondary-color: #333;
    --background-color: #f0f0f0;
    --card-padding: 20px;
    --card-border-radius: 10px;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    /* background-color: var(--background-color);
    background-color: var(--background-color, #f0f0f0);*/
    background: linear-gradient(to bottom, #76c62b, #f0f4f8);
    color: var(--secondary-color);
}

.navbar {
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-list li {
    margin: 0 20px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #ddd;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center; /* Centrer les items dans la grille */
}

.service-card {
    background-color: white;
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%; /* Assure que les cartes prennent toute la largeur disponible */
    max-width: 250px; /* Limite la largeur maximale des cartes */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
}

.service-label {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

/* Styles pour le bouton de retour */
.back-button {
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #45a049;
}

/* Styles pour le footer */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 170px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-media a {
    color: white;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .service-card {
        max-width: 200px;
    }

    .nav-list li {
        margin: 0 10px;
    }

    .nav-list a {
        font-size: 16px;
    }
}

/* Styles pour la description (si ajoutée) */
.service-description {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

/* Styles pour le formulaire de contact (si ajouté) */
.contact-section {
    margin-top: 300px;
    margin-bottom: 1px;
    background-color: #f6ddcc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #FF5733;
}

.service-description {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}


/* Styles pour la bannière */
.banner {
    position: relative;
    width: 100%;
    height: 35vh; /* Hauteur de la bannière */
    background-image: url('images/banner.jpg'); /* Remplacez par le nom de votre image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Superposition sombre */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease forwards;
}

.banner-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease forwards;
}

.banner-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1.2s ease forwards;
}

.banner-button:hover {
    background-color: #45a049;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles pour la bannière */
@media (max-width: 768px) {
    .banner {
        height: 50vh;
    }

    .banner-content h1 {
        font-size: 2.5em;
    }

    .banner-content p {
        font-size: 1.2em;
    }

    .banner-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 40vh;
    }

    .banner-content h1 {
        font-size: 2em;
    }

    .banner-content p {
        font-size: 1em;
    }

    .banner-button {
        padding: 10px 20px;
        font-size: 0.8em;
    }
}

/* Style de la barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0ec14a;
    padding: 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-right: 20px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Icônes des réseaux sociaux */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    display: inline-block;
    margin-left: 15px;
}

/* Icônes images */
.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Effet hover : agrandissement et réduction de l'opacité */
.social-icons a:hover img {
    transform: scale(1.3);
    opacity: 0.8;
}

/* Media queries pour rendre les icônes et la navigation responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        margin-bottom: 10px;
    }

    .social-icons {
        margin-top: 10px;
    }

    .social-icons a {
        margin-left: 10px;
    }

    /* Réduire la taille des icônes sur les petits écrans */
    .social-icons img {
        width: 20px;
        height: 20px;
    }
}

.social-icons a:hover .social-icon,
.social-icons a:focus .social-icon {
    transform: rotate(360deg);
    fill: var(--hover-color);
    transition: transform 0.6s ease, fill var(--transition-speed) ease;
}





/* Styles pour la barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4CAF50, #388E3C); /* Dégradé de couleurs */
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Liste de navigation */
.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin: 0 15px;
    position: relative; /* Nécessaire pour le soulignement */
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Ajout d'un effet de soulignement */
.nav-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-list a:hover {
    color: #FFD700;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    margin-left: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        margin: 10px 0;
    }
}
