/* =========================================================
   VOLLEYBAR
   M.A.P VOLLEY CLUB
   Application iPhone / PWA
   ========================================================= */


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    margin: 0;
    padding: 0;

    background: #090d14;

    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;
    min-height: 100dvh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(249, 115, 22, 0.16),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #151a23 0%,
            #0d1118 45%,
            #070a0f 100%
        );

    color: #ffffff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;

    overscroll-behavior-y: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   APPLICATION
   ========================================================= */

.app {
    width: 100%;
    max-width: 600px;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    padding-left:
        max(18px, env(safe-area-inset-left));

    padding-right:
        max(18px, env(safe-area-inset-right));

    padding-top:
        max(20px, env(safe-area-inset-top));

    padding-bottom:
        max(18px, env(safe-area-inset-bottom));
}


/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding-top: 8px;
    padding-bottom: 26px;
}

.app-logo {
    display: block;

    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    object-fit: cover;

    border-radius: 21px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(249, 115, 22, 0.15);
}

.app-brand {
    min-width: 0;
}

.app-brand h1 {
    margin: 0;

    font-size: 29px;
    line-height: 1;

    font-weight: 850;

    letter-spacing: -1px;
}

.app-brand p {
    margin: 7px 0 0;

    color: #9ca3af;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.4px;
}


/* =========================================================
   ACCUEIL
   ========================================================= */

.home-content {
    flex: 1;
}

.welcome {
    margin-bottom: 22px;
}

.welcome-label {
    display: block;

    margin-bottom: 7px;

    color: #f97316;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.welcome h2 {
    margin: 0;

    font-size: 28px;
    line-height: 1.15;

    letter-spacing: -0.8px;
}

.welcome p {
    margin: 8px 0 0;

    color: #8d96a5;

    font-size: 14px;
}


/* =========================================================
   CARTES DES MODES
   ========================================================= */

.mode-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;

    min-height: 184px;

    margin-bottom: 17px;

    padding: 22px 45px 22px 20px;

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

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.30);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.mode-card:active {
    transform: scale(0.975);
}


/* ---------- MAP ---------- */

.mode-map {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(249, 115, 22, 0.30),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #302016,
            #191713 50%,
            #111316
        );
}

.mode-map:active {
    border-color: rgba(249, 115, 22, 0.55);
}


/* ---------- EXTÉRIEUR ---------- */

.mode-exterieur {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(59, 130, 246, 0.30),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #15253b,
            #131b28 50%,
            #101318
        );
}

.mode-exterieur:active {
    border-color: rgba(59, 130, 246, 0.55);
}


/* =========================================================
   ICÔNES CARTES
   ========================================================= */

.mode-card-icon {
    width: 59px;
    height: 59px;

    flex: 0 0 59px;

    margin-right: 16px;

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

    border-radius: 18px;

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

    font-size: 29px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


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

.mode-card-content {
    flex: 1;

    min-width: 0;
}

.mode-badge {
    display: inline-block;

    margin-bottom: 7px;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.3px;

    opacity: 0.72;
}

.mode-map .mode-badge {
    color: #fb923c;
}

.mode-exterieur .mode-badge {
    color: #60a5fa;
}

.mode-card h3 {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.mode-card p {
    margin: 0;

    max-width: 330px;

    color: #b2b8c2;

    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   PETITES ÉTIQUETTES
   ========================================================= */

.mode-features {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 14px;
}

.mode-features span {
    padding: 6px 9px;

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

    border-radius: 9px;

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

    color: #d5d8de;

    font-size: 10px;
    font-weight: 650;
}


/* =========================================================
   FLÈCHE
   ========================================================= */

.mode-arrow {
    position: absolute;

    top: 50%;
    right: 17px;

    transform: translateY(-50%);

    color: rgba(255, 255, 255, 0.55);

    font-size: 33px;
    font-weight: 300;
}


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {
    padding-top: 22px;

    text-align: center;
}

.server-status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #818a98;

    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.server-status.online .status-dot {
    background: #22c55e;

    box-shadow:
        0 0 8px rgba(34, 197, 94, 0.65);
}

.server-status.offline .status-dot {
    background: #ef4444;

    box-shadow:
        0 0 8px rgba(239, 68, 68, 0.65);
}

.footer-club {
    margin-top: 8px;

    color: #454d59;

    font-size: 10px;

    letter-spacing: 0.7px;
}


/* =========================================================
   IPHONE PETIT ÉCRAN
   ========================================================= */

@media (max-width: 380px) {

    .app-logo {
        width: 63px;
        height: 63px;

        flex-basis: 63px;

        border-radius: 18px;
    }

    .app-brand h1 {
        font-size: 26px;
    }

    .welcome h2 {
        font-size: 25px;
    }

    .mode-card {
        padding-left: 17px;
    }

    .mode-card-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        margin-right: 13px;

        font-size: 25px;
    }

    .mode-card h3 {
        font-size: 20px;
    }
}


/* =========================================================
   PC / IPAD
   ========================================================= */

@media (min-width: 700px) {

    body {
        padding: 25px 0;
    }

    .app {
        min-height: calc(100vh - 50px);

        padding-left: 28px;
        padding-right: 28px;

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

        border-radius: 32px;

        background: rgba(8, 11, 16, 0.55);

        box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.35);
    }
}
/* =========================================================
   ANTI-ZOOM IPHONE / PWA
   ========================================================= */

/*
 * Évite le zoom au double-tap lorsque l'on appuie
 * rapidement plusieurs fois sur + ou -.
 */
html,
body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/*
 * Tous les éléments interactifs utilisent directement
 * le toucher sans attendre/interpréter un double-tap.
 */
button,
a,
.mode-card,
.filter,
.product,
.qty,
.plus,
.minus {
    touch-action: manipulation;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

/*
 * Empêche également la sélection accidentelle du texte
 * quand on appuie très rapidement sur + / -.
 */
button {
    -webkit-tap-highlight-color: transparent;

    -webkit-user-select: none;
    user-select: none;

    touch-action: manipulation;
}

/*
 * Les champs restent sélectionnables normalement.
 */
input,
textarea,
select {
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
}