body { font-family: 'Segoe UI', sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 20px; }
header { text-align: center; margin-bottom: 30px; }
h1 { color: #d35400; }

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cartes compactes */
.card-compact {
    padding: 14px 18px;
}

.card-compact h2 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Section accueil condensée */
.accueil-intro {
    font-size: 0.95em;
    margin-bottom: 12px;
    color: #444;
}

.rgpd-notice {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 0;
}

/* Détails dépliables pour "Comment participer" */
.participation-details {
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
    margin-bottom: 10px;
    overflow: hidden;
}

.participation-details summary {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.participation-details summary::-webkit-details-marker { display: none; }
.participation-details summary small { font-weight: normal; color: #999; }

.participation-details[open] summary {
    border-bottom: 1px solid #eee;
}

.details-content {
    padding: 10px 14px;
    font-size: 0.9em;
    color: #555;
}

.details-content ul { padding-left: 20px; margin: 6px 0; }
.details-content p { margin: 6px 0; }

/* En-tête stats */
.stats-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.stats-header h2 { margin: 0; }
.total-line { margin: 0; font-size: 0.95em; }

/* Lien vers archives sous les stats */
.archives-teaser {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85em;
}

.archives-teaser a {
    color: #d35400;
    text-decoration: none;
}

.archives-teaser a:hover { text-decoration: underline; }

/* ========================================
   LISTE DES CAPTURES
======================================== */
.capture-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    background: #f8f9fa;
    font-size: 0.9em;
    flex-wrap: wrap;
    gap: 4px;
}

.capture-item:nth-child(even) { background: #fff3e0; }

.capture-date {
    color: #666;
    font-weight: bold;
    white-space: nowrap;
}

.capture-info {
    color: #333;
    text-align: right;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pagination button {
    width: auto;
    padding: 6px 14px;
    font-size: 0.85em;
    margin: 0;
    border-radius: 20px;
}

.pagination button:disabled {
    background: #ccc;
    cursor: default;
}

.page-indicator {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

/* ========================================
   BOUTON ARCHIVES DANS LA NAV
======================================== */
.nav-archives {
    border-color: #8e44ad !important;
}

input[type="file"] {
    background: #f8f9fa;
    border: 2px dashed #d35400;
    padding: 20px;
    cursor: pointer;
    text-align: center;
}
input[type="file"]:hover {
    background: #fff3e0;
}

/* Indicateur Météo */
.status-go { background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
    padding: 15px; 
    border-radius: 5px; 
    font-weight: bold;
}

.status-stop { background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
    padding: 15px; 
    border-radius: 5px; 
    font-weight: bold;
}

/* Formulaire */
input, button { width: 100%; 
    padding: 10px; 
    margin-top: 5px; 
    margin-bottom: 15px; 
    box-sizing: border-box; 
}

button { background-color: #d35400; 
    color: white; 
    border: none; 
    cursor: pointer; 
}
button:hover { background-color: #e67e22; }

/* Admin */
.admin-container { max-width: 400px; 
    margin: 50px auto; 
    text-align: center; 
    background: white; 
    padding: 30px; 
    border-radius: 10px;
}

/* Banderole d'alerte */
.alert-banner {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alert-banner i {
    font-size: 1.5em;
    color: #f39c12;
}

.container-boutons-nid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-nid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    color: white !important;
    transition: transform 0.2s;
}

.btn-nid:hover { transform: scale(1.05); }
.btn-email { background-color: #e74c3c; }
.btn-whatsapp { background-color: #25D366; }
.btn-sdis { background-color: #2980b9; }

@media (max-width: 400px) {
    .btn-nid { font-size: 0.8em; }
}

/* Navigation principale */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-button {
    background-color: #34495e;
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-button[href="dashboard.html"] { border-color: #f1c40f; }
.nav-button[href="index.html"] { border-color: #F54927; }
.nav-button[href="ressources.html"] { border-color: #3498db; }
.nav-button[href="archives.html"] { border-color: #8e44ad; }

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    background-color: #2c3e50;
    color: #f1c40f !important;
}

@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-button {
        width: 90%;
        justify-content: center;
    }
}

html { scroll-behavior: smooth; }

.btn-form-scroll {
    background-color: #f39c12 !important; 
    border-color: #e67e22 !important;
}
.btn-form-scroll:hover {
    background-color: #e67e22 !important;
    color: white !important;
}
.btn-form-scroll1 {
    background-color: #c0392b !important;
    border-color: #e67e22 !important;
}
.btn-form-scroll1:hover {
    background-color: #fdf2f2 !important;
    color: black !important;
}

/* ========================================
   BADGE DE NOTIFICATION
======================================== */
.nav-button {
    position: relative; /* Nécessaire pour que le badge se place par rapport au bouton */
}

.badge-nouveau {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #c0392b; /* Rouge vif */
    color: white;
    font-size: 0.65em;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* Animation pour attirer l'attention */
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}