/* =========================================================
   PAGE D'ACCUEIL — FRANCIS HUBIN
========================================================= */

.page-accueil {
    margin: 0;
    background-color: #181715;
}


/* =========================================================
   CONTENU PRINCIPAL
========================================================= */

.accueil {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* =========================================================
   GRANDE PHOTO D'ACCUEIL
========================================================= */

.hero-accueil {
    position: relative;

    width: 100%;
    height: calc(100vh - 75px);
    min-height: 580px;

    overflow: hidden;

    background-color: #201e1b;
}


.hero-photo {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.001);
}


.hero-degrade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(12, 11, 10, 0.88) 0%,
            rgba(12, 11, 10, 0.48) 22%,
            rgba(12, 11, 10, 0.12) 52%,
            rgba(12, 11, 10, 0.02) 75%
        );
}


.hero-texte {
    position: absolute;
    z-index: 2;

    right: 0;
    bottom: 0;
    left: 0;

    padding:
        clamp(35px, 6vw, 85px)
        clamp(25px, 7vw, 105px);

    color: white;
}


.hero-texte h1 {
    margin: 0 0 12px;

    color: white;

    font-size: clamp(48px, 8vw, 105px);
    font-weight: 400;
    line-height: 0.95;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}


.hero-texte p {
    margin: 0;

    color: white;

    font-size: clamp(18px, 2.3vw, 30px);
    font-weight: 300;

    letter-spacing: 0.075em;
}


/* =========================================================
   ENSEMBLE DES GRANDES BANDES
========================================================= */

.univers {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 5px;
    padding: 5px 0;

    background-color: #181715;
}


/* =========================================================
   UNE BANDE CLIQUABLE
========================================================= */

.univers-carte {
    position: relative;

    display: block;

    width: 100%;
    height: clamp(360px, 52vw, 690px);

    overflow: hidden;

    color: white;
    background-color: #292622;

    text-decoration: none;
}


.univers-carte img,
.motif-perspectives {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


/* Très léger zoom au passage de la souris */

.univers-carte:hover img,
.univers-carte:focus-visible img,
.univers-carte:hover .motif-perspectives,
.univers-carte:focus-visible .motif-perspectives {
    transform: scale(1.04);
    filter: brightness(1.06);
}


/* =========================================================
   DÉGRADÉ DERRIÈRE LE TEXTE
========================================================= */

.univers-degrade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9, 8, 7, 0.82) 0%,
            rgba(9, 8, 7, 0.53) 25%,
            rgba(9, 8, 7, 0.18) 58%,
            rgba(9, 8, 7, 0.02) 82%
        );

    transition: background 0.45s ease;
}


.univers-carte:hover .univers-degrade,
.univers-carte:focus-visible .univers-degrade {
    background:
        linear-gradient(
            90deg,
            rgba(9, 8, 7, 0.87) 0%,
            rgba(9, 8, 7, 0.51) 28%,
            rgba(9, 8, 7, 0.14) 62%,
            rgba(9, 8, 7, 0.01) 84%
        );
}


/* =========================================================
   TITRES POSÉS SUR LES IMAGES
========================================================= */

.univers-texte {
    position: absolute;
    z-index: 3;

    left: clamp(25px, 7vw, 105px);
    bottom: clamp(30px, 7vw, 95px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: white;

    pointer-events: none;
}


.univers-texte strong {
    color: white;

    font-size: clamp(38px, 6vw, 84px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}


.univers-texte em {
    margin-top: 13px;

    color: white;

    font-size: clamp(18px, 2.3vw, 30px);
    font-style: normal;
    font-weight: 300;

    letter-spacing: 0.025em;
}


/* =========================================================
   IMAGE TEMPORAIRE POUR PERSPECTIVES
========================================================= */

.motif-perspectives {
    background-color: #4c4842;

    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 25%,
            transparent 25%
        ),

        linear-gradient(
            225deg,
            rgba(255, 255, 255, 0.05) 25%,
            transparent 25%
        ),

        linear-gradient(
            315deg,
            rgba(255, 255, 255, 0.07) 25%,
            transparent 25%
        ),

        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 25%,
            transparent 25%
        );

    background-size: 80px 80px;
}


/* =========================================================
   ACCESSIBILITÉ CLAVIER
========================================================= */

.univers-carte:focus-visible {
    outline: 4px solid white;
    outline-offset: -8px;
}


/* =========================================================
   TABLETTES
========================================================= */

@media screen and (max-width: 1050px) {

    .hero-accueil {
        height: 75vh;
        min-height: 530px;
    }

}


/* =========================================================
   TÉLÉPHONES
========================================================= */

@media screen and (max-width: 700px) {

    .hero-accueil {
        height: 68vh;
        min-height: 470px;
    }


    .hero-photo {
        object-position: center;
    }


    .hero-texte {
        padding: 30px 22px 36px;
    }


    .hero-texte h1 {
        margin-bottom: 10px;

        font-size: clamp(39px, 12vw, 62px);
        line-height: 1;
    }


    .hero-texte p {
        font-size: 16px;
        line-height: 1.5;

        letter-spacing: 0.035em;
    }


    .univers {
        gap: 3px;
        padding: 3px 0;
    }


    .univers-carte {
        height: 60vh;
        min-height: 350px;
        max-height: 540px;
    }


    .univers-degrade {
        background:
            linear-gradient(
                to top,
                rgba(9, 8, 7, 0.9) 0%,
                rgba(9, 8, 7, 0.53) 32%,
                rgba(9, 8, 7, 0.13) 68%,
                rgba(9, 8, 7, 0.02) 100%
            );
    }


    .univers-carte:hover .univers-degrade,
    .univers-carte:focus-visible .univers-degrade {
        background:
            linear-gradient(
                to top,
                rgba(9, 8, 7, 0.92) 0%,
                rgba(9, 8, 7, 0.5) 35%,
                rgba(9, 8, 7, 0.1) 72%,
                rgba(9, 8, 7, 0.01) 100%
            );
    }


    .univers-texte {
        right: 22px;
        bottom: 32px;
        left: 22px;
    }


    .univers-texte strong {
        font-size: clamp(34px, 10.5vw, 53px);
        line-height: 1.05;
    }


    .univers-texte em {
        margin-top: 9px;

        font-size: 18px;
        line-height: 1.35;
    }

}


/* =========================================================
   TRÈS PETITS TÉLÉPHONES
========================================================= */

@media screen and (max-width: 390px) {

    .hero-texte h1 {
        font-size: 36px;
    }


    .hero-texte p {
        font-size: 14px;
    }


    .univers-texte strong {
        font-size: 31px;
    }


    .univers-texte em {
        font-size: 16px;
    }

}