/* --- CONFIGURATION DES COULEURS --- */
:root {
    --vert: #27ae60;
    --blanc: #ffffff;
    --noir: #1a1a1a;
    --rouge: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--blanc); color: var(--noir); overflow-x: hidden; }

.masquer{
    display: none;
}

/* BOX POP-UP */
.box-popup{
    display: none;
    position: sticky;
    background-color: rgba(0, 0, 0, 0.842);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: slideUp 0.3s;
}

.btn-boxpopup{
    padding: 5%;
    background-color: var(--blanc);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.842);
    border-radius: 10px;
    width: 60%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leCentre{
    width: 100%;
}

.champ{
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

/* --- PARTIE 1 : BARRE DE NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--noir);
    color: var(--blanc);
    position: fixed;
    width: 100%;
    z-index: 1000;
    /* height: 70px; */
}
/* .burger{
    display: none;
} */

.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.5rem;  text-decoration: none; color: var(--blanc);}
.logo-area span { color: var(--vert); }

.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; }
.nav-links a { color: var(--blanc); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-socials a:hover, .nav-links a:hover { color: var(--vert); }

/* Boutons Spécifiques */
.btn-connexion { background: var(--vert); padding: 8px 15px; border-radius: 5px; color: white !important; }
.btn-deconnexion { background: var(--rouge); padding: 8px 15px; border-radius: 5px; color: white !important; }

/* Menu Mobile (Burger) */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--blanc); margin: 5px; transition: 0.3s; }
/* --- RESPONSIVITÉ MOBILE --- */

@media (max-width: 950px) {
    .nav-links {
        position: absolute; right: 0; top: 70px; background: var(--noir);
        height: calc(100vh - 70px); width: 70%; flex-direction: column;
        padding: 40px 5%; transform: translateX(100%); transition: 0.5s;
        border-left: 2px solid var(--vert);
        width: 100%;
    }
    .nav-links.active { transform: translateX(0); }
    .burger { display: block; }
    .header-content h1 { font-size: 1.8rem; }
    .eiCache{
        display: none;
    }
}

/* --- PARTIE 2 : HEADER AVEC SLIDER --- */
header {
    height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanc);
    position: relative;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}
.header-content { position: relative; z-index: 2; padding: 20px; }
.header-logo { width: 120px; margin-bottom: 20px; }
.header-content h1 { font-size: 3rem; margin-bottom: 10px; }
.header-content p { font-style: italic; font-size: 1.2rem; margin-bottom: 30px; }

.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-h { padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; }
.btn-h-vert { background: var(--vert); color: white; }
.btn-h-blanc { background: var(--blanc); color: var(--noir); }

/* --- PARTIE 3 : ACTUALITÉS --- */
.section-padding { padding: 80px 10%; }
.title-part { text-align: center; margin-bottom: 50px; font-size: 2rem; }
.title-part span { border-bottom: 4px solid var(--vert); }

/* --- PARTIE 4 : VISION, OBJECTIF, MISSION --- */
.vom-section { display: flex; flex-wrap: wrap; background: var(--noir); color: white; }
.vom-box { flex: 1; min-width: 300px; padding: 50px; text-align: center; border: 0.5px solid #333; transition: 0.4s; }
.vom-box:hover { background: var(--vert); }
.vom-box h3 { margin-bottom: 15px; color: var(--vert); transition: 0.4s; }
.vom-box:hover h3 { color: white; }

/* --- PARTIE 5 : SECTIONS & INSCRIPTION --- */
.orientations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.orient-item { padding: 25px; border-left: 5px solid var(--vert); background: #f9f9f9; }
.orient-item h4 { color: var(--rouge); margin-bottom: 15px; }
.orient-item ul { list-style: none; }
.orient-item li { margin-bottom: 5px; }

.btn-inscription { 
    display: block; width: fit-content; margin: 0 auto; 
    background: var(--rouge); color: white; padding: 15px 40px; 
    border-radius: 50px; text-decoration: none; font-weight: bold; 
    font-size: 1.2rem; text-align: center; 
}

/* --- PARTIE 6 : FOOTER --- */
footer { background: var(--noir); color: white; padding: 40px 10%; text-align: center; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }
.footer-socials a { color: white; text-decoration: none; }

/* Style spécifique à la page de connexion */
.login-container {
    min-height: calc(100vh - 70px); /* Ajusté selon la hauteur de votre nav */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f4f4;
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url("{{ asset('image/image1.jpeg') }}");
    background-size: cover;
}

.login-card {
    background: var(--blanc);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 5px solid var(--vert);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h2 {
    text-align: center;
    color: var(--noir);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-card p {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--noir);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--vert);
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--vert);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #219150;
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--rouge);
    text-decoration: none;
    font-weight: bold;
}

.error-msg {
    color: var(--rouge);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Boutons */
.btn-action { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-noir { background: var(--noir); color: white;  text-decoration: none; text-align: center;}
.btn-vert { background: var(--vert); color: white;  text-decoration: none; text-align: center;}
.btn-action:hover { opacity: 0.8; transform: translateY(-2px);}

/* FLASH MESSAGE */

/* Conteneur principal du Toast */
.toast-box {
    position: fixed;
    top: 75px;
    right: 30px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    z-index: 9999;
    overflow: hidden;
    animation: slideIn 0.5s ease forwards;
}

/* Couleurs dynamiques */
.toast-success { border-left: 6px solid var(--vert); }
.toast-error { border-left: 6px solid var(--rouge); }

.toast-content { display: flex; align-items: center; gap: 15px; }
.toast-icon { font-size: 1.2rem; }
.toast-message { color: var(--noir); font-weight: 500; font-size: 0.95rem; }

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    margin-left: 20px;
}

/* Barre de progression qui diminue en 5s */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
}
.toast-success .toast-progress { background: var(--vert); }
.toast-error .toast-progress { background: var(--rouge); }

.toast-progress {
    animation: progress 5s linear forwards;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* BTN SPECIFIQUE */
.action-buttons { display: flex; gap: 10px; }
.btn-action { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; color: white; }
.btn-edit { background: var(--noir); text-decoration: none; text-align: center; }
.btn-delete { background: var(--rouge); text-decoration: none; text-align: center; }
.btn-demote { background: #555; }
.btn-action:hover { opacity: 0.8; transform: translateY(-2px); }

.link-read-more { color: var(--vert); text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.2s; }
.link-read-more:hover { color: var(--rouge); padding-left: 5px; }

/* EN MAJUSCULE */
.en-maj{
    text-transform: uppercase;
}
.lettre1-en-maj{
    text-transform: capitalize;
}

/* Grille article */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 60px; }

.news-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.card-img-box { position: relative; height: 220px; overflow: hidden; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; }

/*@media (max-width: 950px){*/
/*    .news-grid{*/
/*        position: relative;*/
/*        width: 100%;*/
/*    }*/
/*}*/

.category-tag { position: absolute; top: 15px; left: 15px; background: var(--vert); color: white; padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }

.news-card-body { padding: 25px; }
.post-date { color: #999; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.news-card-body h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--noir); line-height: 1.4; }
.news-card-body p { color: #666; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }


/* INFOS-GROUP */

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #444;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--vert);
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

@media (width < 550px){
    .news-card,
    .news-grid{
        /* border: 1px solid red; */
        display: block;
    }
    .news-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .radio-choice,
    .stepper-header{
        flex-direction: column;
    }
    .stepper-header .step{
        margin-bottom: 10px;
    }
}

@media (width < 375px){
    .input-group    {
        width: 90%;
    }
}
@media (width < 325px){
    .input-group    {
        width: 80%;
    }
}
@media (width < 315px){
    .input-group    {
        width: 70%;
    }
}

/* POUR LE RESPONSIVE */
@media (width < 500px){
    .responsive-force{
        flex-direction: column;
        flex-wrap: wrap;
    }
}