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

.hero-section {
    position: relative;

    min-height: 100vh;
    padding: 140px 8% 80px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    align-items: center;
    gap: 64px;
}


/* ==========================================================
   CONTENU TEXTUEL
========================================================== */

.hero-text {
    position: relative;
    z-index: 2;

    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    width: fit-content;
    margin-bottom: 26px;
    padding: 8px 16px;

    display: inline-flex;
    align-items: center;

    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-pill);

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-text h1 {
    max-width: 760px;
    margin: 0;
}

.hero-description {
    max-width: 680px;
    margin-top: 28px;

    color: #4f4f4f;

    font-size: 1.1rem;
    line-height: 1.8;
}


/* ==========================================================
   ACTIONS
========================================================== */

.hero-actions {
    margin-top: 36px;

    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* ==========================================================
   COMPÉTENCES
========================================================== */

.hero-skills {
    margin-top: 24px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-skills span {
    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.55);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-pill);

    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;

    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.06);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    cursor: default;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-skills span:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.92);

    border-color: var(--color-white);

    box-shadow: 0 16px 34px rgba(31, 31, 31, 0.12);

    transform: translateY(-2px);
}


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

.hero-media {
    position: relative;

    width: min(100%, 640px);
    min-width: 0;
    margin: 0 auto;

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

    overflow: visible;
}

.hero-visual {
    position: relative;

    width: 100%;
    min-height: 590px;

    overflow: visible;

    isolation: isolate;
}


/* ==========================================================
   FORMES DÉCORATIVES
========================================================== */

.hero-visual-blob,
.hero-visual-ring {
    position: absolute;

    display: block;

    pointer-events: none;
}

.hero-visual-blob-main {
    z-index: 1;

    top: 78px;
    left: 50%;

    width: 370px;
    height: 370px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            135deg,
            rgba(155, 216, 198),
            rgba(59, 167, 166)
        );

    border-radius: 50%;

    box-shadow:
        0 30px 70px rgba(59, 167, 166, 0.14);
}

.hero-visual-blob-soft {
    z-index: 1;

    top: 322px;
    right: 0;

    width: 155px;
    height: 155px;

    background:
        linear-gradient(
            135deg,
            rgba(155, 216, 198, 0.72),
            rgba(59, 167, 166, 0.44)
        );

    border-radius: 50%;

    opacity: 0.8;
}

.hero-visual-ring {
    z-index: 0;

    top: 38px;
    left: 50%;

    width: 455px;
    height: 455px;

    transform: translateX(-50%);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}


/* ==========================================================
   LOGO CENTRAL
========================================================== */

.hero-card-main {
    position: absolute;
    z-index: 3;

    top: 90px;
    left: 50%;

    width: min(420px, 76%);
    height: 285px;

    transform: translateX(-50%);

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

    background: transparent;

    border: none;

    box-shadow: none;

    pointer-events: none;
}

.hero-card-main::before,
.hero-card-main::after {
    display: none;
}

.hero-card-main img {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ==========================================================
   MOCKUP EN BAS À DROITE DU LOGO
========================================================== */

.hero-devices {
    position: absolute;
    z-index: 4;

    right: -18px;
    bottom: 20px;

    width: min(390px, 62%);

    pointer-events: none;
}

.hero-devices::before {
    content: "";

    position: absolute;
    z-index: -1;

    left: 50%;
    bottom: 16px;

    width: 72%;
    height: 34px;

    transform: translateX(-50%);

    background: rgba(31, 31, 31, 0.18);

    border-radius: 50%;

    filter: blur(20px);
}

.hero-devices img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 32px rgba(31, 31, 31, 0.18)
        );
}


/* ==========================================================
   CARTES FLOTTANTES
========================================================== */

.floating-card {
    position: absolute;
    z-index: 5;

    min-width: 190px;
    min-height: 66px;
    padding: 13px 18px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 22px;

    box-shadow: 0 18px 45px rgba(31, 31, 31, 0.12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-card:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.96);

    border-color: var(--color-white);

    box-shadow: 0 22px 46px rgba(31, 31, 31, 0.15);

    transform: translateY(-3px);
}

.floating-card img {
    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    object-fit: contain;
}

.floating-card span {
    color: var(--color-text);
}


/* ==========================================================
   POSITION DES CARTES — DESKTOP
========================================================== */

.floating-card-dev {
    top: 68px;
    left: -8px;
}

.floating-card-design {
    top: 260px;
    right: -74px;
}

.floating-card-graph {
    bottom: 126px;
    left: 18px;
}


/* ==========================================================
   ÉCRANS INTERMÉDIAIRES
========================================================== */

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

    .hero-content {
        gap: 42px;
    }

    .hero-media {
        width: min(100%, 590px);
    }

    .hero-visual {
        min-height: 560px;
    }

    .hero-visual-blob-main {
        top: 76px;

        width: 340px;
        height: 340px;
    }

    .hero-visual-blob-soft {
        top: 306px;

        width: 140px;
        height: 140px;
    }

    .hero-visual-ring {
        top: 40px;

        width: 415px;
        height: 415px;
    }

    .hero-card-main {
        top: 88px;

        width: min(390px, 74%);
        height: 270px;
    }

    .hero-devices {
        right: -12px;
        bottom: 20px;

        width: min(350px, 59%);
    }

}


/* ==========================================================
   TABLETTE
========================================================== */

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

    .hero-section {
        min-height: auto;
        padding: 140px 6% 64px;

        align-items: flex-start;

        overflow: hidden;
    }

    .hero-content {
        max-width: 860px;
        margin: 0 auto;

        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .hero-text {
        width: 100%;
        min-height: calc(100vh - 204px);

        align-items: center;

        text-align: center;
    }

    .hero-eyebrow {
        margin-right: auto;
        margin-left: auto;

        font-size: 0.82rem;
    }

    .hero-text h1 {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;

        text-align: center;
    }

    .hero-description {
        max-width: 720px;
        margin: 22px auto 0;

        font-size: 1rem;
        line-height: 1.7;

        text-align: center;
    }

    .hero-actions {
        justify-content: center;

        margin-top: 28px;
    }

    .hero-skills {
        justify-content: center;

        margin-top: 24px;
    }

    .hero-media {
        width: min(610px, 100%);
    }

    .hero-visual {
        min-height: 540px;
    }

    .hero-visual-blob-main {
        top: 74px;

        width: 320px;
        height: 320px;
    }

    .hero-visual-blob-soft {
        top: 290px;
        right: 12px;

        width: 130px;
        height: 130px;
    }

    .hero-visual-ring {
        top: 42px;

        width: 390px;
        height: 390px;
    }

    .hero-card-main {
        top: 88px;

        width: min(360px, 72%);
        height: 250px;
    }

    .hero-devices {
        right: 0;
        bottom: 18px;

        width: min(320px, 54%);
    }

    .floating-card {
        min-width: 175px;
        min-height: 58px;
        padding: 11px 14px;

        border-radius: 18px;

        font-size: 0.78rem;
    }

    .floating-card img {
        width: 30px;
        height: 30px;
    }

    .floating-card-dev {
        top: 66px;
        left: 12px;
    }

    .floating-card-design {
        top: 238px;
        right: 4px;
    }

    .floating-card-graph {
        left: 24px;
    }

}


/* ==========================================================
   TABLETTE BASSE / PAYSAGE COURT
========================================================== */

@media screen and (max-width: 1024px) and (max-height: 760px) {

    .hero-section {
        padding: 100px 6% 48px;
    }

    .hero-content {
        gap: 38px;
    }

    .hero-text {
        min-height: calc(100vh - 148px);
    }

    .hero-eyebrow {
        margin-bottom: 14px;
    }

    .hero-description {
        margin-top: 18px;

        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-skills {
        margin-top: 18px;
    }

    .hero-media {
        width: min(570px, 100%);
    }

    .hero-visual {
        min-height: 500px;
    }

    .hero-visual-blob-main {
        top: 66px;

        width: 290px;
        height: 290px;
    }

    .hero-visual-blob-soft {
        top: 260px;

        width: 112px;
        height: 112px;
    }

    .hero-visual-ring {
        top: 38px;

        width: 350px;
        height: 350px;
    }

    .hero-card-main {
        top: 78px;

        width: min(330px, 70%);
        height: 225px;
    }

    .hero-devices {
        right: 0;
        bottom: 16px;

        width: min(285px, 51%);
    }

    .floating-card-dev {
        top: 56px;
        left: 16px;
    }

    .floating-card-design {
        top: 220px;
        right: 8px;
    }

    .floating-card-graph {
        left: 28px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

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

    .hero-section {
        min-height: auto;
        padding: 0 20px 46px;

        display: block;

        overflow: visible;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .hero-text {
        width: 100%;
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 48px);

        align-items: center;

        text-align: center;
    }

    .hero-eyebrow {
        margin-bottom: 18px;
        padding: 7px 13px;

        font-size: 0.76rem;
    }

    .hero-text h1 {
        max-width: 100%;
        margin: 0 auto;

        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        margin: 22px auto 0;

        font-size: 0.95rem;
        line-height: 1.7;

        text-align: center;
    }

    .hero-actions {
        width: 100%;
        margin-top: 26px;

        flex-direction: column;
        gap: 12px;
    }

    .hero-skills {
        justify-content: center;
        gap: 8px;

        margin-top: 22px;
    }

    .hero-skills span {
        padding: 7px 10px;

        font-size: 0.72rem;
    }

    .hero-media {
        width: min(100%, 430px);
        margin-top: 8px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .hero-visual-blob-main {
        top: 92px;
        left: 50%;

        width: 250px;
        height: 250px;

        transform: translateX(-50%);
    }

    .hero-visual-blob-soft {
        top: 290px;
        right: 4px;

        width: 108px;
        height: 108px;
    }

    .hero-visual-ring {
        top: 62px;
        left: 50%;

        width: 300px;
        height: 300px;

        transform: translateX(-50%);
    }

    .hero-card-main {
        top: 105px;
        left: 50%;

        width: min(275px, 72%);
        height: 195px;

        transform: translateX(-50%);
    }

    .hero-devices {
        right: -8px;
        bottom: 24px;

        width: min(275px, 66%);
    }

    .hero-devices::before {
        bottom: 10px;

        width: 72%;
        height: 24px;

        filter: blur(16px);
    }

    .floating-card {
        min-width: 0;
        max-width: 165px;
        min-height: 52px;
        padding: 8px 11px;

        gap: 8px;

        border-radius: 15px;

        font-size: 0.69rem;

        box-shadow: 0 10px 24px rgba(31, 31, 31, 0.1);
    }

    .floating-card img {
        width: 26px;
        height: 26px;
    }

    .floating-card-dev {
        top: 50px;
        left: 0;
    }

    .floating-card-design {
        top: 225px;
        right: -24px;
    }

    .floating-card-graph {
        left: 10px;
    }

}


/* ==========================================================
   PETITS MOBILES
========================================================== */

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

    .hero-content {
        gap: 28px;
    }

    .hero-media {
        width: 100%;
    }

    .hero-visual {
        min-height: 470px;
    }

    .hero-visual-blob-main {
        top: 88px;

        width: 225px;
        height: 225px;
    }

    .hero-visual-blob-soft {
        top: 275px;
        right: 0;

        width: 94px;
        height: 94px;
    }

    .hero-visual-ring {
        top: 62px;

        width: 270px;
        height: 270px;
    }

    .hero-card-main {
        top: 100px;

        width: min(245px, 70%);
        height: 180px;
    }

    .hero-devices {
        right: -10px;
        bottom: 22px;

        width: min(250px, 68%);
    }

    .hero-devices::before {
        bottom: 9px;

        height: 22px;
    }

    .floating-card {
        max-width: 145px;
        min-height: 48px;
        padding: 7px 9px;

        gap: 7px;

        font-size: 0.62rem;
    }

    .floating-card img {
        width: 23px;
        height: 23px;
    }

    .floating-card-dev {
        top: 44px;
    }

    .floating-card-design {
        top: 210px;
    }

    .floating-card-graph {
        bottom: 10px;
        left: 6px;
    }

}


/* ==========================================================
   TRÈS PETITS MOBILES
========================================================== */

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

    .hero-visual {
        min-height: 440px;
    }

    .hero-visual-blob-main {
        width: 205px;
        height: 205px;
    }

    .hero-visual-blob-soft {
        top: 260px;

        width: 82px;
        height: 82px;
    }

    .hero-visual-ring {
        width: 245px;
        height: 245px;
    }

    .hero-card-main {
        width: min(225px, 68%);
        height: 165px;
    }

    .hero-devices {
        right: -12px;
        bottom: 20px;

        width: min(225px, 68%);
    }

    .floating-card {
        max-width: 135px;

        font-size: 0.58rem;
    }

    .floating-card img {
        width: 21px;
        height: 21px;
    }

    .floating-card-dev {
        top: 38px;
    }

    .floating-card-design {
        top: 195px;
    }

    .floating-card-graph {
        bottom: 8px;
    }

}