/* =========================================================
   VSJ Danse — design system from moodboard
   Palette: #090bc0 (bleu), #a59bff (lavande),
            #ecd8f2 (rose pastel), #ce6cda (framboise)
   Type: Poppins (self-hosted) — organic rounded shapes,
         gradients, contour lines, outlined pills, soft cards.
   ========================================================= */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/poppins-800.woff2') format('woff2');
}

:root {
    --blue: #090bc0;
    --blue-deep: #07089a;
    --lavender: #a59bff;
    --rose: #ecd8f2;
    --raspberry: #ce6cda;

    --ink: #1d1a3c;
    --muted: #6c6688;

    --surface: #ffffff;
    --line: rgba(165, 155, 255, 0.35);

    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --shadow-soft: 0 22px 50px -26px rgba(9, 11, 192, 0.45);
    --shadow-lift: 0 14px 30px -16px rgba(9, 11, 192, 0.5);

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.65;
    background:
        radial-gradient(900px 520px at 108% -8%, rgba(206, 108, 218, 0.16), transparent 62%),
        radial-gradient(820px 460px at -12% 6%, rgba(165, 155, 255, 0.22), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #fcf8ff 55%, #f6edfb 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--raspberry);
    color: #fff;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 4.5rem 1.25rem 5rem;
    background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 34%, #4b2fd6 68%, #7d55e8 100%);
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
    box-shadow: 0 30px 60px -30px rgba(9, 11, 192, 0.55);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 300px at 12% 16%, rgba(255, 255, 255, 0.20), transparent 70%),
        radial-gradient(520px 380px at 88% 92%, rgba(206, 108, 218, 0.55), transparent 72%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -25% -12% -25% 48%;
    background: repeating-radial-gradient(
        ellipse at 100% 110%,
        transparent 0 18px,
        rgba(255, 255, 255, 0.16) 18px 19.5px
    );
    opacity: 0.75;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 0.9rem;
    text-shadow: 0 8px 34px rgba(7, 8, 154, 0.45);
}

.hero p {
    max-width: 62ch;
    margin: 0.2rem auto;
    font-size: clamp(0.95rem, 2.1vw, 1.12rem);
    opacity: 0.95;
}

.hero p:first-of-type {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero p:last-of-type {
    display: inline-block;
    margin-top: 1.35rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px);
    font-size: clamp(0.82rem, 1.8vw, 0.95rem);
}

/* ---------- Layout ---------- */

main {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 3.5rem;
    flex: 1 0 auto;
}

main > h1 {
    font-size: clamp(2rem, 5.5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 0.75rem;
    background: linear-gradient(100deg, var(--blue) 10%, #6a3fe0 70%, var(--raspberry) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--blue);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
}

h2::after {
    content: "";
    flex: 1;
    height: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--lavender), var(--raspberry));
    opacity: 0.6;
}

h3 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.6rem;
}

ul {
    margin-left: 1.4rem;
}

ul li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:focus-visible,
.pill:focus-visible {
    outline: 3px solid var(--raspberry);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Pills & links ---------- */

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 1.3rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 2px solid var(--lavender);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pill:hover {
    background: var(--lavender);
    color: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.pill-accent {
    background: linear-gradient(120deg, var(--blue), #6a3fe0);
    border-color: transparent;
    color: #fff;
}

.pill-accent:hover {
    background: linear-gradient(120deg, #0b0ed6, #7d55e8);
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.95rem;
    border-radius: var(--radius-pill);
    background: rgba(165, 155, 255, 0.16);
    color: var(--blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.18s ease;
}

.back-link:hover {
    background: rgba(165, 155, 255, 0.34);
}

/* ---------- Cards ---------- */

.location-card,
.event-card,
.course-card,
.teacher-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(120deg, var(--blue), #6a3fe0);
    color: #fff;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    margin: 0.5rem 0;
    box-shadow: var(--shadow-lift);
    transition: transform 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.payment-info {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.social-links a:hover {
    text-decoration: underline;
}

/* ---------- Notes ---------- */

.planning-note {
    background: var(--surface);
    border-left: 4px solid var(--raspberry);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
    box-shadow: 0 12px 28px -24px rgba(9, 11, 192, 0.6);
    margin-bottom: 0.75rem;
}

/* ---------- Mosaic calendar ---------- */

.mosaic-section {
    margin-bottom: 3rem;
}

.mosaic-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0.9rem;
    -webkit-overflow-scrolling: touch;
}

.mosaic {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 5px;
    table-layout: fixed;
}

.mosaic .mosaic-time-head {
    width: 86px;
}

.mosaic th {
    padding: 0.5rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: var(--blue);
    background: var(--surface);
    border: 2px solid var(--lavender);
    border-radius: var(--radius-pill);
}

.mosaic .mosaic-time-head {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mosaic td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    border-radius: var(--radius-md);
}

.mosaic-time {
    background: transparent !important;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 0.45rem !important;
}

.mosaic-empty {
    background: #faf8ff;
    min-height: 38px;
}

.mosaic-cell {
    overflow: hidden;
}

.mosaic-cell a {
    display: block;
    padding: 0.42rem 0.35rem;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border-radius: var(--radius-md);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mosaic-cell a + a {
    margin-top: 3px;
}

.mosaic-cell a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -10px rgba(9, 11, 192, 0.65);
    text-decoration: underline;
}

.mosaic-cell small {
    display: inline-block;
    margin-top: 0.1rem;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
}

.mosaic-cell.nelly {
    background: linear-gradient(145deg, #c0b6ff, var(--lavender));
}

.mosaic-cell.nelly a {
    color: var(--blue-deep);
}

.mosaic-cell.wassily {
    background: linear-gradient(145deg, #e08ce9, var(--raspberry));
}

.mosaic-cell.wassily a {
    color: #33093f;
}

.mosaic-cell.mixed {
    background: #faf8ff;
    padding: 3px;
}

.mosaic-cell.mixed a {
    padding: 0.3rem 0.25rem;
}

.mosaic-cell.mixed a + a {
    margin-top: 3px;
}

.mosaic-cell .nelly-mini {
    background: linear-gradient(145deg, #c0b6ff, var(--lavender));
    color: var(--blue-deep);
}

.mosaic-cell .wassily-mini {
    background: linear-gradient(145deg, #e08ce9, var(--raspberry));
    color: #33093f;
}

.mosaic-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.mosaic-hint {
    display: none;
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.65rem;
}

.mosaic-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-nelly {
    color: var(--blue);
}

.legend-nelly::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--lavender);
}

.legend-wassily {
    color: var(--blue);
}

.legend-wassily::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--raspberry);
}

/* ---------- Planning list ---------- */

.planning-day {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.planning-day h2 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.planning-day table,
.teacher-classes table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.planning-day table th,
.planning-day table td,
.teacher-classes table th,
.teacher-classes table td {
    padding: 0.72rem 0.9rem;
    text-align: left;
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .planning-day table,
    .teacher-classes table {
        table-layout: fixed;
    }

    .planning-day table th:nth-child(1),
    .teacher-classes table th:nth-child(1) {
        width: 15%;
    }

    .planning-day table th:nth-child(2),
    .teacher-classes table th:nth-child(2) {
        width: 24%;
    }

    .planning-day table th:nth-child(3),
    .teacher-classes table th:nth-child(3) {
        width: 16%;
    }

    .planning-day table th:nth-child(4),
    .teacher-classes table th:nth-child(4) {
        width: 45%;
    }
}

.planning-day table th,
.teacher-classes table th {
    background: linear-gradient(120deg, var(--blue), #5b3fe0);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.planning-day table td,
.teacher-classes table td {
    border-bottom: 1px solid #efe9f8;
}

.planning-day table tr:last-child td,
.teacher-classes table tr:last-child td {
    border-bottom: none;
}

.planning-day table tbody tr:nth-child(even) td,
.teacher-classes table tbody tr:nth-child(even) td {
    background: #faf6fe;
}

.planning-day table tbody tr:hover td,
.teacher-classes table tbody tr:hover td {
    background: #f2ebff;
    transition: background 0.2s ease;
}

tbody tr[id] {
    scroll-margin-top: 1.75rem;
}

tbody tr:target td {
    background: #ffe8fb !important;
    box-shadow: inset 4px 0 0 var(--raspberry);
}

/* ---------- Classes page ---------- */

.teacher {
    margin-bottom: 2.75rem;
}

.teacher-days {
    display: inline-block;
    background: rgba(165, 155, 255, 0.18);
    color: var(--blue);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.teacher-info {
    margin-bottom: 0.5rem;
}

.teacher-info p {
    margin-bottom: 0.3rem;
}

.teacher-classes {
    margin-top: 1.25rem;
}

.teacher-classes table {
    margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

footer {
    background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, #5b3fe0);
    color: #fff;
    text-align: center;
    padding: 1.6rem 1rem;
    margin-top: 3rem;
    border-top-left-radius: 42px;
    border-top-right-radius: 42px;
    font-size: 0.88rem;
    flex-shrink: 0;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .hero {
        padding: 3.25rem 1rem 3.75rem;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    main {
        padding: 2rem 1rem 2.5rem;
    }

    .mosaic {
        min-width: 720px;
    }

    .mosaic-hint {
        display: block;
    }

    .mosaic th {
        font-size: 0.72rem;
        padding: 0.4rem 0.25rem;
    }

    .mosaic-cell a {
        font-size: 0.68rem;
        padding: 0.32rem 0.2rem;
    }

    .mosaic-cell small {
        font-size: 0.58rem;
    }

    .planning-day {
        padding: 1.1rem;
        border-radius: var(--radius-md);
    }

    .teacher-card {
        padding: 1.25rem;
    }

    .planning-day table th,
    .planning-day table td,
    .teacher-classes table th,
    .teacher-classes table td {
        padding: 0.55rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 0.75rem 2rem;
    }

    .hero {
        padding: 2.75rem 0.9rem 3.25rem;
    }

    .hero p:last-of-type {
        padding: 0.55rem 0.95rem;
    }

    .mosaic {
        min-width: 660px;
    }

    .planning-day table th,
    .planning-day table td,
    .teacher-classes table th,
    .teacher-classes table td {
        font-size: 0.74rem;
        padding: 0.45rem 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pill,
    .btn,
    .mosaic-cell a {
        transition: none;
    }
}