/* =========================
   PALETTE DE COULEURS
========================= */
:root {
    --orange: #ee6e2c;
    --jaune: #f9b623;
    --bleu: #006682;
    --vert: #005762;
    --gris: #f7f7f7;
}

/* =========================
   BASE
========================= */
html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #222;
    scroll-behavior: smooth;
}

section,
header {
    scroll-margin-top: 90px;
    /* décalage pour navbar fixe */
}

.text-bleu {
    color: var(--bleu) !important;
}

.text-orange {
    color: var(--orange) !important;
}

.bg-gris-clair {
    background-color: var(--gris) !important;
}

/* =========================
   NAVBAR
========================= */

.logo {
    width: 100px;
    height: auto;
}


.navbar {
    transition: box-shadow .25s ease;
}

.navbar .nav-link {
    color: var(--bleu) !important;
    font-weight: 500;
    transition: color .2s ease;
}

.navbar .nav-link:hover {
    color: var(--orange) !important;
}

.navbar-brand {
    letter-spacing: .3px;
    width: 100px;
    height: auto;
    max-height: 60px;
}

/* =========================
   HERO
========================= */
.hero {
    padding: 130px 0 100px;
    background:
        url('../img/hero-bling.jpg') center center / cover no-repeat;
    color: #fff;
    text-align: center;
}


.hero h1 {
    font-weight: 800;
    letter-spacing: .2px;
}

.hero .btn {
    background-color: var(--orange);
    border: none;
}

.hero .btn:hover {
    background-color: var(--jaune);
    color: #111;
}

/* =========================
   CARTES "POURQUOI NOUS CHOISIR"
========================= */
.card-why {
    background-color: #fff;
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 280px;
}

.card-why i {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--orange);
}

.card-why h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bleu);
    margin-bottom: 10px;
}

.card-why p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.card-why:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =========================
   CARTES FORMATIONS
========================= */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 12px 16px 16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.nav-item.dropdown .dropdown-menu {
    display: none;
}

.nav-item.dropdown.show .dropdown-menu {
    display: block;
}

.navbar .dropdown-menu {
    background-color: #f7f7f7;
    /* gris clair */
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown-item {
    color: var(--bleu);
    padding: 10px 20px;
    transition: background 0.3s, color 0.3s;
}

.navbar .dropdown-item:hover {
    background-color: var(--orange);
    color: #fff;
}

/* animation à l'ouverture du dropdown */
.navbar .dropdown-menu {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar .dropdown.show .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
}



.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}

.card-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    text-align: center;
    padding: 12px;
}





/* Images dans les cards */
.img-formation {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fafafa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
}

/* =========================
   CARTES STATISTIQUES
========================= */
.stat-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bleu);
    margin: 10px 0;
}

.stat-card p {
    font-size: 1rem;
    color: #555;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =========================
   ANIMATIONS (apparition + stats incrémentées)
========================= */
.fade-in {
    opacity: 0;
    /* invisible au départ */
    visibility: hidden;
    /* caché */
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, visibility 0.7s ease-out;
}


.fade-in.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================
   LAYOUT FLEX (pour égaliser les cartes)
========================= */
.row-equal {
    display: flex;
    flex-wrap: wrap;
}

.row-equal>[class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}

.row-equal .card {
    flex: 1 1 auto;
}


/* bouton whatzAp pour contact direct */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    /* distance du bas de l'écran */
    right: 20px;
    /* distance de la droite */
    background-color: #25D366;
    /* vert WhatsApp */
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9999;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.whatsapp-btn {
    right: 90px;
    /* décale vers la gauche pour laisser de l'espace au bouton Top */
    bottom: 20px;
    /* le reste reste pareil */
}



/* =========================
   FOOTER
========================= */
.footer {
    font-size: 0.95rem;
    background: var(--vert);
    color: #bbb;
    padding: 40px 0;
}

.footer h5 {
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.footer p,
.footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--orange);
}

/* Icônes réseaux sociaux */
.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    text-align: center;
    margin-right: 10px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: var(--bleu);
    transform: scale(1.1);
}

/* Bouton back to top */
#back-to-top {
    position: fixed;
    right: 20px;
    width: 60px;
    bottom: 25px;
    display: none;
    z-index: 1000;
    border-radius: 50%;
    text-decoration: none;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: var(--bleu);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

#back-to-top:hover {
    background: var(--orange);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .img-formation {
        height: 150px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .card-why {
        min-height: 250px;
        padding: 20px 10px;
    }

    .card-why h5 {
        font-size: 1.1rem;
    }

    .card-why p {
        font-size: 0.9rem;
    }

    .img-formation {
        height: 140px;
        padding: 12px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        .hero {
            padding: 100px 0 80px;
            /* moins de padding sur mobile */
            background-size: cover;
            /* assure que l’image couvre toujours toute la section */
        }
    }

    .img-formation {
        height: 120px;
        padding: 10px;
    }
}