/* ==========================================================
   1. CONFIGURATION GÉNÉRALE & TITRES (STRICTEMENT INCHANGÉS)
   ========================================================== */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, serif;
    background: #1f3a2d; /* Ton vert sombre */
    color: #d4b24a;      /* Ton doré */
}

.page {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1, .titre-projets {
    font-family: Riesling, serif; 
    font-size: 55px;
    color: #d4b24a;
    margin-left: -40px; /* Le fameux décalage vers la gauche */
    margin-top: 0px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

h2 {
    color: #d4b24a;
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 28px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: bold;
}

.intro-site {
    color: #dfb76c;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 50px;
    line-height: 1.5;
}

/* ==========================================================
   2. STRUCTURE : 2 COLONNES CÔTE À CÔTE (TRICOT / CROCHET)
   ========================================================== */
/* ==========================================================
   2. STRUCTURE : 2 COLONNES CÔTE À CÔTE (TRICOT / CROCHET)
   ========================================================== */
.zone-principale {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px; 
    width: 100%;
}

.bloc-categorie {
    flex: 1;
    display: flex;         /* AJOUT : Permet d'ordonner le contenu de haut en bas */
    flex-direction: column;/* AJOUT : Force les blocs de liens à se mettre les uns sous les autres */
}

/* ==========================================================
   3. LIENS : 4 COLONNES DE LIENS SOUS LES TITRES
   ========================================================== */
.liste-elements {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force strictement 4 colonnes */
    gap: 15px;                             /* Espace entre chaque lien */
    text-align: center;
    width: 100%;
}

.groupe-item {
    display: block;
}

.groupe-item a {
    display: block;
    text-align: center;
    text-decoration: underline;
    font-size: 16px;
    word-wrap: break-word; /* Force le texte long à passer sur 2 lignes */
}

/* On redonne leur comportement normal aux éléments suivants */
p ~ .groupe-item ~ .groupe-item {
    grid-column-start: auto;
}

/* ==========================================================
   4. MENU BAS (STRICTEMENT INCHANGÉ)
   ========================================================== */
.menu-bas {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(212, 178, 74, 0.3);
    padding-top: 20px;
    width: 100%;
    clear: both;
}

.menu-bas a {
    color: #d4b24a;
    font-family: "Comic Sans MS", cursive;
    font-size: 18px;
    text-decoration: none;
}

.menu-bas a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ==========================================================
   5. RESPONSIVE / TÉLÉPHONE (STRICTEMENT INCHANGÉ)
   ========================================================== */
@media screen and (max-width: 950px) {
    .presentation, .bloc-contenu, .zone-principale {
        flex-direction: column;
        align-items: center;
    }
    .liste-elements {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes sur petit écran */
    }
    .titre-projets, h1 {
        margin-left: 0;
        text-align: center;
        font-size: 40px;
    }
    .photo-presentation, .bloc-photo, .formulaire-contact {
        width: 100% !important;
        max-width: 300px;
    }
}