/* ╔══════════════════════════════════════════════════════════╗
   ║  LibExplorer — Design System CSS                         ║
   ║  Mobile-first · Noir + Rose vif · Moderne                ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── 1. Variables CSS (Design Tokens) ─────────────────────────────────────── */
:root {
    /* Couleurs principales */
    --color-bg:           #0A0A0A;
    --color-bg-card:      #141414;
    --color-bg-elevated:  #1C1C1C;
    --color-bg-overlay:   rgba(10,10,10,0.95);

    --color-primary:      #FF2D6B;
    --color-primary-hover:#E0245A;
    --color-primary-light:rgba(255,45,107,0.15);
    --color-primary-glow: rgba(255,45,107,0.35);

    --color-secondary:    #FF6B9D;
    --color-accent:       #FFD700;

    --color-text:         #F0F0F0;
    --color-text-muted:   #888899;
    --color-text-subtle:  #555566;

    --color-border:       rgba(255,255,255,0.08);
    --color-border-hover: rgba(255,45,107,0.4);

    /* Catégories couleurs */
    --color-club:         #FF2D6B;
    --color-sauna:        #FF6B35;
    --color-bar:          #9B59B6;
    --color-restaurant:   #27AE60;
    --color-hebergement:  #3498DB;

    /* Typographie */
    --font-display:       'Playfair Display', Georgia, serif;
    --font-body:          'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono:          'JetBrains Mono', monospace;

    /* Tailles */
    --text-xs:    0.75rem;   /* 12px */
    --text-sm:    0.875rem;  /* 14px */
    --text-base:  1rem;      /* 16px */
    --text-md:    1.125rem;  /* 18px */
    --text-lg:    1.25rem;   /* 20px */
    --text-xl:    1.5rem;    /* 24px */
    --text-2xl:   1.875rem;  /* 30px */
    --text-3xl:   2.25rem;   /* 36px */
    --text-4xl:   3rem;      /* 48px */
    --text-5xl:   3.75rem;   /* 60px */

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Rayons */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
    --shadow-rose:0 4px 30px rgba(255,45,107,0.25);

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.4s ease;

    /* Layout */
    --container-max:  1280px;
    --nav-height:     64px;
    --sidebar-width:  280px;
}

/* ── 2. Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }

/* Sélection */
::selection { background: var(--color-primary); color: white; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; }

/* ── 3. Typography ──────────────────────────────────────────────────────────── */
.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-base   { font-size: var(--text-base); }
.text-md     { font-size: var(--text-md); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-2xl    { font-size: var(--text-2xl); }
.text-3xl    { font-size: var(--text-3xl); }
.text-muted  { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-primary{ color: var(--color-primary); }
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ── 4. Layout ──────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

.section { padding: var(--space-12) 0; }
.section-sm { padding: var(--space-8) 0; }

/* Grid système */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 1023px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2       { gap: var(--space-2); }
.gap-3       { gap: var(--space-3); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.items-center{ align-items: center; }
.flex-wrap   { flex-wrap: wrap; }

/* ── 5. Navigation ──────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10,10,10,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
}

.navbar__logo img {
    height: 36px;
    width: auto;
}

.navbar__logo span { color: var(--color-primary); }

/* Navigation desktop */
.navbar__nav {
    display: none;
    align-items: center;
    gap: var(--space-1);
}

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

.navbar__nav a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.navbar__nav a:hover,
.navbar__nav a.active {
    color: white;
    background: var(--color-primary-light);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Bouton hamburger mobile */
.navbar__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

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

.navbar__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(20px);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover { color: white; background: var(--color-primary-light); }
.mobile-menu a i { width: 20px; color: var(--color-primary); }

/* Contenu principal décalé pour la navbar */
.page-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ── 6. Boutons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-rose);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 40px rgba(255,45,107,0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}
.btn-ghost:hover {
    color: white;
    background: rgba(255,255,255,0.06);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-md);
    border-radius: var(--radius-lg);
}

.btn-icon {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    aspect-ratio: 1;
}

.btn-icon-round {
    padding: var(--space-3);
    border-radius: var(--radius-full);
    aspect-ratio: 1;
}

/* ── 7. Cartes Établissements ───────────────────────────────────────────────── */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-rose);
    transform: translateY(-3px);
}

.card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-elevated), #1a1a2e);
    color: var(--color-text-subtle);
    font-size: 3rem;
}

/* Badges sur la carte */
.card__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px var(--space-3);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-recommended {
    background: linear-gradient(135deg, var(--color-primary), #ff6b9d);
    color: white;
    box-shadow: 0 2px 12px rgba(255,45,107,0.4);
}

.badge-top10 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0A0A0A;
    box-shadow: 0 2px 12px rgba(255,215,0,0.4);
}

.badge-new {
    background: linear-gradient(135deg, #00D2FF, #3A7BD5);
    color: white;
}

.badge-category {
    font-size: 10px;
    font-weight: 600;
    padding: 3px var(--space-2);
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Bouton favori */
.card__favorite {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.2);
}

.card__favorite:hover,
.card__favorite.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.card__favorite.active i::before { content: "\f004"; }  /* Cœur plein */

/* Contenu de la carte */
.card__body {
    padding: var(--space-4);
}

.card__category {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
}

.card__footer {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── 8. Étoiles de notation ────────────────────────────────────────────────── */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stars i {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
}

.stars i.active    { color: var(--color-accent); }
.stars i.half      { color: var(--color-accent); }  /* Via clip-path en JS */

.star-score {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.star-score__value {
    font-weight: 700;
    font-size: var(--text-md);
    color: white;
}

.star-score__count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Widget de notation interactif */
.rating-input {
    display: flex;
    gap: var(--space-1);
    direction: rtl;  /* Pour le hover CSS pur */
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-subtle);
    transition: color var(--transition-fast);
    direction: ltr;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--color-accent);
}

/* ── 9. Formulaires ─────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.form-label span.required {
    color: var(--color-primary);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-elevated);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    background: var(--color-bg-card);
}

.form-control::placeholder {
    color: var(--color-text-subtle);
}

.form-control.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888899' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.form-error {
    font-size: var(--text-xs);
    color: #ff6666;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Checkbox et radio stylisés */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2) 0;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    margin-top: 2px;
}

.form-check input[type="radio"] { border-radius: 50%; }

.form-check input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.form-check__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ── 10. Messages Flash ─────────────────────────────────────────────────────── */
.flash-messages {
    position: fixed;
    top: calc(var(--nav-height) + var(--space-4));
    right: var(--space-4);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 360px;
    width: calc(100% - var(--space-8));
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid;
    backdrop-filter: blur(20px);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    cursor: pointer;
}

.flash-success {
    background: rgba(39,174,96,0.15);
    border-color: rgba(39,174,96,0.4);
    color: #4ade80;
}

.flash-error {
    background: rgba(255,68,68,0.15);
    border-color: rgba(255,68,68,0.4);
    color: #f87171;
}

.flash-warning {
    background: rgba(255,180,0,0.15);
    border-color: rgba(255,180,0,0.4);
    color: #facc15;
}

.flash-info {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

.flash i { font-size: var(--text-md); flex-shrink: 0; margin-top: 1px; }
.flash__text { font-size: var(--text-sm); line-height: 1.5; }
.flash__close { margin-left: auto; opacity: 0.6; cursor: pointer; flex-shrink: 0; }
.flash__close:hover { opacity: 1; }

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(110%); }
}

/* ── 11. Hero Section ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg);
}

/* Fond géométrique animé */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,45,107,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,107,157,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,45,107,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,45,107,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    border: 1px solid rgba(255,45,107,0.3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, var(--text-5xl));
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.hero__title em {
    font-style: normal;
    color: var(--color-primary);
    position: relative;
}

.hero__title em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    border-radius: 2px;
}

.hero__subtitle {
    font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

/* Barre de recherche héro */
.hero__search {
    max-width: 680px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,45,107,0.1);
    transition: all var(--transition-base);
}

.search-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-rose), var(--shadow-lg);
}

.search-bar__input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    background: transparent;
    border: none;
    color: white;
    font-size: var(--text-base);
    min-width: 0;
}

.search-bar__input:focus { outline: none; }
.search-bar__input::placeholder { color: var(--color-text-subtle); }

.search-bar__btn {
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

.search-bar__btn:hover { background: var(--color-primary-hover); }

@media (max-width: 480px) {
    .search-bar { flex-direction: column; border-radius: var(--radius-lg); }
    .search-bar__btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); justify-content: center; }
}

/* Stats héro */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 900;
    color: white;
    display: block;
    line-height: 1;
}

.hero__stat__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-1);
}

/* ── 12. Section Titre ──────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: white;
}

.section-title span {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

/* ── 13. Catégories Pills ───────────────────────────────────────────────────── */
.categories-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.category-pill:hover,
.category-pill.active {
    border-color: var(--color-primary);
    color: white;
    background: var(--color-primary-light);
}

.category-pill i { font-size: var(--text-md); }

/* ── 14. Carte interactive ──────────────────────────────────────────────────── */
#map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 640px) { #map { height: 350px; } }

/* Surcharge du style Leaflet pour le thème sombre */
.leaflet-container {
    background: #1a1a2e !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--color-bg-card) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-tip { background: var(--color-bg-card) !important; }

.map-marker-popup h4 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-1);
}

.map-marker-popup p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.map-marker-popup a {
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* Marqueur personnalisé */
.custom-marker {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary);
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 15. Footer ─────────────────────────────────────────────────────────────── */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: var(--space-4) 0;
    line-height: 1.7;
    max-width: 280px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
}
.footer__logo span { color: var(--color-primary); }

.footer__socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.footer__col h5 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--color-primary); }

.footer__bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

.footer__legal {
    display: flex;
    gap: var(--space-4);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    transition: color var(--transition-fast);
}

.footer__legal a:hover { color: var(--color-text-muted); }

/* ── 16. Loader / Skeleton ──────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--color-bg-elevated) 25%,
        rgba(255,255,255,0.04) 50%,
        var(--color-bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 17. Utilitaires ────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-auto  { margin-top: auto; }
.divider  { height: 1px; background: var(--color-border); margin: var(--space-6) 0; }

/* Overlay modal / drawer */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.overlay.active { opacity: 1; pointer-events: all; }

/* ── 18. Navigation bottom mobile (PWA style) ───────────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(14,14,14,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2) 0 max(var(--space-2), env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
    .bottom-nav { display: flex; }
    .page-wrapper { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

.bottom-nav__items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: var(--space-2) var(--space-1);
    color: var(--color-text-subtle);
    font-size: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item i {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--color-primary);
}

.bottom-nav__item.active i {
    transform: scale(1.1);
}

/* ── 19. Animations d'entrée ────────────────────────────────────────────────── */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 20. Page de liste avec filtres ─────────────────────────────────────────── */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    align-items: start;
}

@media (max-width: 1023px) {
    .page-layout { grid-template-columns: 1fr; }
}

.filters-sidebar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
}

@media (max-width: 1023px) {
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        z-index: 1100;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .filters-sidebar.open { transform: translateX(0); }
}

.filter-group {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child { border-bottom: none; margin-bottom: 0; }

.filter-group__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-4);
}

/* ── 21. Pagination ─────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination .ellipsis {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}


\n.dropdown-menu a { color: #F0F0F0 !important; }\n.dropdown-menu a i { color: #FF2D6B !important; }\n.dropdown-menu { background: #1C1C2E !important; }\n