/* ==========================================================
   Double Dose Calendar — styles consolidés
   ========================================================== */

.ddc-app {
    --ddc-primary: #e5007d;
    --ddc-dark: #201b20;
    --ddc-muted: #716971;
    --ddc-border: #e9e4e8;
    --ddc-surface: #ffffff;
    --ddc-soft: #f8f6f8;
    width: 100%;
    color: var(--ddc-dark);
    font-family: inherit;
}

.ddc-app *,
.ddc-app *::before,
.ddc-app *::after,
.ddc-course-week *,
.ddc-course-week *::before,
.ddc-course-week *::after {
    box-sizing: border-box;
}

.ddc-error {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #e9b4c7;
    border-radius: 5px;
    color: #8d1740;
    background: #fff2f7;
}

/* ==========================================================
   Défilement horizontal
   ========================================================== */

.ddc-scroll-shell {
    position: relative;
    min-width: 0;
}

.ddc-scroll-shell::before,
.ddc-scroll-shell::after {
    content: "";
    position: absolute;
    z-index: 30;
    top: 0;
    bottom: 12px;
    width: clamp(42px, 5vw, 68px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}

.ddc-scroll-shell::before {
    left: -1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.82) 26%,
        rgba(255, 255, 255, 0.34) 58%,
        rgba(255, 255, 255, 0) 100%
    );
}

.ddc-scroll-shell::after {
    right: -1px;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.82) 26%,
        rgba(255, 255, 255, 0.34) 58%,
        rgba(255, 255, 255, 0) 100%
    );
}

.ddc-scroll-shell.is-scrollable:not(.is-at-start)::before,
.ddc-scroll-shell.is-scrollable:not(.is-at-end)::after {
    opacity: 1;
}

.ddc-horizontal-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
}

.ddc-horizontal-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ddc-horizontal-scroll.is-draggable {
    cursor: grab;
}

.ddc-horizontal-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* ==========================================================
   Planning des événements
   ========================================================== */

.ddc-months-shell {
    margin-right: min(-24px, calc((100vw - 100%) / -2));
}

.ddc-months {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc((100% - 72px) / 4));
    align-items: start;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px clamp(28px, 4vw, 64px) 34px 2px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

.ddc-month {
    min-width: 0;
    scroll-snap-align: start;
}

.ddc-month-header {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--ddc-border);
}

.ddc-month-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--ddc-month-accent, var(--ddc-primary));
}

.ddc-month-header h3 {
    margin: 0;
    padding: 0;
    color: var(--ddc-dark);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ddc-events {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 22px;
}

.ddc-event {
    --ddc-event-color: var(--ddc-primary);
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 0;
    border-radius: 5px;
    background: var(--ddc-surface);
    box-shadow:
        0 2px 5px rgba(32, 27, 32, 0.035),
        0 14px 36px rgba(32, 27, 32, 0.085);
}

.ddc-event::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--ddc-event-color);
}

.ddc-event--interactive {
    cursor: pointer;
}

.ddc-event--interactive:focus-visible {
    outline: 2px solid var(--ddc-event-color);
    outline-offset: 3px;
}

.ddc-event-image-wrap,
.ddc-event-visual-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ddc-soft);
}

.ddc-event-visual-placeholder {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.30), transparent 30%),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--ddc-event-color) 86%, #ffffff),
            color-mix(in srgb, var(--ddc-event-color) 58%, #171217)
        );
}

.ddc-event-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--ddc-soft);
}

.ddc-event-schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 17px;
    border-top: 1px solid var(--ddc-border);
    border-bottom: 1px solid var(--ddc-border);
    background: color-mix(in srgb, var(--ddc-event-color) 6%, #ffffff);
}

.ddc-event-date-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ddc-event-date-text span {
    margin-bottom: 3px;
    color: var(--ddc-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ddc-event-date-text strong {
    color: var(--ddc-event-color);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: capitalize;
}

.ddc-event-time {
    flex: 0 0 auto;
    color: var(--ddc-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
}

.ddc-event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px 18px 20px;
}

.ddc-event-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ddc-event-heading-row,
.ddc-vacation-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ddc-event-heading-row h4 {
    min-width: 0;
    flex: 1;
    margin: 0;
    padding: 0;
    color: var(--ddc-dark);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.ddc-event-heading-row h4::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-top: 11px;
    background: var(--ddc-event-color);
}

.ddc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 13px;
    color: var(--ddc-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.ddc-event-description {
    margin-top: 15px;
    color: #554e55;
    font-size: 13px;
    line-height: 1.62;
}

.ddc-event-description[hidden] {
    display: none !important;
}

.ddc-event-description:not([hidden]) {
    display: block;
    animation: ddc-description-reveal 170ms ease-out both;
}

@keyframes ddc-description-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ddc-description-toggle {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    margin: -3px 0 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--ddc-event-color) 72%, #ffffff);
    border-radius: 5px;
    color: var(--ddc-event-color);
    background: color-mix(in srgb, var(--ddc-event-color) 7%, #ffffff);
    box-shadow: none;
    font: 500 20px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.ddc-description-toggle:hover,
.ddc-description-toggle:focus-visible {
    color: #ffffff;
    background: var(--ddc-event-color);
}

.ddc-description-toggle > span {
    display: block;
    transform-origin: center;
    transition: transform 160ms ease;
}

.ddc-description-toggle[aria-expanded="true"] > span {
    transform: rotate(45deg);
}

.ddc-register-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 19px;
    padding: 12px 17px;
    border: 1px solid var(--ddc-event-color);
    border-radius: 5px;
    color: #ffffff !important;
    background: var(--ddc-event-color);
    box-shadow: none;
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: filter 160ms ease;
}

.ddc-register-button:hover {
    color: #ffffff !important;
    filter: brightness(0.93);
}

.ddc-register-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ddc-event-color) 35%, transparent);
    outline-offset: 3px;
}

/* Vacances Cours co */
.ddc-event-vacation {
    background: color-mix(in srgb, var(--ddc-event-color) 4%, #ffffff);
}

.ddc-event-vacation .ddc-event-body {
    padding: 12px 16px 14px;
}

.ddc-vacation-row {
    align-items: center;
}

.ddc-vacation-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #3e4052;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.ddc-vacation-icon {
    flex: 0 0 auto;
    color: var(--ddc-event-color);
    font-size: 14px;
    line-height: 1;
}

.ddc-vacation-description-toggle {
    margin: 0;
}

/* ==========================================================
   Pop-up événement
   ========================================================== */

.ddc-event-modal-overlay[hidden] {
    display: none !important;
}

.ddc-event-modal-overlay {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 14px;
    overflow: hidden;
    background: rgba(18, 18, 28, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ddc-event-modal-shell {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    max-width: 720px;
    max-height: calc(100vh - 54px);
    max-height: calc(100dvh - 54px);
    margin: 26px auto 0;
}

.ddc-event-modal-shell > [data-ddc-modal-content] {
    max-height: inherit;
}

.ddc-event-modal-close {
    position: absolute;
    z-index: 4;
    top: -46px;
    right: 0;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(30, 32, 65, 0.88);
    box-shadow:
        0 10px 28px rgba(18, 18, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font: 300 24px/1 Arial, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ddc-event-modal-close:hover,
.ddc-event-modal-close:focus-visible {
    color: #1e2041;
    background: #ffffff;
    border-color: #ffffff;
}

.ddc-event-modal-card {
    --ddc-event-color: var(--ddc-primary);
    width: 100%;
    max-height: calc(100vh - 54px);
    max-height: calc(100dvh - 54px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(16, 18, 40, 0.26);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ddc-event-modal-card::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ddc-event-modal-image-wrap {
    width: 100%;
    overflow: hidden;
    background: #f7f7f9;
}

.ddc-event-modal-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.ddc-event-modal-body {
    padding: clamp(22px, 4vw, 40px);
}

.ddc-event-modal-accent {
    width: 46px;
    height: 4px;
    margin-bottom: 16px;
    background: var(--ddc-event-color);
}

.ddc-event-modal-title {
    margin: 0;
    padding: 0;
    color: #1e2041;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(21px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.12;
    text-transform: uppercase;
}

.ddc-event-modal-schedule {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 15px;
    margin-top: 18px;
    color: #1e2041;
}

.ddc-event-modal-schedule strong {
    color: var(--ddc-event-color);
    font-size: 15px;
    font-weight: 800;
    text-transform: capitalize;
}

.ddc-event-modal-schedule span {
    font-size: 14px;
    font-weight: 700;
}

.ddc-event-modal-location {
    margin-top: 12px;
    color: #686674;
    font-size: 14px;
    font-weight: 600;
}

.ddc-event-modal-description {
    margin-top: 22px;
    color: #454452;
    font-size: 15px;
    line-height: 1.7;
}

.ddc-event-modal-register {
    width: auto;
    min-width: min(100%, 260px);
    margin-top: 26px;
    padding-inline: 28px;
}

body.ddc-modal-open {
    overflow: hidden;
}

/* ==========================================================
   Planning hebdomadaire des cours collectifs
   ========================================================== */

.ddc-course-week {
    --ddc-primary: #e5007d;
    --ddc-course-dark: #1c1d38;
    --ddc-course-muted: #6e6b78;
    --ddc-course-border: #e8e5ec;
    width: 100%;
    color: var(--ddc-course-dark);
    font-family: inherit;
}

.ddc-course-tab-panel[hidden],
.ddc-course-browser-panel[hidden] {
    display: none !important;
}

.ddc-course-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border: 1px solid var(--ddc-course-border);
    border-radius: 5px;
    background: #f6f4f7;
}

.ddc-course-tab {
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 5px;
    color: var(--ddc-course-muted);
    background: transparent;
    box-shadow: none;
    font-family: "Orbitron", sans-serif;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    cursor: pointer;
}

.ddc-course-tab.is-active {
    color: var(--ddc-course-dark);
    background: #ffffff;
}

.ddc-course-tab:focus-visible,
.ddc-course-week-arrow:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ddc-primary) 32%, transparent);
    outline-offset: 2px;
}

.ddc-course-week-navigation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin-bottom: 16px;
}

.ddc-course-week-current-label {
    color: var(--ddc-course-dark);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
}

.ddc-course-week-arrow {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ddc-course-border);
    border-radius: 5px;
    color: var(--ddc-course-dark);
    background: #ffffff;
    box-shadow: none;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ddc-course-week-arrow:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--ddc-primary) 36%, var(--ddc-course-border));
    color: var(--ddc-primary);
}

.ddc-course-week-arrow:disabled {
    cursor: default;
    opacity: 0.28;
}

.ddc-course-week-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.ddc-course-day {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(30, 32, 65, 0.18);
    border-radius: 5px;
    background: #ffffff;
    box-shadow:
        0 2px 5px rgba(28, 29, 56, 0.035),
        0 14px 34px rgba(28, 29, 56, 0.075);
}

.ddc-course-day-header {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: center;
    padding: 24px 21px 22px;
    color: #ffffff;
    background: #1e2041;
}

.ddc-course-planning-grid .ddc-course-day-header {
    min-height: 94px;
    align-items: center;
    padding: 20px 16px;
    text-align: center;
}

.ddc-course-day-header span {
    display: block;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.ddc-course-day-header strong {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ddc-course-day-events {
    display: grid;
    min-height: 340px;
    flex: 1;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
}

.ddc-course-slot {
    display: grid;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #ffffff;
}

.ddc-course-item {
    --ddc-course-color: var(--ddc-primary);
    --ddc-course-contrast: #ffffff;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 21px 19px;
    color: var(--ddc-course-contrast);
    background: var(--ddc-course-color);
}

.ddc-course-time {
    display: block;
    margin-bottom: 9px;
    color: var(--ddc-course-contrast);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.ddc-course-item h3 {
    margin: 0;
    padding: 0;
    color: var(--ddc-course-contrast);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(19px, 1.45vw, 24px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.ddc-course-name {
    color: inherit;
}

.ddc-course-coach {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    margin-top: 11px;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--ddc-course-contrast) 26%, transparent);
    border-radius: 999px;
    color: var(--ddc-course-contrast);
    background: color-mix(in srgb, var(--ddc-course-contrast) 13%, transparent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
}

.ddc-course-coach strong {
    margin-left: 0.28em;
    color: inherit;
    font-weight: 900;
}

.ddc-course-location {
    margin: 11px 0 0;
    color: var(--ddc-course-contrast);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    opacity: 0.8;
}

.ddc-course-register {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid var(--ddc-course-contrast);
    border-radius: 5px;
    color: var(--ddc-course-color) !important;
    background: var(--ddc-course-contrast);
    box-shadow: none;
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ddc-course-register:hover {
    color: var(--ddc-course-color) !important;
    filter: brightness(0.96);
}

.ddc-course-register:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ddc-course-contrast) 40%, transparent);
    outline-offset: 3px;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1280px) {
    .ddc-months {
        grid-auto-columns: minmax(260px, calc((100% - 48px) / 3));
    }
}

@media (max-width: 1100px) {
    .ddc-course-grid-shell {
        margin-right: min(-24px, calc((100vw - 100%) / -2));
    }

    .ddc-course-week-grid {
        display: flex;
        width: auto;
        margin: 0;
        padding: 2px clamp(28px, 4vw, 54px) 26px 2px;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
    }

    .ddc-course-day {
        flex: 0 0 clamp(255px, 38vw, 320px);
        scroll-snap-align: start;
    }
}

@media (max-width: 900px) {
    .ddc-months {
        grid-auto-columns: minmax(260px, calc((100% - 22px) / 2));
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .ddc-course-tabs {
        display: grid;
        width: 100%;
        margin-bottom: 18px;
    }

    .ddc-course-tab {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }

    .ddc-course-week-navigation {
        max-width: none;
        margin-bottom: 14px;
    }

    .ddc-course-week-current-label {
        font-size: 13px;
    }

    .ddc-course-grid-shell {
        margin-right: -20px;
    }

    .ddc-course-week-grid {
        padding-right: 46px;
        padding-bottom: 22px;
        padding-left: 0;
        gap: 14px;
        scroll-snap-type: x mandatory;
    }

    .ddc-course-day {
        flex: 0 0 min(84vw, 310px);
    }

    .ddc-course-day-header {
        min-height: 112px;
    }

    .ddc-course-planning-grid .ddc-course-day-header {
        min-height: 88px;
    }

    .ddc-course-day-events {
        min-height: 320px;
    }
}

@media (max-width: 620px) {
    .ddc-months-shell {
        margin-right: -20px;
    }

    .ddc-months {
        /*
         * Un mois occupe environ 80 % du viewport :
         * le bord du mois suivant reste visible à droite et suggère
         * naturellement le défilement horizontal.
         */
        grid-auto-columns: min(80vw, 320px);
        gap: 14px;
        padding-right: 64px;
        padding-bottom: 28px;
        scroll-snap-type: x mandatory;
    }

    .ddc-month-header h3 {
        font-size: 16px;
    }

    .ddc-events {
        gap: 20px;
    }

    .ddc-event-schedule {
        padding: 14px 16px;
    }

    .ddc-event-body {
        padding: 19px 17px 20px;
    }

    .ddc-scroll-shell::before,
    .ddc-scroll-shell::after {
        width: 46px;
    }

    .ddc-event-modal-overlay {
        align-items: end;
        padding: 8px;
    }

    .ddc-event-modal-shell,
    .ddc-event-modal-card {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .ddc-event-modal-shell {
        width: min(100%, 620px);
        max-width: 100%;
    }

    .ddc-event-modal-body {
        padding: 22px 18px 24px;
    }

    .ddc-event-modal-title {
        font-size: 20px;
    }

    .ddc-event-modal-register {
        width: 100%;
    }
}

50%      { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {

    .ddc-horizontal-scroll,
    .ddc-course-week-grid {
        scroll-behavior: auto;
    }

    .ddc-scroll-shell::before,
    .ddc-scroll-shell::after,
    .ddc-register-button,
    .ddc-description-toggle,
    .ddc-description-toggle > span {
        transition: none;
    }

    .ddc-event-description:not([hidden]) {
        animation: none;
    }
}

/* ==========================================================
   Slider plein écran — prochains événements
   ========================================================== */

.ddc-hero-slider,
.ddc-hero-slider *,
.ddc-hero-slider *::before,
.ddc-hero-slider *::after {
    box-sizing: border-box;
}

.ddc-hero-slider {
    --ddc-hero-dark: #1e2041;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    margin-right: -50vw;
    margin-left: -50vw;
    overflow: hidden;
    color: #1e2041;
    background: #ffffff;
    isolation: isolate;
    font-family: inherit;
}

@supports (height: 100dvh) {
    .ddc-hero-slider {
        height: 100dvh;
    }
}

.ddc-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.ddc-hero-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ddc-hero-slide {
    --ddc-event-color: #e5007d;
    position: relative;
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.85fr);
    overflow: hidden;
    background: #ffffff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ddc-hero-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(20px, 3vw, 54px);
    background: #ffffff;
}

.ddc-hero-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(30, 32, 65, 0.06);
    pointer-events: none;
}

.ddc-hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 18px 34px rgba(30, 32, 65, 0.12));
}

/* Les visuels des slides Cours co / Events / événements remplissent toute la zone image. */
.ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-visual {
    padding: 0;
    background: #ffffff;
}

.ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-visual::after {
    display: none;
}

.ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
    filter: none;
}

.ddc-hero-image--placeholder {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background:
        radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(145deg, var(--ddc-event-color), #1e2041 76%);
    filter: none;
}

.ddc-hero-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(76px, 8vh, 108px) clamp(34px, 4.2vw, 72px) clamp(92px, 10vh, 126px);
    background: #ffffff;
}

.ddc-hero-content {
    width: min(100%, 500px);
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ddc-hero-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ddc-hero-accent {
    width: 54px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 2px;
    background: var(--ddc-event-color);
}

.ddc-hero-kicker {
    margin: 0 0 10px;
    padding: 0;
    color: var(--ddc-event-color);
    font-family: "Orbitron", sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ddc-hero-title {
    margin: 0;
    padding: 0;
    color: #1e2041;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ddc-hero-schedule {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 14px;
    margin-top: 22px;
    color: #1e2041;
}

.ddc-hero-schedule strong {
    color: var(--ddc-event-color);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.3;
    text-transform: capitalize;
}

.ddc-hero-schedule span {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

.ddc-hero-location {
    margin-top: 11px;
    color: #636272;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.ddc-hero-description {
    margin-top: 19px;
    color: #454452;
    font-size: 14px;
    line-height: 1.62;
}

.ddc-hero-register {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 23px;
    padding: 13px 24px;
    border: 1px solid var(--ddc-event-color);
    border-radius: 5px;
    color: #ffffff !important;
    background: var(--ddc-event-color);
    box-shadow: none !important;
    font-family: "Orbitron", sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: filter 160ms ease;
}

.ddc-hero-register:hover,
.ddc-hero-register:focus {
    color: #ffffff !important;
    filter: brightness(0.93);
}

.ddc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
}

.ddc-hero-actions .ddc-hero-register {
    margin-top: 0;
}

.ddc-hero-register--secondary {
    color: var(--ddc-event-color) !important;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(30, 32, 65, 0.08) !important;
}

.ddc-hero-register--secondary:hover,
.ddc-hero-register--secondary:focus {
    color: #ffffff !important;
    background: var(--ddc-event-color);
    filter: none;
}

.ddc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ddc-hero-badge {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--ddc-badge-color) 82%, #ffffff);
    border-radius: 999px;
    color: var(--ddc-badge-text);
    background: var(--ddc-badge-color);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ddc-badge-color) 20%, transparent);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.ddc-hero-register:focus-visible,
.ddc-hero-arrow:focus-visible,
.ddc-hero-dot:focus-visible,
.ddc-hero-pause:focus-visible {
    outline: 3px solid var(--ddc-event-color);
    outline-offset: 3px;
}

.ddc-hero-navigation {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: clamp(18px, 3vh, 34px);
    display: inline-flex;
    max-width: calc(100% - 28px);
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(30, 32, 65, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 12px 32px rgba(30, 32, 65, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ddc-hero-arrow,
.ddc-hero-pause,
.ddc-hero-scroll-cue {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #1e2041;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.ddc-hero-arrow {
    font: 500 25px/1 Arial, sans-serif;
}

.ddc-hero-pause {
    font: inherit;
}

/*
 * Icône pause dessinée en CSS :
 * deux barres courtes et régulières, indépendantes de la police.
 */
.ddc-hero-pause-icon {
    position: relative;
    display: block;
    width: 12px;
    height: 14px;
}

.ddc-hero-pause-icon::before,
.ddc-hero-pause-icon::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: currentColor;
}

.ddc-hero-pause-icon::before {
    left: 2px;
}

.ddc-hero-pause-icon::after {
    right: 2px;
}

/*
 * Lorsque le slider est en pause, le même bouton devient "lecture".
 */
.ddc-hero-pause[aria-pressed="true"] .ddc-hero-pause-icon::before {
    top: 1px;
    left: 2px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
    border-radius: 0;
    background: transparent;
}

.ddc-hero-pause[aria-pressed="true"] .ddc-hero-pause-icon::after {
    display: none;
}

.ddc-hero-arrow:hover,
.ddc-hero-pause:hover {
    color: #1e2041;
    background: rgba(30, 32, 65, 0.065);
    transform: translateY(-1px);
}

.ddc-hero-dots {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 4px;
}

.ddc-hero-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 32, 65, 0.24);
    box-shadow: none;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.ddc-hero-dot.is-active {
    width: 22px;
    background: #1e2041;
}

.ddc-hero-navigation-separator {
    width: 1px;
    height: 22px;
    flex: 0 0 1px;
    margin: 0 1px;
    background: rgba(30, 32, 65, 0.12);
}

/*
 * Descente intégrée à la navigation :
 * colorée mais compacte, sans grosse bulle flottante.
 */
.ddc-hero-scroll-cue {
    position: relative;
    color: #1e2041;
    background: #ffffff;
    border: 1px solid rgba(30, 32, 65, 0.12);
    box-shadow:
        0 5px 14px rgba(30, 32, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ddc-hero-scroll-cue span {
    display: block;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.ddc-hero-scroll-cue:hover,
.ddc-hero-scroll-cue:focus-visible {
    color: var(--ddc-primary-color, #e5007d);
    background: #ffffff;
    transform: translateY(2px);
    box-shadow:
        0 8px 18px rgba(30, 32, 65, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ddc-hero-scroll-cue:hover span,
.ddc-hero-scroll-cue:focus-visible span {
    transform: translateY(2px) rotate(45deg);
}

.ddc-hero-register:focus-visible,
.ddc-hero-arrow:focus-visible,
.ddc-hero-dot:focus-visible,
.ddc-hero-pause:focus-visible,
.ddc-hero-scroll-cue:focus-visible {
    outline: 3px solid var(--ddc-event-color);
    outline-offset: 3px;
}

70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 980px) {
    .ddc-hero-slide {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    }

    .ddc-hero-visual {
        padding: 28px;
    }

    .ddc-hero-content-wrap {
        padding-right: 28px;
        padding-left: 28px;
    }

    .ddc-hero-title {
        font-size: clamp(26px, 4vw, 38px);
    }
}

@media (max-width: 700px) {
    /*
     * Le slider ne doit jamais dépasser la hauteur réellement visible
     * du téléphone. On neutralise donc les min-height desktop.
     */
    .ddc-hero-slider {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        max-height: 100svh;
    }

    @supports (height: 100dvh) {
        .ddc-hero-slider {
            height: 100dvh;
            max-height: 100dvh;
        }
    }

    .ddc-hero-slide {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    }

    /*
     * Cours co / Events : davantage de hauteur réservée au contenu afin
     * que les deux boutons restent visibles sans défilement vertical.
     */
    .ddc-hero-slide--admin,
    .ddc-hero-slide--upcoming {
        grid-template-rows: minmax(0, 42%) minmax(0, 58%);
    }

    /*
     * Les visuels des événements automatiques sont alignés visuellement
     * avec Cours co / Events : image centrée dans la zone supérieure,
     * sans descendre plus bas dans l'écran.
     */
    .ddc-hero-slide--upcoming .ddc-hero-image {
        object-position: center center;
    }

    .ddc-hero-visual {
        padding: 14px 14px 10px;
    }

    .ddc-hero-image {
        filter: drop-shadow(0 10px 22px rgba(30, 32, 65, 0.11));
    }

    .ddc-hero-content-wrap {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 16px 20px 68px;
    }

    .ddc-hero-content {
        width: 100%;
        max-height: 100%;
    }

    .ddc-hero-accent {
        width: 42px;
        height: 3px;
        margin-bottom: 10px;
    }

    .ddc-hero-kicker {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .ddc-hero-title {
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.06;
    }

    .ddc-hero-schedule {
        margin-top: 12px;
        gap: 4px 10px;
    }

    .ddc-hero-schedule strong {
        font-size: 13px;
    }

    .ddc-hero-schedule span,
    .ddc-hero-location,
    .ddc-hero-description {
        font-size: 12px;
    }

    .ddc-hero-location {
        margin-top: 7px;
    }

    .ddc-hero-description {
        margin-top: 10px;
        line-height: 1.45;
    }

    .ddc-hero-register {
        min-height: 42px;
        margin-top: 13px;
        padding: 11px 18px;
        font-size: 11px;
    }

    /* Mise en page compacte uniquement pour Cours co et Events. */
    .ddc-hero-slide--admin .ddc-hero-content-wrap {
        align-items: center;
        justify-content: flex-start;
        padding: 10px 16px 62px;
    }

    .ddc-hero-slide--admin .ddc-hero-content {
        max-height: 100%;
        overflow-y: hidden;
    }

    .ddc-hero-slide--admin .ddc-hero-accent {
        width: 38px;
        margin-bottom: 7px;
    }

    .ddc-hero-slide--admin .ddc-hero-kicker {
        margin-bottom: 4px;
        font-size: 8.5px;
    }

    .ddc-hero-slide--admin .ddc-hero-title {
        font-size: clamp(19px, 6vw, 26px);
        line-height: 1.02;
    }

    .ddc-hero-slide--admin .ddc-hero-badges {
        gap: 5px;
        margin-top: 8px;
    }

    .ddc-hero-slide--admin .ddc-hero-badge {
        min-height: 23px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .ddc-hero-slide--admin .ddc-hero-description {
        margin-top: 8px;
        font-size: 11px;
        line-height: 1.3;
    }

    .ddc-hero-slide--admin .ddc-hero-actions {
        flex-wrap: nowrap;
        gap: 7px;
        margin-top: 9px;
    }

    .ddc-hero-slide--admin .ddc-hero-actions .ddc-hero-register {
        min-width: 0;
        min-height: 36px;
        flex: 1 1 0;
        padding: 8px 8px;
        font-size: clamp(8.5px, 2.7vw, 10px);
        white-space: nowrap;
    }

    .ddc-hero-navigation {
        left: 50%;
        right: auto;
        bottom: 12px;
        max-width: calc(100% - 20px);
        gap: 4px;
        padding: 5px;
        transform: translateX(-50%);
    }

    .ddc-hero-arrow,
    .ddc-hero-pause,
    .ddc-hero-scroll-cue {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .ddc-hero-arrow {
        font-size: 22px;
    }

    .ddc-hero-dots {
        gap: 5px;
        padding-inline: 2px;
    }

    .ddc-hero-dot {
        width: 6px;
        height: 6px;
    }

    .ddc-hero-dot.is-active {
        width: 18px;
    }

    .ddc-hero-navigation-separator {
        height: 19px;
    }

    .ddc-hero-scroll-cue span {
        width: 8px;
        height: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddc-hero-track {
        scroll-behavior: auto;
    }

    .ddc-hero-dot,
    .ddc-hero-register,
    .ddc-hero-scroll-cue {
        transition: none;
    }

}

/* --- Slider header 2.10.8 : logo découpé en 10 images indépendantes --- */
.ddc-hero-slide--intro {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr;
    background: #ffffff;
}

.ddc-logo-build {
    position: relative;
    width: min(72vw, 620px, 76vh);
    aspect-ratio: 1;
    overflow: visible;
}

.ddc-logo-letters,
.ddc-logo-equalizer,
.ddc-logo-final {
    position: absolute;
    inset: 0;
}

.ddc-logo-letters,
.ddc-logo-equalizer {
    overflow: visible;
}

.ddc-logo-letter {
    position: absolute;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
    will-change: transform, opacity, filter;
}

.ddc-logo-letter img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*
 * Chaque lettre possède maintenant son propre PNG transparent.
 * Il n'y a donc plus de clip-path sur le logo complet :
 * aucune lettre ne peut emporter un morceau d'un point ou d'une autre lettre.
 */
.ddc-logo-letter--1 {
    left: 2.2109%;
    top: 40.8163%;
    width: 17.0068%;
    height: 17.0068%;
}
.ddc-logo-letter--2 {
    left: 7.3129%;
    top: 16.3265%;
    width: 20.5782%;
    height: 20.5782%;
}
.ddc-logo-letter--3 {
    left: 25.6803%;
    top: 1.3605%;
    width: 20.4082%;
    height: 20.4082%;
}
.ddc-logo-letter--4 {
    left: 50.0000%;
    top: 0.5102%;
    width: 19.0476%;
    height: 19.5578%;
}
.ddc-logo-letter--5 {
    left: 68.7075%;
    top: 11.5646%;
    width: 14.7959%;
    height: 23.1293%;
}
.ddc-logo-letter--6 {
    left: 80.1020%;
    top: 34.1837%;
    width: 18.8776%;
    height: 17.8571%;
}
.ddc-logo-letter--7 {
    left: 71.2585%;
    top: 61.7347%;
    width: 22.2789%;
    height: 21.9388%;
}
.ddc-logo-letter--8 {
    left: 33.8435%;
    top: 79.2517%;
    width: 18.3673%;
    height: 18.3673%;
}
.ddc-logo-letter--9 {
    left: 55.2721%;
    top: 76.1905%;
    width: 19.8980%;
    height: 19.7279%;
}
.ddc-logo-letter--10 {
    left: 11.3946%;
    top: 67.0068%;
    width: 21.9388%;
    height: 21.9388%;
}

/* Directions de départ volontairement désordonnées. */
.ddc-logo-letter--1  { --ddc-letter-x: -115%; --ddc-letter-y:  25%; --ddc-letter-r: -28deg; --ddc-letter-scale: .76; }
.ddc-logo-letter--2  { --ddc-letter-x:  -65%; --ddc-letter-y: -95%; --ddc-letter-r:  22deg; --ddc-letter-scale: .72; }
.ddc-logo-letter--3  { --ddc-letter-x:   35%; --ddc-letter-y:-120%; --ddc-letter-r: -30deg; --ddc-letter-scale: .74; }
.ddc-logo-letter--4  { --ddc-letter-x:  105%; --ddc-letter-y: -80%; --ddc-letter-r:  34deg; --ddc-letter-scale: .70; }
.ddc-logo-letter--5  { --ddc-letter-x:  130%; --ddc-letter-y: -15%; --ddc-letter-r: -24deg; --ddc-letter-scale: .76; }
.ddc-logo-letter--6  { --ddc-letter-x:  115%; --ddc-letter-y:  55%; --ddc-letter-r:  31deg; --ddc-letter-scale: .73; }
.ddc-logo-letter--7  { --ddc-letter-x:   85%; --ddc-letter-y: 105%; --ddc-letter-r: -33deg; --ddc-letter-scale: .75; }
.ddc-logo-letter--8  { --ddc-letter-x:  -25%; --ddc-letter-y: 125%; --ddc-letter-r:  27deg; --ddc-letter-scale: .72; }
.ddc-logo-letter--9  { --ddc-letter-x:   55%; --ddc-letter-y: 110%; --ddc-letter-r: -38deg; --ddc-letter-scale: .74; }
.ddc-logo-letter--10 { --ddc-letter-x: -105%; --ddc-letter-y:  75%; --ddc-letter-r:  32deg; --ddc-letter-scale: .73; }

.ddc-hero-slide--intro.is-active .ddc-logo-letter {
    visibility: visible;
    animation: ddcLogoLetterPlace .72s cubic-bezier(.16,1,.3,1) both;
}

/* Ordre volontairement non circulaire : B, D, D, U, E, L, O, S, E, O. */
.ddc-hero-slide--intro.is-active .ddc-logo-letter--4  { animation-delay: .05s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--1  { animation-delay: .18s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--7  { animation-delay: .31s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--3  { animation-delay: .44s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--10 { animation-delay: .57s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--5  { animation-delay: .70s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--2  { animation-delay: .83s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--9  { animation-delay: .96s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--6  { animation-delay: 1.09s; }
.ddc-hero-slide--intro.is-active .ddc-logo-letter--8  { animation-delay: 1.22s; }

/* Égaliseur central. */
.ddc-logo-bar {
    position: absolute;
    display: block;
    border-radius: 999px;
    opacity: 0;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

.ddc-logo-bar--1 {
    left: 8.2%; top: 63.4%; width: 7.5%; height: 7.5%;
    background: #6b7252;
}
.ddc-logo-bar--2 {
    left: 33.0%; top: 37.0%; width: 6.5%; height: 26.0%;
    background: #d3ca8f;
}
.ddc-logo-bar--3 {
    left: 44.0%; top: 29.0%; width: 6.8%; height: 42.0%;
    background: #ffd400;
}
.ddc-logo-bar--4 {
    left: 55.3%; top: 36.0%; width: 6.6%; height: 28.7%;
    background: #7ebae6;
}
.ddc-logo-bar--5 {
    left: 66.5%; top: 42.3%; width: 6.5%; height: 15.5%;
    background: #d75744;
}
.ddc-logo-bar--6 {
    left: 89.3%; top: 56.2%; width: 7.4%; height: 7.4%;
    background: #6b7252;
}

/* Les 4 vraies barres font l'égaliseur. */
.ddc-hero-slide--intro.is-active .ddc-logo-bar--2,
.ddc-hero-slide--intro.is-active .ddc-logo-bar--3,
.ddc-hero-slide--intro.is-active .ddc-logo-bar--4,
.ddc-hero-slide--intro.is-active .ddc-logo-bar--5 {
    animation: ddcLogoEqualizer 1.62s cubic-bezier(.3,.05,.2,1) both;
}

.ddc-hero-slide--intro.is-active .ddc-logo-bar--2 { animation-delay: 1.72s; --ddc-eq-a: .64; --ddc-eq-b: 1.15; }
.ddc-hero-slide--intro.is-active .ddc-logo-bar--3 { animation-delay: 1.80s; --ddc-eq-a: .44; --ddc-eq-b: .86; }
.ddc-hero-slide--intro.is-active .ddc-logo-bar--4 { animation-delay: 1.88s; --ddc-eq-a: .58; --ddc-eq-b: 1.08; }
.ddc-hero-slide--intro.is-active .ddc-logo-bar--5 { animation-delay: 1.96s; --ddc-eq-a: .72; --ddc-eq-b: 1.28; }

/* Les deux points restent toujours ronds. */
.ddc-hero-slide--intro.is-active .ddc-logo-bar--1 {
    animation: ddcLogoDotIn .50s cubic-bezier(.16,1,.3,1) 1.84s both;
}
.ddc-hero-slide--intro.is-active .ddc-logo-bar--6 {
    animation: ddcLogoDotIn .50s cubic-bezier(.16,1,.3,1) 2.04s both;
}

/*
 * Le PNG complet apparaît à la fin comme état final de référence.
 * Ainsi le logo final est pixel pour pixel celui du fichier d'origine.
 */
.ddc-logo-final {
    display: none;
}

/*
 * Les pièces animées restent directement dans leur état final.
 * Aucun remplacement par le PNG complet :
 * pas de recalage horizontal en fin d'animation.
 */

/* Horloge CSS : le JS passe à la slide 2 exactement à la fin de la construction. */
.ddc-hero-slide--intro.is-active .ddc-logo-build {
    animation: ddcLogoIntroClock 4.18s linear both;
}

@keyframes ddcLogoLetterPlace {
    0% {
        opacity: 0;
        transform:
            translate(var(--ddc-letter-x), var(--ddc-letter-y))
            rotate(var(--ddc-letter-r))
            scale(var(--ddc-letter-scale));
        filter: blur(5px);
    }
    18% {
        opacity: .35;
    }
    70% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1.045);
        filter: blur(0);
    }
    86% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(.99);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes ddcLogoDotIn {
    0%   { opacity: 0; transform: scale(.35); }
    68%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes ddcLogoEqualizer {
    0%   { opacity: 0; transform: scaleY(.08) scaleX(.82); }
    12%  { opacity: 1; transform: scaleY(1) scaleX(1); }
    25%  { opacity: 1; transform: scaleY(var(--ddc-eq-a)) scaleX(1); }
    39%  { opacity: 1; transform: scaleY(var(--ddc-eq-b)) scaleX(1); }
    53%  { opacity: 1; transform: scaleY(.62) scaleX(1); }
    67%  { opacity: 1; transform: scaleY(1.18) scaleX(1); }
    81%  { opacity: 1; transform: scaleY(.82) scaleX(1); }
    100% { opacity: 1; transform: scaleY(1) scaleX(1); }
}

    to   { opacity: 0; }
}

@keyframes ddcLogoIntroClock {
    from { opacity: 1; }
    to   { opacity: 1; }
}


@keyframes ddcHeroElementIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation légère des slides événements. */
.ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-image,
.ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-content > * {
    opacity: 0;
}

.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-image {
    animation: ddcHeroImageIn .7s cubic-bezier(.22,1,.36,1) both;
}

.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > * {
    animation: ddcHeroElementIn .52s cubic-bezier(.22,1,.36,1) both;
}

.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(1) { animation-delay: .08s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(2) { animation-delay: .14s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(3) { animation-delay: .20s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(4) { animation-delay: .26s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(5) { animation-delay: .32s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(6) { animation-delay: .38s; }
.ddc-hero-slide.is-active:not(.ddc-hero-slide--intro) .ddc-hero-content > *:nth-child(7) { animation-delay: .44s; }

@keyframes ddcHeroImageIn {
    from { opacity: 0; transform: scale(.975); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
    .ddc-logo-build {
        width: min(84vw, 460px, 58vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddc-hero-slide--intro .ddc-logo-letter,
    .ddc-hero-slide--intro .ddc-logo-bar,
    .ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-image,
    .ddc-hero-slide:not(.ddc-hero-slide--intro) .ddc-hero-content > * {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    .ddc-logo-final {
        display: none !important;
    }
}

/* Raccord invisible : la copie de la slide logo et la vraie slide 1 ont le même état final. */
.ddc-hero-slide.ddc-hero-skip-animation .ddc-hero-image,
.ddc-hero-slide.ddc-hero-skip-animation .ddc-hero-content > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.ddc-hero-slide--intro.ddc-hero-skip-animation .ddc-logo-letter,
.ddc-hero-slide--intro.ddc-hero-skip-animation .ddc-logo-bar {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.ddc-hero-slide--intro.ddc-hero-skip-animation .ddc-logo-final {
    display: none !important;
}

.ddc-hero-slide--intro.ddc-hero-skip-animation .ddc-logo-build {
    animation: none !important;
}

@media (max-width: 767px) {
    .ddc-event-modal-shell {
        width: min(100%, calc(100vw - 20px));
        margin-top: 22px;
    }

    .ddc-event-modal-close {
        top: -42px;
        right: 2px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}




/* ==========================================================
   URL directe — popup plein écran Planning des cours co
   ========================================================== */

.ddc-course-modal-overlay {
    position: fixed;
    z-index: 1000002;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: #1e2041;
    background: #ffffff;
}

.ddc-course-modal-shell {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    background: #ffffff;
}

.ddc-course-modal-header {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px clamp(20px, 4vw, 60px);
    border-bottom: 1px solid rgba(30, 32, 65, .10);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 26px rgba(30, 32, 65, .055);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ddc-course-modal-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--ddc-primary, #e5007d);
    font-family: "Orbitron", sans-serif;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ddc-course-modal-header h1 {
    margin: 0;
    padding: 0;
    color: #1e2041;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.ddc-course-modal-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(30, 32, 65, .12);
    border-radius: 999px;
    color: #1e2041;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(30, 32, 65, .09);
    font: 300 30px/1 Arial, sans-serif;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ddc-course-modal-close:hover,
.ddc-course-modal-close:focus-visible {
    color: var(--ddc-primary, #e5007d);
    border-color: color-mix(in srgb, var(--ddc-primary, #e5007d) 35%, #ffffff);
    transform: rotate(3deg);
}

.ddc-course-modal-close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ddc-primary, #e5007d) 26%, transparent);
    outline-offset: 3px;
}

.ddc-course-modal-content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(18px, 3vw, 42px) clamp(18px, 4vw, 64px) clamp(34px, 5vw, 72px);
    background: #ffffff;
    scrollbar-gutter: stable;
}

.ddc-course-modal-content > .ddc-course-week {
    width: min(100%, 1540px);
    margin: 0 auto;
}

body.ddc-course-modal-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .ddc-course-modal-header {
        min-height: 66px;
        padding: 10px 12px 10px 16px;
    }

    .ddc-course-modal-kicker {
        font-size: 8px;
    }

    .ddc-course-modal-header h1 {
        font-size: clamp(16px, 5vw, 21px);
    }

    .ddc-course-modal-close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 27px;
    }

    .ddc-course-modal-content {
        padding: 14px 14px 30px;
    }

    /*
     * Le composant conserve son comportement tactile existant :
     * les journées du planning peuvent défiler horizontalement sur mobile.
     */
    .ddc-course-modal-content .ddc-course-grid-shell {
        margin-right: -14px;
    }

    .ddc-course-modal-content .ddc-course-week-grid {
        padding-right: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddc-course-modal-close {
        transition: none !important;
    }
}

/* ==========================================================
   Mur photo — événements passés
   ========================================================== */

.ddc-photo-slider {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    overflow: visible;
    background: #ffffff;
}

.ddc-photo-track,
.ddc-photo-wall {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
}

.ddc-photo-column {
    display: flex;
    width: 16.6666666667%;
    flex: 0 0 16.6666666667%;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 0;
}

.ddc-photo-slide {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
}

.ddc-photo-slide img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: transparent;
    pointer-events: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.ddc-photo-slide:hover img {
    transform: scale(1.018);
    filter: brightness(.96);
}

.ddc-photo-slide:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid var(--ddc-primary, #e5007d);
    outline-offset: -3px;
}

/* Visionneuse / diaporama plein écran */
.ddc-photo-lightbox[hidden] {
    display: none !important;
}

.ddc-photo-lightbox {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(48px, 82px) minmax(0, 1fr) minmax(48px, 82px);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    padding: clamp(10px, 2vw, 28px);
    background: rgba(8, 8, 14, .975);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ddc-photo-lightbox-stage {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    touch-action: pan-y;
}

.ddc-photo-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.ddc-photo-lightbox-close,
.ddc-photo-lightbox-prev,
.ddc-photo-lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    box-shadow: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 160ms ease;
}

.ddc-photo-lightbox-close:hover,
.ddc-photo-lightbox-prev:hover,
.ddc-photo-lightbox-next:hover {
    background: rgba(255,255,255,.18);
}

.ddc-photo-lightbox-close {
    position: absolute;
    z-index: 3;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
    width: 44px;
    height: 44px;
    font: 300 30px/1 Arial, sans-serif;
}

.ddc-photo-lightbox-prev,
.ddc-photo-lightbox-next {
    width: 46px;
    height: 46px;
    font: 300 34px/1 Arial, sans-serif;
}

.ddc-photo-lightbox-prev {
    grid-column: 1;
    grid-row: 1;
}

.ddc-photo-lightbox-next {
    grid-column: 3;
    grid-row: 1;
}

.ddc-photo-lightbox-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 10px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.ddc-photo-lightbox-caption:empty {
    display: none;
}

.ddc-photo-lightbox-counter {
    flex: 0 0 auto;
    color: rgba(255,255,255,.58);
    font-variant-numeric: tabular-nums;
}

body.ddc-photo-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .ddc-photo-column {
        width: 16.6666666667%;
        flex-basis: 16.6666666667%;
    }

    .ddc-photo-lightbox {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 6px;
    }

    .ddc-photo-lightbox-stage {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 100%;
    }

    .ddc-photo-lightbox-image {
        max-width: 100%;
        max-height: calc(100dvh - 66px);
    }

    .ddc-photo-lightbox-prev,
    .ddc-photo-lightbox-next {
        position: absolute;
        z-index: 3;
        top: 50%;
        width: 40px;
        height: 40px;
        transform: translateY(-50%);
        background: rgba(20,20,28,.52);
    }

    .ddc-photo-lightbox-prev { left: 8px; }
    .ddc-photo-lightbox-next { right: 8px; }

    .ddc-photo-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(20,20,28,.58);
    }

    .ddc-photo-lightbox-footer {
        grid-column: 1;
        grid-row: 2;
        padding: 7px 10px 3px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddc-photo-slide img,
    .ddc-photo-lightbox-close,
    .ddc-photo-lightbox-prev,
    .ddc-photo-lightbox-next {
        transition: none !important;
    }
}
