/* ============================================
   Prague 30 — Design System
   Tons clairs, inspiration Art Nouveau / Prague
   ============================================ */

:root {
    --cream: #faf7f2;
    --cream-dark: #f0ebe3;
    --gold: #c4a35a;
    --gold-light: #e8d5a8;
    --gold-dark: #9a7b3c;
    --terracotta: #c4704a;
    --sage: #7a9e8e;
    --sage-light: #b8cfc4;
    --slate: #3d4f5f;
    --slate-light: #6b7d8d;
    --text: #2c3338;
    --text-muted: #5c6670;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(61, 79, 95, 0.08);
    --shadow-lg: 0 12px 48px rgba(61, 79, 95, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(196, 163, 90, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(122, 158, 142, 0.1) 0%, transparent 50%),
        var(--cream);
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--text);
    background: var(--cream-dark);
}

.main-nav a.active {
    color: var(--white);
    background: var(--slate);
}

.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--slate);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.6;
    font-size: 0.75rem;
}

.footer-note code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--slate);
    border: 2px solid var(--slate);
}

.btn-secondary:hover {
    background: var(--slate);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--slate);
}

.btn-light:hover {
    background: var(--gold-light);
}

.btn-mini {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-mini:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-light);
}

/* ---- Hero ---- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0 4rem;
    min-height: 70vh;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--slate);
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image {
    height: 420px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.stat {
    padding: 1rem 1.75rem;
    text-align: center;
    border-right: 1px solid var(--cream-dark);
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Sections ---- */
.section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--slate);
}

.section-desc {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.page-header {
    padding: 2.5rem 0 1.5rem;
}

.page-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.75rem;
}

.page-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
}

/* ---- Cards ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--slate);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--gold-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* ---- Banner ---- */
.highlight-banner {
    background: linear-gradient(135deg, var(--slate) 0%, #2a3844 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: var(--white);
    margin: 1rem 0;
}

.banner-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.banner-content p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* ---- Info boxes ---- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-box-accent {
    border-left: 4px solid var(--gold);
}

.info-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--slate);
}

.info-highlight {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

/* ---- Lodging ---- */
.lodging-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.lodging-intro {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.lodging-list {
    list-style: none;
}

.lodging-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}

.room-tag {
    flex-shrink: 0;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lodging-image {
    height: 280px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.lodging-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ---- Rules ---- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rule-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.rule-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--slate);
}

.rule-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.rule-card-highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, #f5edd8 100%);
    border: 1px solid var(--gold);
}

/* ---- Checklist table ---- */
.checklist-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.checklist-table th {
    background: var(--slate);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checklist-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    vertical-align: middle;
}

.checklist-table tr:hover td {
    background: var(--cream);
}

.participant-name strong {
    display: block;
}

.host-badge {
    display: inline-block;
    font-size: 0.65rem;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-top: 0.25rem;
}

.inline-forms {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.4rem;
}

.inline-form {
    display: inline;
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-yes {
    background: #d4edda;
    color: #1e6b3a;
}

.badge-no {
    background: #f8d7da;
    color: #8b2635;
}

.badge-pending {
    background: var(--cream-dark);
    color: var(--text-muted);
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.checklist-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.summary-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-item strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
}

/* ---- Guests grid ---- */
.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.guest-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.guest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.guest-info {
    flex: 1;
    min-width: 0;
}

.guest-info strong {
    display: block;
    font-size: 0.95rem;
}

.guest-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guest-status {
    flex-shrink: 0;
}

/* ---- Alerts ---- */
.alert {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #1e6b3a;
    border: 1px solid #b8dfc4;
}

.alert-error {
    background: #f8d7da;
    color: #8b2635;
    border: 1px solid #f1b8be;
}

/* ---- Programme: Day nav ---- */
.day-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
    scrollbar-width: thin;
}

.day-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-muted);
    border: 2px solid transparent;
    transition: var(--transition);
    min-width: 130px;
}

.day-tab:hover {
    border-color: var(--gold-light);
    color: var(--text);
}

.day-tab.active {
    background: var(--slate);
    color: var(--white);
    border-color: var(--slate);
}

.day-tab-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.day-tab-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* ---- Day hero ---- */
.programme-day {
    margin-bottom: 2rem;
}

.day-hero {
    height: 320px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.day-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 51, 56, 0.85) 0%, rgba(44, 51, 56, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: var(--white);
}

.day-quartier {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.day-hero-overlay h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-hero-overlay p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ---- Slot tabs (pure CSS) ---- */
.slot-tabs-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slot-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-tab-labels {
    display: flex;
    background: var(--cream-dark);
    border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

.slot-tab-label {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.slot-tab-label:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.5);
}

/* Show active tab label */
.slot-radio:nth-of-type(1):checked ~ .slot-tab-labels .slot-tab-label:nth-child(1),
.slot-radio:nth-of-type(2):checked ~ .slot-tab-labels .slot-tab-label:nth-child(2),
.slot-radio:nth-of-type(3):checked ~ .slot-tab-labels .slot-tab-label:nth-child(3) {
    color: var(--slate);
    background: var(--white);
    border-bottom-color: var(--gold);
}

.slot-panels {
    position: relative;
}

/* Hide all panels by default */
.slot-panel {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Show panel matching checked radio (3 créneaux max) */
.slot-radio:nth-of-type(1):checked ~ .slot-panels .slot-panel:nth-child(1),
.slot-radio:nth-of-type(2):checked ~ .slot-panels .slot-panel:nth-child(2),
.slot-radio:nth-of-type(3):checked ~ .slot-panels .slot-panel:nth-child(3) {
    display: block;
}

.slot-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate);
    margin-bottom: 0.75rem;
}

.slot-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

/* ---- Activities ---- */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--sage);
}

.activity-paid {
    border-left-color: var(--gold);
    background: linear-gradient(135deg, var(--cream) 0%, #fdf9f0 100%);
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.activity-header h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--slate);
}

.price-tag {
    background: var(--gold);
    color: var(--white);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.activity-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.activity-participants {
    border-top: 1px solid var(--cream-dark);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.participants-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.participant-vote {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.participant-vote-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.activity-count {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
}

/* ---- Note box ---- */
.programme-note {
    padding-top: 1rem;
}

.note-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--sage);
}

.note-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--slate);
}

.note-box p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

code {
    background: var(--cream-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2rem;
    }

    .hero-image {
        height: 280px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .lodging-layout,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
    }

    .checklist-summary {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .site-main {
        padding: 0 1rem 2rem;
    }

    .day-hero {
        height: 220px;
    }

    .day-hero-overlay h2 {
        font-size: 1.75rem;
    }

    .slot-tab-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .slot-panel {
        padding: 1.25rem;
    }
}
