/* ============================================================
   Scalo Sud — Feuille de style principale
   Design méditerranéen élégant
   ============================================================ */

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #F5F2ED;
    color: #2D2926;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* === HERO FULL PAGE === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section { background-attachment: scroll; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin: 0 0 24px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === PAGE HERO (inner pages) === */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* === SECTIONS === */
.section-padding { padding: 80px 0; }

@media (max-width: 768px) {
    .section-padding { padding: 48px 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #2D2926;
    margin: 8px 0 16px;
}

/* === CARDS === */
.accommodation-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: white;
}

.accommodation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.accommodation-card:hover .card-img {
    transform: scale(1.04);
}

/* === NAVIGATION === */
.brand-link { text-decoration: none !important; }

.nav-btn {
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    font-size: 14px !important;
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #0B1F2E 0%, #0A3D5C 100%);
    padding: 64px 0 32px;
}

/* === ADMIN LOGIN === */
.admin-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1A78A4 0%, #0B1F2E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.h-100 { height: 100%; }

/* === MUDBLAZOR OVERRIDES === */
.mud-button-root {
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

.mud-nav-link {
    border-radius: 8px !important;
    margin: 2px 8px !important;
    font-weight: 500;
}

.mud-table-head .mud-table-cell {
    background: #F5F2ED !important;
    font-size: 13px;
}

.mud-table-row:hover {
    background: rgba(13,110,110,0.04) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1A78A4; border-radius: 3px; }

/* === BLAZOR ERROR UI === */
#blazor-error-ui {
    background: #ffe4e4;
    border-top: 1px solid #ffb3b3;
    bottom: 0;
    display: none;
    left: 0;
    padding: 12px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Une erreur est survenue.";
}
