/* Police par défaut et réinitialisation */
:root {
    --primary-color: #006600;    /* Vert foncé */
    --secondary-color: #FFD700;  /* Or */
    --text-color: #333333;       /* Noir doux */
    --light-bg: #f8f9fa;          /* Fond clair */
    --white: #ffffff;             /* Blanc */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header et Menu */
header {
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style pour l'en-tête */
header {
    z-index: 1000;
}

.navbar {
    padding: 0 !important;
}

/* Logo */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Menu centré */
.navbar-nav {
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #006600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #006600;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #006600;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
}

/* Bouton "Inscription" */
.btn-inscrire {
    background-color: #006600;
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-inscrire:hover {
    background-color: #004d00;
    transform: translateY(-2px);
    color: white;
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Responsive : Adaptation pour mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}


/* Bouton "Je m'inscrire" */
.btn-inscrire {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-inscrire:hover {
    background-color: #004d00;
    transform: translateY(-2px);
}

/* Slider (Bannière) */
#heroSlider .carousel-item {
    height: 600px;
}

#heroSlider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#heroSlider .carousel-caption {
    bottom: 3rem;
    left: 10%;
    right: 10%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    text-shadow: none;
}

#heroSlider .carousel-caption h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#heroSlider .carousel-caption p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#heroSlider .btn-warning {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
}

#heroSlider .btn-warning:hover {
    background-color: #e6c200;
    color: var(--primary-color);
}

#heroSlider .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

#heroSlider .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Cartes de Formation */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #004d00;
}

/* Section "Pourquoi Nous Choisir ?" */
.why-choose-us {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.feature-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Section "Nos Partenaires" */
.partners-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.partners-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.partners-section img {
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partners-section img:hover {
    filter: grayscale(0);
}

/* Section "Témoignages" */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.testimonial-card {
    border-left: 4px solid var(--primary-color);
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Section FAQ */
.faq-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.accordion-button {
    font-weight: 500;
    color: var(--text-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Section CTA */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), #0b5e3c);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-section .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.cta-section .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #212529;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-section h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section .social-icons a {
    color: var(--white);
    margin-right: 1rem;
    transition: color 0.3s;
}

.footer-section .social-icons a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 767.98px) {
    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 2rem;
    }

    #heroSlider .carousel-caption p {
        font-size: 1rem;
    }
}

/* Responsive : Adaptation pour tous les écrans */
/* Cartes de Formation : 2 par ligne sur tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .formations-section .row > div[col-class] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Partenaires : 3 par ligne sur tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .partners-section .row > div[col-class] {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

/* Actualités : 2 par ligne sur tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .news-section .row > div[col-class] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Réduction légère de la taille des textes sur mobile et tablette */
@media (max-width: 991.98px) {
    body {
        font-size: 0.95rem;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 90%;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 1.8rem;
    }

    #heroSlider .carousel-caption p {
        font-size: 1rem;
    }
}

/* Adaptation des marges et espacements pour les petits écrans */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* Alignement des cartes de formation sur mobile (1 par ligne) */
@media (max-width: 575.98px) {
    .formations-section .row > div[col-class] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Alignement des partenaires sur mobile (1 par ligne) */
@media (max-width: 575.98px) {
    .partners-section .row > div[col-class] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Alignement des actualités sur mobile (1 par ligne) */
@media (max-width: 575.98px) {
    .news-section .row > div[col-class] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/* Bannière de titre pour les pages internes */
.page-banner {
    background-color: #f8f9fa;
}

.page-banner h1 {
    color: #006600;
}

/* Style pour les cartes de formation */
.formations-list .card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.formations-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.formations-list .card-img-top {
    height: 200px;
    object-fit: cover;
}

.formations-list .card-body {
    padding: 1.5rem;
}

.formations-list .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.formations-list .card-text {
    color: #666;
    margin-bottom: 0.5rem;
}

.formations-list .btn-primary {
    background-color: #006600;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Style pour la section des frais */
.fees-section .card {
    border: none;
    border-radius: 10px;
}

.fees-section .card-title {
    color: #006600;
}

.fees-section .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background-color: transparent;
}

/* Responsive : 2 cartes par ligne sur tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .formations-list .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive : 1 carte par ligne sur mobile */
@media (max-width: 575.98px) {
    .formations-list .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/* Section "Notre Histoire" */
.history-section {
    padding: 4rem 0;
}

.history-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section "Notre Mission" */
.mission-section {
    padding: 4rem 0;
}

.feature-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    padding: 2rem;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon i {
    color: #006600;
}

/* Section "Notre Équipe" */
.team-section {
    padding: 4rem 0;
}

.team-section .card {
    border: none;
    transition: transform 0.3s;
}

.team-section .card:hover {
    transform: translateY(-5px);
}

.team-section .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Section "Nos Sites" */
.sites-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.sites-section .card {
    border: none;
    transition: transform 0.3s;
}

.sites-section .card:hover {
    transform: translateY(-5px);
}

.sites-section .card-body i {
    color: #006600;
}

/* Responsive : Adaptation pour tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .team-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .sites-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive : Adaptation pour mobile */
@media (max-width: 575.98px) {
    .team-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sites-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/* Section "Formulaire d'Inscription" */
.inscription-section {
    padding: 4rem 0;
}

.inscription-section .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inscription-section .card-body {
    padding: 2.5rem;
}

.inscription-section h2 {
    color: #006600;
}

.inscription-section .form-label {
    font-weight: 500;
    color: #333;
}

.inscription-section .form-control,
.inscription-section .form-select {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.inscription-section .form-control:focus,
.inscription-section .form-select:focus {
    border-color: #006600;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 0, 0.25);
}

.inscription-section .btn-primary {
    background-color: #006600;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.inscription-section .btn-primary:hover {
    background-color: #004d00;
}

/* Section "Instructions" */
.instructions-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.instructions-section .card {
    border: none;
    border-radius: 10px;
}

.instructions-section .card-title {
    color: #006600;
}

.instructions-section .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background-color: transparent;
}

/* Responsive : Adaptation pour tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .inscription-section .card-body {
        padding: 1.5rem;
    }
}

/* Responsive : Adaptation pour mobile */
@media (max-width: 575.98px) {
    .inscription-section .card-body {
        padding: 1rem;
    }

    .inscription-section h2 {
        font-size: 1.5rem;
    }
}


/* Section "Coordonnées et Formulaire" */
.contact-section {
    padding: 4rem 0;
}

.contact-section .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-section .card-body {
    padding: 2rem;
}

.contact-section h3 {
    color: #006600;
}

.contact-section .form-label {
    font-weight: 500;
    color: #333;
}

.contact-section .form-control,
.contact-section .form-select {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    border-color: #006600;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 0, 0.25);
}

.contact-section .btn-primary {
    background-color: #006600;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.contact-section .btn-primary:hover {
    background-color: #004d00;
}

.contact-section .social-icons a {
    color: #006600;
    transition: color 0.3s;
}

.contact-section .social-icons a:hover {
    color: #FFD700;
}

/* Section "Carte" */
.map-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.map-section .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive : Adaptation pour tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .contact-section .card-body {
        padding: 1.5rem;
    }
}

/* Responsive : Adaptation pour mobile */
@media (max-width: 575.98px) {
    .contact-section .card-body {
        padding: 1rem;
    }

    .contact-section h3 {
        font-size: 1.5rem;
    }
}


/* Section "Galerie d'Images" */
.gallery-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.gallery-section .btn-outline-primary {
    border-color: #006600;
    color: #006600;
}

.gallery-section .btn-outline-primary:hover,
.gallery-section .btn-outline-primary.active {
    background-color: #006600;
    color: white;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive : Adaptation pour tablette */
@media (min-width: 576px) and (max-width: 991.98px) {
    .gallery-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive : Adaptation pour mobile */
@media (max-width: 575.98px) {
    .gallery-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

