/* --- STRUCTURE --- */
body {
    background-color: #1a1a1a;
    color: #e0e0e0; 
    font-family: 'Georgia', serif; 
}

/* Conteneur pour HEADER et FOOTER */
.conteneur-large {
    width: 1240px;
    margin: 0 auto; /* Centrage horizontal */
    background-color: #2b2b2b;
}

/* Conteneur pour le MAIN */
.conteneur-main {
    width: 1240px;
    margin: 0 auto;
    background-color: #222;
    padding: 20px;
    min-height: 600px; /* Hauteur minimale = esthétique avant de mettre le contenu */
}

/* Div Main 1080px centré */
.main {
    width: 1080px;
    margin: 0 auto;
}

/* --- HEADER et NAVIGATION --- */
header {
    padding: 20px 0;
    border-bottom: 2px solid #c5a059; 
}

/* Flexbox TITRE et MENU */
.header-contenu {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px;
}

h1 {
    font-size: 40px; 
    color: #c5a059;
    text-transform: uppercase;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    border: none;
}

/* --- Menu de navigation --- */
.menu {
    display: flex;
    gap: 20px; 
}

.menu li a {
    color: white;
    font-weight: bold;
    font-size: 17px;
    padding: 10px;
    border: 4px solid transparent; 
}

.menu li a:hover {
    color: #c5a059;
    border-bottom: 4px solid #c5a059; 
}

/* Page active */

.menu li a.active {
    color: #c5a059;
}

/* --- Contenu MAIN --- */

h2 {
    color: #c5a059;
    margin-bottom: 20px;
    border-left: 5px solid #b10101;
    padding-left: 15px;
}

p {
    line-height: 1.5; 
    margin-bottom: 15px;
    text-align: justify;
}

/* Flexbox pour disposer en ligne */
.flex-ligne {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* Division en deux colonnes */
.colonnes {
    width: 50%; 
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
    display: block;
    margin: auto;
}

/* Ligne de séparation */ 

hr {
    border: none;
    border-top: 1px solid #444;
    margin: 40px 0;
}

/* --- Page d'accueil --- */

/* Icone liste */

.liste-icone li {
    list-style-image: url(../images/accueil/liste2.png);
    margin-left: 25px; 
}

/* --- Formulaire --- */

form {
    background-color: #333;
    padding: 20px;
    border: 1px solid #c5a059;
}

label {
    display: block;
    margin-top: 10px;
}

input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

/* Options de séléction */

select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #c5a059;
    color: black;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #b10101;
    color: white;
}

/* Image Accueil */

.img-accueil {
    border: 1px solid #444;
    display: block;
    margin: auto;
    max-width: 70%;
}

/* --- PAGE THÉMATIQUE --- */

/* Lettrine */
.texte_intro::first-letter {
    font-size: 60px;
    color: #c5a059;
    float: left; 
    margin-right: 4px;
    font-weight: bold;
    font-family: 'Times new roman', Times, serif;
}

/* Citation */
blockquote {
    font-style: italic;
    font-family: 'Courier New', Courier, monospace; 
    border-left: 4px solid #fff;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #333;
}

blockquote p {
    text-align: center;
    font-family:'Times New Roman', Times, serif;
    font-size: 20px;
}

.auteur_citation {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    color: #b10101;
}

/* Aside */
aside {
    background-color: #111;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #c5a059;
    line-height: 25px;
}

aside a {
    color: #c5a059;
    text-decoration: underline;
    display: block;
    margin-bottom: 10px;
}

aside a:hover {
    color: #ffd68b;
}

/* Images Univers */

.img-univers1 {
    border: 1px solid #444;
    display: block;
    margin: auto;
    max-width: 90%;
}

.img-univers2 {
    border: 1px solid #444;
    margin: 55px auto;
    display: block;
    max-width: 100%;
}

/* --- PAGE GALERIE --- */

/* Conteneur principal */
.boite-galerie {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 20px;
}

/* Carte de la galerie */
.carte-galerie {
    position: relative; /* Superposition des images */
    width: 48%; 
    height: 300px;
    margin-bottom: 20px;
    border: 1px solid #c5a059; 
    background-color: #000;
    overflow: hidden; /* L'image de fond ne déborde pas du cadre */
    transition: transform 0.3s;
}

/* L'image de fond */
.img-flou {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre */
    filter: blur(8px) brightness(0.6); /* Flou + Luminosité */
    z-index: 1; /* Derrière */
}

/* L'image de devant */
.img-devant {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image s'affiche en entier sans déformation */
    z-index: 2; /* Devant */
}

/* --- HOVER --- */

/* Images Paires */
.carte-galerie:nth-child(even):hover {
    z-index: 10;
    transform: scale(1.1);
    box-shadow: 0 0 15px #000000cc;
}

/* Images Impaires */
.carte-galerie:nth-child(odd):hover {
    box-shadow: 10px 10px 15px #000000cc;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #777;
    font-size: 15px;
}

footer p {
    text-align: center;
}