/* style.css - Charte "Le Grand Format" - Version Administration Complète */

:root {
    --minete-green-dark: #1a7a3a;
    --minete-green-light: #4caf50;
    --minete-blue: #005696;
    --minete-bg: #f4f7f9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--minete-bg);
    color: #333;
    margin: 0;
    padding: 0;
}

/* --- LE HEADER : L'ASTUCE DU CADRAGE --- */
header {
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
    border-bottom: 5px solid var(--minete-green-dark);
    padding: 30px 0;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-side.left {
    display: flex;
    justify-content: flex-end; 
    padding-right: 40px;
}

.header-side.right {
    display: flex;
    justify-content: flex-start;
    padding-left: 40px;
}

.side-logo {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.header-center {
    text-align: center;
    min-width: 350px;
}

.header-center .republique {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--minete-green-dark);
    text-transform: uppercase;
    margin-bottom: 5px;
}

h1 {
    color: var(--minete-blue);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.subtitle {
    color: var(--minete-green-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.tagline-container {
    text-align: center;
    margin-top: 20px;
}

.tagline {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* --- CONTENU PRINCIPAL --- */
main {
    max-width: 850px;
    margin: -30px auto 50px;
    padding: 0 20px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 35px;
    border-top: 8px solid var(--minete-blue);
}

h2 {
    color: var(--minete-green-dark);
    font-size: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- LISTE DES FICHIERS ET DOSSIERS --- */
.file-list {
    list-style: none;
    padding: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f9fdfa;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.file-item:hover {
    background: #fff;
    border-color: var(--minete-green-light);
    transform: translateX(5px);
}

.file-info a {
    text-decoration: none;
    color: var(--minete-blue);
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* --- BADGES ET BOUTONS --- */
.download-badge {
    background: var(--minete-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    justify-content: center;
    transition: background 0.3s ease;
}

.file-item:hover .download-badge {
    background: var(--minete-green-dark);
}

/* --- STYLES ADMINISTRATION --- */
.btn { 
    padding: 10px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover { opacity: 0.8; }

.btn-green { background: var(--minete-green-dark); color: white; }
.btn-red { background: #d32f2f; color: white; }
.btn-logout { background: #d32f2f; color: white; margin-left: auto; }

.admin-section { 
    background: white; 
    padding: 25px; 
    border-radius: 15px; 
    box-shadow: var(--shadow); 
    margin-bottom: 30px; 
    border-top: 5px solid var(--minete-blue); 
}

.grid-admin { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    max-width: 1000px; 
    margin: 20px auto; 
}

.folder-line { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px; 
    background: #f9fdfa; 
    border-radius: 8px; 
    margin-bottom: 5px; 
}

.text-red { color: #d32f2f; text-decoration: none; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.8rem;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .header-side.left, .header-side.right {
        justify-content: center;
        padding: 0;
    }
    .grid-admin {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 1.6rem; }

    /* Réduction de la taille du nom des dossiers sur mobile */
    .file-info a {
        font-size: 0.85rem;
    }
}