/* Royale Harmonie de Liers — style moderne */

:root {
    --bg: #F5F7FA;
    --ink: #0B1526;
    --muted: #5B6578;
    --accent: #2F6BFF;
    --surface: #FFFFFF;
    --line: #D8DEE8;
    --gold: #B8953E;
    --wrap: 1280px;
    --header-h: 4.5rem;
    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: color-mix(in srgb, var(--accent) 80%, #000); }

img { max-width: 100%; height: auto; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem);
}

/* —— Staff / compte —— */
.staff-bar {
    background: #0B1526;
    color: #e8eef8;
    font-family: var(--font-body);
    font-size: 0.88rem;
    position: relative;
    z-index: 30;
}
.staff-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.staff-bar a,
.staff-logout-link {
    color: #9db8ff;
    text-decoration: none;
    font-weight: 600;
}
.staff-bar a:hover,
.staff-logout-link:hover { color: #fff; }
.staff-logout {
    background: transparent;
    border: 0;
    color: #9db8ff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.staff-logout:hover { color: #fff; }
.staff-logout-form {
    display: inline;
    margin: 0;
}
.staff-bar .spacer { flex: 1; }

.account-bar-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.1rem 0;
    text-align: left;
}
.account-bar-toggle-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}
.account-bar-user {
    color: #9db8ff;
    font-weight: 600;
}
.account-bar-chevron {
    transition: transform 0.15s ease;
}
.staff-bar.is-open .account-bar-chevron {
    transform: rotate(180deg);
}
.account-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.account-bar-label-desktop {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.nav-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}
.nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 720px) {
    .account-bar-toggle {
        display: flex;
    }
    .account-bar-label-desktop {
        display: none;
    }
    .account-bar-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        padding-top: 0.35rem;
    }
    .staff-bar.is-open .account-bar-links {
        display: flex;
    }
    .staff-bar .spacer {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
    }
    .site-header .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding-top: 0.35rem;
        padding-bottom: 0.85rem;
    }
    .site-header.is-nav-open .nav {
        display: flex;
    }
    .site-header .nav > a,
    .site-header .nav .dropdown > a,
    .site-header .nav .dropdown-toggle {
        padding: 0.55rem 0.15rem;
        border-bottom: 1px solid var(--line);
    }
    .site-header .nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0.35rem 0.75rem;
        background: transparent;
    }
    .site-header .nav .dropdown-menu a {
        border-bottom: 0;
        padding: 0.4rem 0.15rem;
    }
}

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(11, 21, 38, 0.06);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}
/* Accueil / pages avec couverture : la nav flotte sur le hero */
body.is-home .site-header,
body.has-page-hero .site-header {
    margin-bottom: calc(-1 * var(--header-overlap, 7.25rem));
}
body.is-home:not(.is-scrolled) .site-header,
body.has-page-hero:not(.is-scrolled) .site-header {
    background: linear-gradient(
        180deg,
        rgba(11, 21, 38, 0.78) 0%,
        rgba(11, 21, 38, 0.42) 55%,
        rgba(11, 21, 38, 0) 100%
    );
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}
body.is-home:not(.is-scrolled) .brand,
body.is-home:not(.is-scrolled) .nav > a,
body.is-home:not(.is-scrolled) .dropdown > a,
body.is-home:not(.is-scrolled) .dropdown-toggle,
body.is-home:not(.is-scrolled) .nav-members,
body.has-page-hero:not(.is-scrolled) .brand,
body.has-page-hero:not(.is-scrolled) .nav > a,
body.has-page-hero:not(.is-scrolled) .dropdown > a,
body.has-page-hero:not(.is-scrolled) .dropdown-toggle,
body.has-page-hero:not(.is-scrolled) .nav-members {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
body.is-home:not(.is-scrolled) .nav > a:hover,
body.is-home:not(.is-scrolled) .dropdown > a:hover,
body.is-home:not(.is-scrolled) .dropdown-toggle:hover,
body.has-page-hero:not(.is-scrolled) .nav > a:hover,
body.has-page-hero:not(.is-scrolled) .dropdown > a:hover,
body.has-page-hero:not(.is-scrolled) .dropdown-toggle:hover {
    color: #fff;
    opacity: 0.85;
}
body.is-home .home-hero,
body.has-page-hero .home-hero {
    padding-top: var(--header-overlap, 7.25rem);
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    align-items: center;
    padding: 0.85rem 0 0.25rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.brand-logo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.nav-members {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.15rem;
    padding: 0.25rem 0 0.95rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}
.nav a:hover,
.nav a.is-active { color: var(--accent); }
.dropdown { position: relative; }
.dropdown-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
}
.dropdown-toggle:hover,
.dropdown.is-open .dropdown-toggle {
    color: var(--accent);
}
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 13rem;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.45rem 0;
    z-index: 25;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(11, 21, 38, 0.1);
}
.dropdown.is-open .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-menu { display: block; }
}
.dropdown-menu a {
    display: block;
    padding: 0.4rem 0.95rem;
    color: var(--ink) !important;
}

/* —— Main —— */
.site-main { padding: 0 0 4rem; }
.site-main.has-wrap { padding: 2.5rem 0 4rem; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 42rem;
    margin: 0;
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
    background: transparent !important;
    color: var(--ink) !important;
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn-light {
    background: #fff !important;
    color: var(--ink) !important;
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

/* —— Hero —— */
.home-hero {
    position: relative;
    min-height: min(92vh, 920px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    margin: 0;
}
.home-hero__media {
    position: absolute;
    inset: -8% 0;
    z-index: 0;
    will-change: transform;
}
.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Édition : cadrage couverture — aperçu live façon hero */
.cover-focus-range {
    width: 100%;
    max-width: 36rem;
    accent-color: var(--accent);
}
.cover-focus-live {
    margin-top: 0.85rem;
    max-width: 36rem;
}
.cover-focus-live__label {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.cover-focus-live__hero {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 14rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    background: #0b1526;
    box-shadow: 0 12px 28px rgba(11, 21, 38, 0.12);
}
.cover-focus-live__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    pointer-events: none;
}
.cover-focus-live__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(11, 21, 38, 0.55) 0%,
        rgba(11, 21, 38, 0.2) 40%,
        rgba(11, 21, 38, 0.85) 100%
    );
    opacity: var(--cover-overlay-opacity, 1);
}
.cover-focus-live__crosshair {
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    z-index: 2;
    height: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.65);
    pointer-events: none;
    transform: translateY(-50%);
}
.cover-focus-live__crosshair::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(11, 21, 38, 0.35);
}
.cover-focus-live__copy {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    max-width: 18rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(11, 21, 38, var(--cover-text-bg-opacity, 0.55));
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--font-body);
    pointer-events: none;
}
.cover-focus-live__logo {
    position: absolute;
    right: 0.65rem;
    bottom: 2.75rem;
    z-index: 4;
    width: 16%;
    max-width: 3.75rem;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}
.cover-focus-live__eyebrow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}
.cover-focus-live__title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}
.cover-focus-live__lead {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.35;
}
.cover-focus-live__value {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
}

/* Ancien bloc éventuel */
.cover-focus-preview { display: none !important; }
.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(11, 21, 38, 0.55) 0%, rgba(11, 21, 38, 0.2) 28%, rgba(11, 21, 38, 0.55) 70%, rgba(11, 21, 38, 0.92) 100%);
    opacity: var(--cover-overlay-opacity, 1);
}
.home-hero__logo {
    /* Au-dessus du chevauchement .home-panel (≈2.5rem) pour éviter le rognage */
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(3.75rem, 9vw, 5.75rem);
    z-index: 3;
    width: clamp(4.5rem, 11vw, 7.5rem);
    pointer-events: none;
}
.home-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.page-hero .home-hero__logo {
    bottom: clamp(3.25rem, 8vw, 5rem);
    width: clamp(4rem, 10vw, 6.5rem);
}
.home-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 clamp(3rem, 8vh, 5.5rem);
}
.home-hero__copy {
    max-width: 38rem;
    padding: 1.25rem 1.35rem 1.4rem;
    border-radius: 0.65rem;
    background: rgba(11, 21, 38, var(--cover-text-bg-opacity, 0.55));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.home-hero h1 {
    color: #fff;
    max-width: 16ch;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.home-hero .lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: none;
}
.home-hero .edit-chip {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.home-hero .btn-ghost {
    background: transparent !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55);
}
.home-hero .btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Hero pages intérieures (couverture optionnelle) */
.page-hero {
    min-height: min(56vh, 620px);
}
.page-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.page-panel {
    padding-top: 2rem;
    padding-bottom: 1rem;
}
.page-body {
    padding-bottom: 2rem;
}

.home-panel {
    position: relative;
    z-index: 3;
    margin-top: -2.5rem;
    background: var(--bg);
    border-radius: 1.5rem 1.5rem 0 0;
    padding-top: 0.5rem;
    overflow: visible;
}

/* —— Bands —— */
.band {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.band-alt {
    background: var(--surface);
    border-block: 1px solid var(--line);
    overflow: visible;
}

.event-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
.event-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.band-alt .event-card { background: var(--bg); }
.event-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    transform: translateY(-2px);
}
.event-date {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.event-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.event-loc { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.event-actions { margin-top: 0.5rem; }

/* legacy list (agenda page) */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.ensemble-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) {
    .ensemble-grid { grid-template-columns: 1fr; }
}
.ensemble-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.85rem 1.25rem;
    min-height: 13rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ensemble-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(11, 21, 38, 0.08);
    color: var(--ink);
}
.ensemble-link img {
    width: min(100%, 220px);
    height: 6rem;
    object-fit: contain;
}
.ensemble-link span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.about-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
}
.about-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem 1.2rem;
    background: var(--bg);
    border-left: 3px solid var(--gold);
    border-radius: 0 0.85rem 0.85rem 0;
    transition: background 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}
.about-link:hover { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.about-link h3 { font-size: 1.05rem; }
.about-link p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Rejoignez-nous + À propos : textures distinctes, conducteur aligné en bas des cards */
.join-about {
    position: relative;
    overflow: visible;
}
.join-about .join-about__pad {
    padding-right: clamp(11rem, 26vw, 19rem);
}
.join-about__about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(10rem, 22vw, 17rem);
    gap: 1.25rem 1.75rem;
    align-items: end;
}
.join-about__about-main { min-width: 0; }
.join-about .about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    min-width: 0;
}
.join-about .about-grid > * {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.join-about .about-link {
    flex: 1 1 auto;
}
.join-about__figure {
    margin: 0;
    margin-top: -14rem;
    width: 100%;
    pointer-events: none;
    z-index: 3;
    position: relative;
}
.join-about__figure img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(11, 21, 38, 0.18));
}

@media (max-width: 900px) {
    .join-about .join-about__pad { padding-right: 0; }
    .join-about__about-layout { grid-template-columns: 1fr; }
    .join-about__figure {
        order: -1;
        margin: 0 auto 1rem;
        width: min(12rem, 45vw);
    }
    .join-about .about-grid { grid-template-columns: 1fr; }
}

.prose p { margin: 0 0 1rem; }
.rich-content {
    max-width: none;
    width: 100%;
    background: transparent;
}
/* Contenu collé (Word / CKEditor) : pas de « plaque » blanche sur le fond page */
.rich-content p,
.rich-content span,
.rich-content div,
.rich-content li,
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content figure,
.rich-content table,
.rich-content td,
.rich-content th {
    background: transparent !important;
    background-color: transparent !important;
}
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.65rem;
    margin: 0.75rem 0;
}
.rich-content figure { margin: 1rem 0; }
/* figure + figcaption : display:table sans clear (sinon impossible côte à côte) */
.rich-content figure.image {
    display: table;
}
.rich-content figure.image img {
    display: block;
    margin: 0;
    width: 100%;
    border-radius: 0.65rem;
}
.rich-content figcaption {
    display: table-caption;
    caption-side: bottom;
    margin-top: 0.45rem;
    padding: 0 0.15rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
    background: transparent !important;
}
.rich-content figure.image-style-align-left,
.rich-content figure.image-style-side {
    float: left;
    margin: 0.35rem 1.25rem 0.85rem 0;
    max-width: min(100%, 48%);
}
.rich-content figure.image-style-align-right {
    float: right;
    margin: 0.35rem 0 0.85rem 1.25rem;
    max-width: min(100%, 48%);
}
.rich-content figure.image-style-align-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
/* Deux images alignées à gauche à la suite → côte à côte */
.rich-content figure.image-style-align-left + figure.image-style-align-left,
.rich-content figure.image-style-side + figure.image-style-side,
.rich-content figure.image-style-align-left + figure.image-style-side,
.rich-content figure.image-style-side + figure.image-style-align-left {
    margin-right: 0;
}
.rich-content::after {
    content: '';
    display: table;
    clear: both;
}
/* Tables CKEditor : largeurs / bordures pilotées par l’éditeur (styles inline) */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.rich-content table td,
.rich-content table th {
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}
.rich-content table img {
    margin: 0;
    width: 100%;
    border-radius: 0.65rem;
}
.rich-content table figure.image {
    margin: 0;
    max-width: 100%;
    float: none;
    width: 100%;
}
/* Paire d’images : même hauteur, largeurs selon le ratio (classe .image-pair) */
.rich-content table.image-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 1.25rem 0;
    border: none !important;
    background: transparent !important;
}
.rich-content table.image-pair > tbody,
.rich-content table.image-pair > thead,
.rich-content table.image-pair tr {
    display: contents;
}
.rich-content table.image-pair td,
.rich-content table.image-pair th {
    display: block;
    flex: 0 1 auto;
    width: auto !important;
    max-width: calc(50% - 0.4rem);
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: top;
}
.rich-content table.image-pair figure.image {
    display: table;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    float: none;
}
.rich-content table.image-pair img {
    display: block;
    height: clamp(11rem, 30vw, 24rem);
    width: auto !important;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: 0.65rem;
}
.rich-content table.image-pair figcaption {
    max-width: min(100%, 28rem);
}
@media (max-width: 640px) {
    .rich-content table.image-pair td,
    .rich-content table.image-pair th {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .rich-content table.image-pair img {
        width: 100% !important;
        height: auto;
        max-height: 20rem;
        object-fit: contain;
    }
}
.rich-content h2 { margin-top: 2rem; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    background: var(--surface);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-social { margin: 0; }
.footer-social-label {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.88rem;
}
.footer-social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.footer-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.footer-social__link:hover { text-decoration: underline; }
.footer-social__icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.35rem;
    object-fit: contain;
    display: block;
}
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.footer-credit {
    margin-left: auto;
    align-self: flex-end;
}
.footer-credit__link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 22rem;
    text-decoration: none;
    color: var(--muted);
    text-align: left;
}
.footer-credit__link:hover {
    color: var(--ink);
}
.footer-credit__link:hover .footer-credit__cta {
    color: var(--accent);
}
.footer-credit__logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.footer-credit__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
    line-height: 1.35;
}
.footer-credit__line strong {
    color: var(--ink);
    font-weight: 600;
}
.footer-credit__cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--accent) 85%, var(--muted));
}

.dropdown-empty {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-toc {
    margin: 0 0 1.75rem;
    padding: 1rem 1.15rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    max-width: none;
    width: 100%;
    font-family: var(--font-body);
}
.page-toc__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.page-toc ol, .page-toc ul {
    margin: 0;
    padding-left: 1.15rem;
}
.page-toc li { margin: 0.35rem 0; }
.page-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.page-toc a:hover { color: var(--accent); }
.page-toc--hub ul { list-style: none; padding: 0; }
.page-toc--hub li a {
    display: block;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
}
.page-toc--hub li a strong { display: block; margin-bottom: 0.25rem; }
.page-toc--hub li a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.page-toc--hub li a:hover { border-color: var(--accent); }

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.tariff-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 1.25rem 1.35rem;
    font-family: var(--font-body);
}
.tariff-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.tariff-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}
.tariff-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.tariff-price {
    margin: 0 !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink) !important;
}

.media-picker { margin: 0.35rem 0 0.75rem; }
.media-picker-preview {
    margin: 0 0 0.75rem;
    max-width: 22rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface);
}
.media-picker-preview img {
    display: block;
    width: 100%;
    max-height: 14rem;
    object-fit: contain;
    background: #0b1526;
}
.media-picker-preview__caption {
    margin: 0;
    padding: 0.45rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--muted);
    word-break: break-word;
}
.media-picker-preview-empty {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
}
.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.media-picker-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem;
    border: 2px solid var(--line);
    border-radius: 0.55rem;
    cursor: pointer;
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-align: center;
}
.media-picker-option input { position: absolute; opacity: 0; pointer-events: none; }
.media-picker-option.is-selected,
.media-picker-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.media-picker-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.35rem;
    display: block;
}
.media-picker-none-label { padding: 1.5rem 0.25rem; color: var(--muted); }
.media-picker-caption { word-break: break-word; color: var(--muted); }
.media-picker-upload {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--muted);
}
.media-picker-upload input { display: block; margin-top: 0.35rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted { color: var(--muted); }

.grid-2 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1.5rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.15rem 1.25rem;
    border-radius: 0.85rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.edit-chip {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border: 1px dashed var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
    border-radius: 999px;
}
.edit-chip:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.messages {
    list-style: none;
    margin: 0;
    padding: 1rem clamp(1.25rem, 3vw, 2rem) 0;
    max-width: var(--wrap);
    margin-inline: auto;
    font-family: var(--font-body);
}
.messages li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
    border-radius: 0.65rem;
}

.edition-form { margin-top: 1.25rem; max-width: none; width: 100%; }
.edition-field {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.edition-field > label > span,
.edition-field > span {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}
.edition-field input,
.edition-field select,
.edition-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font: inherit;
    background: var(--surface);
}
/* CKEditor : pleine largeur, fond aligné sur la page (pas de plaque blanche) */
.edition-field .django_ckeditor_5,
.edition-field .ck-editor {
    width: 100% !important;
    max-width: none !important;
}
.edition-field .ck.ck-editor__main > .ck-editor__editable,
.edition-field .ck-editor__editable.ck-focused,
.edition-field .ck-editor__editable:not(.ck-focused) {
    background: var(--bg) !important;
    min-height: 320px;
    border-color: var(--line) !important;
    box-shadow: none !important;
}
.edition-field .ck.ck-toolbar {
    background: color-mix(in srgb, var(--bg) 85%, var(--surface)) !important;
    border-color: var(--line) !important;
}
.edition-field input[type="color"] {
    width: 4rem;
    height: 2.5rem;
    padding: 0.2rem;
    cursor: pointer;
}
.edition-theme-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.75rem 1rem;
}
.edition-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }
.field-error, .alert-error { color: #842029; font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-hero__media,
    .btn,
    .event-card,
    .ensemble-link { transition: none !important; transform: none !important; }
}
