:root {
    --bg-0: #05060c;
    --bg-1: #0b1020;
    --bg-2: #141a2e;

    --flame-core:   #e8f9ff;
    --flame-blue:   #4fc3f7;
    --flame-deep:   #1e88e5;
    --flame-teal:   #26c6da;
    --flame-yellow: #ffd54f;
    --flame-orange: #ff7043;
    --flame-red:    #e53935;
    --ember-purple: #5e35b1;

    --green:  #66bb6a;
    --amber:  #ffca28;
    --red:    #ef5350;

    --text:  #e4eaf4;
    --muted: #7a8196;

    --card-bg:     rgba(10, 18, 36, 0.65);
    --card-border: rgba(79, 195, 247, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%,  rgba(79, 195, 247, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 85% 95%, rgba(94, 53, 177, 0.22)  0%, transparent 60%),
        radial-gradient(ellipse 55% 40% at 10% 95%, rgba(30, 136, 229, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 70%, #000 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 195, 247, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(94, 53, 177, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 2%) scale(1.04); }
}

/* ============ Header ============ */
.site-head {
    text-align: center;
    padding: 4rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
}

.site-head .back-unused {
    position: absolute;
    top: 1.25rem; left: 1.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.site-head .back:hover { color: var(--flame-blue); }

.site-head h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    margin: 0;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--flame-core) 0%, var(--flame-blue) 45%, var(--flame-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.55));
}
.site-head h1 span {
    font-weight: 500;
    letter-spacing: 10px;
    font-size: 0.65em;
    display: inline;
    margin-left: 0.4em;
    background: linear-gradient(180deg, var(--flame-yellow), var(--flame-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 112, 67, 0.45));
}

.site-head .subtitle {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.75rem;
    background: linear-gradient(90deg, #f06898 0%, #e890c0 55%, #d4a8e0 80%, #a8c0e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ Main layout ============ */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
}

.card-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.06);
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.block-head h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--flame-core);
    margin: 0;
}

.muted { color: var(--muted); margin: 0.5rem 0; }

/* ============ Countdown ============ */
.countdown {
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(79, 195, 247, 0.14) 0%, transparent 70%),
        var(--card-bg);
}

.countdown-label {
    color: rgba(79, 195, 247, 0.8);
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.countdown-days {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(3.5rem, 14vw, 7rem);
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, var(--flame-core), var(--flame-blue) 50%, var(--flame-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.5));
    line-height: 1;
    margin: 0.5rem 0;
}

.countdown-days.today {
    background: linear-gradient(180deg, var(--flame-yellow), var(--flame-orange));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(255, 213, 79, 0.6));
}

.countdown-days.past {
    background: linear-gradient(180deg, #aaa, #666);
    -webkit-background-clip: text;
    background-clip: text;
    filter: none;
    opacity: 0.6;
}

.countdown-target {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: capitalize;
}

.date-edit-btn {
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: capitalize;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.date-edit-btn:hover {
    color: var(--flame-blue);
    background: rgba(79, 195, 247, 0.08);
}
.edit-icon {
    font-size: 0.75em;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.date-edit-btn:hover .edit-icon { opacity: 1; }

/* État vierge — aucun cookie de date */
.countdown-no-date {
    font-size: 3.5rem;
    line-height: 1;
    margin: 0.5rem 0 0.75rem;
    filter: drop-shadow(0 0 18px rgba(79, 195, 247, 0.4));
}
.countdown-invite {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    opacity: 0.75;
}
.date-setup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.date-setup-form input[type="date"] {
    background: rgba(5, 6, 12, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    color-scheme: dark;
}
.date-setup-form input[type="date"]:focus {
    outline: none;
    border-color: var(--flame-blue);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}
.date-setup-form button[type="submit"] {
    background: linear-gradient(135deg, var(--flame-blue), var(--flame-deep));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.3);
}
.date-setup-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.date-edit-form {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.date-edit-form--open { display: flex; }
.date-edit-form input[type="date"] {
    background: rgba(5, 6, 12, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    color-scheme: dark;
}
.date-edit-form input[type="date"]:focus {
    outline: none;
    border-color: var(--flame-blue);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}
.date-edit-form button[type="submit"] {
    background: linear-gradient(135deg, var(--flame-blue), var(--flame-deep));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.3);
}
.date-edit-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}
.date-edit-form button[type="button"] {
    background: none;
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.date-edit-form button[type="button"]:hover {
    color: var(--text);
    border-color: rgba(79, 195, 247, 0.4);
}

/* ============ Weather ============ */
.weather { text-align: center; }

.weather-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.weather-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 2rem 0.5rem 0;
    flex: 0 0 auto;
}

.weather-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(79, 195, 247, 0.2);
    margin: 0 2rem;
    flex-shrink: 0;
}

.weather-forecast-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    flex: 1 1 auto;
    text-align: center;
}

.weather-forecast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

/* ---- NOUVEAU : centre tout le contenu de prévision ---- */
.weather-forecast .weather-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- NOUVEAU : emoji + température côte à côte et centrés ---- */
.weather-forecast .weather-emoji-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

/* on garde le style existant, mais sans marge parasite */
.weather-forecast .weather-emoji {
    margin: 0;
}

.weather-forecast .weather-emoji.small {
    font-size: 3rem;
}

/* température dans la prévision */
.weather-forecast .weather-temp {
    margin: 0;
}

.weather-forecast .weather-temp.small {
    font-size: 2rem;
}

/* ---- Style existant pour le temps actuel ---- */
.weather-now-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--flame-yellow);
    margin-bottom: 0.15rem;
    filter: drop-shadow(0 0 6px rgba(255, 213, 79, 0.5));
}

.weather-emoji {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.4));
}

.weather-emoji.small { font-size: 3rem; }

.weather-temp {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--flame-core), var(--flame-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.weather-temp.small { font-size: 2rem; }

.weather-label {
    font-weight: 500;
    color: var(--text);
}

.weather-sub {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.weather-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.weather-form label {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.weather-form input[type="date"] {
    background: rgba(5, 6, 12, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    color-scheme: dark;
}

.weather-form input[type="date"]:focus {
    outline: none;
    border-color: var(--flame-blue);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.weather-form button {
    background: linear-gradient(135deg, var(--flame-blue), var(--flame-deep));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
    transition: transform 0.2s, box-shadow 0.3s;
}

.weather-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.5);
}


/* ============ Wait times ============ */
.live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.5);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%      { opacity: 0.4; transform: scale(0.9); }
}

.park { margin-top: 1rem; }
.park:first-child { margin-top: 0; }

.park-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.12);
    margin-bottom: 1rem;
}
.park-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--flame-blue);
}
.park-icon { font-family: initial; }
.park-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.park-stats .stat {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.park-stats strong { color: var(--text); font-weight: 600; }

.top-busy-label {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.park ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    gap: 0.35rem;
}

.park li {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0.75rem;
    background: rgba(5, 6, 12, 0.35);
    border-left: 3px solid var(--muted);
    border-radius: 6px;
    font-size: 0.9rem;
}

.ride-link {
    color: inherit;
    text-decoration: none;
}
.ride-link:hover {
    color: var(--flame-blue);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.ride-wait {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.ride-name  { font-weight: 500; }
.ride-land  { color: var(--muted); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }

.wait-low       { border-left-color: var(--green);  }
.wait-low .ride-wait       { color: var(--green);  }
.wait-med       { border-left-color: var(--amber);  }
.wait-med .ride-wait       { color: var(--amber);  }
.wait-high      { border-left-color: var(--flame-orange); }
.wait-high .ride-wait      { color: var(--flame-orange); }
.wait-extreme   { border-left-color: var(--red); box-shadow: inset 0 0 20px rgba(239, 83, 80, 0.08); }
.wait-extreme .ride-wait   { color: var(--red);   }

.closed { opacity: 0.45; border-left-color: #555; }
.closed .ride-wait { color: var(--muted); font-weight: 500; }

.sr-badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.05rem 0.4rem;
    background: rgba(94, 53, 177, 0.25);
    border: 1px solid rgba(94, 53, 177, 0.5);
    border-radius: 4px;
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #b39ddb;
    vertical-align: middle;
    white-space: nowrap;
    cursor: default;
}
.sr-badge.sr-closed {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(100, 100, 100, 0.3);
    color: var(--muted);
}

#sr-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(10, 18, 36, 0.97);
    border: 1px solid rgba(94, 53, 177, 0.45);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text);
    width: 220px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.15s;
}


.sr-badge.sr-closed {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(100, 100, 100, 0.3);
    color: var(--muted);
}

.all-rides summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: color 0.2s;
    list-style-position: outside;
}
.all-rides summary:hover { color: var(--flame-blue); }
.all-rides[open] summary { color: var(--flame-blue); margin-bottom: 0.5rem; }

.source {
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 1rem;
    text-align: right;
}
.source a { color: var(--flame-blue); text-decoration: none; }
.source a:hover { text-decoration: underline; }

/* ============ Liens rapides — panneau latéral fixe ============ */
.links-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    width: 220px;
    background: rgba(10, 18, 36, 0.88);
    border: 1px solid var(--card-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
}

.links-mobile-toggle { display: none; }

.links-drawer-head {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--flame-core), var(--flame-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 6px rgba(79, 195, 247, 0.5));
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(79, 195, 247, 0.2);
    margin-bottom: 0.1rem;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    max-height: 55vh;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: rgba(5, 6, 12, 0.4);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.link-item:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateX(-2px);
}

.link-icon  { font-size: 1rem; flex-shrink: 0; }
.link-label { flex: 1; font-size: 0.82rem; font-weight: 500; }
.link-arrow { color: var(--muted); font-size: 0.75rem; transition: color 0.2s, transform 0.2s; }
.link-item:hover .link-arrow { color: var(--flame-blue); transform: translateX(-2px); }

.links-empty {
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.25rem 0;
    margin: 0;
}
.links-empty code {
    color: var(--flame-blue);
    font-size: 0.75rem;
}

/* ============ Schedule ============ */
.schedule .block-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.schedule-date-label {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: capitalize;
}

/* Park hours row */
.schedule-hours-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.park-hours-card {
    flex: 1;
    background: rgba(79, 195, 247, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    text-align: center;
}
.park-hours-card.ph-is-closed {
    opacity: 0.5;
}
.ph-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.ph-icon { font-size: 1rem; }
.ph-name {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.ph-time {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    line-height: 1.2;
}
.ph-dash {
    color: var(--muted);
    margin: 0 0.15em;
    font-weight: 400;
}
.ph-extra {
    font-size: 0.72rem;
    color: var(--flame-yellow);
    margin-top: 0.4rem;
    opacity: 0.9;
}
.ph-closed-label {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
}

/* Shows & parades */
.schedule-shows {
    border-top: 1px solid var(--card-border);
    padding-top: 1.1rem;
    margin-bottom: 0.5rem;
}
.shows-section-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
/* Tabs shows : nom de parc visible → réduire letter-spacing */
.shows-tabs { margin-bottom: 0.75rem; }
.shows-tabs .sidebar-tab { letter-spacing: 0.5px; font-size: 0.7rem; }
.shows-panel { /* same role as .sidebar-panel */ }
.shows-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.show-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.show-item.show-done { opacity: 0.4; }
.show-name {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.show-arrow {
    color: var(--muted);
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}
.show-times-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: flex-end;
}
.show-time-pill {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.22);
    color: var(--flame-blue);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.45rem;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.show-more-btn {
    cursor: pointer;
    background: rgba(122, 129, 150, 0.12);
    border-color: rgba(122, 129, 150, 0.25);
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0;
}
.show-more-btn:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.22);
    color: var(--flame-blue);
}

/* ============ Wait times — 2-col layout ============ */
.waits-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.waits-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.waits-main {
    grid-column: 2;
    grid-row: 1;
}

.waits-quick {
    position: sticky;
    top: 1rem;
    background: linear-gradient(180deg, rgba(102, 187, 106, 0.08) 0%, rgba(10, 18, 36, 0.5) 100%);
    border: 1px solid rgba(102, 187, 106, 0.35);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    box-shadow: 0 0 25px rgba(102, 187, 106, 0.1);
}

.quick-head {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(102, 187, 106, 0.25);
    margin-bottom: 0.75rem;
}

.quick-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #a5d6a7, var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(102, 187, 106, 0.5));
}

.quick-sub {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.quick-list::-webkit-scrollbar         { width: 6px; }
.quick-list::-webkit-scrollbar-track   { background: rgba(5, 6, 12, 0.3); border-radius: 3px; }
.quick-list::-webkit-scrollbar-thumb   { background: rgba(102, 187, 106, 0.35); border-radius: 3px; }
.quick-list::-webkit-scrollbar-thumb:hover { background: rgba(102, 187, 106, 0.6); }


.quick-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas: "wait name" "wait meta";
    gap: 0.25rem 0.7rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    background: rgba(5, 6, 12, 0.4);
    border-left: 3px solid var(--green);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: transform 0.2s, background 0.2s;
}
.quick-list li:hover {
    transform: translateX(3px);
    background: rgba(102, 187, 106, 0.08);
}
.quick-list .ride-wait { grid-area: wait; }
.quick-list .ride-name { grid-area: name; font-weight: 500; }
.quick-list .ride-meta {
    grid-area: meta;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quick-count {
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(102, 187, 106, 0.2);
}

.quick-empty {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
    margin: 0;
}

.waits-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

/* ============ Sidebar tabs ============ */
.sidebar-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.sidebar-tab {
    flex: 1;
    background: rgba(5, 6, 12, 0.4);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    color: var(--muted);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.sidebar-tab:hover {
    background: rgba(79, 195, 247, 0.06);
    color: var(--text);
}
.sidebar-tab.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(30, 136, 229, 0.1));
    border-color: rgba(79, 195, 247, 0.4);
    color: var(--flame-blue);
}

.tab-count {
    background: rgba(79, 195, 247, 0.15);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    letter-spacing: 0;
}
.sidebar-tab.active .tab-count {
    background: rgba(79, 195, 247, 0.25);
}

.sidebar-panel { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


.visit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.visit-list::-webkit-scrollbar         { width: 6px; }
.visit-list::-webkit-scrollbar-track   { background: rgba(5, 6, 12, 0.3); border-radius: 3px; }
.visit-list::-webkit-scrollbar-thumb   { background: rgba(79, 195, 247, 0.25); border-radius: 3px; }
.visit-list::-webkit-scrollbar-thumb:hover { background: rgba(79, 195, 247, 0.5); }

.visit-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.45rem 0.65rem;
    background: rgba(5, 6, 12, 0.35);
    border-left: 3px solid rgba(79, 195, 247, 0.4);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: transform 0.2s, background 0.2s;
}
.visit-list li:hover {
    transform: translateX(3px);
    background: rgba(79, 195, 247, 0.06);
}
.visit-list .ride-meta {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.visit-count {
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(79, 195, 247, 0.15);
}

@media (max-width: 900px) {
    .waits-grid      { grid-template-columns: 1fr; }
    .waits-sidebar   { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
    .waits-main      { grid-column: auto; grid-row: auto; }
    .waits-quick     { position: static; }
    .quick-list      { max-height: none; }
    .visit-list      { max-height: none; }
}

@media (max-width: 600px) {
    .waits-sidebar   { grid-template-columns: 1fr; }
}

/* ============ Attractions fermées ============ */
.closed-card {
    margin-top: 1rem;
    border-top: 1px dashed rgba(122, 129, 150, 0.2);
    padding-top: 1rem;
}

.closed-details > .closed-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 0.25rem 0;
    transition: opacity 0.2s;
}
.closed-details > .closed-summary::-webkit-details-marker { display: none; }
.closed-details > .closed-summary::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.closed-details[open] > .closed-summary::before {
    transform: rotate(90deg);
}

.closed-summary-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

.closed-badge {
    background: rgba(122, 129, 150, 0.2);
    border: 1px solid rgba(122, 129, 150, 0.4);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.closed-parks-hint {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-left: auto;
}

.closed-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.closed-list li {
    display: grid;
    gap: 0.1rem;
    padding: 0.45rem 0.75rem;
    background: rgba(5, 6, 12, 0.35);
    border-left: 3px solid #333;
    border-radius: 6px;
    opacity: 0.55;
}

.closed-meta {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============ Footer ============ */
footer {
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    color: var(--muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}
footer .signature {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 3px;
    font-size: 0.75rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .site-head { padding-top: 3rem; }
    .card-block { padding: 1.5rem 1.25rem; }
    .weather-row     { flex-direction: column; align-items: center; }
    .weather-now     { padding: 0 0 1rem; justify-content: center; }
    .weather-sep     { width: 100%; height: 1px; margin: 0 0 1rem; align-self: auto; }
    .weather-forecast-block { align-items: center; }
    .weather-forecast       { justify-content: center; }
    .park li {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "wait name" "wait land";
    }
    .ride-wait { grid-area: wait; }
    .ride-name { grid-area: name; }
    .ride-land { grid-area: land; }

    .links-panel {
        transform: translateY(-50%) translateX(100%);
        transition: transform 0.3s ease;
    }
    .links-panel.links-mobile-open {
        transform: translateY(-50%) translateX(0);
    }
    .links-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: -36px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 44px;
        background: rgba(10, 18, 36, 0.88);
        border: 1px solid var(--card-border);
        border-right: none;
        border-radius: 10px 0 0 10px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        font-size: 1.1rem;
        cursor: pointer;
        color: var(--text);
    }
}
