/* ==========================================
   RESET & BASE
========================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    padding-top: 152px;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}


/* ==========================================
   WRAPPER
========================================== */

.wrapper {
    max-width: 2500px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ==========================================
   HEADER
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 200;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.menu1 {
    display: flex;
    gap: 52px;
    align-items: center;
    margin-right: 100px;
}

.menu1 a {
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.menu1 a.actif {
    font-weight: 900;
}

.menu1 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu1 a:hover::after,
.menu1 a.actif::after {
    width: 100%;
}


/* ==========================================
   HAMBURGER
========================================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 300;
}

.barre {
    display: block;
    width: 28px;
    height: 2px;
    background-color: black;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.2s ease,
                width 0.25s ease;
}

.hamburger-menu.ouvert .barre:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.ouvert .barre:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger-menu.ouvert .barre:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================
   MENU OVERLAY MOBILE
========================================== */

.menu_overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background-color: rgb(238, 178, 255);
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 48px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.menu_overlay.ouvert {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.menu_mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    margin-top: 60px;
    margin-bottom: 48px;
}

.menu_mobile_lien {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    width: 100%;
    text-align: left;
    transition: letter-spacing 0.2s ease, padding-left 0.2s ease;
}

.menu_mobile_lien:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.menu_mobile_lien:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.menu_mobile_lien:hover {
    letter-spacing: 0.04em;
    padding-left: 12px;
}

.menu_footer_links {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.45;
    margin-top: auto;
}


/* ==========================================
   SECTION HERO
========================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.hero_media {
    overflow: hidden;
}

.hero_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero_texte {
    padding: 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.hero_texte h1 {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    cursor: default;
    transition: letter-spacing 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero_texte h1:hover {
    letter-spacing: 0.04em;
}

.hero_texte p {
    font-size: 1.5rem;
    line-height: 1.7;
}

.hero_lien {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==========================================
   TITRES DE SECTIONS
========================================== */

.section_titre {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 80px;
    margin-top: 50px;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 24px 0;
}


/* ==========================================
   SECTION RÉALISATIONS
========================================== */

.section_realisations {
    background-color: rgb(199, 255, 255);
    padding: 60px 0 80px;
}

.grille_projets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.projet_item {
    display: flex;
    flex-direction: column;
}

.projet_item a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.projet_item a::after {
    content: '→';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 16px;
}

.projet_item:hover a::after {
    opacity: 1;
}

.projet_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projet_item:hover img {
    transform: scale(1.04);
}

.projet_item figcaption {
    padding: 14px 0;
}

.projet_titre {
    font-weight: 900;
    font-size: 2rem;
}

.projet_annee {
    font-size: 1.5rem;
    color: #555;
}


/* ==========================================
   SECTION LEURS AVIS
========================================== */

.section_avis {
    background-color: #ffb7b7;
    padding: 60px 0 100px;
}

.grille_avis {
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
}

.avis_item {
    background-color: #e000a0;
    padding: 48px 64px 44px 72px;
    max-width: 55%;
    position: relative;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s ease;
}

.avis_item::before {
    content: '«';
    position: absolute;
    top: -20px;
    left: 44px;
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(200, 50, 40, 0.12);
    pointer-events: none;
    user-select: none;
}

.avis_gauche {
    align-self: flex-start;
    transform: rotate(-1.2deg);
}

.avis_droite {
    align-self: flex-end;
    transform: rotate(1.2deg);
}

.avis_gauche:hover {
    transform: rotate(-1.2deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.avis_droite:hover {
    transform: rotate(1.2deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.avis_corps {
    position: relative;
    z-index: 1;
}

.avis_item p {
    font-size: 1.9rem;
    line-height: 1.65;
}

.avis_item cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.cite_nom {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.cite_role {
    font-size: 1.2rem;
    opacity: 0.65;
}


/* ==========================================
   SECTION CRÉONS ENSEMBLE
========================================== */

.section_contact {
    background-color: rgb(243, 235, 174);
    padding: 60px 0 100px;
}

.section_contact .section_titre {
    text-align: left;
    line-height: 1;
    margin-bottom: 60px;
}

.contact_grille {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.contact_intro {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.7;
}

.contact_liens {
    display: flex;
    flex-direction: column;
}

.contact_lien_social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 900;
    padding: 18px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    transition: padding-left 0.25s ease;
}

.contact_lien_social:first-child {
    border-top: 2px solid rgba(0, 0, 0, 0.15);
}

.contact_lien_social .fleche {
    font-size: 1.5rem;
    opacity: 0.4;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.contact_lien_social:hover {
    padding-left: 14px;
}

.contact_lien_social:hover .fleche {
    opacity: 1;
    transform: translate(4px, -4px);
}

.contact_formulaire {
    display: flex;
    flex-direction: column;
}

.contact_ligne {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact_champ {
    position: relative;
    margin-bottom: 52px;
}

.contact_champ input {
    width: 100%;
    padding: 20px 0 10px;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 1.8rem;
    background-color: transparent;
    outline: none;
    transition: border-color 0.25s ease;
}

.contact_champ textarea {
    width: 100%;
    padding: 52px 28px 24px;
    border: 2px solid rgba(0, 0, 0, 0.18);
    border-radius: 24px;
    font-family: inherit;
    font-size: 1.8rem;
    background-color: transparent;
    min-height: 200px;
    resize: vertical;
    outline: none;
    transition: border-color 0.25s ease;
}

.contact_champ label {
    position: absolute;
    top: 18px;
    left: 0;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease, letter-spacing 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.contact_champ--textarea label {
    top: 22px;
    left: 28px;
}

.contact_champ input:focus ~ label,
.contact_champ input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
}

.contact_champ textarea:focus ~ label,
.contact_champ textarea:not(:placeholder-shown) ~ label {
    top: 12px;
    left: 28px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
}

.contact_champ input:focus,
.contact_champ textarea:focus {
    border-color: #ff12a4;
}

.contact_bas {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.contact_bouton {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 22px 56px;
    border-radius: 60px;
    background-color: #ff12a4;
    color: #ffeb12;
    border: none;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.bouton_fleche {
    display: inline-block;
    font-size: 2.2rem;
    transition: transform 0.2s ease;
}

.contact_bouton:hover {
    transform: scale(1.05);
    background-color: #e000a0;
}

.contact_bouton:hover .bouton_fleche {
    transform: translateX(8px);
}

.contact_bouton:active {
    transform: scale(0.98);
}

.contact_confirmation {
    display: none;
    padding: 24px 32px;
    background-color: #ff12a4;
    color: #ffeb12;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 16px;
    margin-top: 24px;
    letter-spacing: 0.05em;
}

.contact_confirmation.visible {
    display: block;
}


/* ==========================================
   FOOTER
========================================== */

.pied {
    border-top: 1px solid #e0e0e0;
    padding: 32px 0;
}

.pied_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pied_icones {
    display: flex;
    gap: 24px;
}

.pied_icones a {
    font-size: 2.4rem;
    color: #2772ff;
    transition: opacity 0.2s ease;
}

.pied_icones a:hover {
    opacity: 0.6;
}

.pied_credits {
    font-size: 0.9rem;
    color: #888;
}


/* ==========================================
   ANIMATIONS AU SCROLL
========================================== */

.anim {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-gauche {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.anim-gauche.visible {
    opacity: 1;
    transform: translateX(0);
}

.anim-droite {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.anim-droite.visible {
    opacity: 1;
    transform: translateX(0);
}

.anim-delai-1 { transition-delay: 0.1s; }
.anim-delai-2 { transition-delay: 0.2s; }
.anim-delai-3 { transition-delay: 0.35s; }
.anim-delai-4 { transition-delay: 0.5s; }


/* ==========================================
   TABLETTE — 1100px
========================================== */

@media (max-width: 1100px) {

    .menu1 {
        gap: 32px;
        margin-right: 40px;
    }

    .menu1 a {
        font-size: 1.6rem;
    }

    .hero_texte h1 {
        font-size: 7rem;
    }

    .section_titre {
        font-size: 4.5rem;
    }

    .avis_item {
        max-width: 68%;
    }

    .contact_grille {
        grid-template-columns: 1fr 1.5fr;
        gap: 48px;
    }
}


/* ==========================================
   MOBILE — 1300px
========================================== */

@media (max-width: 1300px) {

    body {
        padding-top: 80px;
    }

    .entete {
        padding: 12px 0;
    }

    .logo img {
        height: 56px;
    }

    .menu1 {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero_media {
        aspect-ratio: 16 / 9;
    }

    .hero_texte {
        padding: 32px 24px 40px;
        gap: 16px;
    }

    .hero_texte h1 {
        font-size: 2rem;
    }

    .hero_texte p {
        font-size: 1.1rem;
        max-width: 480px;
    }

    .hero_lien {
        font-size: 1.1rem;
    }

    .section_titre {
        font-size: 2rem;
        margin-bottom: 40px;
        margin-top: 32px;
    }

    .grille_projets {
        grid-template-columns: 1fr;
    }

    .grille_avis {
        width: 100%;
    }

    .avis_item {
        max-width: 80%;
        width: 80%;
        padding: 32px 28px;
    }

    .avis_item p {
        font-size: 0.8rem;
    }

    .cite_nom {
        font-size: 1.1rem;
    }

    .section_contact .section_titre {
        text-align: center;
        font-size: 3rem;
    }

    .section_contact .wrapper {
        overflow: hidden;
        padding: 0 24px;
    }

    .contact_grille {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .contact_formulaire {
        order: 1;
    }

    .contact_sociaux {
        order: 2;
    }

    .contact_intro {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .contact_lien_social {
        font-size: 1rem;
        padding: 9px 0;
    }

    .contact_ligne {
          display: flex;
    flex-direction: column;
    gap: 0;
    }

    .contact_champ input {
        width: 100%;
        font-size: 1rem;
          box-sizing: border-box;
    }

    .contact_champ textarea {
        width: 100%;
        font-size: 1rem;
        padding: 44px 20px 20px;
        box-sizing: border-box;
    }

    .contact_champ label {
        font-size: 1rem;
    }

    .contact_champ--textarea label {
        left: 20px;
        top: 18px;
    }

    .contact_champ textarea:focus ~ label,
    .contact_champ textarea:not(:placeholder-shown) ~ label {
        left: 20px;
    }

    .contact_bas {
        justify-content: flex-start;
    }

    .contact_bouton {
        width: auto;
        font-size: 0.5rem;
        padding: 7px 16px;
    }

    .pied_inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ==========================================
   TRÈS PETIT MOBILE — 420px
========================================== */

@media (max-width: 420px) {

    .wrapper {
        padding: 0 20px;
    }

    .hero_texte h1 {
        font-size: 3rem;
    }

    .section_titre {
        font-size: 1rem;
    }

    .section_contact .section_titre {
        font-size: 2.4rem;
    }

    .avis_item {
        padding: 24px 20px;
    }

    .menu_mobile_lien {
        font-size: 2.2rem;
    }
}
