/**
 * Albasy Marketplace — Mobile-First Layer v2
 * Base styles = mobile · min-width breakpoints pour les écrans larges
 * Touch targets ≥ 44px · Fluid typography · No horizontal scroll
 *
 * Breakpoints:
 *   sm  : 480px
 *   md  : 768px
 *   lg  : 1024px
 *   xl  : 1280px
 *
 * @package Albasy_Marketplace
 */


/* ═══════════════════════════════════════════════════════════
   0. TOKENS MOBILES (override des valeurs desktop)
═══════════════════════════════════════════════════════════ */
:root {
    /* Taille de police mobile plus généreuse */
    --alb-fs-xs:   0.75rem;    /* 12px */
    --alb-fs-sm:   0.8125rem;  /* 13px */
    --alb-fs-base: 0.9375rem;  /* 15px */
    --alb-fs-md:   1rem;       /* 16px */
    --alb-fs-lg:   1.125rem;   /* 18px */
    --alb-fs-xl:   1.25rem;    /* 20px */
    --alb-fs-2xl:  1.5rem;     /* 24px */
    --alb-fs-3xl:  1.875rem;   /* 30px */
    --alb-fs-4xl:  2.25rem;    /* 36px */

    /* Touch targets */
    --alb-touch:   44px;
    --alb-touch-sm: 36px;

    /* Spacing mobile compact */
    --alb-sp-xs:   4px;
    --alb-sp-sm:   8px;
    --alb-sp-md:   16px;
    --alb-sp-lg:   24px;
    --alb-sp-xl:   32px;
    --alb-sp-2xl:  48px;

    /* Gap mobile */
    --alb-gap-mobile: 12px;
    --alb-gap:        12px;     /* override du 24px desktop */

    /* Grid colonnes responsive */
    --alb-cols:     1;

    /* Radius mobile légèrement réduit */
    --alb-radius-md: 12px;
    --alb-radius-lg: 16px;
}

@media (min-width: 480px) {
    :root { --alb-gap: 16px; --alb-cols: 2; }
}
@media (min-width: 768px) {
    :root { --alb-gap: 20px; --alb-cols: 3; --alb-radius-md: 14px; --alb-radius-lg: 20px; }
}
@media (min-width: 1024px) {
    :root { --alb-gap: 24px; --alb-cols: 4; }
}


/* ═══════════════════════════════════════════════════════════
   1. RESET MOBILE-FIRST
═══════════════════════════════════════════════════════════ */

/* Empêcher le scroll horizontal */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Scroll momentum sur iOS */
.alb-scroll-x  { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.alb-scroll-y  { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Box model global */
*, *::before, *::after { box-sizing: border-box; }

/* Images responsives par défaut */
img, video { max-width: 100%; height: auto; display: block; }


/* ═══════════════════════════════════════════════════════════
   2. TOUCH TARGETS — Tous les éléments interactifs ≥ 44px
═══════════════════════════════════════════════════════════ */

/* Tous les boutons Albasy */
.alb-btn,
.alb-btn-primary,
.alb-btn-outline,
[class*="alb-btn"],
.alb-fav-btn,
.alb-copy-btn {
    min-height: var(--alb-touch);
    min-width:  var(--alb-touch);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Liens de navigation */
.alb-nav__link,
.alb-nav-link,
[class*="alb-nav"] a {
    min-height: var(--alb-touch);
    display: flex;
    align-items: center;
    padding-inline: var(--alb-sp-md);
}

/* Inputs et selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    min-height: var(--alb-touch);
    font-size: var(--alb-fs-md);      /* évite le zoom automatique iOS (≥16px) */
    padding: var(--alb-sp-sm) var(--alb-sp-md);
    border-radius: var(--alb-radius-sm);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

/* Range inputs */
input[type="range"] {
    height: var(--alb-touch);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--alb-primary, #FFD600);
    cursor: pointer;
    margin-top: -8px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--alb-gray-200, #E0E0E0);
}
input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--alb-yellow-glow, rgba(255,214,0,.35));
}

/* Checkboxes et radios */
input[type="checkbox"],
input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHIE FLUIDE — Scale mobile → desktop
═══════════════════════════════════════════════════════════ */

body {
    font-size: var(--alb-fs-base);
    line-height: 1.6;
    font-family: var(--alb-font-body);
    color: var(--alb-text, #212121);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Titres avec Playfair Display */
h1, .alb-h1 { font-family: var(--alb-font-display); font-size: clamp(1.5rem, 5vw, 2.5rem);  line-height: 1.2; }
h2, .alb-h2 { font-family: var(--alb-font-display); font-size: clamp(1.25rem, 4vw, 2rem);   line-height: 1.25; }
h3, .alb-h3 { font-family: var(--alb-font-display); font-size: clamp(1.1rem, 3vw, 1.5rem);  line-height: 1.3; }
h4, .alb-h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 700; line-height: 1.4; }
h5, .alb-h5 { font-size: var(--alb-fs-md);  font-weight: 600; }
h6, .alb-h6 { font-size: var(--alb-fs-base); font-weight: 600; }

p { margin: 0 0 var(--alb-sp-md); }


/* ═══════════════════════════════════════════════════════════
   4. LAYOUT — Grid & Flex mobile-first
═══════════════════════════════════════════════════════════ */

/* Container responsive */
.alb-container {
    width: 100%;
    max-width: var(--alb-max-width, 1280px);
    margin-inline: auto;
    padding-inline: var(--alb-sp-md);
}
@media (min-width: 480px)  { .alb-container { padding-inline: var(--alb-sp-lg); } }
@media (min-width: 1024px) { .alb-container { padding-inline: var(--alb-sp-xl); } }

/* Grid automatique mobile-first */
.alb-grid {
    display: grid;
    gap: var(--alb-gap);
    grid-template-columns: 1fr;
}
@media (min-width: 480px)  { .alb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .alb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .alb-grid { grid-template-columns: repeat(4, 1fr); } }

.alb-grid-2 { display: grid; gap: var(--alb-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .alb-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.alb-grid-3 { display: grid; gap: var(--alb-gap); grid-template-columns: 1fr; }
@media (min-width: 480px) { .alb-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .alb-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Stack sur mobile, côte-à-côte sur desktop */
.alb-split {
    display: flex;
    flex-direction: column;
    gap: var(--alb-gap);
}
@media (min-width: 768px) {
    .alb-split { flex-direction: row; align-items: flex-start; }
    .alb-split > *:first-child { flex: 1; }
    .alb-split > *:last-child  { flex: 0 0 320px; }
}


/* ═══════════════════════════════════════════════════════════
   5. CARDS — Mobile-first
═══════════════════════════════════════════════════════════ */

.alb-card {
    background: var(--alb-white);
    border-radius: var(--alb-radius-md);
    box-shadow: var(--alb-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.alb-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.alb-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--alb-t-slow);
}
@media (hover: hover) {
    .alb-card:hover .alb-card__img img { transform: scale(1.04); }
}

.alb-card__body {
    padding: var(--alb-sp-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--alb-sp-sm);
}

.alb-card__footer {
    padding: var(--alb-sp-sm) var(--alb-sp-md) var(--alb-sp-md);
    display: flex;
    gap: var(--alb-sp-sm);
    align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   6. NAVIGATION MOBILE
═══════════════════════════════════════════════════════════ */

/* Bottom navigation (app-like mobile nav) */
.alb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    background: var(--alb-white);
    border-top: 1px solid var(--alb-gray-100);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .alb-bottom-nav { display: none; } }

.alb-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    gap: 2px;
    color: var(--alb-text-muted);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: color var(--alb-t-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.alb-bottom-nav__item i   { font-size: 1.25rem; }
.alb-bottom-nav__item.is-active { color: var(--alb-primary, #FFD600); }

/* Safe area bottom padding pour le contenu */
.alb-has-bottom-nav {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .alb-has-bottom-nav { padding-bottom: 0; } }


/* ═══════════════════════════════════════════════════════════
   7. FORMS MOBILE — UX améliorée
═══════════════════════════════════════════════════════════ */

.alb-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--alb-sp-xs);
}
.alb-form-label {
    font-size: var(--alb-fs-sm);
    font-weight: 600;
    color: var(--alb-text-sec);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.alb-form-input {
    background: var(--alb-gray-50);
    border: 1.5px solid var(--alb-gray-200);
    border-radius: var(--alb-radius-sm);
    color: var(--alb-text);
    transition: border-color var(--alb-t-fast), box-shadow var(--alb-t-fast);
}
.alb-form-input:focus {
    outline: none;
    border-color: var(--alb-primary, #FFD600);
    background: var(--alb-white);
    box-shadow: 0 0 0 4px var(--alb-yellow-glow, rgba(255,214,0,.25));
}
.alb-form-input::placeholder { color: var(--alb-text-muted); }


/* ═══════════════════════════════════════════════════════════
   8. BUTTONS MOBILE
═══════════════════════════════════════════════════════════ */

/* Full-width sur mobile, auto sur desktop */
.alb-btn-block { width: 100%; justify-content: center; }
@media (min-width: 480px) { .alb-btn-block { width: auto; } }

/* Taille des boutons cohérente sur mobile */
.alb-btn-primary,
.alb-btn-outline {
    min-height: var(--alb-touch);
    padding: 0 var(--alb-sp-lg);
    font-size: var(--alb-fs-base);
    border-radius: var(--alb-radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--alb-sp-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--alb-t-spring), box-shadow var(--alb-t-base);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.alb-btn-primary {
    background: var(--alb-primary, #FFD600);
    color: var(--alb-on-primary, #212121);
    box-shadow: var(--alb-shadow-yellow);
}
@media (hover: hover) {
    .alb-btn-primary:hover {
        background: var(--alb-primary-dark, #F9A825);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px var(--alb-yellow-glow, rgba(255,214,0,.45));
    }
}
.alb-btn-primary:active { transform: scale(.97); box-shadow: none; }

.alb-btn-outline {
    background: transparent;
    border: 2px solid var(--alb-primary, #FFD600);
    color: var(--alb-text, #212121);
}
@media (hover: hover) {
    .alb-btn-outline:hover {
        background: var(--alb-primary, #FFD600);
        transform: translateY(-2px);
    }
}
.alb-btn-outline:active { transform: scale(.97); }


/* ═══════════════════════════════════════════════════════════
   9. MODALS MOBILE — Bottom sheet sur mobile
═══════════════════════════════════════════════════════════ */

.alb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9000;
    display: flex;
    align-items: flex-end; /* bottom sheet sur mobile */
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    .alb-modal-backdrop {
        align-items: center;
        padding: var(--alb-sp-xl);
    }
}

.alb-modal {
    background: var(--alb-white);
    border-radius: var(--alb-radius-lg) var(--alb-radius-lg) 0 0;  /* arrondi en haut seulement sur mobile */
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--alb-sp-lg) var(--alb-sp-md) calc(var(--alb-sp-lg) + env(safe-area-inset-bottom));
    position: relative;
}
@media (min-width: 768px) {
    .alb-modal {
        border-radius: var(--alb-radius-lg);
        max-width: 560px;
        padding: var(--alb-sp-xl);
    }
}

/* Poignée de drag sur mobile */
.alb-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--alb-gray-200);
    border-radius: 2px;
    margin: 0 auto var(--alb-sp-md);
}
@media (min-width: 768px) { .alb-modal::before { display: none; } }


/* ═══════════════════════════════════════════════════════════
   10. TABLES — Scroll horizontal sur mobile
═══════════════════════════════════════════════════════════ */

.alb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--alb-radius-md);
    border: 1px solid var(--alb-gray-100);
}

.alb-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: var(--alb-fs-sm);
}
.alb-table th,
.alb-table td {
    padding: var(--alb-sp-sm) var(--alb-sp-md);
    text-align: left;
    border-bottom: 1px solid var(--alb-gray-100);
}
.alb-table th {
    background: var(--alb-gray-50);
    font-weight: 700;
    font-size: var(--alb-fs-xs);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--alb-text-muted);
}
@media (min-width: 768px) {
    .alb-table { font-size: var(--alb-fs-base); }
    .alb-table th, .alb-table td { padding: var(--alb-sp-md) var(--alb-sp-lg); }
}


/* ═══════════════════════════════════════════════════════════
   11. HERO / WALLET CARD — Mobile-first
═══════════════════════════════════════════════════════════ */

.alb-hero-card {
    background: linear-gradient(135deg, var(--alb-primary, #FFD600) 0%, var(--alb-primary-dark, #F9A825) 100%);
    border-radius: var(--alb-radius-lg);
    padding: var(--alb-sp-lg) var(--alb-sp-md);
    color: var(--alb-on-primary, #212121);
    position: relative;
    overflow: hidden;
}
@media (min-width: 480px) { .alb-hero-card { padding: var(--alb-sp-xl); } }

.alb-hero-card__amount {
    font-family: var(--alb-font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}
.alb-hero-card__label {
    font-size: var(--alb-fs-sm);
    font-weight: 600;
    opacity: .75;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: var(--alb-sp-xs);
}


/* ═══════════════════════════════════════════════════════════
   12. LEVELS / BADGES — Mobile-first
═══════════════════════════════════════════════════════════ */

.alb-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--alb-radius-pill);
    font-size: var(--alb-fs-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.alb-level-badge.bronze  { background: #CD7F32; color: #fff; }
.alb-level-badge.silver  { background: #C0C0C0; color: #fff; }
.alb-level-badge.gold    { background: var(--alb-primary, #FFD600); color: var(--alb-on-primary, #212121); }
.alb-level-badge.platine { background: linear-gradient(135deg, #E5E4E2, #A9A9A9); color: #fff; }
.alb-level-badge.diamond { background: linear-gradient(135deg, #b9f2ff, #0099bb); color: #fff; }
.alb-level-badge.king    { background: linear-gradient(135deg, #FFD700, #FF6B00); color: #fff; }


/* ═══════════════════════════════════════════════════════════
   13. STATS CARDS — Mobile-first (2 colonnes → 4 colonnes)
═══════════════════════════════════════════════════════════ */

.alb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--alb-sp-sm);
}
@media (min-width: 640px)  { .alb-stats-grid { grid-template-columns: repeat(3, 1fr); gap: var(--alb-gap); } }
@media (min-width: 1024px) { .alb-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.alb-stat-card {
    background: var(--alb-white);
    border-radius: var(--alb-radius-md);
    padding: var(--alb-sp-md);
    box-shadow: var(--alb-shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
@media (min-width: 480px) { .alb-stat-card { padding: var(--alb-sp-lg); } }

.alb-stat-card__value {
    font-family: var(--alb-font-display);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--alb-text);
    line-height: 1.1;
}
.alb-stat-card__label {
    font-size: var(--alb-fs-xs);
    color: var(--alb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.alb-stat-card__delta {
    font-size: var(--alb-fs-xs);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.alb-stat-card__delta.up   { color: var(--alb-green-dark); }
.alb-stat-card__delta.down { color: var(--alb-danger); }


/* ═══════════════════════════════════════════════════════════
   14. PRODUCT CARDS MOBILE — Scroll horizontal snap
═══════════════════════════════════════════════════════════ */

.alb-product-scroll {
    display: flex;
    gap: var(--alb-gap-mobile);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--alb-sp-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.alb-product-scroll::-webkit-scrollbar { display: none; }

.alb-product-scroll .alb-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}
@media (min-width: 480px) { .alb-product-scroll .alb-card { flex: 0 0 240px; } }


/* ═══════════════════════════════════════════════════════════
   15. SKELETON MOBILE
═══════════════════════════════════════════════════════════ */

.alb-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--alb-gap-mobile);
}
@media (min-width: 768px) { .alb-skeleton-grid { grid-template-columns: repeat(3, 1fr); gap: var(--alb-gap); } }
@media (min-width: 1024px){ .alb-skeleton-grid { grid-template-columns: repeat(4, 1fr); } }


/* ═══════════════════════════════════════════════════════════
   16. TABS MOBILE — Scroll horizontal si trop larges
═══════════════════════════════════════════════════════════ */

.alb-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid var(--alb-gray-100);
    padding-bottom: 0;
}
.alb-tabs::-webkit-scrollbar { display: none; }

.alb-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: var(--alb-sp-sm) var(--alb-sp-md);
    min-height: var(--alb-touch);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--alb-fs-sm);
    font-weight: 600;
    color: var(--alb-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--alb-t-fast), border-color var(--alb-t-fast);
    -webkit-tap-highlight-color: transparent;
}
.alb-tab.is-active {
    color: var(--alb-text);
    border-bottom-color: var(--alb-primary, #FFD600);
}


/* ═══════════════════════════════════════════════════════════
   17. PAGE HEADER MOBILE
═══════════════════════════════════════════════════════════ */

.alb-page-header {
    display: flex;
    flex-direction: column;
    gap: var(--alb-sp-sm);
    padding: var(--alb-sp-md) 0 var(--alb-sp-lg);
}
@media (min-width: 768px) {
    .alb-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--alb-sp-xl) 0;
    }
}
.alb-page-title {
    font-family: var(--alb-font-display);
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--alb-text);
}


/* ═══════════════════════════════════════════════════════════
   18. FILTER BAR MOBILE
═══════════════════════════════════════════════════════════ */

.alb-filter-bar {
    display: flex;
    gap: var(--alb-sp-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--alb-sp-xs) 0;
}
.alb-filter-bar::-webkit-scrollbar { display: none; }

.alb-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    min-height: var(--alb-touch-sm);
    border-radius: var(--alb-radius-pill);
    border: 1.5px solid var(--alb-gray-200);
    background: var(--alb-white);
    font-size: var(--alb-fs-sm);
    font-weight: 600;
    color: var(--alb-text-sec);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--alb-t-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.alb-filter-chip.is-active {
    background: var(--alb-primary, #FFD600);
    border-color: var(--alb-primary, #FFD600);
    color: var(--alb-on-primary, #212121);
}


/* ═══════════════════════════════════════════════════════════
   19. SAFE AREAS (iPhone notch / Dynamic Island)
═══════════════════════════════════════════════════════════ */

.alb-safe-top    { padding-top:    env(safe-area-inset-top); }
.alb-safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
.alb-safe-left   { padding-left:   env(safe-area-inset-left); }
.alb-safe-right  { padding-right:  env(safe-area-inset-right); }


/* ═══════════════════════════════════════════════════════════
   20. UTILITIES RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Cacher/montrer selon breakpoint */
.alb-mobile-only  { display: block; }
.alb-desktop-only { display: none; }
@media (min-width: 768px) {
    .alb-mobile-only  { display: none; }
    .alb-desktop-only { display: block; }
}

.alb-mobile-flex  { display: flex; }
@media (min-width: 768px) { .alb-mobile-flex { display: none; } }

/* Texte tronqué */
.alb-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus visible accessible */
:focus-visible {
    outline: 2px solid var(--alb-primary, #FFD600);
    outline-offset: 2px;
}
