/* --- BASE & MISE EN PAGE --- */
body { 
    background: #f4f7f6; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0;
    padding: 20px;
}

.suivi-card { 
    max-width: 550px; 
    margin: 60px auto; 
    background: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    text-align: center; 
    border-top: 6px solid #108204; 
}

/* --- FORMULAIRE DE RECHERCHE --- */
.input-code { 
    width: 100%; 
    padding: 15px; 
    font-size: 22px; 
    border: 2px solid #eee; 
    border-radius: 8px; 
    margin: 20px 0; 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: bold; 
    color: #333; 
    transition: 0.3s; 
    box-sizing: border-box;
}

.input-code:focus { 
    border-color: #108204; 
    outline: none; 
    background: #fafffa; 
}

.btn-check { 
    background: #108204; 
    color: white; 
    border: none; 
    padding: 15px; 
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 8px; 
    cursor: pointer; 
    width: 100%; 
    transition: 0.3s; 
}

.btn-check:hover { 
    background: #0d6b03; 
    transform: translateY(-2px); 
}

/* --- BOUTON DE TÉLÉCHARGEMENT PDF --- */
.btn-download { 
    display: block; 
    margin-top: 20px; 
    background: #108204; 
    color: white; 
    text-decoration: none !important; 
    padding: 15px; 
    border-radius: 8px; 
    font-weight: bold; 
    text-align: center; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(16, 130, 4, 0.15);
}

.btn-download:hover { 
    background: #0d6b03; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(16, 130, 4, 0.25);
    color: white;
}

/* --- MESSAGES D'ERREUR --- */
.error-msg {
    color: #dc3545; 
    margin-top: 20px; 
    font-weight: bold; 
    background: #fdf2f2; 
    padding: 12px; 
    border-radius: 8px;
    border: 1px solid #ffdada;
}

/* --- AFFICHAGE DU RÉSULTAT --- */
.result-box { 
    margin-top: 30px; 
    padding: 25px; 
    border-radius: 12px; 
    text-align: left; 
    animation: fadeIn 0.5s ease; 
}

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

.project-info { 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

/* --- BADGES ET COULEURS DE STATUT --- */
.status-badge { 
    display: inline-block; 
    padding: 8px 18px; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 13px; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.status-attente { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-valide { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.status-refuse { background: #f8d7da; color: #842029; border: 1px solid #f5c6cb; }

/* --- MOTIF DE REFUS --- */
.motif-box { 
    background: rgba(255,255,255,0.6); 
    border-radius: 8px; 
    padding: 15px; 
    margin-top: 15px; 
    border-left: 4px solid #dc3545; 
    color: #333; 
}

/* --- PIED DE PAGE --- */
.footer-links {
    margin-top: 35px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
}

.link-primary { color: #108204 !important; font-weight: 600; }
.link-secondary { color: #666 !important; }
.separator { margin: 0 10px; color: #ccc; }
