/* ==========================================================
   1. BASES ET FOND DE PAGE
   ========================================================== */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, serif;
    background: #1f3a2d;
    color: #d4b24a;
}

.page {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ==========================================================
   2. TITRES
   ========================================================== */
h1, .titre-projets {
    font-family: Riesling, serif; 
    font-size: 55px;
    color: #d4b24a;
    margin-left: -40px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

h3, .titre-projet {
    color: #d4b24a; 
    font-family: Mistral, cursive; 
    font-size: 28px;
    margin-left: 0; /* Aligné avec le texte */
    margin-top: 0;
    margin-bottom: 0px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

/* ==========================================================
   3. STRUCTURE DES PROJETS (L'alignement)
   ========================================================== */
.presentation {
    display: flex;
    flex-direction: column; 
    margin-bottom: 0px; /* Espace entre les projets */
}

.bloc-contenu {
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* LA PHOTO : On force la taille ici pour tout le monde */
.galerie {
    flex: 0 0 150px; /* Largeur fixe pour la colonne photo */
    text-align: center;
}

.galerie img {
    width: 100%;    /* Elle prend toute la place des 150px */
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 2px solid #d4b24a;
    border-radius: 8px;
}

.legendphoto {
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

/* LE TEXTE : Prend le milieu */
.texte {
    flex: 1; /* Prend l'espace disponible */
}

/* ==========================================================
   4. FORMULAIRE
   ========================================================== */
.formulaire-contact {
    flex: 0 0 280px; /* Largeur fixe pour le formulaire */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #d4b24a;
    padding: 15px;
    border-radius: 15px;
    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: 8px;
    margin-bottom: 10px;
    background: #1a302a;
    color: white;
    box-sizing: border-box;
}

.formulaire-contact button {
    background-color: #d4b24a;
    color: #1a302a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* ==========================================================
   5. NAVIGATION ET DÉCO
   ========================================================== */
.menu-bas {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(212, 178, 74, 0.3);
    padding: 40px 0;
}

.menu-bas a {
    color: #d4b24a;
    font-family: "Comic Sans MS", cursive;
    font-size: 18px;
    text-decoration: none;
}

.separateur {
    height: 1px;
    background: rgba(212, 178, 74, 0.2);
    margin: 40px auto;
    width: 80%;
}

/* Espacement des retours ligne */
br {
    content: "";
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================
   6. MOBILE
   ========================================================== */
@media screen and (max-width: 950px) {
    .bloc-contenu {
        flex-direction: column;
        align-items: center;
    }
    .formulaire-contact, .galerie {
        width: 100%;
        max-width: 300px;
    }
}

img {
    cursor: zoom-in; /* Ça transforme la souris en petite loupe quand on survole l'image */
}

.clignote {
    animation: clignotement 2s infinite; /* Fait l'animation en 2 secondes, à l'infini */
}

@keyframes clignotement {
    0% { opacity: 2; }   /* Bien visible */
    50% { opacity: 0.2; } /* Presque invisible */
    100% { opacity: 2; }  /* Revient au début */
}

