/* ==============================
   NAV MENU
============================== */

.nav-menu{
    display:flex;
    justify-content:center;
    background:white;
    padding:10px 0;
    border-top:1px solid #ccc;
    border-bottom:1px solid #ccc;
    flex-wrap:wrap;
}

.nav-menu a{
    margin:0 20px;
    text-decoration:none;
    color:#606060;
    font-weight:bold;
    text-transform:uppercase;
    font-size:.95em;
}

.nav-menu a i{
    margin-right:8px;
}


/* ==============================
   BASE GLOBALE
============================== */

body{
    font-family:"Segoe UI", Arial, sans-serif;
    background:#f3f7fa;
    margin:0;
}

main{
    padding:20px;
    max-width:1000px;
    margin:auto;
}

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

header{
    display:flex;
    justify-content:center;
    background:white;
    border-bottom:3px solid rgb(96,96,96);
    padding:15px 20px;
}

header a{
    display:flex;
    align-items:center;
    text-decoration:none;
    color:inherit;
}

header img{
    height:80px;
    margin-right:15px;
}

.header-text{
    display:flex;
    flex-direction:column;
}

header h1{
    font-size:2.2em;
    margin:0;
    color:rgb(96,96,96);
}

header h2{
    font-size:1.1em;
    margin:0;
    color:#555;
}

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

footer{
    text-align:center;
    padding:15px 10px;
    font-size:0.9em;
    color:#555;
    background:#fff;
    border-top:1px solid rgb(159,159,159);
    margin-top:30px;
}

footer a{
    color:rgb(30,176,188);
    text-decoration:none;
}

footer a:hover{
    text-decoration:underline;
}

/* ==============================
   STATS CARDS (COMMUN)
============================== */

.stats-container{
    display:flex;
    gap:20px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.stat-card{
    flex:1;
    min-width:200px;
    background:linear-gradient(135deg,#30b0bc,#1c7f88);
    color:#fff;
    padding:20px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:.3s;
    cursor:pointer;
}

.stat-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.25);
}

.stat-card i{
    font-size:1.8em;
    margin-bottom:8px;
    display:block;
}

.stat-card p{
    font-size:2em;
    margin:5px 0 0 0;
    font-weight:bold;
}

/* ==============================
   MESSAGES
============================== */

.message.success{color:green}
.message.error{color:red}

/* ==============================
   RESPONSIVE GLOBAL
============================== */
@media (max-width:768px){

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

    header img{
        margin:0 0 10px 0;
        height:70px;
    }

    /* 🔥 RÉTABLIR EXACTEMENT LE COMPORTEMENT INITIAL */

    .stats-container .stat-card{
        padding:10px 12px;
    }

    .stats-container .stat-card i{
        font-size:1.2em;
        margin-bottom:4px;
    }

    .stats-container .stat-card p{
        font-size:1.3em;
    }
}

/* ==============================
   FOOTER LOVE (soutien discret)
============================== */

.footer-love{
    margin-left:8px;
    color:#bbb;              /* gris discret par défaut */
    cursor:pointer;
    transition:.2s ease;
    font-size:0.9em;
}

.footer-love:hover{
    color:#1eb0bc;           /* ta couleur principale */
    transform:scale(1.1);
}

/* Si utilisateur a déjà soutenu */
.footer-love.active{
    color:#1eb0bc;
}

/* ==============================
   SWITCH COMMUN
============================== */
.mode-switch{
    display:flex;
    justify-content:center;
    background:#ffffff;
    border:2px solid #d9e3e5;
    border-radius:40px;
    padding:5px;
    width:fit-content;
    margin:25px auto 35px auto;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
}

.mode-item{
    text-decoration:none;
    padding:10px 22px;
    border-radius:30px;
    font-weight:600;
    color:#14737a;
    transition:all .2s ease;
}

.mode-item:hover{
    background:#f2f7f8;
}

.mode-item.active{
    background:#14737a;
    color:white;   /* texte blanc bien visible */
    box-shadow: 0 0 8px rgba(20,115,122,0.4); /* subtil effet */
}


/* ==============================
   SWITCH RESPONSIVE
============================== */
@media (max-width: 480px) {
    .mode-switch {
        flex-wrap: wrap;       /* permet aux boutons de passer à la ligne */
        gap: 6px;              /* espace entre les boutons */
        padding: 5px 8px;
        width: 100%;           /* prend toute la largeur du conteneur */
        justify-content: center;
    }

    .mode-item {
        padding: 6px 12px;     /* réduit le padding pour mobile */
        font-size: 13px;       /* texte plus petit */
        flex: 1 1 auto;        /* pour que les boutons se partagent l'espace si possible */
        text-align: center;
        white-space: nowrap;    /* empêche le texte de se couper */
    }
}
