/* ==========================================
   Feuille de style globale - HébergePro
   Encodage : UTF-8 (Pas de ressources externes)
   ========================================== */

/* Variables de couleurs et typographie de base */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #333333;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- En-tête --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.slogan {
    font-size: 1.1rem;
    color: #93c5fd;
    font-style: italic;
}

/* --- Structure principale (Menu à gauche + Contenu) --- */
.main-container {
    display: flex;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

/* Menu de navigation à gauche */
nav {
    width: 250px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem 1rem;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.75rem;
}

nav ul li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Contenu de la page */
.content {
    flex: 1;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
}

/* Style des images internes */
.img-container {
    margin: 1.5rem 0;
    text-align: center;
}

.img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Formulaire de contact (Page contact) */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* --- Pied de page --- */
footer {
    background-color: #1e293b;
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin: 0.25rem 0;
}

/* Responsive design de base pour petits écrans */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    nav {
        width: 100%;
    }
}
