/**
 * BnBView.fr — Design complet
 *
 * Interface publique grand public pour les hebergements View 360.
 * Design clean, lumineux, mobile-first.
 * Couleur ambre (#d97706) — location courte duree.
 *
 * @package View360
 * @subpackage BnBView
 */

/* ============================================================
   VARIABLES CSS — Theme ambre BnBView
   ============================================================ */

:root {
    /* Couleurs plateforme — AMBRE */
    --sv-primary: #d97706;
    --sv-primary-hover: #b45309;
    --sv-primary-light: #fef3c7;
    --sv-primary-dark: #92400e;

    /* Couleurs neutres */
    --sv-bg: #f8fafc;
    --sv-bg-white: #ffffff;
    --sv-bg-card: #ffffff;
    --sv-text: #1e293b;
    --sv-text-secondary: #64748b;
    --sv-text-muted: #94a3b8;
    --sv-border: #e2e8f0;
    --sv-border-light: #f1f5f9;

    /* Couleurs d'etat */
    --sv-success: #22c55e;
    --sv-success-bg: #dcfce7;
    --sv-warning: #f59e0b;
    --sv-warning-bg: #fef3c7;
    --sv-danger: #ef4444;
    --sv-danger-bg: #fee2e2;

    /* Dimensions */
    --sv-header-height: 64px;
    --sv-sidebar-width: 240px;
    --sv-sidebar-collapsed: 60px;
    --sv-border-radius: 12px;
    --sv-border-radius-sm: 8px;
    --sv-border-radius-lg: 16px;

    /* Ombres — teinte ambre */
    --sv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --sv-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --sv-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --sv-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --sv-shadow-vr: 0 8px 30px rgba(217, 119, 6, 0.15);

    /* Transitions */
    --sv-transition: all 0.2s ease;
    --sv-transition-slow: all 0.3s ease;

    /* Police */
    --sv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

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

a {
    color: var(--sv-primary);
    text-decoration: none;
    transition: var(--sv-transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   LAYOUT PRINCIPAL (header + sidebar + main + footer)
   ============================================================ */

.sv-layout {
    display: grid;
    grid-template-columns: var(--sv-sidebar-width) 1fr;
    grid-template-rows: var(--sv-header-height) 1fr auto;
    grid-template-areas:
        "header header"
        "sidebar main"
        "sidebar footer";
    min-height: 100vh;
}

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

.sv-header {
    grid-area: header;
    background: var(--sv-bg-white);
    border-bottom: 1px solid var(--sv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--sv-header-height);
    box-shadow: var(--sv-shadow-sm);
}

.sv-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sv-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sv-primary);
}

.sv-logo img {
    height: 32px;
    width: auto;
}

.sv-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sv-primary), var(--sv-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sv-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--sv-text);
    cursor: pointer;
    padding: 0.25rem;
}

/* Header droite : login ou profil */
.sv-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sv-header-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sv-header-forgot-link {
    font-size: 0.75rem;
    color: var(--sv-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.sv-header-forgot-link:hover {
    color: var(--sv-primary);
    text-decoration: underline;
}

.sv-header-login input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-border-radius-sm);
    font-size: 0.875rem;
    font-family: var(--sv-font);
    width: 160px;
    transition: var(--sv-transition);
}

.sv-header-login input:focus {
    outline: none;
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 3px var(--sv-primary-light);
}

.sv-header-login input::placeholder {
    color: var(--sv-text-muted);
}

/* Bouton login mobile : masqué par défaut, visible sous 480px */
/* !important nécessaire car .sv-btn (même spécificité) définit display: inline-flex */
.sv-header-login-mobile {
    display: none !important;
}

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--sv-border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--sv-font);
    cursor: pointer;
    transition: var(--sv-transition);
    white-space: nowrap;
}

.sv-btn-primary {
    background: var(--sv-primary);
    color: white;
}

.sv-btn-primary:hover {
    background: var(--sv-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--sv-shadow-md);
}

.sv-btn-secondary {
    background: var(--sv-bg);
    color: var(--sv-text);
    border: 1px solid var(--sv-border);
}

.sv-btn-secondary:hover {
    background: var(--sv-border-light);
}

.sv-btn-ghost {
    background: transparent;
    color: var(--sv-primary);
}

.sv-btn-ghost:hover {
    background: var(--sv-primary-light);
}

.sv-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.sv-btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.sv-header-signup {
    font-size: 0.8rem;
    color: var(--sv-text-secondary);
}

.sv-header-signup a {
    font-weight: 500;
}

/* Header connecte */
.sv-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.sv-header-user-name {
    font-weight: 500;
    color: var(--sv-text);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sv-header-user-avatar {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sv-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icônes login/logout (cachées sur desktop, visibles sur mobile) */
.sv-btn-icon {
    display: none;
    vertical-align: middle;
}

/* ============================================================
   SIDEBAR (menu gauche)
   ============================================================ */

.sv-sidebar {
    grid-area: sidebar;
    background: var(--sv-bg-white);
    border-right: 1px solid var(--sv-border);
    padding: 1.5rem 0;
    position: sticky;
    top: var(--sv-header-height);
    height: calc(100vh - var(--sv-header-height));
    overflow-y: auto;
    z-index: 50;
}

.sv-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.sv-sidebar-item {
    display: block;
}

.sv-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--sv-border-radius-sm);
    color: var(--sv-text-secondary);
    font-size: 0.9rem;
    font-weight: 450;
    transition: var(--sv-transition);
}

.sv-sidebar-link:hover {
    color: var(--sv-primary);
    background: var(--sv-primary-light);
}

.sv-sidebar-link.active {
    color: var(--sv-primary);
    background: var(--sv-primary-light);
    font-weight: 600;
}

.sv-sidebar-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.sv-sidebar-divider {
    height: 1px;
    background: var(--sv-border-light);
    margin: 0.75rem 0.875rem;
}

.sv-sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sv-text-muted);
    padding: 0.5rem 0.875rem 0.25rem;
    font-weight: 600;
}

/* ============================================================
   ZONE PRINCIPALE
   ============================================================ */

.sv-main {
    grid-area: main;
    padding: 1.5rem 2rem;
    min-height: calc(100vh - var(--sv-header-height));
    overflow-x: hidden;
}

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

.sv-footer {
    grid-area: footer;
    background: var(--sv-bg-white);
    border-top: 1px solid var(--sv-border);
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    color: var(--sv-text-muted);
}

.sv-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sv-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sv-footer-links a {
    color: var(--sv-text-muted);
    font-size: 0.8rem;
}

.sv-footer-links a:hover {
    color: var(--sv-primary);
}

.sv-footer-cta {
    background: var(--sv-primary-light);
    padding: 0.5rem 1rem;
    border-radius: var(--sv-border-radius-sm);
    font-weight: 500;
}

.sv-footer-cta a {
    color: var(--sv-primary);
    font-weight: 600;
}

/* Sélecteur 🇫🇷 / 🇨🇭 */
.sv-footer-geo {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--sv-bg);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-border-radius-sm);
    padding: 0.2rem;
}
.sv-footer-geo__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: calc(var(--sv-border-radius-sm) - 2px);
    color: var(--sv-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sv-footer-geo__btn:hover {
    color: var(--sv-text);
}
.sv-footer-geo__btn.is-active {
    background: var(--sv-bg-white);
    color: var(--sv-primary);
    box-shadow: var(--sv-shadow-sm);
    cursor: default;
}
.sv-footer-geo__flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   BARRE DE RECHERCHE ACCUEIL
   ============================================================ */

.sv-search-hero {
    background: var(--sv-bg-white);
    border-radius: var(--sv-border-radius-lg);
    padding: 2rem;
    box-shadow: var(--sv-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.sv-search-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 0.5rem;
}

.sv-search-hero p {
    color: var(--sv-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sv-search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.sv-search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--sv-border);
    border-radius: var(--sv-border-radius-sm);
    font-size: 1rem;
    font-family: var(--sv-font);
    transition: var(--sv-transition);
}

.sv-search-bar input:focus {
    outline: none;
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 3px var(--sv-primary-light);
}

/* ============================================================
   GRILLE DE CARTES COMMERCES
   ============================================================ */

.sv-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.sv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.sv-card {
    background: var(--sv-bg-card);
    border-radius: var(--sv-border-radius);
    overflow: hidden;
    box-shadow: var(--sv-shadow);
    transition: var(--sv-transition-slow);
    cursor: pointer;
    position: relative;
}

.sv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow-lg);
}

.sv-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--sv-border-light);
}

.sv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sv-transition-slow);
}

.sv-card:hover .sv-card-image img {
    transform: scale(1.05);
}

.sv-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--sv-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sv-card-vr-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Badge "Nouveau" (publié < 15 jours) */
.sv-card-new-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Carousel remises */
.sv-discounts-carousel-section {
    max-width: 650px;
    margin: 0 auto;
}
.sv-discounts-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.sv-discounts-carousel::-webkit-scrollbar { height: 4px; }
.sv-discounts-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sv-discount-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sv-discount-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sv-discount-card-img {
    position: relative;
    height: 120px;
    overflow: hidden;
}
.sv-discount-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sv-discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.sv-discount-card-body {
    padding: 0.75rem;
}
.sv-discount-card-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sv-discount-card-body .sv-discount-meta {
    font-size: 0.8rem;
    color: #64748b;
}
.sv-discount-card-body .sv-discount-applies {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}
@media (max-width: 768px) {
    .sv-discount-card { flex: 0 0 220px; }
    .sv-discount-card-img { height: 100px; }
}

/* --- Bandeau fermeture / vacances --- */
.sv-closure-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}
.sv-closure-banner.active {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.sv-closure-banner.upcoming {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}
.sv-closure-banner strong { display: block; }
.sv-closure-dates { font-weight: 400; opacity: 0.85; }

/* --- Remises dans les fiches établissement --- */
.sv-discounts-section {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1.25rem;
}
.sv-discounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sv-discount-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #fde68a;
}
.sv-discount-item-badge {
    background: var(--sv-primary, #16a34a);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 55px;
    text-align: center;
}
.sv-discount-item-info {
    flex: 1;
    min-width: 0;
}
.sv-discount-item-info strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.15rem;
}
.sv-discount-item-meta {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
}

.sv-card-body {
    padding: 1rem;
}

.sv-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--sv-text);
    margin-bottom: 0.25rem;
}

.sv-card-type {
    font-size: 0.8rem;
    color: var(--sv-text-muted);
    margin-bottom: 0.5rem;
}

.sv-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.sv-card-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--sv-text-secondary);
}

.sv-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--sv-warning);
    font-weight: 600;
}

.sv-card-rating .star {
    color: var(--sv-warning);
}

.sv-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--sv-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sv-card-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sv-card-status.open {
    color: var(--sv-success);
}

.sv-card-status.closed {
    color: var(--sv-danger);
}

.sv-card-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sv-card-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sv-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================================
   FICHE COMMERCE — VISITE VR
   ============================================================ */

.sv-commerce-header {
    margin-bottom: 1.5rem;
}

.sv-commerce-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sv-commerce-header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--sv-text-secondary);
    font-size: 0.9rem;
}

.sv-vr-container {
    position: relative;
    width: 100%;
    border-radius: var(--sv-border-radius);
    overflow: hidden;
    box-shadow: var(--sv-shadow-vr);
    margin-bottom: 1.5rem;
    background: #000;
}

.sv-vr-container iframe {
    width: 100%;
    height: 65vh;
    min-height: 400px;
    max-height: 700px;
    border: none;
    display: block;
}

/* --- Bouton plein écran flottant (visite VR) — identique à ShopView --- */
.sv-vr-fullscreen-btn {
    display: none; /* Bouton retiré du HTML — le plein écran est géré nativement par Pano2VR */
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s;
    touch-action: manipulation;
    text-decoration: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    font: inherit;
}

.sv-vr-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sv-vr-fullscreen-btn:active {
    opacity: 0.7;
}

.sv-vr-fullscreen-btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Plein écran CSS — fallback quand Fullscreen API est bloquée */
.sv-vr-container.vr-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    max-height: none !important;
}
.sv-vr-container.vr-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}
.sv-vr-container.vr-fullscreen .sv-vr-fullscreen-btn {
    display: none;
}
.vr-close-fullscreen {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100000;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}
.vr-close-fullscreen:hover {
    background: rgba(0,0,0,0.9);
    border-color: rgba(255,255,255,0.6);
}

.sv-vr-placeholder {
    width: 100%;
    height: 65vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sv-primary-light), var(--sv-bg));
    color: var(--sv-text-secondary);
    border-radius: var(--sv-border-radius);
    text-align: center;
    padding: 2rem;
}

.sv-vr-placeholder i {
    font-size: 3rem;
    color: var(--sv-primary);
    margin-bottom: 1rem;
}

/* Boutons d'action */
.sv-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sv-action-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--sv-bg-white);
    border: 2px solid var(--sv-border);
    border-radius: var(--sv-border-radius);
    color: var(--sv-text);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--sv-font);
    cursor: pointer;
    transition: var(--sv-transition);
}

.sv-action-btn:hover {
    border-color: var(--sv-primary);
    color: var(--sv-primary);
    background: var(--sv-primary-light);
}

.sv-action-btn i {
    font-size: 1.1rem;
}

.sv-action-btn.primary {
    background: var(--sv-primary);
    border-color: var(--sv-primary);
    color: white;
}

.sv-action-btn.primary:hover {
    background: var(--sv-primary-hover);
    transform: translateY(-1px);
}

/* Sections de la fiche */
.sv-info-section {
    background: var(--sv-bg-white);
    border-radius: var(--sv-border-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sv-shadow-sm);
}

.sv-info-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sv-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sv-info-section h2 i {
    color: var(--sv-primary);
}

/* Horaires */
.sv-hours-list {
    list-style: none;
}

.sv-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--sv-border-light);
    font-size: 0.875rem;
}

.sv-hours-item:last-child {
    border-bottom: none;
}

.sv-hours-day {
    font-weight: 500;
    color: var(--sv-text);
}

.sv-hours-time {
    color: var(--sv-text-secondary);
}

.sv-hours-item.today {
    font-weight: 600;
    color: var(--sv-primary);
}

.sv-hours-item.today .sv-hours-time {
    color: var(--sv-primary);
}

/* Multi-sites : groupes d'horaires par site */
.sv-hours-group {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sv-border-light);
}

.sv-hours-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sv-hours-location-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sv-primary);
    margin: 0 0 0.6rem 0;
}

.sv-hours-location-address {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--sv-text-secondary);
}

.sv-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.sv-open-badge.open {
    background: var(--sv-success-bg);
    color: var(--sv-success);
}

.sv-open-badge.closed {
    background: var(--sv-danger-bg);
    color: var(--sv-danger);
}

/* Description */
.sv-description {
    color: var(--sv-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Mini carte */
.sv-minimap {
    width: 100%;
    height: 200px;
    border-radius: var(--sv-border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--sv-border);
}

.sv-minimap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Favoris */
.sv-favorite-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--sv-bg-white);
    border: 2px solid var(--sv-border);
    border-radius: var(--sv-border-radius);
    color: var(--sv-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--sv-font);
    cursor: pointer;
    transition: var(--sv-transition);
    width: 100%;
    justify-content: center;
}

.sv-favorite-btn:hover,
.sv-favorite-btn.active {
    border-color: var(--sv-danger);
    color: var(--sv-danger);
    background: var(--sv-danger-bg);
}

.sv-favorite-btn.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================================
   RECHERCHE / FILTRES
   ============================================================ */

.sv-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sv-filter-chip {
    padding: 0.4rem 0.875rem;
    border: 1px solid var(--sv-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--sv-font);
    cursor: pointer;
    transition: var(--sv-transition);
    background: var(--sv-bg-white);
    color: var(--sv-text-secondary);
}

.sv-filter-chip:hover,
.sv-filter-chip.active {
    border-color: var(--sv-primary);
    background: var(--sv-primary-light);
    color: var(--sv-primary);
}

.sv-results-count {
    font-size: 0.875rem;
    color: var(--sv-text-muted);
    margin-bottom: 1rem;
}

/* ============================================================
   SECTION EXPLICATIVE / CTA
   ============================================================ */

.sv-cta-section {
    background: linear-gradient(135deg, var(--sv-primary), var(--sv-primary-dark));
    border-radius: var(--sv-border-radius-lg);
    padding: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.sv-cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sv-cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sv-cta-section .sv-btn {
    background: white;
    color: var(--sv-primary);
    font-weight: 600;
}

.sv-cta-section .sv-btn:hover {
    background: var(--sv-primary-light);
    transform: translateY(-2px);
}

/* ============================================================
   FORMULAIRES (inscription, contact)
   ============================================================ */

.sv-form {
    background: var(--sv-bg-white);
    border-radius: var(--sv-border-radius);
    padding: 2rem;
    box-shadow: var(--sv-shadow);
    max-width: 480px;
    margin: 0 auto;
}

.sv-form h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sv-form-group {
    margin-bottom: 1rem;
}

.sv-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sv-text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sv-form-group input,
.sv-form-group select,
.sv-form-group textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--sv-border);
    border-radius: var(--sv-border-radius-sm);
    font-size: 0.9rem;
    font-family: var(--sv-font);
    transition: var(--sv-transition);
    color: var(--sv-text);
}

.sv-form-group input:focus,
.sv-form-group select:focus,
.sv-form-group textarea:focus {
    outline: none;
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 3px var(--sv-primary-light);
}

.sv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sv-form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--sv-text-secondary);
}

.sv-form-check input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.sv-form-error {
    font-size: 0.75rem;
    color: var(--sv-danger);
    margin-top: 0.25rem;
}

/* ============================================================
   ETATS VIDES / CHARGEMENT
   ============================================================ */

.sv-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sv-text-muted);
}

.sv-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.sv-empty p {
    font-size: 0.95rem;
}

.sv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.sv-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--sv-border);
    border-top-color: var(--sv-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Skeleton loading */
.sv-skeleton {
    background: linear-gradient(90deg, var(--sv-border-light) 25%, var(--sv-border) 50%, var(--sv-border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: var(--sv-border-radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.sv-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--sv-text);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--sv-border-radius-sm);
    font-size: 0.875rem;
    box-shadow: var(--sv-shadow-lg);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--sv-transition-slow);
}

.sv-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.sv-toast.success {
    background: var(--sv-success);
}

.sv-toast.error {
    background: var(--sv-danger);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .sv-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .sv-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "footer";
    }

    .sv-sidebar {
        display: none;
        position: fixed;
        top: var(--sv-header-height);
        left: 0;
        width: 280px;
        height: calc(100vh - var(--sv-header-height));
        z-index: 200;
        box-shadow: var(--sv-shadow-lg);
    }

    .sv-sidebar.open {
        display: block;
    }

    .sv-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--sv-header-height);
        background: rgba(0, 0, 0, 0.3);
        z-index: 150;
    }

    .sv-sidebar-overlay.open {
        display: block;
    }

    .sv-menu-toggle {
        display: block;
    }

    .sv-header {
        padding: 0 0.75rem;
        overflow: hidden;
    }

    .sv-header-user-name {
        display: none;
    }

    .sv-header-user-avatar {
        display: flex;
    }

    .sv-header-user {
        gap: 0.5rem;
    }

    .sv-btn-label {
        display: none;
    }

    .sv-btn-icon {
        display: inline-block;
    }

    .sv-logout-btn {
        padding: 0.35rem;
        min-width: 0;
        line-height: 1;
    }

    .sv-header-login-mobile {
        padding: 0.35rem;
        min-width: 0;
        line-height: 1;
    }

    .sv-main {
        padding: 1rem;
    }

    .sv-header-login input {
        width: 120px;
    }

    .sv-search-bar {
        flex-direction: column;
    }

    .sv-actions {
        flex-direction: column;
    }

    .sv-action-btn {
        min-width: unset;
    }

    .sv-vr-container iframe {
        height: 50vh;
        min-height: 280px;
    }

    .sv-vr-fullscreen-btn {
        display: flex;
    }

    .sv-form-row {
        grid-template-columns: 1fr;
    }

    .sv-cards-grid {
        grid-template-columns: 1fr;
    }

    .sv-commerce-header h1 {
        font-size: 1.25rem;
    }

    .sv-header-signup {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Masquer le formulaire inline, afficher le bouton mobile */
    .sv-header-login {
        display: none;
    }

    .sv-header-login-mobile {
        display: inline-flex !important;
    }

    .sv-btn-sm {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .sv-search-hero {
        padding: 1.25rem;
    }

    .sv-search-hero h1 {
        font-size: 1.25rem;
    }
}

/* ============================================================
   COMPOSANTS PARTAGÉS (rv-*)
   Utilisés par les pages communes core/pages/ (avis, réservations)
   ============================================================ */

/* --- Page header --- */
.rv-page-header { margin-bottom: 1.5rem; }
.rv-page-header h1 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; }
.rv-section-title { font-size: 1.1rem; font-weight: 600; color: var(--sv-text); margin-bottom: 1rem; }

/* --- Réservations --- */
.rv-reservations-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.rv-reservation-card { background: var(--sv-bg-card); border: 1px solid var(--sv-border); border-radius: 12px; padding: 1rem; border-left: 4px solid var(--sv-border); }
.rv-reservation-card.rv-status-success { border-left-color: #22c55e; }
.rv-reservation-card.rv-status-warning { border-left-color: #f59e0b; }
.rv-reservation-card.rv-status-error { border-left-color: #ef4444; }
.rv-reservation-card.rv-status-muted { border-left-color: #94a3b8; }
.rv-resa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.rv-resa-header h3 { font-size: 1rem; font-weight: 600; }
.rv-resa-status { font-size: 0.8rem; }
.rv-resa-details { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--sv-text-secondary); }
.rv-resa-details span { display: flex; align-items: center; gap: 0.25rem; }
.rv-resa-discount { margin-top: 0.5rem; font-size: 0.8rem; color: var(--sv-primary); font-weight: 500; }
.rv-resa-miam { margin-top: 0.25rem; font-size: 0.8rem; }
.rv-resa-miam.earned { color: #166534; }
.rv-resa-miam.spent { color: #92400e; }

/* --- Avis (liste) --- */
.rv-page-mes-avis { }
.rv-reviews-list { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.rv-review-card { background: var(--sv-bg-card, #fff); border: 1px solid var(--sv-border, #eee); border-radius: 12px; padding: 1rem 1.25rem; }
.rv-review-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.rv-review-author { display: flex; align-items: center; gap: 0.4rem; }
.rv-review-meta { display: flex; align-items: center; gap: 0.5rem; }
.rv-review-stars { font-size: 0.9rem; }
.rv-review-date { font-size: 0.75rem; color: var(--sv-text-secondary); }
.rv-review-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.rv-review-comment { font-size: 0.9rem; line-height: 1.5; color: var(--sv-text); margin-bottom: 0.5rem; white-space: pre-line; }
.rv-review-response { margin-top: 0.5rem; padding: 0.75rem 1rem; background: var(--sv-bg, #f8f9fa); border-radius: 8px; border-left: 3px solid var(--sv-primary); font-size: 0.85rem; }
.rv-review-response strong { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; color: var(--sv-primary); }
.rv-review-response p { margin: 0; line-height: 1.5; }
.rv-star.full { color: #f59e0b; }
.rv-star.half { color: #f59e0b; opacity: 0.6; }
.rv-star.empty { color: #ddd; }
.rv-stars-sm { font-size: 0.7rem; }
.rv-star-sm.full { color: #f59e0b; }
.rv-star-sm.empty { color: #ddd; }
.rv-review-subnotes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.75rem; color: var(--sv-text-secondary); }

/* --- Formulaire d'avis --- */
.rv-avis-header { margin-bottom: 1.5rem; }
.rv-avis-header h1 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; }
.rv-avis-form { max-width: 600px; }
.rv-form-group { margin-bottom: 1.25rem; }
.rv-form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.rv-form-group label .required { color: #ef4444; }
.rv-input, .rv-textarea, .rv-select { width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--sv-border, #ddd); border-radius: 8px; font-size: 0.9rem; font-family: inherit; background: var(--sv-bg-card, #fff); color: var(--sv-text); transition: border-color 0.2s; }
.rv-input:focus, .rv-textarea:focus, .rv-select:focus { border-color: var(--sv-primary); outline: none; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1); }
.rv-textarea { resize: vertical; min-height: 100px; }
.rv-char-count { text-align: right; font-size: 0.7rem; color: var(--sv-text-secondary); margin-top: 0.2rem; }
.rv-star-input { display: flex; gap: 0.25rem; }
.rv-star-select { font-size: 2rem; cursor: pointer; color: #ddd; transition: color 0.15s, transform 0.15s; user-select: none; }
.rv-star-select:hover, .rv-star-select.selected { color: #f59e0b; transform: scale(1.15); }
.rv-subnotes-section { margin-bottom: 1.5rem; padding: 1rem; background: var(--sv-bg, #f8f9fa); border-radius: 10px; }
.rv-subnotes-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.rv-subnotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.rv-subnote-item label { font-size: 0.8rem; font-weight: 500; margin-bottom: 0.15rem; display: block; }
.rv-star-input-sm { display: flex; gap: 0.15rem; }
.rv-star-select-sm { font-size: 1.25rem; cursor: pointer; color: #ddd; transition: color 0.15s; user-select: none; }
.rv-star-select-sm:hover, .rv-star-select-sm.selected { color: #f59e0b; }
.rv-form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.rv-msg { padding: 1rem 1.25rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.5; }
.rv-msg.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.rv-msg.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
