/* =========================
   1. BASE DU SITE
========================= */

* {
    box-sizing: border-box;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   2. BARRE DE NAVIGATION
========================= */

.entete {
    min-height: 85px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #111111;
    color: #f2f0eb;
    border-bottom: 1px solid #383838;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -2px;
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a,
.annee {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bdbdb8;
    transition: color 0.3s ease;
}

.navigation a {
    color: #bdbdb8;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #ffffff;
}

.annee {
    color: #858580;
}

/* =========================
   GRILLE ÉDITORIALE
========================= */

.page-projet {
    padding: 80px 8%;
}

.grille-projet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    width: 100%;
}

/* =========================
   BLOCS DE LA GRILLE
========================= */

.element-projet {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* LARGEUR */

.largeur-1 {
    grid-column: span 1;
}

.largeur-2 {
    grid-column: span 2;
}

.largeur-3 {
    grid-column: span 3;
}

/* HAUTEUR */

.hauteur-1 {
    grid-row: span 1;
}

.hauteur-2 {
    grid-row: span 2;
}

.hauteur-3 {
    grid-row: span 3;
}

/* =========================
   CONTENU DES BLOCS
========================= */

/* Images */

.element-projet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.element-projet img {
    transition: transform 0.25s ease;
}

.element-projet img:hover {
    transform: scale(1.04);
}

/* Blocs de texte */

.bloc-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    color: #111;
}

.bloc-texte h2 {
    margin: 0 0 20px;
    font-size: 35px;
    font-weight: 800;
    color: #809D83;
}

.bloc-texte p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.descriptif h3 {
    font-size: 17px;
    line-height: 1;
    color: #555;
    font-weight: 400;
}

.descriptif strong {
    font-size: 17px;
    line-height: 1;
    color: #555;
    font-weight: 600;
}

/* GALERIE PLEIN ÉCRAN */
.galerie-plein-ecran {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
}

.galerie-plein-ecran img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
}

.galerie-plein-ecran button {
    position: absolute;
    border: none;
    background: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.fermer {
    top: 20px;
    right: 35px;
}

.precedent {
    left: 30px;
}

.suivant {
    right: 30px;
}

.compteur {
    position: absolute;
    bottom: 25px;
    color: white;
    font-size: 13px;
}

/* ZOOM DANS LA GALERIE */
#image-grand-format {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

#image-grand-format.image-zoomee {
    transform: scale(1.5);
    cursor: zoom-out;
    transition: none;
}

/* ANIMATION D'APPARITION */
.element-projet {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Les éléments venant de la gauche */
.element-projet.apparition-gauche {
    transform: translateX(-60px);
}

/* Les éléments venant de la droite */
.element-projet.apparition-droite {
    transform: translateX(60px);
}

/* Lorsque les éléments apparaissent */
.element-projet.visible {
    opacity: 1;
    transform: translateX(0);
}