/* ============================================================
   Refonte réservations PEP'S Nature — chantier #2 (grille + cartes)
   Mobile-first, basé sur la palette existante (#2f7052, #03a5c2).
   ============================================================ */

:root {
    --resa-primary:    #2f7052;
    --resa-accent:     #03a5c2;
    --resa-bg:         #ffffff;
    --resa-bg-soft:    #f9f6f0;
    --resa-bg-alt:     #f1f1f1;
    --resa-text:       #333333;
    --resa-text-muted: #707070;
    --resa-border:     #e3e3e3;
    --resa-radius:     10px;
    --resa-shadow:     0 4px 16px rgba(0, 0, 0, 0.08);
    --resa-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Accessibilité : libellés cachés visuellement mais lus par les lecteurs d'écran */
.resa-wrapper .sr-only,
.resa-list .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.resa-wrapper,
.resa-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--resa-text);
    box-sizing: border-box;
}

.resa-wrapper *,
.resa-list * { box-sizing: border-box; }

/* Reset listes + liens internes (neutralise les styles globaux du site : puces gif, soulignements…) */
.resa-wrapper ul, .resa-list ul,
.resa-wrapper ol, .resa-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.resa-wrapper li, .resa-list li {
    list-style: none;
    background: none !important;
    background-image: none !important;
    padding-left: 0;
    margin: 0;
}
.resa-wrapper li::before, .resa-list li::before,
.resa-wrapper li::marker, .resa-list li::marker {
    content: none !important;
    display: none !important;
}
.resa-wrapper a, .resa-list a {
    text-decoration: none;
}

/* ============================================================
   Navigation mois ◀ ▶ (sticky au scroll)
   ============================================================ */
.resa-month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 0;
    margin-bottom: 20px;
    background: var(--resa-bg);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--resa-border);
}

.resa-month-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--resa-bg-soft);
    color: var(--resa-primary);
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s, transform 0.2s;
}
.resa-month-nav__btn:hover,
.resa-month-nav__btn:focus {
    background: var(--resa-primary);
    color: #fff;
    transform: scale(1.05);
    outline: none;
}

.resa-month-nav__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin: 0;
    flex: 1;
    text-align: center;
    color: var(--resa-primary);
    font-weight: 700;
    text-transform: capitalize;
}

.resa-month-nav__today {
    padding: 10px 18px;
    border-radius: 22px;
    background: var(--resa-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.resa-month-nav__today:hover { background: #028ba4; }

/* ============================================================
   Grille mensuelle — visible ≥ 768px uniquement
   ============================================================ */
.resa-grid {
    display: none; /* mobile : masquée */
}

@media (min-width: 768px) {
    .resa-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
        margin-bottom: 40px;
        border: 1px solid var(--resa-border);
        border-radius: var(--resa-radius);
        overflow: hidden;
        background: var(--resa-border);
    }
}

.resa-grid__header {
    background: #1e2a3a;
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.2px;
}

.resa-grid__cell {
    background: var(--resa-bg);
    min-height: 110px;
    padding: 6px 6px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s;
}
.resa-grid__cell--out {
    background: #fafbfc;
    min-height: 110px;
}
.resa-grid__cell--out .resa-grid__day-num { color: #c9ced6; font-weight: 400; }
.resa-grid__cell--past { background: #fbfbfb; }
.resa-grid__cell--past .resa-grid__day-num { color: #aeb4be; }
.resa-grid__cell--today .resa-grid__day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--resa-primary);
    color: #fff;
    font-size: 0.85rem;
}
.resa-grid__cell--has-events { cursor: pointer; }
.resa-grid__cell--has-events:hover {
    background: #f6f8fa;
}

.resa-grid__day-num {
    font-weight: 500;
    color: #3a424f;
    font-size: 0.85rem;
    line-height: 1;
    padding: 2px 2px 4px;
}

/* Pastilles d'events : pills colorées avec label */
.resa-grid__pastilles {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: stretch;
}
.resa-pastille {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--pastille-color, var(--resa-accent)) 15%, #fff);
    color: color-mix(in srgb, var(--pastille-color, var(--resa-accent)) 75%, #000);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background 0.15s;
    min-width: 0;
}
.resa-pastille:hover,
.resa-pastille:focus-visible {
    background: color-mix(in srgb, var(--pastille-color, var(--resa-accent)) 25%, #fff);
}
.resa-pastille i {
    font-size: 0.7rem;
    flex-shrink: 0;
}
.resa-pastille__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.resa-pastille--more {
    background: transparent;
    color: var(--resa-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: default;
    padding: 2px 8px;
    justify-content: flex-start;
}

/* Légende */
.resa-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--resa-text-muted);
}
.resa-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.resa-legend__item i {
    color: var(--legend-color, var(--resa-accent));
    font-size: 1.1rem;
}

/* ============================================================
   Liste des cartes (toujours visible)
   ============================================================ */
.resa-list__title {
    font-size: 1.3rem;
    color: var(--resa-primary);
    margin: 10px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--resa-accent);
}

.resa-list__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--resa-text-muted);
    font-style: italic;
}
.resa-list__empty i.fa-ban { font-size: 2rem; color: var(--resa-border); }
.resa-list__empty a {
    color: var(--resa-accent);
    text-decoration: none;
    font-weight: 700;
}

/* Grille de cartes : 1 colonne mobile, 2 tablet, 3 desktop large */
.resa-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}
@media (min-width: 600px) {
    .resa-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .resa-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Carte event individuelle
   ============================================================ */
.resa-card {
    background: var(--resa-bg);
    border-radius: var(--resa-radius);
    overflow: hidden;
    box-shadow: var(--resa-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--card-color, var(--resa-accent));
    scroll-margin-top: 100px; /* pour que l'ancre depuis la grille ne soit pas cachée par le sticky */
}
.resa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--resa-shadow-hover);
}

.resa-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--resa-bg-alt);
    overflow: hidden;
}
.resa-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.resa-card__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    background: linear-gradient(135deg,
        var(--card-color, var(--resa-accent)),
        color-mix(in srgb, var(--card-color, var(--resa-accent)) 70%, #000));
}

.resa-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 20px);
}
.resa-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.95);
    color: var(--resa-text);
    backdrop-filter: blur(4px);
}
.resa-badge--complet { background: #e74c3c; color: #fff; }
.resa-badge--passe   { background: #95a5a6; color: #fff; }
.resa-badge--venir   { background: var(--resa-primary); color: #fff; }
.resa-badge--rub     { background: var(--card-color, var(--resa-accent)); color: #fff; }

.resa-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.resa-card__title {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.3;
}
.resa-card__title a {
    color: var(--resa-text);
    text-decoration: none;
}
.resa-card__title a:hover { color: var(--card-color, var(--resa-accent)); }

.resa-card__subtitle {
    font-size: 0.9rem;
    color: var(--resa-text-muted);
    font-style: italic;
    margin: 0;
}

.resa-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--resa-text);
}
.resa-card__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.resa-card__meta i {
    color: var(--card-color, var(--resa-accent));
    width: 16px;
    text-align: center;
}

.resa-card__meta-places { align-items: center !important; }
.resa-places__label {
    font-size: 0.85rem;
    color: var(--resa-text);
}
.resa-places__bar--v {
    width: 6px;
    height: 18px;
    background: #eef0f3;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}
.resa-places__bar--v .resa-places__bar-fill {
    display: block;
    width: 100%;
    background: #4caf50;
    border-radius: 3px;
    transition: height 0.4s ease;
}
.resa-places__bar-fill.is-mid  { background: #f39c12; }
.resa-places__bar-fill.is-low  { background: #e74c3c; }

.resa-card__cta {
    margin-top: auto;
    padding-top: 8px;
}

.resa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}
.resa-btn:hover { text-decoration: none !important; }
.resa-btn--primary {
    background: var(--card-color, var(--resa-accent));
    color: #fff;
}
.resa-btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}
.resa-btn--disabled {
    background: var(--resa-bg-alt);
    color: var(--resa-text-muted);
    cursor: not-allowed;
}

/* ============================================================
   Focus states (accessibilité clavier)
   ============================================================ */
.resa-wrapper a:focus-visible,
.resa-list a:focus-visible,
.resa-wrapper button:focus-visible,
.resa-list button:focus-visible {
    outline: 3px solid var(--resa-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   Modale event (ouverte au clic sur pastille)
   ============================================================ */
.resa-modal {
    padding: 0;
    border: none;
    border-radius: var(--resa-radius);
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    background: var(--resa-bg);
    overflow: hidden;
}
.resa-modal::backdrop {
    background: rgba(20, 30, 45, 0.55);
    backdrop-filter: blur(2px);
}
.resa-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.15s, transform 0.15s;
}
.resa-modal__close:hover {
    background: #fff;
    transform: scale(1.08);
}
.resa-modal__body {
    /* La carte event clonée reprend ses propres styles */
}
.resa-modal__body .resa-card {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    transform: none !important;
}
.resa-modal__body .resa-card:hover { transform: none; box-shadow: none; }

/* ============================================================
   Fiche détail (chantier #5) — header propre au-dessus du legacy
   ============================================================ */
.resa-detail {
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 0 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--resa-text);
    box-sizing: border-box;
}
.resa-detail *, .resa-detail *::before, .resa-detail *::after { box-sizing: border-box; }

.resa-detail__hero {
    position: relative;
    border-radius: var(--resa-radius);
    overflow: hidden;
    min-height: 280px;
    background: var(--card-color, var(--resa-accent));
    box-shadow: var(--resa-shadow);
}
.resa-detail__hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.resa-detail__hero-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 5rem;
    background: linear-gradient(135deg,
        var(--card-color, var(--resa-accent)),
        color-mix(in srgb, var(--card-color, var(--resa-accent)) 70%, #000));
}
.resa-detail__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(20, 30, 45, 0.85) 0%,
        rgba(20, 30, 45, 0.4) 50%,
        rgba(20, 30, 45, 0.1) 100%);
}
.resa-detail__hero-content {
    position: relative;
    padding: 24px 24px 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}
.resa-detail__rub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--card-color, var(--resa-accent));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.resa-detail__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.resa-detail__subtitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.resa-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: -20px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--resa-radius);
    box-shadow: var(--resa-shadow);
    position: relative;
    z-index: 2;
}
.resa-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.resa-detail__meta-item > i {
    color: var(--card-color, var(--resa-accent));
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.resa-detail__meta-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.resa-detail__meta-label {
    font-size: 0.72rem;
    color: var(--resa-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.resa-detail__meta-value {
    font-size: 0.95rem;
    color: var(--resa-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resa-places__bar--lg {
    width: 10px;
    height: 28px;
}

.resa-detail__cta {
    margin: 24px 20px 0;
    padding: 22px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--card-color, var(--resa-accent)) 8%, #fff),
        color-mix(in srgb, var(--card-color, var(--resa-accent)) 3%, #fff));
    border: 2px solid color-mix(in srgb, var(--card-color, var(--resa-accent)) 25%, #fff);
    border-radius: var(--resa-radius);
    text-align: center;
}
.resa-btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
}
.resa-detail__cta-hint {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: var(--resa-text-muted);
    font-style: italic;
}

/* Desktop : meta sur 4 colonnes */
@media (min-width: 768px) {
    .resa-detail__hero { min-height: 360px; }
    .resa-detail__hero-content { min-height: 360px; padding: 32px 36px 28px; }
    .resa-detail__title { font-size: 2.4rem; }
    .resa-detail__subtitle { font-size: 1.1rem; }
    .resa-detail__meta {
        grid-template-columns: repeat(4, 1fr);
        margin-left: 30px;
        margin-right: 30px;
        padding: 22px 26px;
    }
}

/* Modal du formulaire */
.resa-modal--form {
    max-width: 720px;
    width: calc(100% - 24px);
    max-height: 90vh;
    padding: 0;
}
.resa-modal__header {
    padding: 20px 50px 18px 24px;
    background: linear-gradient(135deg,
        var(--card-color, var(--resa-accent)),
        color-mix(in srgb, var(--card-color, var(--resa-accent)) 75%, #000));
    color: #fff;
}
.resa-modal__header h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}
.resa-modal__header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.95;
}
.resa-modal--form .resa-modal__body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 90px);
}
.resa-modal--form .resa-modal__close {
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
}
.resa-modal--form .resa-modal__close:hover {
    background: rgba(255,255,255,0.35);
}

/* Neutralise les styles du form legacy une fois dans la modal */
.resa-modal--form .inscription {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}
.resa-modal--form .nice_date {
    display: none;
}

/* ============================================================
   Re-skin du contenu legacy sous le nouveau header détail
   ============================================================ */
.resa-legacy-detail h1,
.resa-legacy-detail .hero-image,
.resa-legacy-detail .bottom_bar {
    display: none !important;
}
.resa-legacy-detail {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0 15px;
}
.resa-legacy-detail .section_inside {
    display: none !important;
}
.resa-legacy-detail .pres {
    background: #fff !important;
    padding: 0 !important;
    border-radius: var(--resa-radius);
    box-shadow: var(--resa-shadow);
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
    overflow: hidden;
}
/* Neutralise les fonds gris hérités du rich text / styles globaux */
.resa-legacy-detail .pres,
.resa-legacy-detail .pres > div,
.resa-legacy-detail .text_module50,
.resa-legacy-detail .text_module50 > div,
.resa-legacy-detail .text_module50 > section,
.resa-legacy-detail .text_module50 > article {
    background-color: transparent !important;
}
.resa-legacy-detail .pres { background-color: #fff !important; }

.resa-legacy-detail .text_module50 {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--resa-text);
    margin: 0;
    padding: 0 30px 24px;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.resa-legacy-detail .text_module50 p {
    margin: 0 0 14px;
    color: var(--resa-text);
}
.resa-legacy-detail .text_module50 h2,
.resa-legacy-detail .text_module50 h3,
.resa-legacy-detail .text_module50 h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e2a3a !important;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e3e3e3;
    text-transform: none;
}
/* Force la couleur sombre pour les libellés gras / spans colorés hérités */
.resa-legacy-detail .text_module50 b,
.resa-legacy-detail .text_module50 strong,
.resa-legacy-detail .text_module50 span {
    color: inherit !important;
}
.resa-legacy-detail .text_module50 b,
.resa-legacy-detail .text_module50 strong {
    color: #1e2a3a !important;
}

/* Header "Fiche activité :" coloré à la couleur de la rubrique */
.resa-legacy-detail .pres > .nice_date:first-of-type,
.resa-legacy-detail .pres .section_inside_head .nice_date,
.resa-legacy-detail .pres > *:first-child.nice_date {
    background: var(--card-color, var(--resa-accent)) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 14px 24px !important;
    margin: 0 0 20px !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Les autres .nice_date dans la description = simples titres discrets */
.resa-legacy-detail .text_module50 .nice_date {
    background: transparent !important;
    color: #1e2a3a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0 0 6px !important;
    margin: 22px 0 12px !important;
    border-bottom: 2px solid #e3e3e3;
    border-radius: 0 !important;
}
.resa-legacy-detail .text_module50 ul,
.resa-legacy-detail .text_module50 ol {
    padding-left: 20px;
    margin: 0 0 14px;
}
.resa-legacy-detail .text_module50 li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.resa-legacy-detail .text_module50 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* Masque le bloc date/heure/places dupliqué (déjà dans le hero meta) */
.resa-legacy-detail .colonne_blog > div:first-child {
    display: none !important;
}

/* Colonne unique contenant Activité / Détails / Description / Autres infos */
.resa-legacy-detail .colonne_blog {
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--resa-radius);
    box-shadow: var(--resa-shadow);
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    box-sizing: border-box;
}
.resa-legacy-detail .colonne_blog .nice_date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--card-color, var(--resa-accent));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.resa-legacy-detail .colonne_blog .nice_date:not(:first-child) {
    margin-top: 20px;
}
.resa-legacy-detail .colonne_blog p,
.resa-legacy-detail .colonne_blog b {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--resa-text);
}
.resa-legacy-detail .colonne_blog p {
    margin: 0 0 10px;
}
.resa-legacy-detail .colonne_blog i.fas,
.resa-legacy-detail .colonne_blog i.far {
    color: var(--card-color, var(--resa-accent));
    margin-right: 6px;
}

/* Re-skin des étiquettes .table_catalogue (bloc DÉTAILS : difficulté / lieu / âge) */
.resa-legacy-detail .colonne_blog .table_catalogue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-color, var(--resa-accent));
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    margin: 4px 6px 4px 0;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.resa-legacy-detail .colonne_blog .table_catalogue i {
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}
.resa-legacy-detail .colonne_blog .table_catalogue img {
    width: 20px !important;
    height: auto;
    /* Icônes de difficulté PNG gris → passage en blanc */
    filter: brightness(0) invert(1);
}
.resa-legacy-detail .colonne_blog p a {
    color: var(--card-color, var(--resa-accent));
    text-decoration: none;
    font-weight: 500;
}
.resa-legacy-detail .colonne_blog p a:hover {
    text-decoration: underline;
}

/* Carte OpenStreetMap du lieu de rendez-vous */
.resa-detail__map {
    margin: 24px 20px 0;
    background: #fff;
    border-radius: var(--resa-radius);
    box-shadow: var(--resa-shadow);
    overflow: hidden;
}
.resa-detail__map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--resa-border);
    flex-wrap: wrap;
}
.resa-detail__map-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.resa-detail__map-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--resa-text);
}
.resa-detail__map-frame {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}
.resa-btn--ghost {
    background: #fff;
    color: var(--card-color, var(--resa-accent));
    border: 1.5px solid var(--card-color, var(--resa-accent));
    padding: 10px 18px;
    font-size: 0.9rem;
}
.resa-btn--ghost:hover {
    background: var(--card-color, var(--resa-accent));
    color: #fff !important;
}
@media (min-width: 768px) {
    .resa-detail__map { margin: 28px 30px 0; }
}

/* Cache le form legacy inline — il vit maintenant uniquement dans la modal */
.resa-legacy-detail .inscription {
    display: none;
}
.resa-modal--form .inscription {
    display: block !important;
}

/* Description longue déplacée dans la colonne unique (via JS) */
.resa-legacy-detail .resa-legacy-desc {
    margin: 24px 0;
    padding: 20px 0 4px;
    border-top: 1px solid var(--resa-border);
    border-bottom: 1px solid var(--resa-border);
}
.resa-legacy-detail .resa-legacy-desc .text_module50 {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

/* ============================================================
   Sorties similaires (même fiche activité, autres dates)
   ============================================================ */
.resa-similaires {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 15px;
}
.resa-similaires__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--resa-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.resa-similaires__title i {
    color: var(--card-color, var(--resa-accent));
}
.resa-similaires__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .resa-similaires__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .resa-similaires__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   Sticky CTA mobile : bouton Réserver fixe en bas d'écran
   ============================================================ */
.resa-sticky-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--resa-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 900;
}
.resa-sticky-cta .resa-btn {
    width: 100%;
    justify-content: center;
}
@media (max-width: 767px) {
    .resa-sticky-cta { display: block; }
    /* Laisse de la place en bas pour que le contenu ne soit pas caché */
    body { padding-bottom: 84px; }
}

/* Réduction des animations si préféré par l'utilisateur */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
