
/* =========================
   1. BASE DU SITE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    background: #111111;
    color: #f2f0eb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}
.Annonce {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Annonce p {
    font-size: 30px;
    color: red;
}

/* =========================
   2. BARRE DE NAVIGATION
========================= */

.entete {
    min-height: 85px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    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;
}

.navigation a {
    color: #bdbdb8;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #ffffff;
}

.annee {
    color: #858580;
}

/* =========================
   3. ACCUEIL IMMERSIF
========================= */

.accueil {
    min-height: 80vh;
    min-height: 80svh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 8%;
    overflow: hidden;
    border-bottom: 1px solid #383838;
}

.introduction {
    position: relative;
    z-index: 2;
}

.surtitre {
    font-size: 11px;
    letter-spacing: 3px;
    color: #aaa9a3;
}

h1 {
    margin: 35px 0;
    font-size: clamp(65px, 12vw, 170px);
    line-height: 0.82;
    letter-spacing: -0.09em;
    font-weight: 800;
}

.point {
    color: #88877f;
}

.description {
    max-width: 390px;
    color: #b5b4ae;
    font-size: 15px;
    line-height: 1.8;
}

.lien-projets {
    display: inline-flex;
    align-items: center;
    gap: 35px;
    margin-top: 35px;
    padding-bottom: 12px;
    border-bottom: 1px solid #777770;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.lien-projets span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.lien-projets:hover span {
    transform: translate(4px, 4px);
}

/* =========================
   4. ZONE GRAPHIQUE
========================= */

.dessin-fond {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    border: none;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
}

.dessin-fond::before,
.dessin-fond::after {
    display: none;
}

.dessin-fond span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #777770;
    font-size: 9px;
    letter-spacing: 2px;
}

/* =========================
   5. REPÈRES EN BAS
========================= */

.indication {
    position: absolute;
    bottom: 25px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    color: #777770;
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* =========================
   6. SECTIONS SUIVANTES
========================= */

.projets,
.section-memoire,
.apropos,
.contact {
    padding: 100px 8%;
    border-bottom: 1px solid #383838;
}

h2 {
    font-size: clamp(30px, 6vw, 35px);
    font-weight: 800;
    letter-spacing: -3px;
}

.projets > p:not(.surtitre),
.apropos p,
.contact p {
    color: #aaa9a3;
    line-height: 1.8;
}

/* =========================
   7. ADAPTATION MOBILE
========================= */

@media (max-width: 700px) {
    .html {
        scroll-padding-top: 120px;
    }
    .entete {
        min-height: 75px;
        flex-wrap: wrap;
        padding: 20px 5%;
    }

    .navigation {
        gap: 15px;
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .navigation a {
        font-size: 10px;
    }

    .annee {
        font-size: 9px;
    }

    .accueil {
        min-height: 75svh;
        padding: 90px 6%;
    }

    h1 {
        font-size: clamp(54px, 13vw, 95px);
    }

    .dessin-fond {
        top: 10%;
        right: -15%;
        width: 75%;
        height: 55%;
        opacity: 0.4;
    }

    .indication {
        font-size: 7px;
    }

    .projets,
    .apropos,
    .contact {
        padding: 70px 6%;
    }
}


/* Texte vertical inspiré de la couverture */

.portfolio-vertical {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 3;
}

.mot-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(42px, 6vw, 88px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -3px;
}

.annee-verticale {
    font-size: clamp(22px, 3vw, 42px);
    font-weight: 700;
    color: #777670;
    margin-top: 8px;
}

/* Laisser de la place au texte vertical */

@media (min-width: 701px) {
    .accueil {
        padding-left: 9%;
    }
}

@media (max-width: 700px) {
    .portfolio-vertical {
        left: 2%;
        top: 45%;
        opacity: 0.65;
    }

    .mot-vertical {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .annee-verticale {
        font-size: 16px;
    }

    .accueil {
        padding-left: 12%;
    }
}


/* Dessin architectural */

.image-architecture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: screen;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.dessin-fond:hover .image-architecture {
    opacity: 1;
    transform: scale(1.03);
}

/* Bandeau d'accueil noir */

.accueil {
    background-color: #000000;
    color: #f2f0eb;
}

/* Sections suivantes sur fond blanc */

.projets,
.section-memoire,
.apropos,
.contact {
    background-color: #f5f5f2;
    color: #171717;
    border-color: #d8d8d2;
}

.projets > p:not(.surtitre),
.apropos p,
.contact p {
    color: #555550;
}

.projets .surtitre {
    color: #777770;
}


/* =========================
   GALERIE DE PROJETS
========================= */

.galerie-projets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
    align-items: stretch;
}

/* Carte individuelle */


.galerie-projets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.carte-projet {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    background: #171717;
    text-decoration: none;
}

.carte-projet > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.7s ease;
}

.infos-projet {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.18) 40%,
        transparent 65%
    );
    transition: background 0.4s ease;
}

.numero-projet {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #ddd;
}

.infos-projet h3 {
    margin: 5px 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.7px;
}

.infos-projet p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #eee;
}

.infos-projet .problematique {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.voir-projet {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 10px;
    letter-spacing: 1px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.carte-projet:hover > img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.carte-projet:hover .problematique,
.carte-projet:hover .voir-projet {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

.carte-projet:hover .voir-projet {
    margin-top: 15px;
}

@media (max-width: 950px) {
    .galerie-projets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .galerie-projets {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .infos-projet {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carte-projet > img,
    .infos-projet,
    .infos-projet .problematique,
    .voir-projet {
        transition: none;
    }
}

/* SECTION MÉMOIRE */

.section-memoire {
    min-height: 750px;
    padding: 120px 8%;
    background: #f5f5f3;
    color: #111;
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    gap: 30px;
    overflow: hidden;
}

.memoire-texte {
    max-width: 420px;
}

.memoire-texte .surtitre {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.memoire-texte h2 {
    font-size: clamp(30px, 6vw, 35px);
    font-weight: 800;
    letter-spacing: -3px;
}

.memoire-texte h2 span {
    color: #999;
}

.memoire-description {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 40px;
}

.memoire-auteur {
    font-size: 10px;
    letter-spacing: 2px;
}

.livre-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 500px;
}

#livre {
    margin: 0 auto;
}

#livre canvas {
    transition: clip-path 0.3s ease;
}

#livre.couverture canvas {
    clip-path: inset(0 0 0 50%);
}

/* ZOOM ET DÉPLACEMENT DU LIVRE */

.livre-zone {
    width: 100%;
    min-width: 0;
}

.livre-container {
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none;

    padding: 35px;
    box-sizing: border-box;
}

.livre-container.zoom-actif {
    cursor: grab;
}

.livre-container.deplacement-actif {
    cursor: grabbing;
}

#livre {
    transform-origin: center center;
    transition: transform 0.2s ease;
    user-select: none;
}

/* RELIEF DU LIVRE */

.livre-container {
    perspective: 1800px;
    overflow: hidden;
    position: relative;
}

#livre {
    filter:
        drop-shadow(0 8px 5px rgba(0, 0, 0, 0.12))
        drop-shadow(0 25px 25px rgba(0, 0, 0, 0.22));
}

/* Légère profondeur autour du livre */

#livre {
    position: relative;
    z-index: 1;

    filter:
        drop-shadow(0 5px 5px rgba(0, 0, 0, 0.10))
        drop-shadow(0 15px 12px rgba(0, 0, 0, 0.13));
}

/* COMMANDES DU LIVRE */

.livre-commandes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    font-family: Arial, sans-serif;
}

.livre-commandes button {
    border: 1px solid #222;
    background: transparent;
    color: #111;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    letter-spacing: 1px;
}

.livre-commandes button:hover {
    background: #111;
    color: white;
}

#zoom-moins,
#zoom-plus {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-precedente,
#page-suivante {
    padding: 10px 17px;
    border-radius: 30px;
    text-transform: uppercase;
}

.separateur-commandes {
    height: 25px;
    width: 1px;
    background: #ccc;
    margin: 0 5px;
}

/* LOUPE HAUTE RÉSOLUTION */

#loupe-livre {
    display: none;
    position: absolute;
    inset: 35px;
    z-index: 5;
    background: white;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

#loupe-livre img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
}

#loupe-livre.actif {
    display: flex;
}

#loupe-livre.deplacement-actif {
    cursor: grabbing;
}