/* ==================================================
   00. RESPONSIVE TOKENS & ANIMATIONS
================================================== */


/* ---------- Responsive Tokens ---------- */

@media (max-width: 768px) {

    :root {
        /* ✅ UI KIT — marges mobiles */
        --layout-edge: 24px;

        /* ✅ UI KIT — espacements sections mobiles */
        --section-space: 72px;
        --section-space-tight: 64px;
    }
}

@media (max-width: 420px) {

    :root {
        /* ✅ UI KIT — marges petits mobiles */
        --layout-edge: 20px;
    }
}


/* ---------- Animations ---------- */

@keyframes hero-scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: .45;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}


/* ==================================================
   01. HEADER
================================================== */

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {

    #site-header {
        padding: 18px 0;
    }

    .header-wrapper {
        min-height: auto;

        justify-content: space-between;
        gap: 0;
    }

    .site-brand__logo {
        width: clamp(132px, 18vw, 178px);
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-menu-toggle {
        z-index: calc(var(--z-menu) + 2);

        display: flex;
    }

    .site-mobile-nav {
        position: fixed;
        inset: 0;

        z-index: calc(var(--z-menu) + 1);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 34px;

        padding: 120px var(--layout-edge) 56px;

        background: rgba(3, 4, 4, 0.96);
        backdrop-filter: blur(14px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity var(--transition-base),
            visibility var(--transition-base),
            transform var(--transition-base);
    }

    .site-mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    .site-mobile-nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 24px;

        text-align: center;
    }

    .site-mobile-nav__link {
        color: var(--color-text);

        font-family: var(--font-heading);
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 400;

        letter-spacing: 0.04em;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .site-mobile-nav__link:hover,
    .site-mobile-nav__link:focus-visible {
        color: var(--color-accent);
    }

    .site-mobile-nav__cta {
        margin-top: 10px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {

    #site-header {
        padding: 16px 0;
    }

    .site-brand__logo {
        width: clamp(124px, 30vw, 160px);
    }

    .site-menu-toggle {
        width: 46px;
        height: 46px;
    }

    .site-menu-toggle span {
        width: 26px;
        height: 2px;
    }

    .site-mobile-nav__link {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ---------- 420px ---------- */
@media (max-width: 420px) {

    .site-brand__logo {
        width: clamp(116px, 38vw, 145px);
    }

    .site-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .site-menu-toggle span {
        width: 25px;
        height: 2px;
    }

    .site-mobile-nav {
        padding: 104px var(--layout-edge) 44px;
    }

    .site-mobile-nav__list {
        gap: 22px;
    }

    .site-mobile-nav__link {
        font-size: clamp(1.75rem, 9vw, 2.55rem);
    }
}

/* ==================================================
   02. HERO
================================================== */

/* ---------- 1366px ---------- */


/* ---------- 1200px ---------- */


/* ---------- 980px ---------- */


/* ---------- Tablet Portrait ---------- */
@media (min-width: 769px) and (max-width: 1100px) and (min-height: 1100px) and (orientation: portrait) {

    #hero {
        /* ✅ UI KIT — image Hero dédiée mobile */
        background-image: url("../../assets/img/hero/hero-mobile.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(247, 242, 237, 0.84) 0%,
                rgba(247, 242, 237, 0.76) 35%,
                rgba(247, 242, 237, 0.66) 70%,
                rgba(247, 242, 237, 0.60) 100%
            );
    }

    .hero-content {
        align-items: center;
        gap: 52px;
        width: 100%;
        max-width: 720px;

        margin-inline: auto;
        text-align: center;
    }

    .hero-title {
        width: auto;
        max-width: none;

        font-size: clamp(3rem, 7vw, 4.4rem);
        line-height: 1.02;
    }

    .hero-divider-line {
        max-width: 80%;
    }

    .hero-text {
        max-width: 44ch;
        margin-inline: auto;

        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .hero-checklist {
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-checklist__item,
    .hero-proof {
        justify-content: center;
    }

    .hero-separator {
        width: 52%;
        margin-inline: auto;
    }

    .hero-proof {
        text-align: center;
    }

    .hero-scroll-indicator {
        position: absolute;
        left: 50%;
        bottom: 140px;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 10px;

        text-decoration: none;
        opacity: .65;
        animation: hero-scroll 2.8s ease-in-out infinite;
    }

    .hero-scroll-indicator__line {
        display: block;

        width: 1px;
        height: 48px;

        background-color: rgba(0,0,0,.18);
    }

    .hero-scroll-indicator__text {
        color: rgba(0,0,0,.55);

        font-size: .85rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {

    #hero {
        /* ✅ UI KIT — image Hero dédiée mobile */
        background-image: url("../../assets/img/hero/hero-mobile.png");

        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;        
    }

    #hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(247, 242, 237, 0.84) 0%,
                rgba(247, 242, 237, 0.76) 35%,
                rgba(247, 242, 237, 0.66) 70%,
                rgba(247, 242, 237, 0.60) 100%
            );
    }

    .hero-wrapper {
        align-items: center;
        padding-bottom: 72px;
    }

    .hero-content {
        /* ✅ UI KIT — largeur maximale du contenu mobile */
        width: 100%;
        max-width: 620px;

        /* ✅ UI KIT — alignement mobile premium */
        margin-inline: auto;
        align-items: center;
        text-align: center;
    }

    .hero-title {

        /* ✅ UI KIT — taille du titre Hero mobile */
        font-size: clamp(2.35rem, 9.5vw, 3.35rem);

        line-height: 1.02;
    }

    .hero-divider-line {
        margin-inline: auto;
    }

    .hero-text {
        max-width: 34ch;
        margin-inline: auto;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .hero-checklist {
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-checklist__item {
        justify-content: center;
    }

    .hero-separator {
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-proof {
        justify-content: center;
        text-align: center;
    }

    /* ----- Scroll Indicator ----- */

    .hero-scroll-indicator {
        position: absolute;
        left: 50%;
        bottom: 78px;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 10px;

        text-decoration: none;

        opacity: .65;

        animation: hero-scroll 2.8s ease-in-out infinite;
    }

    .hero-scroll-indicator:hover {
        opacity: 1;
    }

    /* ----- Scroll Indicator Line ----- */

    .hero-scroll-indicator__line {
        display: block;

        width: 1px;
        height: 48px;

        background-color: rgba(0,0,0,.18);
    }


    /* ----- Scroll Indicator Text ----- */

    .hero-scroll-indicator__text {

        color: rgba(0,0,0,.55);

        font-size: .85rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
}

/* ---------- 576px ---------- */
@media (max-width: 576px) {

    .hero-wrapper {
        padding-bottom: 270px;
    }

    .hero-content {
        max-width: 540px;
        gap: 26px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10.5vw, 3rem);
    }

    .hero-button {
        max-width: none;
    }

    .hero-checklist {
        gap: 12px;

        margin-bottom: 28px;
    }

    .hero-separator {
        width: 74%;
    }

    .hero-checklist__text,
    .hero-proof__text {
        font-size: 0.95rem;
    }

    .hero-scroll-indicator {
        bottom: 134px;
    }
}


/* ---------- 420px ---------- */
@media (max-width: 420px) {

    .hero-wrapper {
        /* ✅ UI KIT — respiration Hero très petit mobile */
        padding-bottom: 212px;
    }

    .hero-content {
        gap: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.65rem);
    }

    .hero-text {
        max-width: 30ch;
    }

    .hero-button {
        min-height: 52px;
    }

    .hero-checklist {
        gap: 10px;
    }

    .hero-checklist__item,
    .hero-proof {
        justify-content: center;
    }

    .hero-scroll-indicator {
        bottom: 116px;
    }
}

/* ---------- Galaxy A18 Portrait Fine Tune ---------- */
@media (min-width: 350px) and (max-width: 390px) and (min-height: 780px) and (max-height: 860px) and (orientation: portrait) {

    .hero-wrapper {
        padding-top: clamp(210px, 30vw, 235px);
    }

    .hero-scroll-indicator {
        bottom: 24px;
    }
}

/* ---------- Galaxy S26 Portrait Fine Tune ---------- */
@media (min-width: 400px) and (max-width: 430px) and (min-height: 880px) and (max-height: 960px) and (orientation: portrait) {

    .hero-wrapper {
        padding-bottom: 300px;
    }

    .hero-scroll-indicator {
        bottom: 104px;
    }
}

/* ---------- iPhone 17 Pro Max Portrait Fine Tune ---------- */
@media (min-width: 430px) and (max-width: 460px) and (min-height: 920px) and (max-height: 980px) and (orientation: portrait) {

    .hero-scroll-indicator {
        bottom: 112px;
    }
}

/* ---------- iPhone 17 Portrait Fine Tune ---------- */
@media (min-width: 390px) and (max-width: 410px) and (min-height: 850px) and (max-height: 900px) and (orientation: portrait) {

    .hero-scroll-indicator {
        bottom: 72px;
    }
}

/* ---------- Landscape / Short screens ---------- */
@media (max-width: 980px) and (orientation: landscape) {

    #site-header {
        padding: 0;
    }

    .site-brand__logo {
        width: clamp(110px, 18vw, 150px);
    }

    .site-menu-toggle {
        width: 38px;
        height: 38px;
    }

    #hero {
        background-image: url("../../assets/img/hero/hero-main.png");
        background-position: center right;
        background-repeat: no-repeat;
        background-size: cover;

        overflow: visible;
    }

    #hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(247, 242, 237, .98) 0%,
                rgba(247, 242, 237, .92) 48%,
                rgba(247, 242, 237, .70) 72%,
                rgba(247, 242, 237, .30) 100%
            );
    }

    .hero-wrapper {
        padding-bottom: 86px;
    }

    .hero-content {
        width: min(78vw, 740px);
        max-width: none;

        gap: 20px;

        margin-inline: 0;
        text-align: left;
    }

    .hero-title {
        width: min(76vw, 720px);
        max-width: none;

        font-size: clamp(1.7rem, 3.25vw, 2.25rem);
        line-height: 1.03;

        text-wrap: balance;
    }

    .hero-divider-line {
        width: min(100%, 420px);
        margin-inline: 0;
    }

    .hero-text {
        max-width: 46ch;
        margin-inline: 0;

        font-size: .95rem;
        line-height: 1.55;
    }

    .hero-button {
        width: auto;
        min-height: 46px;
        max-width: none;

        margin-inline: 0;
        padding: 13px 24px;
    }

    .hero-checklist {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, max-content));

        gap: 8px 22px;

        max-width: 760px;

        margin-inline: 0;
        margin-bottom: 0;
    }

    .hero-checklist__item {
        justify-content: flex-start;
    }

    .hero-checklist__text {
        font-size: .9rem;
        line-height: 1.35;
    }

    .hero-separator,
    .hero-proof,
    .hero-scroll-indicator {
        display: none;
    }
}

/* ==================================================
   03. PROBLEM / SOLUTION
================================================== */

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {

    .problem-solution-wrapper {
        grid-template-columns: 1fr;
    }

    .problem-card,
    .solution-card {
        min-height: auto;
    }

    .problem-card__content {
        width: min(78%, 720px);
    }

    .solution-card__grid {
        display: flex;
        justify-content: space-between;
    }

    .solution-card__item {
        align-items: center;
        text-align: center;
    }

    .solution-card__item-title::after {
        margin-inline: auto;
    }
}

@media (max-width: 420px) {

    .problem-card__title,
    .solution-card__title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.05;
    }

    .problem-card__list {
        gap: 1.25rem;
        margin-top: 34px;
    }

    .problem-card__text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .solution-card__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .solution-card__item {
        align-items: center;
        text-align: center;
    }

    .solution-card__item-title {
        min-height: 0;
        font-size: 1.05rem;
    }

    .solution-card__item-title::after {
        margin-inline: auto;
    }

    .solution-card__item-text {
        max-width: 24ch;
        font-size: 0.88rem;
    }
}

/* ==================================================
   04. BENEFITS
================================================== */

/* ---------- 768px ---------- */
@media (max-width: 768px) {

    .benefits-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .benefit-card {
        flex: 0 1 min(100%, 320px);
    }

    .benefits-title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.05;
    }
}

/* ==================================================
   05. ABOUT PREVIEW
================================================== */

/* ---------- 1400px ---------- */
@media (max-width: 1400px) {

    .about-preview__image {
        object-position: 40% center;
    }
}

/* ---------- 980px ---------- */
@media (max-width: 980px) {

    .about-preview__image {
        object-position: 30% center;
    }
}

/* ---------- 420px ---------- */
@media (max-width: 420px) {

    .about-preview__title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.05;
    }

    .about-preview__text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==================================================
   06. SOCIAL PROOF
================================================== */

/* ---------- Pampas — large desktop tune ---------- */
@media (min-width: 1601px) {

    .social-proof__overlay {
        right: clamp(34px, 6.5vw, 191px);
        bottom: clamp(20px, 1.2vw, 24px);
    }
}

/* ---------- Pampas — compact desktop tune ---------- */
@media (min-width: 981px) and (max-width: 1130px) {

    .social-proof__overlay {
        right: clamp(62px, 3vw, 150px);
        bottom: clamp(8px, 0vw, 30px);
    }
}

/* ---------- Pampas — mobile tune ---------- */
@media (max-width: 768px) {

    .social-proof__overlay {
        display: none;
    }

    .social-proof__media {
        width: 100%;
    }

    .social-proof__image {
        object-position: 46% bottom;
    }

    .social-proof__media::before {
        background:
            linear-gradient(
                90deg,
                var(--color-surface) 0%,
                rgba(237, 225, 215, 0.92) 34%,
                rgba(237, 225, 215, 0.64) 58%,
                rgba(237, 225, 215, 0.28) 78%,
                rgba(237, 225, 215, 0) 100%
            );
    }

    .testimonial-card--featured {
        width: 100%;
        padding-block: clamp(36px, 6vw, 56px);
    }

    .testimonial-card__text {
        max-width: 24ch;

        font-size: clamp(1.45rem, 6vw, 1.8rem);

        line-height: 1.35;
    }

    .testimonial-card--featured::before {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }
}

/* ==================================================
   07. FOOTER
================================================== */

/* ---------- 980px ---------- */
@media (max-width: 980px) {

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ---------- Tablet ---------- */
@media (min-width: 740px) and (max-width: 1200px) {

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Mini Tablet Portrait ---------- */
@media (min-width: 700px) and (max-width: 767px) and (min-height: 1001px) and (orientation: portrait) {
    .footer-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) and (max-height: 1000px) {

    .footer-top {
        display: flex;
        flex-direction: column;
    }

}

