/* ===================================
   VARIABLES ET RESET
=================================== */
:root {
    --rouge: #53131e;
    --blanc: #f2e2d0;
}

/* ===================================
   KEYFRAMES (RECETTES D'ANIMATION)
=================================== */
@keyframes titreAparition {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--rouge);
    font-family: 'Futura PT', 'Futura', 'Century Gothic', sans-serif;
    color: var(--blanc);
}

/* ===================================
   HEADER
=================================== */
.header {
    position: relative;
    width: 100%;
    height: 660px;
    background-color: var(--rouge);
    overflow: hidden;
}

.header__bg-shapes {
    position: absolute;
    top: -110px;
    right: -123px;
    width: 125%;
    height: 150%;
    pointer-events: none;
}

.header__forme {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.header__nav {
    position: absolute;
    top: 40px;
    right: 80px;
    z-index: 10;
}

.header__nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
}

.header__nav-link {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--blanc);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.header__nav-link:hover {
    opacity: 0.7;
}

.header__content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    padding-top: 60px;
}

.header__logo img {
    height: 250px;
    width: auto;
    margin-bottom: -50px;
    margin-left: -210px;
}

.header__title {
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 60pt);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--blanc);
    margin-left: -90px;
}

/* ===================================
   SECTION À PROPOS
=================================== */
.about {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--blanc);
    color: var(--rouge);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.about__shapes {
    position: absolute;
    left: -80px;
    top: 0;
    height: 100%;
    width: 32%;
    overflow: hidden;
}

.about__shapes img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left center;
}

.about__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    padding: 0 50px;
}

.about__title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 40pt);
    line-height: 1;
    margin-top: -70px;
    margin-bottom: 150px;
    text-transform: uppercase;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-left: 300px;
    width: auto;
}

.about__column p {
    font-weight: 400;
    font-size: 10pt;
    line-height: 1.4;
    margin-bottom: 25px;
    margin-left: 100px;
}

/* ===================================
   SECTION PROJETS
=================================== */
.projects {
    position: relative;
    width: 100%;
    background-color: var(--rouge);
    padding: 60px 0 80px;
    overflow: hidden;
}

.projects__bg-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.projects__title {
    position: relative;
    z-index: 2;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 40pt);
    line-height: 1;
    text-transform: uppercase;
    color: var(--blanc);
    padding: 0 50px;
    margin-bottom: 40px;
}

.projects__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    border-top: 1px solid rgba(242, 226, 208, 0.25);
    border-left: 1px solid rgba(242, 226, 208, 0.25);
    position: relative;
    z-index: 2;
}

.projects__cell {
    border-right: 1px solid rgba(242, 226, 208, 0.25);
    border-bottom: 1px solid rgba(242, 226, 208, 0.25);
    padding: 40px 36px;
}

.projects__cell--image {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.projects__cell--image img {
    width: 75%;
    height: auto;
    object-fit: contain;
    display: block;
}

.projects__cell h3 {
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 16pt);
    margin-bottom: 20px;
}

.projects__cell p {
    font-size: 10pt;
    line-height: 1.55;
    margin-bottom: 14px;
    opacity: 0.9;
}

.projects__voir-plus {
    display: flex;
    justify-content: center;
    padding: 50px 0 0;
    position: relative;
    z-index: 2;
}

.projects__voir-plus a {
    border: 1px solid var(--blanc);
    color: var(--blanc);
    text-decoration: none;
    padding: 14px 50px;
    font-size: 9pt;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}

.projects__voir-plus a:hover {
    background: var(--blanc);
    color: var(--rouge);
}

/* ===================================
   SECTION CONTACT
=================================== */
.contact {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--blanc);
    color: var(--rouge);
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

.contact__shapes {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 45%;
    pointer-events: none;
}

.contact__shapes img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left center;
}

.contact__container {
    position: relative;
    z-index: 2;
    width: 55%;
    margin-left: auto;
    padding-right: 8%;
    padding-left: 40px;
}

.contact__title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 40pt);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.contact__text {
    font-size: 10pt;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 560px;
}

.contact__email {
    display: block;
    background-color: var(--rouge);
    color: var(--blanc);
    text-decoration: none;
    text-align: center;
    padding: 28px 50px;
    font-size: clamp(1rem, 2.5vw, 18pt);
    font-weight: 400;
    letter-spacing: 0.03em;
    max-width: 620px;
    border-radius: 100px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact__email:hover {
    background-color: var(--blanc);
    color: var(--rouge);
    border-color: var(--rouge);
}

.contact__email:active {
    background-color: var(--blanc);
    color: var(--rouge);
    border-color: var(--rouge);
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background-color: var(--rouge);
    color: var(--blanc);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(242, 226, 208, 0.1);
}

.footer__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer__logo img {
    height: 120px;
    width: auto;
}

.footer__nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer__nav-link {
    color: var(--blanc);
    text-decoration: none;
    font-size: 10pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.footer__nav-link:hover {
    opacity: 0.6;
}

.footer__bottom {
    border-top: 1px solid rgba(242, 226, 208, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer__bottom p {
    font-size: 10pt;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===================================
   TABLETTE LARGE (1025px – 1280px)
=================================== */
@media (min-width: 1025px) and (max-width: 1280px) {
    .about__content {
        margin-left: 220px;
    }

    .about__column p {
        margin-left: 40px;
    }

    .header__logo img {
        height: 180px;
        margin-left: -150px;
    }

    .header__title {
        font-size: 50pt;
        margin-left: -50px;
    }
    .header__bg-shapes {
        right: -163px;
        width: 125%;
        height: 165%;
    }

   .about__shapes {
        position: absolute;
        left: 0; 
        top: 210px;
        height: 101%;
        width: 25%; 
        overflow: hidden;
    }

    .about__shapes img {
        height: 100%;
        width: 100%;
        object-fit: contain;; 
        object-position: left center;
    }


.contact__shapes {
    
    position: absolute;
    left: -175px;
    top: 0;
    height: 100%;
   
    width: 75%; 
    pointer-events: none; 
    z-index: 1; 
}

.contact__shapes img {
    height: 100%;
    width: 100%;
   
    object-fit: cover; 
   
    object-position: left center;
}

.contact__container {
  
    z-index: 2;
    
    width: 55%;
    margin-left: auto;
    padding-right: 8%;
    padding-left: 50px; 
}

}

/* ===================================
   TABLETTE (769px – 1024px)
=================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* HEADER */
    .header {
        height: auto;
        min-height: 520px;
        padding-bottom: 50px;
    }

    .header__nav {
        position: absolute;
        top: 20px;
        right: 40px;
    }

    .header__nav-list {
        gap: 20px;
    }

    .header__nav-link {
        font-size: 1rem;
    }

    .header__content {
        padding-left: 5%;
        padding-top: 100px;
    }

    .header__logo img {
        margin-left: -90px;
        height: 180px;
        margin-bottom: -20px;
    }

    .header__title {
        margin-left: 0;
        font-size: clamp(2.5rem, 6vw, 4rem);
        max-width: 85%;
    }

    header__bg-shapes {
            position: absolute;
            top: 0;              /* On le colle parfaitement en haut */
            width: 120%;
            height: 100%;        /* MODIFICATION : On force le conteneur à faire 100% de la hauteur du header */
            pointer-events: none;
        }

        .header__forme {
            width: 100%;
            height: 120%;        /* AJOUT : On force l'image à remplir toute la hauteur disponible */
            object-fit: cover;   /* Permet à l'image de s'adapter sans se déformer */
            object-position: right top;
        }
    /* SECTION À PROPOS */
    .about {
        padding: 80px 0;
    }

   .about__shapes {
        position: absolute;
        left: 0; 
        top: -28px;
        height: 150%;
        width: 40%; 
        overflow: hidden;
    }

    .about__shapes img {
        height: 100%;
        width: 100%;
        object-fit: contain;; 
        object-position: left center;
    }

    .about__container {
        padding: 0 40px;
    }

    .about__title {
        margin-top: -30px;
        margin-bottom: 80px;
    }

    .about__content {
        margin-left: 160px;
        gap: 30px;
    }

    .about__column p {
        margin-left: 0;
        font-size: 8pt;
    }

    /* SECTION PROJETS */
    .projects__grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects__cell {
        padding: 30px;
    }

    .projects__cell p {
        font-size: 9pt;
    }

    /* SECTION CONTACT */
    .contact__shapes {
        position: absolute;
            left: 0;
            top: 50px;
            height: 100%;
            width: 50%;          /* MODIFICATION : On réduit la largeur à 25% (au lieu de 38%) pour rendre l'espace plus petit */
            pointer-events: none;
    }
.contact__shapes img {
            height: 100%;
            width: 100%;
            object-fit: contain;       /* AJOUT : Force l'image à s'afficher en ENTIER sans être coupée */
            object-position: left center; /* Aligne l'image contre le bord gauche */
        }
    .contact__container {
       width: 70%;          /* AJOUT Optionnel : On élargit un peu le conteneur de texte pour occuper l'espace libéré */
            padding-right: 5%;
            padding-left: 30px;
    }

    .contact__text {
        max-width: 100%;
        font-size: 10pt;
    }

    .contact__email {
        font-size: 1.2rem;
        padding: 22px 36px;
    }

    /* FOOTER */
    .footer__nav-list {
        gap: 20px;
    }

    .footer__nav-link {
        font-size: 9pt;
    }
}

/* ===================================
   MOBILE (≤ 768px)
=================================== */
@media (max-width: 768px) {

    /* HEADER */
    .header {
        height: auto;
        min-height: 100svh;
        padding-bottom: 60px;
        display: flex;
        flex-direction: column;
    }

    .header__bg-shapes {
        width: 260%;         /* MODIFICATION : Augmentez cette valeur (ex: 240%, 260%, 300%) pour agrandir l'image */
        right: -40%;         /* AJUSTEMENT : Poussez l'image vers la droite (ex: -70%, -80%, -90%) pour la repositionner */
        top: -170px;          /* Ajustez la hauteur par rapport au haut de l'écran si nécessaire */
        opacity: 0.5;
        height: 170%;
    }

    .header__nav {
        position: relative;
        top: 0;
        right: 0;
        padding: 24px 20px 0;
        text-align: center;
    }

    .header__nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .header__nav-link {
        font-size: 0.85rem;
    }

    .header__content {
        padding: 30px 20px 0;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header__logo img {
        margin-left: 0;
        margin-bottom: 10px;
        height: 160px;
    }

    .header__title {
        margin-left: 0;
        font-size: clamp(2rem, 10vw, 3rem);
        text-align: center;
    }

    /* SECTION À PROPOS */
    .about {
        padding: 60px 0;
        align-items: flex-start;
    }

    .about__shapes {
        display: none;
    }

    .about__container {
        width: 100%;
        padding: 0 24px;
    }

    .about__title {
        margin-top: 0;
        margin-bottom: 40px;
        text-align: center;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .about__content {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        gap: 0;
    }

    .about__column p {
        margin-left: 0;
        font-size: 10.5pt;
        line-height: 1.6;
    }

    /* SECTION PROJETS */
    .projects {
        padding: 50px 0 60px;
    }

    .projects__title {
        padding: 0 24px;
        margin-bottom: 30px;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    /* Réorganise chaque paire texte/image en groupe visuel cohérent */
    /* Projet 1 : cellule texte (1er enfant) reste avant l'image (2e enfant) */
    .projects__cell {
        padding: 30px 24px;
        border-right: none;
    }

    .projects__cell--image {
        min-height: 240px;
        border-right: none;
    }

    .projects__cell--image img {
        width: 65%;
    }

    .projects__cell p,
    .projects__cell h3 {
        font-size: 10pt;
    }

    .projects__voir-plus {
        padding: 40px 24px 0;
    }

    .projects__voir-plus a {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 10pt;
    }

    /* SECTION CONTACT */
    .contact {
        padding: 60px 0;
        min-height: auto;
        align-items: flex-start;
    }

    .contact__shapes {
        opacity: 0.15;
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
    }

    .contact__container {
        width: 100%;
        margin-left: 0;
        padding: 0 24px;
        text-align: center;
    }

    .contact__title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 28px;
    }

    .contact__text {
        font-size: 10.5pt;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 36px;
        text-align: left;
    }

    .contact__email {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
        padding: 18px 20px;
        word-break: break-all;
        max-width: 100%;
        border-radius: 50px;
    }

    /* FOOTER */
    .footer {
        padding: 60px 0 30px;
    }

    .footer__container {
        padding: 0 24px;
    }

    .footer__content {
        flex-direction: column;
        gap: 36px;
        text-align: center;
        margin-bottom: 40px;
    }

    .footer__logo img {
        height: 90px;
    }

    .footer__nav-list {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer__nav-link {
        font-size: 10pt;
    }
}

/* ===================================
   TRÈS PETIT MOBILE (≤ 400px)
=================================== */
@media (max-width: 400px) {
    .header__nav-link {
        font-size: 0.75rem;
    }

    .header__logo img {
        height: 130px;
    }

    .header__title {
        font-size: 1.9rem;
    }

    .about__title,
    .projects__title,
    .contact__title {
        font-size: 1.7rem;
    }

    .contact__email {
        font-size: 0.8rem;
        padding: 16px 14px;
    }
}