/* 1. Reset et structure globale */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #b3e5fc);
    display: grid;
    grid-template-rows: auto 1fr auto; 
    min-height: 100vh;
    color: #333;
}

/* 2. Header Glassmorphism */
.glass-header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-left { display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; margin-right: 15px; }
.header-title { margin: 0; font-size: 1.5em; color: #0277bd; }
.wide-container {
    max-width: 1200px !important; 
    width: 95% !important;
    margin: 40px auto;
}

.mission-table {
    width: 100% !important; /* Force la largeur totale */
    table-layout: fixed;    /* Distribue l'espace équitablement entre les colonnes */
}

/* Donne un peu d'air aux cellules */
.mission-table th, .mission-table td {
    padding: 20px 10px;
    word-wrap: break-word; /* Empêche le texte de dépasser */
}

.nav-links a {
    color: #0277bd;
    text-decoration: none;
    margin-left: 15px;
    padding: 8px 18px;
    border: 1px solid rgba(2, 119, 189, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.5); }

/* 3. Conteneurs */
.container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px; /* Par défaut pour Login */
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-container { max-width: 900px !important; margin: 30px auto; }
.wide-container { max-width: 1100px !important; width: 95% !important; margin: 40px auto; }

h2 { text-align: center; margin-bottom: 25px; color: #01579b; }

/* 4. Grille et Tableaux */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.full-width { grid-column: span 2; }

.mission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.3);
}
.mission-table th, .mission-table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
}

/* 5. Inputs */
input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #b3e5fc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 16px;
    outline: none;
}

/* 6. Boutons */
button, .btn-submit {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #0277bd;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
button:hover, .btn-submit:hover { background: #01579b; }

/* 7. Footer */
.glass-footer {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    text-align: center;
}
.footer-logo { height: 40px; width: auto; opacity: 0.8; }
.glass-footer p { margin: 0; font-size: 0.85em; color: #0277bd; }

.status-badge {
    background: #e3f2fd;
    color: #0277bd;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Style épuré pour le tableau */
.mission-table {
    width: 100%;
    border-collapse: separate; /* Pour séparer les lignes */
    border-spacing: 0 10px;    /* Espace entre les lignes */
    background: transparent;
}

.mission-table th {
    text-align: left;
    padding: 15px;
    color: #555;
}

.mission-table td {
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Arrondir le haut et bas du tableau */
.mission-table tr td:first-child { border-left: 1px solid #eee; border-radius: 10px 0 0 10px; }
.mission-table tr td:last-child { border-right: 1px solid #eee; border-radius: 0 10px 10px 0; }