/* Importation des polices modernes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* Variables de couleurs */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white-color: #fff;
    --accent-color: #ff6f61; /* Une couleur vive pour attirer l'attention */
}

/* Styles généraux */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

a {
    text-decoration: none;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px; /* Bords arrondis pour un look plus doux */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn:hover {
    transform: translateY(-3px); /* Effet de léger déplacement au survol */
}

/* Navigation */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Ombre pour donner du relief */
    position: sticky; /* Rendre le menu fixe en haut de page */
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

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

footer p {
    margin-bottom: 1rem;
}

footer a {
    color: var(--light-color);
    margin: 0 1rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}


/* Bannière principale (Hero) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/team.JPG') no-repeat center center/cover;
    color: var(--white-color);
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}



.hero h1 {
    font-size: 3.5rem;
    color: var(--white-color);
}

.hero p {
    font-size: 1.3rem;
    margin: 1.5rem 0;
}

/* Sections générales */
section {
    padding: 4rem 0;
}

/* Grilles de contenu (services, produits, équipe) */
.service-list, .product-grid, .team-grid, .gallery, .blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item, .product-item, .team-member, .blog-post {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .product-item:hover, .team-member:hover, .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Images dans les grilles */
.product-item img, .team-member img, .blog-post img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.team-member img {
    border-radius: 50%; /* Images d'équipe rondes */
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Galerie photos */
.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05); /* Agrandissement au survol */
}

/* Formulaire de contact */
.contact-form form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}


/* Media query pour les tablettes (max 768px) */
@media (max-width: 768px) {
    
    /* Le conteneur occupe plus de place */
    .container {
        padding: 0 1rem;
    }

    /* Le menu de navigation se réorganise */
    header nav {
        flex-direction: column; /* Les éléments passent en colonne */
        align-items: flex-start; /* Le logo et les liens s'alignent à gauche */
    }

    header nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    /* La taille du titre principal est réduite */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Les grilles de contenu passent en une seule colonne */
    .service-list, .product-grid, .team-grid, .gallery, .blog-list {
        grid-template-columns: 1fr;
    }
}


/* Media query pour les smartphones (max 480px) */
@media (max-width: 480px) {
    
    /* La taille des titres est encore réduite */
    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Les paragraphes sont plus petits */
    p {
        font-size: 1rem;
    }

    /* Les boutons sont de taille normale */
    .btn {
        padding: 10px 20px;
    }
}


/* Animation au survol des cartes */
.service-item:hover, .product-item:hover, .team-member:hover, .blog-post:hover {
    transform: translateY(-5px); /* Déplace l'élément légèrement vers le haut */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Augmente l'ombre pour un effet de profondeur */
}

/* Animation au survol des images de la galerie */
.gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition sur la transformation et l'ombre */
}

.gallery img:hover {
    transform: scale(1.05); /* Agrandit l'image de 5% */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Ajoute une ombre plus marquée */
}

/* Animation au survol des boutons */
.btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px); /* Déplace le bouton légèrement vers le haut */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


/* Définition de l'animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'apparition pour les titres et le texte */
h1, h2, h3, p {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Assure que l'élément est invisible avant l'animation */
}

/* On peut ajuster le délai pour un effet plus étagé */
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.4s; }
.hero .btn { animation-delay: 0.6s; }
.services-brief h2 { animation-delay: 0.8s; }


/* --- Bouton de menu mobile --- */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none; /* Cacher par défaut sur les grands écrans */
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animations du bouton au clic (transformation en X) */
.menu-toggle.open .hamburger {
    transform: rotate(45deg);
}

.menu-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-toggle.open .hamburger::after {
    top: 0;
    transform: rotate(0deg);
    opacity: 0;
}
/* Media query pour les mobiles (max 768px) */
@media (max-width: 768px) {
    header nav {
        flex-wrap: wrap;
        justify-content: space-between; /* Aligne le logo à gauche et le bouton à droite */
    }

    .menu-toggle {
        display: block;
        /* Aucun besoin de positionnement spécial, le flexbox fait le travail */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%; /* Le menu prend toute la largeur */
        text-align: center;
        background-color: var(--white-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        position: absolute; /* Positionne le menu en dessous de la barre de nav */
        top: 60px; /* Ajuste pour qu'il s'affiche sous le header */
        left: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* Composants "Card" */

/* Style de base pour toutes les cartes */
.card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol d'une carte */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Style de l'image de la carte */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Assure que l'image couvre toute la zone sans se déformer */
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Style du titre de la carte */
.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Style du texte de la carte */
.card-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* --- Nouveaux styles pour les sections de la page Services --- */

/* Conteneur de texte pour les introductions */
.text-center {
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1rem auto 2rem;
}

/* Grilles pour les sections à 3 ou 4 colonnes */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Styles pour les cartes de services */
.service-card {
    padding: 2.5rem 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Style de la section Processus de travail */
.bg-light {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.process-steps h2 {
    margin-bottom: 2rem;
}

.step-card {
    padding: 2rem;
    position: relative;
}

.step-icon {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--light-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-color);
}

/* Section d'appel à l'action (CTA) */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 2rem;
    margin-top: 3rem;
    border-radius: 10px;
    text-align: center;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* --- Nouveaux styles pour la page À propos --- */

/* Section Notre histoire */
.about-story .story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-story .image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Nos valeurs */
.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Section L'équipe */
.team-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

/* Styles pour les grilles */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive pour la page À propos */
@media (max-width: 768px) {
    .about-story .story-content {
        grid-template-columns: 1fr; /* Passage en une seule colonne */
    }
}


/* --- Améliorations du footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p, .footer-col li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-col a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Responsivité pour le footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 1.5rem;
    }
}

/* --- Styles de la page de connexion --- */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* La page prend toute la hauteur de l'écran */
    background-color: var(--light-color);
}

.login-container {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.login-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.login-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.login-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.login-links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links span {
    margin: 0 0.5rem;
    color: #999;
}