/* Variables & Reset */
:root {
    --color-primary: #2d1b54;
    --color-primary-light: #432b7a;
    --color-secondary: #c8a951;
    --color-secondary-hover: #b09140;
    --color-bg: #f8f9fa;
    --color-text: #333333;
    --color-white: #ffffff;
    --font-body: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

/* Header & Navigation */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Alignement du logo et du texte */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem; /* Espace ajusté entre le logo et le titre */
    text-decoration: none;
    color: inherit;
}

/* Taille du logo (Bureau) */
.logo img {
    height: 110px; /* Taille augmentée significativement */
    width: auto;
    object-fit: contain;
    border-radius: 4px; /* Optionnel : léger arrondi */
}

/* Typographie du nom du site (Bureau) */
.logo .site-title {
    font-family: 'Playfair Display', serif; /* Typographie élégante du projet */
    font-size: 2.3rem; /* Très gros titre */
    font-weight: 700;
    color: var(--color-primary, #1e293b);
    white-space: nowrap;
}

/* Menu de navigation */
.nav-links {
    display: none; /* Caché sur mobile, affiché via JS ou media query */
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem; /* Légèrement augmenté pour équilibrer l'ensemble */
}

/* Option mobile : Ajustement pour les petits écrans */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.8rem;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo img {
        height: 80px; /* Beaucoup plus gros sur mobile */
    }

    .logo .site-title {
        font-size: 1.7rem; /* Très lisible sur smartphone */
        white-space: normal; /* Permet au titre de passer sur 2 lignes si l'écran est vraiment étroit */
        line-height: 1.1;
    }
}
/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: auto;
}

/* Media Queries (Desktop) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* =========================================
   Correction Header Mobile (Accueil & autres)
   ========================================= */
@media (max-width: 768px) {
    header .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    header .logo {
        margin-bottom: 0.5rem;
    }

    header .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    /* Optionnel : réduire un peu la taille du titre du site sur mobile */
    header .site-title {
        font-size: 1.2rem;
    }
}