/* ==========================================================
   BEN'S LINE DANCE
   V2 — DESIGN WESTERN MODERNE
   MOBILE FIRST
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --red: #a92323;
    --red-dark: #781919;
    --red-light: #f7e9e9;

    --gold: #c99b43;
    --gold-light: #f7efdc;

    --brown: #6d4329;
    --brown-dark: #3d2418;

    --black: #171412;
    --dark: #24201d;

    --cream: #f7f4ee;
    --white: #ffffff;

    --text: #26211e;
    --muted: #77706a;

    --border: #e5dfd6;

    --radius: 13px;

    --max-width: 1180px;

}


/* ==========================================================
   RESET
========================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--cream);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    padding-bottom: 76px;

}


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,.97);

    border-bottom:
        1px solid var(--border);

}


.header-inner {

    width:
        min(
            calc(100% - 28px),
            var(--max-width)
        );

    min-height: 66px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


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

.brand {

    display: flex;

    align-items: center;

    gap: 9px;

}


.brand-star {

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: var(--red);

    color: white;

    font-size: 17px;

    box-shadow:
        0 3px 8px rgba(100,0,0,.2);

}


.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
========================================================== */

.desktop-nav {

    display: none;

    align-items: center;

    gap: 28px;

}


.desktop-nav a {

    font-size: 14px;

    font-weight: 600;

    color: var(--muted);

}


.desktop-nav a:hover,
.desktop-nav a.active {

    color: var(--red);

}


/* ==========================================================
   HAMBURGER
========================================================== */

.menu-button {

    width: 44px;

    height: 44px;

    padding: 0;

    border: 0;

    border-radius: 11px;

    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 {

    width: 21px;

    height: 2px;

    border-radius: 5px;

    background: var(--dark);

}


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

.home-hero {

    position: relative;

    overflow: hidden;

    min-height: 410px;

    display: flex;

    align-items: center;

    background:

        linear-gradient(
            rgba(48,25,14,.42),
            rgba(48,25,14,.78)
        ),

        url("../images/hero-home.webp")
        center / cover no-repeat,

        linear-gradient(
            135deg,
            var(--brown-dark),
            var(--red-dark)
        );

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(40,20,10,.85),
            rgba(100,30,20,.25)
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    width:
        min(
            calc(100% - 32px),
            900px
        );

    margin: auto;

    padding:
        48px 0 52px;

    color: white;

}


.western-badge {

    width: 46px;

    height: 46px;

    margin-bottom: 15px;

    border:
        2px solid rgba(255,255,255,.75);

    border-radius: 50%;

    display: grid;

    place-items: center;

    color: var(--gold);

    font-size: 20px;

}


.hero-kicker {

    display: block;

    margin-bottom: 10px;

    font-size: 10px;

    letter-spacing: .22em;

    font-weight: 800;

    opacity: .85;

}


.hero-content h1 {

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(34px, 9vw, 62px);

    line-height: .98;

    letter-spacing: -.035em;

}


.hero-content p {

    margin:
        17px 0 24px;

    font-size: 15px;

    opacity: .92;

}


/* ==========================================================
   SEARCH
========================================================== */

.main-search {

    width: 100%;

    max-width: 600px;

    height: 56px;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 8px 28px rgba(0,0,0,.2);

}


.search-symbol {

    color: var(--red);

    font-size: 24px;

}


.main-search input {

    width: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 15px;

}


.main-search input::placeholder {

    color: #999;

}


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

.home-container {

    width:
        min(
            calc(100% - 28px),
            var(--max-width)
        );

    margin: auto;

    padding:
        38px 0 50px;

}


/* ==========================================================
   TITRES
========================================================== */

.section-title {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 15px;

}


.section-title > div > span {

    display: block;

    margin-bottom: 4px;

    color: var(--red);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .18em;

}


.section-title h2 {

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    line-height: 1.1;

}


.section-title > a {

    color: var(--red);

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

}


/* ==========================================================
   RACCOURCIS
========================================================== */

.dance-shortcuts {

    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;

}


.shortcut {

    min-height: 58px;

    padding:
        8px 11px;

    display: flex;

    align-items: center;

    gap: 11px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    transition:
        transform .15s ease,
        box-shadow .15s ease;

}


.shortcut:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 18px rgba(0,0,0,.07);

}


.shortcut-star {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: var(--red-light);

    color: var(--red);

    font-size: 15px;

}


.shortcut > span:nth-child(2) {

    font-size: 14px;

    font-weight: 700;

}


.shortcut b {

    margin-left: auto;

    color: #aaa;

    font-size: 22px;

    font-weight: 400;

}


/* NIVEAUX */

.beginner .shortcut-star {

    background: #eaf4e9;
    color: #43883e;

}


.novice .shortcut-star {

    background: #fbf2d9;
    color: #ad8100;

}


.intermediate .shortcut-star {

    background: #faeadd;
    color: #c46529;

}


.advanced .shortcut-star {

    background: #f8e4e4;
    color: var(--red);

}


.partner .shortcut-star {

    background: #eee8f7;
    color: #704ba2;

}


.all .shortcut-star {

    background: #eee;
    color: #555;

}


/* ==========================================================
   CARTES PERSONNELLES
========================================================== */

.personal-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: 25px;

}


.personal-card {

    min-height: 82px;

    padding: 13px;

    display: flex;

    align-items: center;

    gap: 9px;

    color: white;

    background:
        var(--dark);

    border-radius:
        var(--radius);

}


.personal-icon {

    font-size: 19px;

    color: var(--gold);

}


.personal-card > div:nth-child(2) {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.personal-card strong {

    font-size: 12px;

}


.personal-card small {

    color: #aaa;

    font-size: 9px;

    line-height: 1.2;

}


.personal-card b {

    margin-left: auto;

    color: #999;

    font-size: 20px;

}


/* ==========================================================
   LISTE DES DANSES
========================================================== */

.discover-title {

    margin-top: 38px;

}


.dance-list {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.dance-item {

    min-height: 62px;

    padding:
        8px 11px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

}


.dance-mark {

    width: 34px;

    height: 34px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background: var(--gold-light);

    color: var(--gold);

    font-size: 14px;

}


.dance-text {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.dance-text strong {

    font-size: 13px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.dance-text small {

    color: var(--muted);

    font-size: 9px;

}


.dance-arrow {

    margin-left: auto;

    color: #aaa;

    font-size: 22px;

}


.empty-search {

    display: none;

    padding: 25px;

    text-align: center;

    color: var(--muted);

}


/* ==========================================================
   BOTTOM NAV
========================================================== */

.bottom-nav {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 200;

    height: 68px;

    display: flex;

    align-items: stretch;

    justify-content: space-around;

    background:
        rgba(255,255,255,.98);

    border-top:
        1px solid var(--border);

    box-shadow:
        0 -5px 20px rgba(0,0,0,.08);

}


.bottom-item {

    flex: 1;

    max-width: 110px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    color: #777;

    font-size: 9px;

    font-weight: 700;

}


.bottom-icon {

    font-size: 19px;

    line-height: 1;

}


.bottom-item.active {

    color: var(--red);

}


/* ==========================================================
   MENU LATÉRAL
========================================================== */

.side-menu {

    position: fixed;

    top: 0;

    right: 0;

    z-index: 300;

    width:
        min(330px, 88vw);

    height: 100vh;

    background: white;

    box-shadow:
        -12px 0 35px rgba(0,0,0,.18);

    transform:
        translateX(105%);

    transition:
        transform .28s 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,.48);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease;

}


.menu-overlay.show {

    opacity: 1;

    visibility: visible;

}


.side-menu-header {

    min-height: 72px;

    padding:
        0 18px;

    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: 14px;

    letter-spacing: .08em;

}


.menu-brand small {

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    letter-spacing: .16em;

}


.close-menu {

    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 50%;

    background: var(--cream);

    font-size: 25px;

    cursor: pointer;

}


.mobile-menu {

    padding: 14px;

}


.menu-link {

    min-height: 52px;

    padding:
        8px 12px;

    display: flex;

    align-items: center;

    gap: 14px;

    border-radius: 11px;

}


.menu-link:hover,
.menu-link.active {

    background: var(--red-light);

    color: var(--red);

}


.menu-link span {

    width: 28px;

    text-align: center;

    font-size: 19px;

}


.menu-link strong {

    font-size: 14px;

}


.menu-separator {

    height: 1px;

    margin:
        12px 0;

    background: var(--border);

}


.menu-footer {

    margin-top: auto;

    padding: 18px;

    display: flex;

    justify-content: space-between;

    border-top:
        1px solid var(--border);

    color: var(--muted);

    font-size: 9px;

}


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

@media (min-width: 600px) {

    .home-hero {

        min-height: 450px;

    }


    .hero-content {

        padding:
            65px 0;

    }


    .dance-shortcuts {

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

        gap: 10px;

    }


    .shortcut {

        min-height: 65px;

    }

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 992px) {

    body {

        padding-bottom: 0;

    }


    .desktop-nav {

        display: flex;

    }


    .menu-button {

        display: none;

    }


    .bottom-nav {

        display: none;

    }


    .home-hero {

        min-height: 480px;

    }


    .hero-content {

        padding:
            80px 0;

    }


    .home-container {

        padding:
            55px 0 70px;

    }


    .dance-shortcuts {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .shortcut {

        min-height: 72px;

    }


    .dance-list {

        display: grid;

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

    }

}


/* ==========================================================
   GRAND ÉCRAN
========================================================== */

@media (min-width: 1200px) {

    .hero-content h1 {

        font-size: 64px;

    }


    .dance-shortcuts {

        grid-template-columns:
            repeat(3, 1fr);

    }

}