/* =========================
   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;
    position: sticky;
    top: 0;
    z-index: 800;
    background: #111111;
}

.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;
}

.hauteur-4 {
    grid-row: span 4;
}

.hauteur-5 {
    grid-row: span 5;
}

.hauteur-6 {
    grid-row: span 6;
}
/* =========================
   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: 45px;
    font-weight: 800;
    color: #5A5A5A;
}

.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;
}

.titre-image {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 60%;
    text-align: center;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* ZOOM DANS LA GALERIE */
#image-grand-format {
    touch-action: none;      /* le glissé tactile ne fait pas défiler la page */
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.galerie-plein-ecran button,
.compteur {
    z-index: 2;
}

/* Remplace ton bloc ANIMATION D'APPARITION par : */
.element-projet {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .element-projet {
    opacity: 0;
}

.js .element-projet.apparition-gauche {
    transform: translateX(-60px);
}

.js .element-projet.apparition-droite {
    transform: translateX(60px);
}

.js .element-projet.visible {
    opacity: 1;
    transform: translateX(0);
}

/* BOUTON MAQUETTE (fixe, à gauche) */
.bouton-maquette {
    position: fixed;
    top: 105px;              /* sous l'en-tête (85px) pour ne pas cacher le logo */
    left: 0px;
    right: auto;
    z-index: 900;            /* sous la galerie (1000) */
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #111111;
    font-family: "Barlow", Arial, Helvetica, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

.bouton-maquette .etat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
}

.bouton-maquette .texte {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 5px;
    text-align: center;
    text-transform: uppercase;
}

.bouton-maquette svg {
    width: 40px;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    overflow: visible;
    transition: transform 0.3s ease;
}

.bouton-maquette .etat {
    padding: 16px 14px;
}

.bouton-maquette .texte {
    font-size: 11px;
    letter-spacing: 3px;
}

.bouton-maquette svg {
    width: 34px;
}

/* État « retour » : collé à gauche et plus compact */
.bouton-maquette {
    transition: background 0.3s ease, color 0.3s ease, left 0.3s ease;
}

.bouton-maquette.est-retour {
    left: 0;
}

.bouton-maquette.est-retour .etat {
    padding: 16px 14px;
}

.bouton-maquette.est-retour .texte {
    font-size: 11px;
    letter-spacing: 3px;
}

/* Un seul état visible à la fois */
.bouton-maquette .etat-retour {
    display: none;
}

.bouton-maquette.est-retour {
    background: #000000;
    color: #ffffff;
}

.bouton-maquette.est-retour .etat-voir {
    display: none;
}

.bouton-maquette.est-retour .etat-retour {
    display: flex;
}

/* Léger mouvement des flèches au survol */
.bouton-maquette:hover svg {
    transform: translateY(3px);
}

.bouton-maquette.est-retour:hover svg {
    transform: translateY(-3px);
}

/* Les deux états : un seul visible à la fois */
.bouton-maquette .etat-retour {
    display: none;
}

.bouton-maquette.est-retour {
    background: #000000;
    color: #ffffff;
}

.bouton-maquette.est-retour .etat-voir {
    display: none;
}

.bouton-maquette.est-retour .etat-retour {
    display: flex;
}

/* Léger effet au survol */
.bouton-maquette:hover svg {
    transform: translateY(3px);
}

.bouton-maquette.est-retour:hover svg {
    transform: translateY(-3px);
}

.bouton-maquette svg {
    transition: transform 0.3s ease;
}

/* SECTION MAQUETTE */
.section-maquette {
    background: #000000;
    padding: 80px 8%;
}

.section-maquette h2 {
    margin: 0 0 50px;
    font-size: 45px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 6px;
}

/* =========================
   VIDÉO DANS LA GRILLE
========================= */

.bloc-video {
    position: relative;
    overflow: hidden;
    background: #111111;
}

.bloc-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}