/* ============================================================
   VARIABLES GLOBALES
============================================================ */
:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --bg-light: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    --radius: 8px;
    --shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================================
   RESET DE BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   LIENS
============================================================ */
a {
    text-decoration: none;
    color: var(--primary);
}
a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   HEADER
============================================================ */
header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
header .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}
header nav a {
    margin-left: 20px;
    font-weight: 500;
}

/* ============================================================
   MAIN CONTENT
============================================================ */
main {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background: var(--primary);
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================================
   CONTAINER
============================================================ */
.container {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.container img {
    width: 150px;
    max-width: 50%;
    height: auto;
    margin-bottom: 25px;
}

/* ============================================================
   BOUTONS
============================================================ */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}
button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   FORMULAIRES
============================================================ */
form {
    display: none; /* affiché via JS */
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

input, select, textarea {
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(30,136,229,0.3);
}

/* Paragraph switch */
p.switch {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}
p.switch:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* ============================================================
   LISTES, TABLEAUX, ETC.
============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background-color: var(--bg-light);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
    header nav a {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px;
    }
    .container {
        padding: 30px 20px;
    }
}
