/* 📌 Hero Section */
.hero {
    height: 80vh;                
    background-image: url('header.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Ombre de fond pour rendre le texte plus lisible */
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;  /* Animation d'apparition du titre */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out;  /* Animation d'apparition du sous-titre */
}

.hero .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    border-radius: 30px;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #121212; /* Couleur de survol */
}

/* Animation de l'apparition du texte */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Masque les liens par défaut */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: block; /* Affiche les liens lorsqu'ils sont activés */
    }

    .nav-links a {
        display: block;
        margin: 10px 0;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle i {
        color: white;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem; /* Taille plus petite sur mobile */
    }

    .hero p {
        font-size: 1rem; /* Taille plus petite sur mobile */
    }

    .hero .btn {
        font-size: 1rem; /* Taille du bouton ajustée sur mobile */
    }
}

/* 📌 Parallax */
.parallax {
    background: url('https://source.unsplash.com/1600x900/?digital,innovation') center/cover fixed no-repeat;
    height: 300px;
}

/* 📌 Section Services */
.container {
    width: 80%;
    margin: auto;
    padding: 50px 0;
}

h2 {
    text-align: center;
    font-size: 2.2em;
    color: #007bff;
    margin-bottom: 20px;
}

.service-category {
    margin-bottom: 50px;
}

.service-category h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h4 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.4em;
}

/* ⭐️ Animations de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🌟 Animations SVG */
.svg-icon {
    width: 50px;
    height: 50px;
    fill: #007bff;
    transition: transform 0.3s;
}

.card:hover .svg-icon {
    transform: scale(1.1);
}

/* 🚀 CTA Section */
#cta {
    text-align: center;
    padding: 50px 0;
    background: #f1f1f1;
}

#cta h2 {
    font-size: 2em;
    color: #333;
}

#cta p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#cta .btn {
    display: inline-block;
    padding: 12px 25px;
    background: #f8a035;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

#cta .btn:hover {
    background: #121212;
}


/* 🌍 Styles Généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8;
}

/* 📌 Navigation */
header {
    background: #121212;
    padding: 15px 0;
}

nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f8a035;
    text-decoration: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f8a035;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8a035;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e0892a;
}
																																		
/* 📌 Footer */
.footer {
    background-color: #121212;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer .container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;  /* Aligne les sections du footer horizontalement */
    align-items: flex-start;         /* Aligne les éléments sur le haut de chaque section */
    flex-wrap: wrap;                 /* Permet aux sections de se replier en mobile */
}

.footer-section {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
    padding: 0 15px;                 /* Ajoute un peu de padding pour éviter que les sections touchent les bords */
}

.footer h3 {
    color: #f8a035;
    font-size: 16px;
    margin-bottom: 10px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

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

.footer-links a:hover {
    color: #f8a035;
}

.footer-social a {
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #f8a035;
}

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

.footer-bottom a {
    color: #f8a035;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;    /* Passe les sections du footer en colonne sur mobile */
        align-items: center;       /* Centre les sections */
    }
}





/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}





/* Styles spécifiques à la page About */
.vision-points ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.vision-points li {
    margin-bottom: 1rem;
    position: relative;
}

.vision-points li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: -1.5rem;
}

/* Styles spécifiques à la page Contact */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -100px;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        margin-top: -50px;
    }

    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-grid {
        flex-wrap: wrap;
    }
}


/* 📌 Section Services */
#services {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

#services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover .service-icon {
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    font-size: 1rem;
    color: #666;
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
    #services h2 {
        font-size: 2rem; /* Taille du titre réduite sur mobile */
    }

    .services-grid {
        grid-template-columns: 1fr 1fr; /* Deux colonnes sur mobile */
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 2.5rem; /* Icônes plus petites sur mobile */
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* 📌 Section Partenaires */
#partenaires {
    padding: 80px 0;
    background-color: #f4f4f4;
    text-align: center;
}

#partenaires h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#partenaires p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.partenaires-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partenaire-logo img {
    max-width: 150px;
    max-height: 50px;
    transition: transform 0.3s, filter 0.3s;
}

.partenaire-logo img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
    #partenaires h2 {
        font-size: 2rem;
    }

    .partenaires-logos {
        flex-direction: column;
        align-items: center;
    }

    .partenaire-logo img {
        max-width: 120px;
        max-height: 40px;
    }
}

#response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    font-weight: bold;
    text-align: center;
}

#response-message.success {
    display: block;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#response-message.error {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}