/* ===========================
   CFMAD - Catalogue Formations
   Version 1.0
=========================== */

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

body{

    font-family:Segoe UI,Arial,sans-serif;
    background:#F8FAFC;
    color:#333;
    line-height:1.5;

}


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

header{

    background:linear-gradient(135deg,#1E5D74,#4A90A4);
    color:white;
    padding:45px 20px;
    text-align:center;

}

header h1{

    font-size:42px;
    font-weight:700;
    margin-bottom:12px;
    letter-spacing:.5px;

}

header p{

    font-size:20px;
    color:rgba(255,255,255,.95);

}



.logo {
width: 80px;
height: auto;
}
 
.header-container h1 {
margin: 0;
}
 
.header-container p {
margin: 5px 0 0 0;
}

/* ===========================
   NAVIGATION
=========================== */

nav{

    background:white;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    padding:18px;
    box-shadow:0 1px 5px rgba(0,0,0,.08);

}

nav a{

    text-decoration:none;
    color:#1E5D74;
    font-weight:bold;
    padding:10px 20px;
    border-radius:8px;
    transition:.25s;

}

nav a:hover{

    background:#1E5D74;
    color:white;

}


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

main{

    width:95%;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;

}

section{

    margin-bottom:60px;

}

section h2{

    color:#1E5D74;
    margin-bottom:20px;
    font-size:30px;

}


/* ===========================
   CARTES
=========================== */

#formationsContainer{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
   margin-top:40px;

}

.card{

    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
    height:100%;

}

.card:hover{

    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.card img{

    width:100%;
    height:180px;
    object-fit:cover;

}

.card-content{

    padding:28px;
    display:flex;
    flex-direction:column;
    flex:1;

}

.card h2{

    color:#1E5D74;
    margin-bottom:10px;
font-size:30px;
}

.card p{

    font-size:15px;
    color:#555;
    margin-bottom:14px;

}

.card button{

    margin-top:auto;

    width:100%;

    padding:15px;

    border:none;

    border-radius:10px;

    background:#005A8D;

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.card button:hover{

    background:#0A6FAE;

    transform:scale(1.02);

}


.card hr{

    border:none;

    border-top:1px solid #E6E6E6;

    margin:18px 0;

}

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

footer{

    background:#1E5D74;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:60px;

}


/* ===========================
   Responsive
=========================== */

@media(max-width:700px){

header h1{
font-size:28px;
}
section h2{
font-size:24px;
}
}
   
/* ===========================
   FILTRES
=========================== */

.filtres{

display:flex;

flex-wrap:wrap;

gap:12px;

justify-content:center;

margin:30px auto;

}

.filtres button{

background:white;

border:2px solid #1E5D74;

color:#1E5D74;

padding:10px 18px;

border-radius:25px;

cursor:pointer;

font-weight:bold;

transition:.25s;

}

.filtres button:hover{

background:#1E5D74;

color:white;

}


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

.hero{

    background:linear-gradient(135deg,#0A6FAE,#1283C7);
    color:white;

    padding:60px;

    border-radius:18px;

    text-align:center;

    margin:40px auto;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.hero h2{

    color:white;
    font-size:42px;
    margin-bottom:20px;

}

.hero p{

    color:rgba(255,255,255,.95);
    max-width:850px;
    margin:auto;
    font-size:20px;
    line-height:1.7;

}


.recherche{

    text-align:center;
    margin:35px 0;

}

#searchInput{

    width:500px;
    max-width:90%;

    padding:15px 20px;

    font-size:16px;

    border:2px solid #d8d8d8;

    border-radius:40px;

    outline:none;

}

#searchInput:focus{

    border-color:#0A6FAE;

}


.badge{

    display:inline-block;

    background:#EAF4FB;

    color:#005A8D;

    padding:6px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    margin-bottom:18px;

}


.filtres button.actif{

    background:#1E5D74;

    color:white;

}


/* ====================================
   FICHE FORMATION
==================================== */

.banniere-formation{

    max-width:900px;
    margin:40px auto;
    text-align:center;

}

.banniere-formation img{

    max-width:100%;
    max-height:350px;

    width:auto;
    height:auto;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.fiche{

    max-width:1100px;

    margin:auto;

}

.fiche section{

    background:white;

    padding:35px;

    margin-bottom:30px;

    border-radius:18px;

    box-shadow:0 6px 20px rgba(0,0,0,.08);

}

.fiche h2{

    color:#1E5D74;

    margin-bottom:20px;

}

.fiche p{

    line-height:1.8;

    font-size:17px;

}

.fiche button{

    background:#1E5D74;

    color:white;

    padding:16px 30px;

    border:none;

    border-radius:10px;

    font-size:16px;

    cursor:pointer;

    transition:.25s;

}

.fiche button:hover{

    background:#0A6FAE;

}


/* ===========================
   COULEURS DES CATEGORIES
=========================== */

.cat-prevention{

    background:#D9F2E6;
    color:#237A57;

}

.cat-cadre{

    background:#E5ECF9;
    color:#355C9B;

}

.cat-equipe{

    background:#FFF3D9;
    color:#B67800;

}

.cat-domicile{

    background:#F7E4F2;
    color:#8B3F7A;

}

.cat-pack{

    background:#FFE3E3;
    color:#B33A3A;

}

/* Couleurs des boutons de catégories */

.filtres button.cat-prevention{
    background:#D9F2E6;
    color:#237A57;
    border-color:#237A57;
}

.filtres button.cat-cadre{
    background:#E5ECF9;
    color:#355C9B;
    border-color:#355C9B;
}

.filtres button.cat-equipe{
    background:#FFF3D9;
    color:#B67800;
    border-color:#B67800;
}

.filtres button.cat-domicile{
    background:#F7E4F2;
    color:#8B3F7A;
    border-color:#8B3F7A;
}

.filtres button.cat-pack{
    background:#FFE3E3;
    color:#B33A3A;
    border-color:#B33A3A;
}

/* ===========================
   BOUTON RETOUR
=========================== */

.retour{
    text-align:center;
    margin:50px 0;
}

.btn-retour{
    display:inline-block;
    background:#1E5D74;
    color:white;
    padding:14px 28px;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
    transition:.25s;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.btn-retour:hover{
    background:#0A6FAE;
    transform:translateY(-2px);

}


/* ===========================
   MINI TABLEAU DE BORD
=========================== */

.stats{

    max-width:900px;

    margin:25px auto 35px;

    background:white;

    border-radius:14px;

    display:flex;

    justify-content:space-around;

    align-items:center;

    padding:15px 20px;

    box-shadow:0 6px 18px rgba(0,0,0,.08);

    flex-wrap:wrap;

    gap:20px;

}

.stats div{

    color:#555;

    font-size:15px;

}

.stats strong{

    color:#1E5D74;

    font-size:22px;

}

/* =====================================
   PAGE DEMANDE
===================================== */

.demande-page{

    max-width:850px;
    margin:50px auto;
    padding:20px;

}

.demande-card{

    background:white;
    padding:40px;
    border-radius:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);

}

.formation-rappel{

    background:linear-gradient(135deg,#0A6FAE,#1283C7);
    color:white;
    padding:25px;
    border-radius:14px;
    margin-bottom:35px;

}

.formation-rappel span{

    display:block;
    opacity:.9;
    font-size:14px;
    margin-bottom:8px;

}

.formation-rappel h2{

    color:white;
    margin:0;
    font-size:30px;

}

#demandeForm{

    display:flex;
    flex-direction:column;
    gap:18px;

}

#demandeForm label{

    font-weight:600;
    color:#1E5D74;

}

#demandeForm input,
#demandeForm textarea{

    padding:15px;
    border:2px solid #DDE5EC;
    border-radius:10px;
    font-size:16px;
    transition:.25s;

}

#demandeForm input:focus,
#demandeForm textarea:focus{

    border-color:#0A6FAE;
    outline:none;

}

#demandeForm textarea{

    resize:vertical;
    min-height:140px;

}

#demandeForm button{

    margin-top:15px;
    padding:16px;
    border:none;
    border-radius:10px;
    background:#0A6FAE;
    color:white;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;

}

#demandeForm button:hover{

    background:#1E5D74;
    transform:translateY(-2px);

}


/* ===================================
   PAGE CONFIRMATION
=================================== */

.confirmation{

    max-width:850px;
    margin:70px auto;
    padding:20px;

}

.confirmation-card{

    background:white;
    border-radius:20px;
    padding:60px;
    text-align:center;
    box-shadow:0 12px 35px rgba(0,0,0,.08);

}

.confirmation-icon{

    font-size:70px;
    margin-bottom:20px;

}

.confirmation h2{

    color:#1E5D74;
    margin-bottom:25px;

}

.confirmation p{

    font-size:18px;
    color:#555;
    line-height:1.8;

}

/* =====================================
   CONTACT CFMAD
===================================== */

.contact-cfmad{

    background:#EEF7FC;

    border-left:6px solid #0A6FAE;

    padding:30px;

    border-radius:15px;

    margin:40px 0;

}

.contact-cfmad h2{

    color:#0A6FAE;

    margin-bottom:15px;

}

.contact-cfmad p{

    line-height:1.8;

}

.contact-infos{

    margin-top:20px;

    display:flex;

    flex-wrap:wrap;

    gap:30px;

    font-weight:600;

}


/* =====================================
   FORMATIONS SUR MESURE
===================================== */

.sur-mesure{

    margin:80px 0;

    text-align:center;

}

.sur-mesure-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin:40px 0;

}

.sur-mesure-grid div{

    background:white;

    padding:30px;

    border-radius:16px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.sur-mesure-grid h3{

    color:#0A6FAE;

    margin-bottom:15px;

}

.cta-sur-mesure{

    font-size:20px;

    font-weight:600;

    color:#1E5D74;

}



html{

    scroll-behavior:smooth;

}

.hero-actions{

    margin-top:35px;

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.btn-hero{

    display:inline-block;

    padding:15px 28px;

    border-radius:10px;

    text-decoration:none;

    font-weight:bold;

    background:white;

    color:#0A6FAE;

    transition:.25s;

}

.btn-hero:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 20px rgba(0,0,0,.15);

}

.btn-secondaire{

    background:#1E5D74;

    color:white;

}
