/* ==========================================================
   BEN'S LINE DANCE
   TEST DESIGN
   Mobile first
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */


/* ==========================================================
   THÈME — VERT SAUGE / CRÈME / BOIS USÉ
========================================================== */

:root {

    /* VERT SAUGE PRINCIPAL */
    --red: #667a62;

    /* VERT SAUGE FONCÉ */
    --red-dark: #4d604a;

    /* VERT SAUGE PALE */
    --red-light: #e8eee5;


    /* CRÈME / DORÉ BOIS */
    --gold: #b8945f;
    --gold-light: #f4ead7;


    /* BRUN BOIS USÉ */
    --dark: #3f352b;
    --dark-soft: #594a3c;


    /* TEXTES */
    --text: #302a24;
    --muted: #756d63;


    /* FOND CRÈME */
    --background: #f5f1e8;

    --white: #fffdf8;


    /* BORDURES */
    --border: #ddd5c7;


    --radius: 16px;
    --radius-small: 12px;


    --shadow:
        0 5px 20px rgba(63,53,43,.10);


    --max-width: 1200px;

}



/* ==========================================================
   RESET
========================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--background);

    padding-bottom: 82px;

}


body.menu-open {
    overflow: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* ==========================================================
   HEADER
========================================================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(255,255,255,.96);

    backdrop-filter:
        blur(12px);

    border-bottom:
        1px solid var(--border);

}


.header-inner {

    width: min(
        calc(100% - 32px),
        var(--max-width)
    );

    min-height: 68px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.brand-star {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--red);

    color: white;

    font-size: 18px;

}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1;

}


.brand-text strong {

    font-size: 15px;

    letter-spacing: .08em;

}


.brand-text span {

    margin-top: 4px;

    font-size: 9px;

    letter-spacing: .18em;

    color: var(--muted);

}


/* ==========================================================
   DESKTOP NAV
   Navigation fixe au bas de l'écran
========================================================== */

.desktop-nav {

    display: none;

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    height: 76px;

    z-index: 200;

    background:
        rgba(255,255,255,.97);

    backdrop-filter:
        blur(15px);

    border-top:
        1px solid var(--border);

    box-shadow:
        0 -5px 25px rgba(0,0,0,.08);

}


.desktop-nav-inner {

    width: min(
        calc(100% - 32px),
        var(--max-width)
    );

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 45px;

}


.desktop-nav-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    min-width: 70px;

    height: 100%;

    color: var(--muted);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;

}


.desktop-nav-item:hover {

    color: var(--red);

    transform:
        translateY(-2px);

}


.desktop-nav-item.active {

    color: var(--red);

}


.desktop-nav-icon {

    font-size: 21px;

    line-height: 1;

}


.desktop-nav-item span:last-child {

    white-space: nowrap;

}


/* ==========================================================
   HAMBURGER
========================================================== */

.menu-button {

    width: 44px;

    height: 44px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    cursor: pointer;

}


.menu-button:hover {

    background:
        var(--red-light);

}


.menu-button span {

    display: block;

    width: 21px;

    height: 2px;

    border-radius: 10px;

    background: var(--dark);

}


/* ==========================================================
   SIDE MENU
========================================================== */

.side-menu {

    position: fixed;

    z-index: 300;

    top: 0;

    right: 0;

    width: min(
        330px,
        88vw
    );

    height: 100vh;

    background: white;

    box-shadow:
        -10px 0 35px rgba(0,0,0,.15);

    transform:
        translateX(105%);

    transition:
        transform .3s ease;

    display: flex;

    flex-direction: column;

}


.side-menu.open {

    transform:
        translateX(0);

}


.menu-overlay {

    position: fixed;

    inset: 0;

    z-index: 250;

    background:
        rgba(0,0,0,.45);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease;

}


.menu-overlay.show {

    opacity: 1;

    visibility: visible;

}


.side-menu-header {

    padding: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

}


.menu-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.menu-brand > span {

    color: var(--red);

    font-size: 25px;

}


.menu-brand div {

    display: flex;

    flex-direction: column;

}


.menu-brand strong {

    font-size: 15px;

    letter-spacing: .08em;

}


.menu-brand small {

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: .15em;

}


.close-menu {

    width: 40px;

    height: 40px;

    border: 0;

    background:
        var(--background);

    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

}


.mobile-menu {

    padding: 16px;

}


.menu-link {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    border-radius: 12px;

    margin-bottom: 4px;

}


.menu-link span {

    width: 30px;

    text-align: center;

    font-size: 20px;

    color: var(--muted);

}


.menu-link strong {

    font-size: 15px;

}


.menu-link.active {

    background:
        var(--red-light);

    color: var(--red);

}


.menu-link.active span {

    color: var(--red);

}


.menu-separator {

    height: 1px;

    background: var(--border);

    margin: 15px 0;

}


.menu-footer {

    margin-top: auto;

    padding: 20px;

    border-top:
        1px solid var(--border);

    display: flex;

    justify-content: space-between;

    color: var(--muted);

}

/* ==========================================================
   MENU — HOVER
========================================================== */

.side-menu .menu-link {
    color: var(--text);
    text-decoration: none;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.side-menu .menu-link:hover {
    background: rgba(102, 122, 98, 0.10);
    color: var(--red);
    transform: translateX(3px);
}

.side-menu .menu-link:hover span {
    color: var(--red);
}


/* ==========================================================
   HERO
========================================================== */

/* ==========================================================
   HERO — VERT SAUGE / CRÈME / BOIS USÉ
========================================================== */


.hero-test {

    background:
        linear-gradient(
            135deg,
            #4f624b 0%,
            #66785f 45%,
            #80694f 100%
        );

    color: #fffaf0;

}




.hero-inner {

    width: min(
        calc(100% - 32px),
        900px
    );

    margin: auto;

    padding:
        52px 0 44px;

}


.hero-small {

    display: block;

    margin-bottom: 12px;

    font-size: 11px;

    letter-spacing: .2em;

    font-weight: 700;

    opacity: .8;

}


.hero-test h1 {

    margin: 0;

    font-size:
        clamp(30px, 8vw, 54px);

    line-height: 1.05;

    letter-spacing: -.03em;

}


.hero-test p {

    margin:
        16px 0 25px;

    font-size: 15px;

    opacity: .9;

}


/* ==========================================================
   SEARCH
========================================================== */

.search-box {

    width: 100%;

    max-width: 650px;

    height: 56px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 18px;

    background: white;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.16);

}


.search-icon {

    color: var(--red);

    font-size: 25px;

}


.search-box input {

    width: 100%;

    border: 0;

    outline: 0;

    color: var(--text);

    background: transparent;

    font-size: 15px;

}


.search-box input::placeholder {

    color: #999;

}


/* ==========================================================
   CONTENT
========================================================== */

.home-content {

    width: min(
        calc(100% - 32px),
        var(--max-width)
    );

    margin: auto;

    padding:
        38px 0 55px;

}


.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;

}


.eyebrow {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    letter-spacing: .16em;

    font-weight: 800;

    color: var(--red);

}


.section-heading h2 {

    margin: 0;

    font-size: 23px;

    letter-spacing: -.02em;

}


.see-all {

    font-size: 13px;

    font-weight: 700;

    color: var(--red);

    white-space: nowrap;

}


/* ==========================================================
   LEVEL BUTTONS
========================================================== */

.level-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 9px;

}


.level-button {

    min-height: 64px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 10px 14px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    box-shadow:
        0 2px 8px rgba(0,0,0,.03);

    transition:
        transform .15s ease,
        box-shadow .15s ease;

}


.level-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        var(--shadow);

}


.level-icon {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background: var(--red-light);

    color: var(--red);

    font-size: 17px;

}


.level-button > span:nth-child(2) {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.level-button strong {

    font-size: 14px;

}


.level-button small {

    color: var(--muted);

    font-size: 11px;

}


.level-button .arrow {

    margin-left: auto;

    font-size: 24px;

    color: #aaa;

}


.beginner .level-icon {

    background: #eaf5ea;

    color: #388e3c;

}


.novice .level-icon {

    background: #fff6dd;

    color: #b18100;

}


.intermediate .level-icon {

    background: #fff0e6;

    color: #d46a21;

}


.advanced .level-icon {

    background: #f9e7e7;

    color: var(--red);

}


.partner .level-icon {

    background: #eee9f7;

    color: #6d4ca5;

}


.all-dances .level-icon {

    background: #eeeeee;

    color: #555;

}


/* ==========================================================
   QUICK CARDS
========================================================== */

.quick-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 28px;

}


.quick-card {

    min-height: 85px;

    padding: 14px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: var(--dark);

    color: white;

    border-radius:
        var(--radius-small);

}


.quick-icon {

    font-size: 20px;

    color: var(--gold);

}


.quick-card span:nth-child(2) {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.quick-card strong {

    font-size: 13px;

}


.quick-card small {

    color: #aaa;

    font-size: 10px;

}


.quick-arrow {

    margin-left: auto;

    font-size: 20px;

    color: #aaa;

}


.discover-heading {

    margin-top: 42px;

}


/* ==========================================================
   DANCE LIST
========================================================== */

.dance-list {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.dance-row {

    min-height: 65px;

    padding: 9px 12px;

    display: flex;

    align-items: center;

    gap: 11px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

}


.dance-star {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: var(--gold-light);

    color: var(--gold);

}


.dance-info {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;

}


.dance-info strong {

    font-size: 14px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.dance-info small {

    color: var(--muted);

    font-size: 10px;

}


.dance-arrow {

    margin-left: auto;

    color: #aaa;

    font-size: 23px;

}


.no-results {

    display: none;

    padding: 25px;

    text-align: center;

    color: var(--muted);

}


/* ==========================================================
   BOTTOM NAV
========================================================== */

.bottom-nav {

    position: fixed;

    z-index: 200;

    left: 0;

    right: 0;

    bottom: 0;

    height: 68px;

    display: flex;

    align-items: stretch;

    justify-content: space-around;

    background:
        rgba(255,255,255,.97);

    backdrop-filter:
        blur(15px);

    border-top:
        1px solid var(--border);

    box-shadow:
        0 -5px 25px rgba(0,0,0,.08);

}


.bottom-item {

    flex: 1;

    max-width: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    color: #777;

    font-size: 9px;

    font-weight: 600;

}


.bottom-icon {

    font-size: 19px;

    line-height: 1;

}


.bottom-item.active {

    color: var(--red);

}


.search-bottom {

    font-size: 22px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 600px) {

    .hero-inner {

        padding:
            70px 0 60px;

    }


    .level-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }


    .quick-grid {

        gap: 14px;

    }

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 992px) {

    body {

        padding-bottom: 0;

    }


    .header-inner {

        min-height: 76px;

    }


    .desktop-nav {

        display: flex;

    }


    .menu-button {

        display: none;

    }


    .bottom-nav {

        display: none;

    }


    .hero-inner {

        padding:
            82px 0 72px;

    }


    .home-content {

        padding-top: 55px;

    }


    .level-grid {

        grid-template-columns:
            repeat(3, 1fr);

        gap: 14px;

    }


    .level-button {

        min-height: 78px;

        padding:
            13px 16px;

    }


    .quick-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .dance-list {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;

    }

}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (min-width: 1200px) {

    .level-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .hero-test h1 {

        font-size: 58px;

    }

    
}


/* =========================================================
   ÉTOILES DES DERNIÈRES DANSES
   Couleur selon le niveau
========================================================= */

.dance-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 1.25rem;
    line-height: 1;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


/* Débutant */
.dance-star.beginner {
    color: #2e9b4b;
}


/* Novice */
.dance-star.novice {
    color: #d4a017;
}


/* Intermédiaire */
.dance-star.intermediate {
    color: #d97818;
}


/* Avancé */
.dance-star.advanced {
    color: #c62828;
}


/* Partenaire */
.dance-star.partner {
    color: #7652a8;
}


/* Niveau inconnu */
.dance-star.default {
    color: #999999;
}


/* Petit effet au survol */
.dance-row:hover .dance-star {
    transform: scale(1.15);
}

@media (min-width: 992px) {

    body {
        padding-bottom: 82px;
    }

    .bottom-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 200;

        height: 76px;

        background:
            rgba(255,255,255,.97);

        border-top:
            1px solid var(--border);

        box-shadow:
            0 -5px 25px rgba(0,0,0,.08);
    }

}

/* ==========================================================
   BOTTOM NAV DESKTOP
========================================================== */

.bottom-nav-desktop {

    display: none;

}


@media (min-width: 992px) {

    /* ------------------------------------------------------
       MOBILE NAVIGATION
    ------------------------------------------------------ */

    .bottom-nav-mobile {

        display: none;

    }


    /* ------------------------------------------------------
       DESKTOP NAVIGATION
    ------------------------------------------------------ */

    .bottom-nav-desktop {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: 76px;

        display: flex;

        align-items: center;
        justify-content: center;

        z-index: 200;

        background:
            rgba(255,255,255,.97);

        backdrop-filter:
            blur(15px);

        border-top:
            1px solid var(--border);

        box-shadow:
            0 -5px 25px rgba(0,0,0,.08);

    }


    .bottom-nav-desktop-inner {

        width: min(
            calc(100% - 40px),
            var(--max-width)
        );

        height: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 42px;

    }


    .desktop-nav-item {

        height: 100%;

        min-width: 75px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 4px;

        color: var(--muted);

        font-size: 11px;

        font-weight: 600;

        transition:
            color .2s ease,
            transform .2s ease;

    }


    .desktop-nav-item:hover {

        color: var(--red);

        transform:
            translateY(-2px);

    }


    .desktop-nav-item.active {

        color: var(--red);

    }


    .desktop-nav-icon {

        font-size: 21px;

        line-height: 1;

    }


    body {

        padding-bottom: 90px;

    }

}


/* ==========================================================
   LOGO RÉEL
========================================================== */

.brand-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 220px;
    object-fit: contain;
}


/* ==========================================================
   MENU DESKTOP DU HEADER
========================================================== */

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;

    color: var(--text);
    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.desktop-nav a.active {
    color: var(--primary-color);
}

@media (min-width: 992px) {
.desktop-nav {
    display: flex;
    
        .brand-logo {
        height: 44px;
        max-width: 190px;
    }
}




