/* ==========================================================
   1. BASES ET FOND DE PAGE (Toutes les pages)
   ========================================================== */
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;
}

/* ==========================================================
   2. TITRES
   ========================================================== */
h1, .titre-projets {
    font-family: Riesling, serif; /* Si Riesling n'est pas là, Georgia prendra le relais */
    font-size: 55px;
    color: #d4b24a;
    margin-left: -40px; /* Le fameux décalage vers la gauche */
    margin-top: 20px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

/* ==========================================================
   3. STRUCTURE DES BLOCS (Photos + Texte)
   ========================================================== */
.presentation {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
}

/* BLOC PHOTO : On bride la taille ici pour toutes les pages */
.photo-presentation, .bloc-photo {
    width: 280px !important; /* Les photos ne prendront plus toute la place */
    flex-shrink: 0;         /* Elles ne s'écrasent pas */
}

.photo-presentation img, .photo-gauche {
    width: 100% !important;
    height: auto !important;
    border: 2px solid #d4b24a;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.photo-presentation img:hover {
    transform: scale(1.05); /* Petit effet au survol */
}

.legendphoto {
    font-family: "Comic Sans MS", cursive;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* BLOC TEXTE ET CONTENU FLEXIBLE */
.bloc-contenu {
    display: flex;
    flex: 1;
    gap: 25px;
    align-items: flex-start;
}

.texte {
    font-family: "Comic Sans MS", cursive;
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    white-space: pre-line;
    flex: 1;
}

/* ==========================================================
   4. FORMULAIRE (Spécifique à la page Projets)
   ========================================================== */
.formulaire-contact, form[name="contact"] {
    background-color: #1a302a;
    border: 2px solid #d4b24a;
    padding: 15px;
    width: 250px;
    border-radius: 15px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.formulaire-contact label {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.formulaire-contact input, 
.formulaire-contact select, 
.formulaire-contact textarea {
    width: 100%;
    border: 1px solid #d4b24a;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 10px;
    background: #1f3a2d;
    color: white;
    box-sizing: border-box;
}

.formulaire-contact button {
    background-color: #d4b24a;
    color: #1a302a;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* ==========================================================
   5. NAVIGATION (Menu du bas)
   ========================================================== */
.menu-bas {
    text-align: center;
    padding: 40px 0;
    clear: both;
    width: 100%;
}

.menu-bas a {
    color: #d4b24a;
    font-family: "Comic Sans MS", cursive;
    font-size: 18px;
    text-decoration: none;
    margin: 0 15px;
}

.menu-bas a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ==========================================================
   6. RESPONSIVE (Pour que ça reste beau sur téléphone)
   ========================================================== */
@media screen and (max-width: 950px) {
    .presentation, .bloc-contenu {
        flex-direction: column;
        align-items: center;
    }
    .titre-projets, h1 {
        margin-left: 0;
        text-align: center;
        font-size: 40px;
    }
    .photo-presentation, .bloc-photo, .formulaire-contact {
        width: 100% !important;
        max-width: 300px;
    }
}

/* 1. On réduit la largeur du bloc pour créer de grandes marges sur les côtés */
.container {
    max-width: 80% !important; /* Utilise seulement 80% de l'écran pour laisser du vide autour */
    margin: 0 auto !important;  /* Centre le bloc sur la page */
    padding: 20px;
}

/* 2. On règle la galerie par 6 avec des photos plus petites */
.galerie {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 colonnes */
    gap: 15px;                             /* Espace entre les photos */
    width: 100%;                           /* S'adapte au container réduit */
    margin-bottom: 50px;
}

/* 3. On force la taille des images pour qu'elles ne soient plus énormes */
.galerie img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 2px solid #d4b24a;
    border-radius: 5px;
    cursor: pointer;
}

/* 4. Le menu bas centré */
.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%;
}


/* Pour réduire spécifiquement l'impact des retours à la ligne <br> */
br {
    content: "";
    display: block;
    margin-bottom: -10px; /* Ajuste ce chiffre (2px, 4px...) pour régler l'espace */
}



