/* ==========================================================================
   Le Repaire Ludique — style.css (médiéval sombre)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:root {
    --bg: #1a1410;
    --bg-elevated: #221a14;
    --surface: #2a1f18;
    --surface-light: #332620;
    --gold: #d4a356;
    --gold-bright: #e6b96a;
    --gold-soft: rgba(212, 163, 86, 0.12);
    --copper: #c75a3c;
    --copper-soft: rgba(199, 90, 60, 0.12);
    --cream: #f4ede4;
    --cream-soft: #b8a896;
    --cream-muted: #7d6e5e;
    --line: rgba(212, 163, 86, 0.18);
    --line-strong: rgba(212, 163, 86, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1100px;
    --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(212, 163, 86, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(199, 90, 60, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--cream);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cream);
    letter-spacing: 0.02em;
}
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 0.5em; }
h3 { font-size: 20px; margin-bottom: 0.4em; }

p { color: var(--cream-soft); }
.muted { color: var(--cream-muted); }
.accent { color: var(--gold); }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 4px 14px rgba(212, 163, 86, 0.25);
}
.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 163, 86, 0.35);
}
.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--cream);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-soft);
}
.btn-large { padding: 18px 38px; font-size: 15px; }

/* ==========================================================================
   Bandeau promo
   ========================================================================== */
.promo-bar {
    background: linear-gradient(90deg, var(--copper) 0%, #a8492f 50%, var(--copper) 100%);
    color: #fff;
    padding: 11px 16px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}
.promo-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.promo-tag {
    background: rgba(0,0,0,0.25);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.promo-bar strong { color: #ffe2a8; }
.promo-bar a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
    white-space: nowrap;
}
.promo-bar a:hover { border-bottom-color: #fff; }

@media (max-width: 600px) {
    .promo-bar { font-size: 12px; padding: 9px 12px; }
    .promo-bar .container { gap: 10px; }
}

/* ==========================================================================
   Section Abonnement
   ========================================================================== */
.abonnement {
    padding: 80px 24px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.abo-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    max-width: 960px;
    margin: 30px auto 0;
    text-align: left;
}
.abo-main {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 38px 36px;
    box-shadow: var(--shadow);
}
.abo-main .header-row {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.abo-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}
.abo-price-line .num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.abo-price-line .per {
    font-size: 16px;
    color: var(--cream-soft);
    font-weight: 500;
}
.abo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.abo-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--cream-soft);
    font-size: 15px;
    line-height: 1.55;
}
.abo-list li strong { color: var(--cream); }
.abo-list .check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-top: 1px;
}
.abo-note {
    font-size: 13px;
    color: var(--cream-muted);
    font-style: italic;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.abo-promo {
    background: linear-gradient(135deg, rgba(199, 90, 60, 0.25) 0%, rgba(212, 163, 86, 0.15) 100%);
    border: 1px solid var(--copper);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.abo-promo .badge {
    display: inline-block;
    background: var(--copper);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    align-self: flex-start;
}
.abo-promo h3 {
    color: var(--cream);
    font-size: 26px;
    margin-bottom: 14px;
}
.abo-promo h3 em { color: var(--gold); font-style: italic; font-weight: 500; }
.abo-promo p {
    color: var(--cream-soft);
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
}
.abo-promo p strong { color: var(--cream); }
.abo-promo .btn { align-self: flex-start; }
.abo-promo small {
    display: block;
    margin-top: 16px;
    color: var(--cream-muted);
    font-size: 12px;
    font-style: italic;
}

@media (max-width: 760px) {
    .abo-grid { grid-template-columns: 1fr; }
    .abo-main { padding: 28px 24px; }
    .abo-promo { padding: 28px 24px; }
}

/* ==========================================================================
   Header (logo centré)
   ========================================================================== */
.site-header {
    background: var(--bg);
    padding: 40px 24px 28px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.logo-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--line);
    transition: var(--transition);
}
.logo-link:hover .logo-img {
    transform: rotate(-4deg);
    box-shadow: 0 4px 30px rgba(212, 163, 86, 0.25), 0 0 0 2px var(--line-strong);
}
.logo-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream);
}
.logo-name em { color: var(--gold); font-style: italic; font-weight: 500; text-transform: none; }
.logo-tagline {
    margin-top: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cream-muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 80px 0;
    text-align: center;
}
.section-title {
    margin-bottom: 16px;
}
.section-intro {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 17px;
    color: var(--cream-soft);
}

/* Hero */
.hero {
    padding: 70px 24px 90px;
    text-align: center;
}
.hero h1 {
    margin-bottom: 22px;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero p.lead {
    font-size: 18px;
    max-width: 580px;
    margin: 0 auto 36px;
    color: var(--cream-soft);
}
.hero .cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tarif card */
.tarif {
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tarif-card {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.tarif-card .price {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.tarif-card .label {
    font-size: 18px;
    color: var(--cream);
    margin-bottom: 14px;
    font-weight: 500;
}
.tarif-card .desc {
    font-size: 14px;
    color: var(--cream-soft);
}

/* Salle médiévale section */
.medieval-section {
    background: var(--surface);
    padding: 80px 24px;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.medieval-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 163, 86, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(199, 90, 60, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
.medieval-section .container {
    position: relative;
    z-index: 1;
}
.medieval-section h2 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

/* Coordonnées */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: left;
    margin-top: 30px;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.contact-card h3 {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}
.contact-card p, .contact-card li {
    color: var(--cream);
    font-size: 15px;
    line-height: 1.7;
}
.contact-card .hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.contact-card .hours-list li:last-child { border-bottom: none; }
.contact-card .hours-list .closed { color: var(--cream-muted); }
.contact-card a { color: var(--gold); transition: var(--transition); }
.contact-card a:hover { color: var(--gold-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0f0b08;
    padding: 30px 24px;
    text-align: center;
    border-top: 1px solid var(--line);
}
.site-footer p {
    color: var(--cream-muted);
    font-size: 13px;
}

/* ==========================================================================
   Page Réservation
   ========================================================================== */
.reservation-hero {
    padding: 30px 24px 40px;
    text-align: center;
}
.reservation-hero h1 { margin-bottom: 14px; }
.reservation-hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.reservation-hero p { max-width: 540px; margin: 0 auto; }

/* Toggle type de réservation */
.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 40px;
    padding: 0 24px;
}
.type-option {
    padding: 22px 20px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    color: var(--cream);
}
.type-option:hover {
    border-color: var(--line-strong);
}
.type-option input { display: none; }
.type-option.selected {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.type-option-name {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--cream);
}
.type-option-desc {
    display: block;
    font-size: 12px;
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.type-option.selected .type-option-name { color: var(--gold); }

/* Système toggle (DnD/Warhammer) - n'apparaît que pour salle médiévale */
.system-section {
    display: none;
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 0 24px;
}
.system-section.show { display: block; }
.system-section .label-title {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cream-soft);
    margin-bottom: 14px;
    font-weight: 600;
}
.system-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.system-option {
    padding: 16px 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}
.system-option:hover { border-color: var(--line-strong); }
.system-option input { display: none; }
.system-option.selected {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.system-option-name {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
}
.system-option.selected .system-option-name { color: var(--gold); }

/* Form layout */
.reservation-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.form-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.form-block-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 14px;
}
.form-block h3 {
    font-size: 18px;
    color: var(--cream);
    margin: 0;
    font-family: var(--font-display);
}

/* Calendrier */
.calendar {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 18px;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.calendar-month {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--cream);
    text-transform: capitalize;
}
.calendar-nav {
    display: flex;
    gap: 6px;
}
.calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--cream);
    border: 1px solid var(--line);
    transition: var(--transition);
    font-size: 16px;
}
.calendar-nav button:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}
.calendar-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-dayname {
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cream-muted);
    padding: 6px 0;
    font-weight: 600;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--cream);
    border: 1px solid transparent;
    font-family: inherit;
}
.calendar-day:hover:not(.disabled):not(.empty):not(.past) {
    background: var(--gold-soft);
    border-color: var(--line-strong);
}
.calendar-day.empty { cursor: default; pointer-events: none; }
.calendar-day.disabled, .calendar-day.past {
    color: var(--cream-muted);
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}
.calendar-day.disabled { text-decoration: line-through; }
.calendar-day.today {
    color: var(--gold);
    font-weight: 700;
}
.calendar-day.selected {
    background: var(--gold);
    color: var(--bg);
    font-weight: 700;
    border-color: var(--gold);
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.time-slots-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cream-muted);
    padding: 20px 14px;
    font-style: italic;
    font-size: 14px;
}
.time-slot {
    padding: 11px 8px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    color: var(--cream);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
.time-slot:hover { border-color: var(--gold); color: var(--gold); }
.time-slot.selected {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

/* Form fields */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream-soft);
    margin-bottom: 6px;
    font-weight: 600;
}
.field label .req { color: var(--copper); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-help {
    font-size: 12px;
    color: var(--cream-muted);
    margin-top: 6px;
}

/* Récap réservation */
.summary {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 22px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: var(--cream-muted); }
.summary-row span:last-child { color: var(--cream); font-weight: 500; }
.summary-row.empty span:last-child { color: var(--cream-muted); font-style: italic; }

/* Submit + erreurs */
.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 14px;
    margin-top: 8px;
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.form-error {
    display: none;
    background: var(--copper-soft);
    border: 1px solid var(--copper);
    color: #f3a78f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.form-error.show { display: block; }

/* Notice membres pour salle médiévale */
.member-notice {
    display: none;
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: var(--copper-soft);
    border: 1px solid var(--copper);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--cream);
    text-align: center;
}
.member-notice.show { display: block; }
.member-notice strong { color: var(--copper); }

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .site-header { padding: 32px 18px 22px; }
    .logo-img { width: 90px; height: 90px; }
    .logo-name { font-size: 18px; }
    .hero { padding: 50px 20px 70px; }
    .section, .tarif, .medieval-section { padding: 60px 18px; }
    .field-row { grid-template-columns: 1fr; }
    .form-block { padding: 24px 18px; }
    .type-toggle, .system-toggle { grid-template-columns: 1fr; }
    .hero .cta-row { flex-direction: column; }
    .hero .cta-row .btn { width: 100%; }
}
