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

.hero {
    position: relative;

    min-height: calc(100vh - 88px);

    padding: 88px 5% 70px;

    display: flex;

    align-items: center;

    overflow: hidden;

    box-sizing: border-box;

    background-color: #000;

    isolation: isolate;
}


/* =========================================================
   ÉLÉMENTS GRAPHIQUES HERO
========================================================= */

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: 10%;
    right: -120px;

    border:
        1px solid
        rgba(255, 0, 0, 0.15);

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;
}


.hero::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    top: 0;
    right: -220px;

    border:
        1px solid
        rgba(255, 255, 255, 0.04);

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   COUCHE INTERACTIVE
========================================================= */

.interactive-layer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


.interactive-shape {
    position: absolute;

    display: block;

    background-color:
        rgb(var(--couleur-rouge));

    pointer-events: none;

    will-change: transform;

    transform-origin: center center;
}


/* =========================================================
   CONTENU HERO
========================================================= */

.hero__content {
    position: relative;

    z-index: 4;

    width: min(90%, var(--site-width));

    margin: 0 auto;

    padding-right: 540px;

    box-sizing: border-box;
}


.hero__text {
    max-width: 850px;
}


.hero__name {
    margin: 0 0 18px;

    color: #fff;

    font-family: var(--poppins);
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.hero__title {
    margin: 0;

    color: #fff;

    font-family: var(--merriweather);

    font-size:
        clamp(54px, 7vw, 105px);

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.04em;
}


.hero__title span {
    position: relative;

    display: inline-block;
}


.hero__title span img {
    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: auto;

    pointer-events: none;
}


.hero__text h2 {
    margin-top: 35px;

    color: #fff;

    font-family: var(--poppins);

    font-size:
        clamp(22px, 2.3vw, 34px);

    font-weight: 500;

    line-height: 1.2;
}


.hero__text p {
    margin-top: 20px;

    color:
        rgba(217, 217, 217, 0.7);

    font-family: var(--poppins);

    font-size: 16px;

    font-weight: 500;

    line-height: 1.7;
}


/* =========================================================
   CTA HERO
========================================================= */

.hero__contact {
    margin-top: 55px;

    display: flex;

    align-items: center;

    gap: 18px;
}


.hero__contact-button {
    position: relative;

    overflow: hidden;

    min-width: 180px;
    height: 52px;

    padding: 0 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #fff;

    font-family: var(--poppins);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.08em;

    cursor: none;

    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1),
        background-color 0.35s ease;
}


.hero__contact-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background-color:
        rgb(var(--couleur-rouge));

    transform:
        translateX(-101%);

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1);

    z-index: -1;
}


.hero__contact-button:hover {
    transform:
        translateY(-3px);

    background:
        rgba(255, 255, 255, 0.15);
}


.hero__contact-button:hover::before {
    transform:
        translateX(0);
}


.hero__contact-triangle {
    width: 12px;

    height: auto;
}


.hero__contact-text {
    color:
        rgba(217, 217, 217, 0.65);

    font-family: var(--poppins);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   TAS DE VISUELS — CONTENEUR
========================================================= */

.hero__visual-stack {
    position: absolute;

    top: 50%;

    right:
        max(
            5%,
            calc((100% - var(--site-width)) / 2)
        );

    width: 500px;
    height: 560px;

    transform:
        translateY(-50%);

    z-index: 5;

    pointer-events: none;
}


/* =========================================================
   VRAIES CARTES
========================================================= */

.hero__visual {
    position: absolute;

    width: 330px;
    height: 430px;

    top: 50%;
    left: 50%;

    background-color:
        rgb(var(--couleur-rouge));

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.35);

    transform-origin: center center;

    pointer-events: none;

    cursor: none;

    transition:
        transform 0.55s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.5s ease,
        filter 0.4s ease,
        opacity 0.45s ease;
}


/* =========================================================
   POSITIONS NORMALES
========================================================= */

.hero__visual--back {
    transform:
        translate(-50%, -50%)
        rotate(-9deg)
        translate(-85px, 35px);

    opacity: 0.62;

    z-index: 1;
}


.hero__visual--middle {
    transform:
        translate(-50%, -50%)
        rotate(6deg)
        translate(0, 25px);

    opacity: 0.82;

    z-index: 2;
}


.hero__visual--front {
    transform:
        translate(-50%, -50%)
        rotate(-2deg)
        translate(70px, -35px);

    opacity: 1;

    z-index: 3;
}


/* =========================================================
   CARTE ACTIVE
========================================================= */

.hero__visual--back.is-hovered {
    transform:
        translate(-50%, -50%)
        rotate(-4deg)
        translate(-55px, 15px)
        scale(1.08);

    opacity: 1;

    filter:
        brightness(1.05);

    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.5);

    z-index: 20;
}


.hero__visual--middle.is-hovered {
    transform:
        translate(-50%, -50%)
        rotate(2deg)
        translate(0, -35px)
        scale(1.10);

    opacity: 1;

    filter:
        brightness(1.05);

    box-shadow:
        0 35px 80px
        rgba(0, 0, 0, 0.55);

    z-index: 20;
}


.hero__visual--front.is-hovered {
    transform:
        translate(-50%, -50%)
        rotate(1deg)
        translate(55px, -55px)
        scale(1.08);

    opacity: 1;

    filter:
        brightness(1.05);

    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.5);

    z-index: 20;
}


/* =========================================================
   AUTRES CARTES PENDANT LE SURVOL
========================================================= */

.hero__visual-stack:has(
    .hero__visual.is-hovered
) .hero__visual:not(.is-hovered) {

    filter:
        brightness(0.72);

    opacity: 0.65;
}


/* =========================================================
   ZONES INVISIBLES DE SURVOL
========================================================= */

.hero__visual-hit {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 330px;
    height: 430px;

    pointer-events: auto;

    cursor: none;

    background: transparent;

    border: none;

    z-index: 30;
}


/*
   Les zones suivent exactement
   les positions des cartes.
*/

.hero__visual-hit--back {
    transform:
        translate(-50%, -50%)
        rotate(-9deg)
        translate(-85px, 35px);

    z-index: 31;
}


.hero__visual-hit--middle {
    transform:
        translate(-50%, -50%)
        rotate(6deg)
        translate(0, 25px);

    z-index: 32;
}


.hero__visual-hit--front {
    transform:
        translate(-50%, -50%)
        rotate(-2deg)
        translate(70px, -35px);

    z-index: 33;
}


/* =========================================================
   À PROPOS
========================================================= */

.about {
    position: relative;

    min-height: 850px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background-color: #000;

    isolation: isolate;
}


.about__content {
    position: relative;

    z-index: 3;

    width: min(90%, 1200px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 0.9fr);

    grid-template-rows:
        auto
        auto;

    column-gap: 70px;

    row-gap: 30px;

    align-items: center;
}


.about__text {
    grid-column: 1;

    grid-row: 1;

    max-width: 560px;
}


.about__text h1 {
    margin: 0 0 25px;

    color: #fff;

    font-family: var(--merriweather);

    font-size: 52px;

    font-weight: 500;

    line-height: 1;
}


.about__text h2 {
    margin: 0 0 22px;

    color: #fff;

    font-family: var(--poppins);

    font-size: 24px;

    font-weight: 500;
}


.about__text p {
    margin: 0 0 18px;

    color:
        rgba(217, 217, 217, 0.72);

    font-family: var(--poppins);

    font-size: 16px;

    font-weight: 500;

    line-height: 1.75;
}


/* =========================================================
   GRAND LOGO
========================================================= */

.about__logo {
    grid-column: 2;

    grid-row: 1 / 3;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    isolation: isolate;
}


.about__logo::before {
    content: "";

    position: absolute;

    width: 70%;
    height: 70%;

    left: 15%;
    top: 15%;

    background:
        radial-gradient(
            circle,
            rgba(255, 0, 0, 0.08),
            transparent 70%
        );

    filter: blur(20px);

    z-index: -1;

    pointer-events: none;
}


.about__logo img {
    width:
        min(100%, 520px);

    height: auto;

    display: block;

    transition:
        filter 0.5s ease;
}


.about__logo:hover img {
    filter:
        drop-shadow(
            0 0 18px
            rgba(255, 0, 0, 0.18)
        );
}


/* =========================================================
   MON HISTOIRE
========================================================= */

.about__history {
    grid-column: 1;

    grid-row: 2;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 20px;

    margin-top: 15px;

    padding-top: 10px;

    max-width: 560px;
}


.about__history p {
    color:
        rgba(217, 217, 217, 0.62);

    font-family: var(--poppins);

    font-size: 13px;

    line-height: 1.5;
}


.about__history img {
    width: 8px;

    height: auto;
}


.about__history-button {
    flex-shrink: 0;

    height: 40px;

    padding: 0 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.4);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.07);

    color: #fff;

    font-family: var(--poppins);

    font-size: 9px;

    font-weight: 500;

    cursor: none;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}


.about__history-button:hover {
    transform:
        translateY(-3px);

    background:
        rgba(255, 0, 0, 0.12);

    border-color:
        rgba(255, 0, 0, 0.65);
}


/* =========================================================
   LOGICIELS
========================================================= */

.about__software {
    grid-column: 1 / 3;

    width: 100%;

    overflow: hidden;

    position: relative;

    margin-top: 20px;

    padding: 14px 0;

    background:
        rgba(217, 217, 217, 0.05);

    border-top:
        1px solid
        rgba(217, 217, 217, 0.14);

    border-bottom:
        1px solid
        rgba(217, 217, 217, 0.14);

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );
}


.about__software-track {
    display: flex;

    align-items: center;

    width: max-content;

    will-change: transform;
}


.about__software-group {
    display: flex;

    align-items: center;

    gap: 90px;

    padding-right: 90px;

    flex-shrink: 0;
}


.about__software-item {
    width: 125px;
    height: 125px;

    flex: 0 0 125px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.about__software-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    opacity: 1;

    filter:
        brightness(1.2);
}


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

.section-title {
    position: relative;

    min-height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background-color: #000;
}


.section-title__inner {
    width: min(90%, var(--site-width));

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 50px;
}


.section-title h1 {
    margin: 0;

    color: #fff;

    font-family: var(--merriweather);

    font-size:
        clamp(40px, 5vw, 68px);

    font-weight: 500;

    line-height: 1;

    text-align: center;
}


.section-title__shape {
    width: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


.section-title__shape img {
    width: 100%;

    height: auto;
}


.section-title:hover
.section-title__shape:first-child {
    transform:
        translateX(-8px);
}


.section-title:hover
.section-title__shape:last-child {
    transform:
        translateX(8px);
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-section {
    position: relative;

    min-height: 650px;

    display: flex;

    align-items: center;

    background-color: #000;

    overflow: hidden;

    isolation: isolate;
}


.portfolio {
    position: relative;

    z-index: 3;

    width: 100%;

    display: flex;

    gap: 30px;

    padding: 40px 8%;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;
}


.portfolio::-webkit-scrollbar {
    display: none;
}


.portfolio__project {
    position: relative;

    flex:
        0 0
        min(420px, 32vw);

    overflow: hidden;

    background-color: #111;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    cursor: none;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        border-color 0.45s ease;
}


.portfolio__project:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(255, 255, 255, 0.22);
}


.portfolio__image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background-color: #111;
}


.portfolio__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1),
        filter 0.7s ease;
}


.portfolio__project:hover
.portfolio__image img {
    transform:
        scale(1.04);

    filter:
        brightness(0.92);
}


.portfolio__info {
    padding: 25px;

    background-color: #000;
}


.portfolio__info h2 {
    margin: 0;

    color: #fff;

    font-family: var(--merriweather);

    font-size: 20px;

    font-weight: 500;

    line-height: 1.3;
}


.portfolio__details {
    margin-top: 15px;
}


.portfolio__details p {
    margin: 3px 0;

    color:
        rgba(217, 217, 217, 0.56);

    font-family: var(--poppins);

    font-size: 11px;

    line-height: 1.5;
}


.portfolio__project::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background-color:
        rgb(var(--couleur-rouge));

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1);
}


.portfolio__project:hover::after {
    transform:
        scaleX(1);
}


/* =========================================================
   FLÈCHES
========================================================= */

.portfolio__arrow {
    position: absolute;

    top: 50%;

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);

    z-index: 5;

    cursor: none;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        opacity 0.3s ease;
}


.portfolio__arrow img {
    width: 8px;

    height: auto;
}


.portfolio__arrow:hover {
    transform:
        translateY(-50%)
        scale(1.08);

    border-color:
        rgba(255, 255, 255, 0.7);

    background:
        rgba(255, 0, 0, 0.12);
}


.portfolio__arrow--left {
    left: 2.5%;
}


.portfolio__arrow--right {
    right: 2.5%;
}


/* =========================================================
   PASSION
========================================================= */

.passion {
    position: relative;

    width: 100%;

    min-height: 650px;

    margin: 0;

    padding: 80px 5%;

    display: flex;

    align-items: center;

    background-color: #000;

    overflow: hidden;

    isolation: isolate;

    box-sizing: border-box;
}


.passion__content {
    position: relative;

    z-index: 3;

    width: min(90%, 1200px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 35px;

    align-items: center;
}


.passion__project {
    position: relative;

    overflow: hidden;

    background-color: #111;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    cursor: none;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        border-color 0.45s ease;
}


.passion__project:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(255, 255, 255, 0.2);
}


.passion__image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;
}


.passion__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


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


.passion__info {
    padding: 25px;

    background-color: #000;
}


.passion__info h2 {
    margin: 0;

    color: #fff;

    font-family: var(--merriweather);

    font-size: 20px;

    font-weight: 500;
}


.passion__info p {
    margin-top: 5px;

    color:
        rgba(217, 217, 217, 0.56);

    font-family: var(--poppins);

    font-size: 11px;
}


.passion__project::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background-color:
        rgb(var(--couleur-rouge));

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1);
}


.passion__project:hover::after {
    transform:
        scaleX(1);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    position: relative;

    min-height: 500px;

    padding: 100px 5%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    background-color: #000;

    isolation: isolate;
}


.contact::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255, 0, 0, 0.08);

    border-radius: 50%;

    pointer-events: none;
}


.contact h2,
.contact__button {
    position: relative;

    z-index: 3;
}


.contact h2 {
    margin: 0;

    max-width: 850px;

    color: #fff;

    font-family: var(--merriweather);

    font-size:
        clamp(32px, 4vw, 58px);

    font-weight: 500;

    line-height: 1.2;
}


.contact__button {
    margin-top: 45px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;
}


.contact__button img {
    width: 12px;

    height: auto;
}


.contact__button button {
    min-width: 190px;

    height: 52px;

    padding: 0 25px;

    border:
        1px solid
        rgba(255, 255, 255, 0.4);

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #fff;

    font-family: var(--poppins);

    font-size: 10px;

    font-weight: 500;

    cursor: none;

    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1),
        background-color 0.35s ease,
        border-color 0.35s ease;
}


.contact__button button:hover {
    transform:
        translateY(-4px)
        scale(1.03);

    background-color:
        rgb(var(--couleur-rouge));

    border-color:
        rgb(var(--couleur-rouge));
}


/* =========================================================
   IMAGE FINALE
========================================================= */

.final-image {
    position: relative;

    width: 100%;

    overflow: hidden;

    background-color: #000;

    isolation: isolate;
}


.final-image img {
    position: relative;

    z-index: 3;

    width: 100%;

    height: auto;

    display: block;
}


/* =========================================================
   DÉMARCATIONS
========================================================= */

.about::after,
.portfolio-section::after,
.passion::after,
.contact::after {
    content: "";

    position: absolute;

    top: 0;

    left: 5%;
    right: 5%;

    height: 1px;

    background:
        rgba(255, 255, 255, 0.13);

    box-shadow:
        0 0 12px
        rgba(255, 255, 255, 0.05);

    pointer-events: none;

    z-index: 10;
}


/* =========================================================
   SCROLL CINÉMATIQUE
========================================================= */

.about,
.section-title,
.portfolio-section,
.passion,
.contact,
.final-image {

    opacity: 0;

    transform:
        translateY(70px)
        scale(0.98);

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 1s cubic-bezier(.22, 1, .36, 1);
}


.about.is-visible,
.section-title.is-visible,
.portfolio-section.is-visible,
.passion.is-visible,
.contact.is-visible,
.final-image.is-visible {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


.hero {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   RESPONSIVE — 1100
========================================================= */

@media (max-width: 1100px) {

    .hero__content {
        padding-right: 0;
    }


    .hero__visual-stack {
        right: -140px;

        opacity: 0.18;
    }


    .portfolio__project {
        flex-basis: 420px;
    }


    .about__content {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 0.8fr);

        column-gap: 50px;
    }


    .about__logo img {

        width:
            min(100%, 450px);
    }

}


/* =========================================================
   RESPONSIVE — 900
========================================================= */

@media (max-width: 900px) {

    .hero {

        min-height:
            calc(100vh - 72px);

        padding:
            72px 5% 60px;
    }


    .hero__content {

        padding-right: 0;
    }


    .hero__visual-stack {

        display: none;
    }


    .about {

        min-height: auto;

        padding:
            90px 0;
    }


    .about__content {

        width: 90%;

        grid-template-columns:
            1fr;

        grid-template-rows:
            auto;

        column-gap: 0;

        row-gap: 45px;
    }


    .about__text {

        grid-column: 1;

        grid-row: auto;

        max-width: 100%;
    }


    .about__logo {

        grid-column: 1;

        grid-row: auto;

        height: auto;

        max-width: 500px;

        margin: 0 auto;
    }


    .about__history {

        grid-column: 1;

        grid-row: auto;

        max-width: 100%;
    }


    .about__software {

        grid-column: 1;
    }


    .passion {

        min-height: auto;

        padding:
            70px 0;
    }


    .passion__content {

        width: 90%;

        grid-template-columns:
            1fr;

        gap: 30px;
    }

}


/* =========================================================
   RESPONSIVE — 600
========================================================= */

@media (max-width: 600px) {

    .hero__content {
        width: 92%;
    }


    .hero__name {
        margin-bottom: 12px;
        font-size: 13px;
        letter-spacing: 0.13em;
    }


    .hero__title {
        font-size: 50px;
    }


    .hero__text h2 {
        font-size: 21px;
    }


    .hero__text p {
        font-size: 14px;
    }


    .hero__text p br {
        display: none;
    }


    .hero__contact {

        flex-wrap: wrap;

        gap: 14px;
    }


    .hero__contact-text {
        width: 100%;
    }


    .about {

        padding:
            70px 0;
    }


    .about__content {

        width: 92%;

        row-gap: 35px;
    }


    .about__text h1 {

        font-size: 42px;
    }


    .about__text h2 {

        font-size: 20px;
    }


    .about__text p {

        font-size: 14px;
    }


    .about__logo {

        max-width: 350px;
    }


    .about__history {

        flex-wrap: wrap;

        gap: 14px;
    }


    .about__history p {

        width: 100%;
    }


    .about__software-item {

        width: 100px;

        height: 100px;

        flex-basis: 100px;
    }


    .about__software-group {

        gap: 60px;

        padding-right: 60px;
    }


    .section-title {

        min-height: 170px;
    }


    .section-title__inner {

        gap: 20px;
    }


    .section-title h1 {

        font-size: 38px;
    }


    .section-title__shape {

        width: 45px;
    }


    .portfolio {

        gap: 20px;

        padding:
            30px 12%;
    }


    .portfolio__project {

        flex-basis: 82vw;
    }


    .portfolio__arrow {

        width: 45px;

        height: 45px;
    }


    .portfolio__arrow--left {

        left: 3%;
    }


    .portfolio__arrow--right {

        right: 3%;
    }


    .contact {

        min-height: 430px;

        padding:
            80px 6%;
    }


    .contact h2 {

        font-size: 30px;
    }


    .contact__button {

        margin-top: 35px;
    }

}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .about,
    .section-title,
    .portfolio-section,
    .passion,
    .contact,
    .final-image {

        opacity: 1;

        transform: none;

        transition: none;
    }


    .section-title__shape,
    .portfolio__project,
    .portfolio__image img,
    .passion__project,
    .passion__image img,
    .hero__contact-button,
    .about__history-button,
    .contact__button button,
    .hero__visual {

        transition: none;
    }

}
/* =========================================================
   COHÉRENCE DA — ACCUEIL V2
   Même vocabulaire visuel que Virtus / Mon histoire
========================================================= */
.hero,
.about,
.portfolio-section,
.passion,
.contact {
    position: relative;
}

.about,
.portfolio-section,
.passion,
.contact {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.about__content,
.portfolio-section__content,
.passion__content,
.contact__content {
    width: min(calc(100% - (var(--content-gutter) * 2)), var(--content-width));
    margin-inline: auto;
}

.about__text h1,
.portfolio-section h1,
.passion h1,
.contact h2 {
    letter-spacing: var(--title-tight);
}

.about__text p,
.portfolio-section p,
.passion__info p,
.contact p {
    line-height: 1.75;
}

/* Réduit l'effet "UI arrondie" pour retrouver la DA éditoriale */
.about__history-button,
.hero__contact-button,
.contact__button button {
    border-radius: 0;
}

.portfolio__project,
.passion__project {
    border-radius: 0;
}

/* Lignes éditoriales communes */
.about::before,
.portfolio-section::before,
.passion::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--content-gutter);
    right: var(--content-gutter);
    height: 1px;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

@media (max-width: 650px) {
    .about,
    .portfolio-section,
    .passion,
    .contact {
        padding-top: 82px;
        padding-bottom: 82px;
    }
}

/* =========================================================
   FINITION DA — ACCUEIL V3
========================================================= */

/* HERO : plus éditorial, plus net, moins décoratif */
.hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + clamp(70px, 7vw, 110px));
    padding-bottom: clamp(72px, 7vw, 110px);
}

.hero::before,
.hero::after {
    border-radius: 0;
    transform: rotate(45deg);
    opacity: .7;
}

.hero__content {
    width: min(calc(100% - (var(--content-gutter) * 2)), var(--content-width));
    padding-right: clamp(420px, 35vw, 540px);
}

.hero__title {
    font-size: clamp(64px, 7.8vw, 116px);
    line-height: .9;
    letter-spacing: -.055em;
}

.hero__text h2 {
    max-width: 720px;
    margin-top: 42px;
    font-size: clamp(20px, 2vw, 30px);
}

.hero__text p {
    max-width: 610px;
    color: rgba(255,255,255,.62);
    font-size: 15px;
}

.hero__contact {
    margin-top: clamp(42px, 5vw, 66px);
}

.hero__visual {
    box-shadow: 0 28px 70px rgba(0,0,0,.42);
}

/* À PROPOS : hiérarchie plus forte */
.about {
    background: #050505;
}

.about__text h1 {
    font-size: 10px;
    font-family: var(--poppins);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
}

.about__text h2 {
    margin-top: 22px;
    font-family: var(--merriweather);
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -.045em;
}

.about__text p {
    max-width: 670px;
    color: rgba(255,255,255,.64);
    font-size: 15px;
}

/* TITRES DE CHAPITRE : transition éditoriale */
.section-title {
    padding: clamp(70px, 7vw, 105px) var(--content-gutter);
    background: #d9d9d9;
    color: #050505;
    border-top: 1px solid rgba(0,0,0,.14);
    border-bottom: 1px solid rgba(0,0,0,.14);
}

.section-title__inner {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.section-title h1 {
    font-size: clamp(52px, 6vw, 88px);
    line-height: .95;
    letter-spacing: -.05em;
}

.section-title__shape {
    opacity: .72;
}

/* PROJETS : les visuels dominent, les infos deviennent éditoriales */
.portfolio-section,
.passion {
    background: #050505;
}

.portfolio {
    gap: clamp(20px, 2.2vw, 34px);
}

.portfolio__project,
.passion__project {
    border: 1px solid rgba(255,255,255,.12);
    background: #0a0a0a;
}

.portfolio__image,
.passion__image {
    overflow: hidden;
    background: #111;
}

.portfolio__info,
.passion__info {
    border-top: 1px solid rgba(255,255,255,.12);
}

.portfolio__info h2,
.passion__info h2 {
    font-family: var(--merriweather);
    letter-spacing: -.025em;
}

.portfolio__details p,
.passion__info p {
    color: rgba(255,255,255,.48);
    font-size: 10px;
    letter-spacing: .04em;
}

.portfolio__arrow {
    border-radius: 0;
    background: #050505;
}

/* CONTACT HOME : retire le grand cercle et crée un final plus premium */
.contact {
    min-height: 620px;
    padding-inline: var(--content-gutter);
}

.contact::before {
    width: min(calc(100% - (var(--content-gutter) * 2)), var(--content-width));
    height: 1px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.12);
}

.contact h2 {
    max-width: 980px;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.contact__button button {
    min-width: 210px;
    height: 50px;
    letter-spacing: .1em;
}

.final-image {
    border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 1050px) {
    .hero__content {
        padding-right: 360px;
    }
    .hero__visual-stack {
        right: -30px;
        transform: translateY(-50%) scale(.82);
    }
}

@media (max-width: 800px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 72px);
    }
    .hero__content {
        padding-right: 0;
    }
    .hero__visual-stack {
        position: relative;
        top: auto;
        right: auto;
        margin: 60px auto 0;
        transform: scale(.8);
        transform-origin: top center;
    }
    .section-title {
        padding-block: 68px;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: clamp(52px, 16vw, 74px);
    }
    .hero__text h2 {
        margin-top: 32px;
    }
    .hero__visual-stack {
        width: 100%;
        height: 420px;
        margin-top: 36px;
        transform: scale(.68);
    }
    .section-title__shape {
        display: none;
    }
    .section-title__inner {
        justify-content: flex-start;
    }
    .contact {
        min-height: 520px;
    }
}


/* =========================================================
   FINITION V4 — TITRES DE SECTIONS + CARROUSEL
========================================================= */
.section-title {
    padding: clamp(42px, 4.8vw, 68px) var(--content-gutter);
    background: #050505;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.section-title__inner {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 76px;
    align-items: center;
    gap: clamp(22px, 3vw, 46px);
}

.section-title h1 {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: clamp(48px, 5.4vw, 78px);
}

.section-title__shape {
    opacity: .38;
}

.section-title__shape img {
    filter: brightness(0) invert(1);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 2px;
    transform: translateX(-50%);
    background: rgb(var(--couleur-rouge));
}

.portfolio__arrow {
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    background: rgba(5,5,5,.82);
    border: 1px solid rgba(255,255,255,.32);
}

.portfolio__arrow:hover {
    border-radius: 50% !important;
    background: rgba(255,0,0,.16);
}

@media (max-width: 650px) {
    .section-title {
        padding: 38px var(--content-gutter);
    }

    .section-title__inner {
        grid-template-columns: 38px minmax(0,1fr) 38px;
        gap: 14px;
    }

    .section-title h1 {
        font-size: clamp(36px, 11vw, 52px);
    }
}

/* =========================================================
   FINITION V5 — ACCUEIL / RYTHME / CARTES
========================================================= */
.hero__text h2 { max-width: 720px; }
.hero__text p { max-width: 620px; }

.about { padding-block: clamp(100px, 9vw, 145px); }
.about__content { align-items: center; }

.section-title {
    min-height: 0;
    padding-block: clamp(34px, 3.8vw, 54px);
}
.section-title__inner {
    width: min(calc(100% - (var(--content-gutter) * 2)), var(--content-width));
}
.section-title h1 {
    font-size: clamp(44px, 4.8vw, 70px);
    letter-spacing: -.045em;
}

.portfolio-section,
.passion { min-height: 0; }
.portfolio { padding-top: clamp(70px, 6vw, 92px); padding-bottom: clamp(70px, 6vw, 92px); }
.passion { padding-top: clamp(78px, 7vw, 105px); padding-bottom: clamp(78px, 7vw, 105px); }

.portfolio__project,
.passion__project {
    border-color: rgba(255,255,255,.12);
    background: #070707;
}
.portfolio__info,
.passion__info {
    padding: 24px 24px 27px;
    border-top: 1px solid rgba(255,255,255,.09);
    background: #050505;
}
.portfolio__info h2,
.passion__info h2 { font-size: 22px; }
.portfolio__details,
.passion__info p { margin-top: 11px; }

.portfolio__arrow {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    background: rgba(0,0,0,.82);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

@media (max-width: 650px) {
    .portfolio { padding-block: 54px; }
    .passion { padding-block: 60px; }
    .portfolio__arrow { width: 48px; height: 48px; }
}

/* =========================================================
   FINITION V7 — BOUTON HISTOIRE + BOUCLE LOGICIELS
========================================================= */
.about__history-button {
    min-height: 46px;
    padding-inline: 24px;
    font-size: 12px;
    letter-spacing: .055em;
}

.about__software-track {
    animation: about-software-loop 24s linear infinite;
}

.about__software-track.is-motion-paused {
    animation-play-state: paused;
    transform: translate3d(0, 0, 0) !important;
}

@keyframes about-software-loop {
    from { transform: translate3d(0, 0, 0); }
    /* Le track contient 3 groupes strictement identiques. En avançant
       exactement d'un groupe, l'image de départ et d'arrivée est identique. */
    to { transform: translate3d(-33.3333333333%, 0, 0); }
}

@media (max-width: 700px) {
    .about__history-button {
        min-height: 42px;
        padding-inline: 20px;
    }
}

/* =========================================================
   V11 — RESTAURATION CARROUSEL ACCUEIL
   Le fil narratif de l'accueil a été retiré définitivement.
========================================================= */
.home-page .portfolio-section {
    position: relative;
    overflow: hidden;
}

.home-page .portfolio {
    position: relative;
    z-index: 3;
}

.home-page .portfolio__arrow {
    position: absolute;
    top: 50%;
    z-index: 30;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    transform: translateY(-50%);
}

.home-page .portfolio__arrow--left { left: 2.5%; }
.home-page .portfolio__arrow--right { right: 2.5%; }

@media (max-width: 650px) {
    .home-page .portfolio__arrow {
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   V12 — CTA MON HISTOIRE PLUS VISIBLE
========================================================= */
.about__history-button {
    min-width: 156px;
    height: 48px;
    padding: 0 26px;
    border: 1px solid rgb(var(--couleur-rouge));
    border-radius: 24px;
    background: rgb(var(--couleur-rouge));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    box-shadow: 0 8px 28px rgba(255, 0, 0, .18);
}

.about__history-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 10px 32px rgba(255, 255, 255, .12);
}

/* Sur mobile, les sections sont directement visibles : pas de reveal au scroll. */
@media (max-width: 800px) {
    .about,
    .section-title,
    .portfolio-section,
    .passion,
    .contact,
    .final-image,
    .about.is-visible,
    .section-title.is-visible,
    .portfolio-section.is-visible,
    .passion.is-visible,
    .contact.is-visible,
    .final-image.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .about__history-button {
        min-width: 150px;
        height: 46px;
        padding-inline: 22px;
        font-size: 10px;
    }
}

.site-admin-shortcut{display:none!important;}


/* V3.1 — flèches du carrousel CMS toujours cliquables au-dessus des cartes */
.home-page .portfolio__arrow {
    z-index: 100 !important;
    isolation: isolate;
}
.home-page .portfolio__arrow img {
    pointer-events: none;
}
