/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --primary:#002c69;
    --secondary:#22a8d9;
    --white:#ffffff;
    --light:#f5f7fb;
    --text:#1f2937;
    --grey:#64748b;
    --shadow:0 10px 30px rgba(0,0,0,0.08);
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--text);
}

/* =========================
   HEADER
========================= */

.header{
    width:90%;
    max-width:1400px;
    margin:20px auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 30px;

    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);

    border-radius:18px;

    box-shadow:var(--shadow);

    position:sticky;
    top:15px;
    z-index:1000;
}

.brand{
    display:flex;
    align-items:center;
    gap:20px;
    text-decoration:none;
}

.logos{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.logos img{
    width:70px;
    height:70px;
    object-fit:contain;
}



.brand-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.brand-text h1{
    color:var(--primary);
    font-size:1.8rem;
    font-weight:700;
    line-height:1.2;
    margin-bottom:5px;
}

.brand-text p{
    color:var(--grey);
    font-size:0.95rem;
}

nav{
    display:flex;
    align-items:center;
    gap:15px;
}

nav a{
    text-decoration:none;
    color:var(--primary);
    font-weight:600;
    transition:.3s;
}

nav a:hover,
nav a.active{
    color:var(--secondary);
}

/* =========================
   HERO
========================= */

.hero{
    width:90%;
    max-width:1400px;

    margin:auto;

    height:78vh;

    border-radius:25px;

    overflow:hidden;

    background:url("png/paps.jpg");
    background-size:cover;
    background-position:center;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.15);
}

.hero-overlay{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;

    padding:80px;

    background:
    linear-gradient(
        90deg,
        rgba(0,44,105,0.95),
        rgba(0,44,105,0.70),
        rgba(0,44,105,0.15)
    );
}

.hero-content{
    max-width:650px;
    color:white;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:10px 18px;

    border-radius:50px;

    background:rgba(255,255,255,0.15);

    backdrop-filter:blur(10px);

    margin-bottom:25px;
}

.hero-badge img{
    width:18px;
    height:18px;
}

.hero-content h2{
    font-size:5rem;
    font-weight:800;
    line-height:1;
    margin-bottom:20px;
}

.hero-content p{
    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

/* =========================
   BUTTONS
========================= */

.btn-primary,
.btn-secondary{
    padding:14px 28px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

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

.btn-secondary{
    border:2px solid white;
    color:white;
}

.btn-primary:hover,
.btn-secondary:hover{
    transform:translateY(-4px);
}

/* =========================
   BANNER
========================= */

.information-banner{
    width:90%;
    max-width:1400px;

    margin:30px auto;

    background:white;

    border-left:5px solid var(--secondary);

    border-radius:14px;

    padding:18px 25px;

    box-shadow:var(--shadow);
}

.information-banner p{
    color:var(--grey);
}

/* =========================
   STATS
========================= */

.stats{
    width:90%;
    max-width:1400px;

    margin:60px auto;

    display:grid;
    grid-template-columns:repeat(4,1fr);

    gap:25px;
}

.stat-card{
    background:white;

    padding:35px;

    border-radius:20px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card span{
    display:block;

    font-size:2.8rem;

    font-weight:700;

    color:var(--primary);

    margin-bottom:10px;
}

.stat-card p{
    color:var(--grey);
}

/* =========================
   SECTION TITLE
========================= */

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:2.8rem;
    color:var(--primary);
}

.section-title p{
    color:var(--grey);
    margin-top:10px;
}

/* =========================
   MISSIONS
========================= */

.missions{
    width:90%;
    max-width:1400px;

    margin:80px auto;
}

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

    gap:30px;
}

.mission-card{
    background:white;

    padding:40px;

    border-radius:20px;

    text-decoration:none;

    color:inherit;

    box-shadow:var(--shadow);

    transition:.3s;
}

.mission-card:hover{
    transform:translateY(-8px);
}

.number{
    width:55px;
    height:55px;

    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#e8f3ff;

    color:var(--primary);

    font-weight:700;

    margin-bottom:20px;
}

.mission-card h3{
    margin-bottom:15px;
    color:var(--primary);
}

.mission-card p{
    line-height:1.8;
    color:var(--grey);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero{
    width:90%;
    max-width:1400px;
    margin:30px auto;

    min-height:400px;

    border-radius:30px;

    background:
    linear-gradient(
        rgba(0,44,105,.88),
        rgba(0,44,105,.88)
    ),
    url("png/secours.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    box-shadow:var(--shadow);
}

.contact-hero-content{
    max-width:850px;
    padding:40px;
    color:white;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:12px 22px;

    border-radius:50px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(12px);
}

.badge img{
    width:22px;
    height:22px;
}

.contact-hero-content h2{
    margin:25px 0 15px;
    font-size:4rem;
    font-weight:800;
}

.contact-hero-content p{
    font-size:1.15rem;
    line-height:1.8;
}

.contact-container{
    width:90%;
    max-width:1400px;

    margin:70px auto;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:30px;
}

.contact-card{
    background:white;

    padding:40px 30px;

    border-radius:25px;

    border-top:6px solid var(--secondary);

    box-shadow:var(--shadow);

    transition:.3s;
}

.contact-card:hover{
    transform:translateY(-8px);
}

.contact-card h3{
    color:var(--primary);

    text-align:center;

    margin-bottom:30px;

    font-size:1.5rem;
}

.contact-person{
    text-align:center;
}

.contact-person h4{
    color:var(--primary);

    font-size:1.4rem;

    margin-bottom:10px;
}

.contact-person p{
    color:var(--grey);

    margin-bottom:25px;
}

.contact-person a{
    display:block;

    text-decoration:none;

    color:var(--primary);

    background:#f8fafc;

    padding:15px;

    border-radius:14px;

    margin-bottom:12px;

    font-weight:600;

    word-break:break-word;

    transition:.3s;
}

.contact-person a:hover{
    background:var(--primary);
    color:white;
}

/* =========================
   HEADER LOGO FIX
========================= */

.brand img{
    width:75px;
    height:75px;
    object-fit:contain;
    flex-shrink:0;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .contact-container{
        grid-template-columns:1fr;
    }

    .contact-hero-content h2{
        font-size:3rem;
    }
}

@media(max-width:768px){

    .header{
        flex-direction:column;
        text-align:center;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .brand{
        flex-direction:column;
    }

    .brand-text h1{
        font-size:1.2rem;
    }

    .contact-hero{
        min-height:auto;
        padding:60px 20px;
    }

    .contact-hero-content h2{
        font-size:2.2rem;
    }

    .contact-hero-content p{
        font-size:1rem;
    }
}

/* =========================
   PAGE FORMATIONS PRO
========================= */

.formations-hero{
    width:90%;
    max-width:1400px;
    margin:auto;
    height:65vh;
    border-radius:25px;
    overflow:hidden;

    background:url("png/secours.jpg");
    background-size:cover;
    background-position:center;

    box-shadow:var(--shadow);
}

.formations-hero-overlay{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;

    padding:80px;

    background:linear-gradient(
        90deg,
        rgba(0,44,105,.95),
        rgba(0,44,105,.75),
        rgba(0,44,105,.20)
    );
}

.formations-hero-content{
    max-width:700px;
    color:white;
}

.formations-hero-content h2{
    font-size:4.5rem;
    line-height:1;
    margin:25px 0;
}

.formations-hero-content p{
    font-size:1.1rem;
    line-height:1.9;
}

.formations-intro{
    width:90%;
    max-width:1200px;
    margin:80px auto 40px;
}

.formations-grid{
    width:90%;
    max-width:1400px;

    margin:0 auto 80px;

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

.formation-pro-card{
    background:white;
    padding:40px;

    border-radius:25px;

    text-decoration:none;
    color:inherit;

    box-shadow:var(--shadow);

    transition:.3s;
}

.formation-pro-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.formation-tag{
    display:inline-block;

    padding:8px 15px;

    border-radius:50px;

    background:#e8f3ff;

    color:var(--primary);

    font-size:.85rem;
    font-weight:600;

    margin-bottom:20px;
}

.formation-pro-card h3{
    color:var(--primary);
    font-size:2.5rem;
}

.formation-pro-card h4{
    margin:10px 0 20px;
    color:var(--text);
}

.formation-pro-card p{
    color:var(--grey);
    line-height:1.8;
}

.formation-link{
    display:inline-block;
    margin-top:25px;

    color:var(--secondary);

    font-weight:700;
}

.advantages{
    width:90%;
    max-width:1400px;

    margin:80px auto;
}

.advantages-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.advantage-card{
    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.3s;
}

.advantage-card:hover{
    transform:translateY(-6px);
}

.advantage-card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.advantage-card p{
    color:var(--grey);
    line-height:1.8;
}

.formation-contact{
    width:90%;
    max-width:1100px;

    margin:80px auto;

    text-align:center;

    background:white;

    padding:60px;

    border-radius:25px;

    box-shadow:var(--shadow);
}

.formation-contact h2{
    color:var(--primary);
    font-size:2.5rem;
    margin-bottom:20px;
}

.formation-contact p{
    color:var(--grey);

    max-width:700px;

    margin:0 auto 30px;

    line-height:1.8;
}

/* =========================
   FOOTER
========================= */

footer{
    margin-top:80px;
    background:var(--primary);
    color:white;
}

.footer-container{
    width:100%;
    padding:50px 60px;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.footer-container > div:first-child{
    flex:1;
    text-align:center;
}

.footer-container > div:last-child{
    margin-left:auto;
    text-align:left;
    min-width:220px;
}

.footer-container h3{
    margin-bottom:18px;
}

.footer-container p{
    margin-bottom:10px;
    opacity:0.9;
}

.footer-container a{
    display:block;
    color:white;
    text-decoration:none;
    margin-bottom:10px;
    opacity:0.9;
    transition:.3s;
}

.footer-container a:hover{
    opacity:1;
    transform:translateX(5px);
}

.footer-bottom{
    text-align:center;
    padding:20px;
    border-top:1px solid rgba(255,255,255,0.15);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .hero-content h2{
        font-size:3.5rem;
    }

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

    .contact-container{
        grid-template-columns:1fr;
    }

    .footer-container{
        flex-direction:column;
        gap:35px;
        text-align:center;
    }

    .footer-container > div:last-child{
        margin-left:0;
        text-align:center;
        width:100%;
    }
}

@media(max-width:768px){

        .header{
        position:static;
    }



    .brand{
        flex-direction:column;
        gap:15px;
    }

    .brand-text h1{
        font-size:1.2rem;
    }

    .logos img{
        width:60px;
        height:60px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        height:auto;
    }

    .hero-overlay{
        padding:50px 25px;
    }

    .hero-content h2{
        font-size:2.6rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .formations-page{
        grid-template-columns:1fr;
    }

    .contact-hero{
        min-height:auto;
        padding:60px 20px;
    }

    .contact-hero-content h2{
        font-size:2.2rem;
    }

    .contact-hero-content p{
        font-size:1rem;
    }
.formations-hero{
    height:auto;
}

.formations-hero-overlay{
    padding:50px 25px;
}

.formations-hero-content h2{
    font-size:2.8rem;
}

.formations-grid{
    grid-template-columns:1fr;
}

.formation-contact{
    padding:40px 25px;

}

}
/* =========================
   PAGE DETAIL FORMATION
========================= */

.formation-hero-detail{
    width:90%;
    max-width:1400px;

    margin:auto;

    min-height:420px;

    border-radius:25px;

    overflow:hidden;

    background:
    linear-gradient(
        rgba(0,44,105,.88),
        rgba(0,44,105,.88)
    ),
    url("png/secours.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    box-shadow:var(--shadow);
}

.formation-hero-detail-content{
    max-width:900px;
    padding:40px;
    color:white;
}

.formation-badge{
    display:inline-block;

    padding:12px 24px;

    border-radius:50px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(12px);

    font-weight:600;

    margin-bottom:25px;
}

.formation-hero-detail-content h2{
    font-size:5rem;
    font-weight:800;
    line-height:1;

    margin-bottom:15px;
}

.formation-hero-detail-content p{
    font-size:1.3rem;
    opacity:.95;
}

/* =========================
   CONTENU FORMATION
========================= */

.formation-content{
    width:90%;
    max-width:1400px;

    margin:80px auto;

    display:grid;
    grid-template-columns:320px 1fr;

    gap:40px;
}

/* =========================
   INFOS RAPIDES
========================= */

.formation-info{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.info-card{
    background:white;

    padding:30px;

    border-radius:20px;

    border-left:5px solid var(--secondary);

    box-shadow:var(--shadow);

    transition:.3s;
}

.info-card:hover{
    transform:translateY(-5px);
}

.info-card h3{
    color:var(--primary);

    margin-bottom:10px;

    font-size:1.1rem;
}

.info-card p{
    color:var(--grey);

    font-weight:600;
}

/* =========================
   TEXTE FORMATION
========================= */

.formation-text{
    background:white;

    padding:50px;

    border-radius:25px;

    box-shadow:var(--shadow);
}

.formation-text h3{
    color:var(--primary);

    font-size:1.8rem;

    margin-top:40px;
    margin-bottom:20px;
}

.formation-text h3:first-child{
    margin-top:0;
}

.formation-text p{
    color:var(--grey);

    line-height:1.9;

    margin-bottom:20px;
}

.formation-text ul{
    padding-left:25px;
}

.formation-text li{
    margin-bottom:12px;

    color:var(--grey);

    line-height:1.7;
}

.formation-text li::marker{
    color:var(--secondary);
}

/* =========================
   CONTACT FORMATION
========================= */

.formation-contact-box{
    width:90%;
    max-width:1000px;

    margin:80px auto;

    padding:60px;

    background:white;

    border-radius:25px;

    text-align:center;

    box-shadow:var(--shadow);
}

.formation-contact-box h4{
    color:var(--primary);

    font-size:2rem;

    margin-bottom:20px;
}

.formation-contact-box p{
    color:var(--grey);

    max-width:700px;

    margin:0 auto 30px;

    line-height:1.8;
}

.formation-contact-btn{
    display:inline-block;

    padding:15px 35px;

    border-radius:50px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.formation-contact-btn:hover{
    background:var(--secondary);

    transform:translateY(-4px);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .formation-content{
        grid-template-columns:1fr;
    }

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

    .formation-hero-detail-content h2{
        font-size:3.8rem;
    }
}

@media(max-width:768px){

    .formation-hero-detail{
        min-height:auto;
        padding:70px 20px;
    }

    .formation-hero-detail-content h2{
        font-size:2.8rem;
    }

    .formation-hero-detail-content p{
        font-size:1rem;
    }

    .formation-text{
        padding:30px 25px;
    }

    .formation-contact-box{
        padding:40px 25px;
    }

    .formation-contact-box h4{
        font-size:1.6rem;
    }

    .formation-info{
        grid-template-columns:1fr;
    }
}
