/* ======= Event page ======= */

.event-hero {
    position: relative;  
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.event-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.event-hero__content {
    position: relative;
    z-index: 2;
}

.event-hero .caption h5,
.event-hero .caption h1,
.event-hero .caption p {
    color: #fff;
}

.event-hero__description {
    margin-top: 0.75rem;
    max-width: 62ch;
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.7;
}

.event-hero__ctas {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 991px) {
    .event-hero {
        min-height: 75vh;
    }
}

.event-detail {
    background: #f5f5f5;
}

/* Sur la page Event, le HTML CMS gère déjà l’espacement.
   On évite donc d’ajouter un padding/margin supplémentaire “par dessus”. */
.event-detail.section-padding {
    padding-top: 0;
}

.event-detail .event-detail__html,
.event-detail .cms-content {
    margin-top: 0;
}

.event-detail__top {
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: clamp(1rem, 2vw, 2.5rem);
    align-items: start;
}

.event-detail__intro h2 {
    margin: 0 0 0.8rem;
    font-family: "Gilda Display", serif;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: #1e1e1e;
}

.event-detail__intro p {
    margin: 0;
    max-width: 46ch;
    line-height: 1.65;
    color: #404040;
}

.event-detail__hero-media {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    overflow: hidden;
}

.event-detail__hero-media img {
    width: 100%;
    height: clamp(230px, 28vw, 340px);
    object-fit: cover;
    display: block;
}

/* Ancien layout statique (2 colonnes) — ne pas utiliser sur le HTML CMS */
.event-detail__content {
    margin-top: clamp(1.25rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* HTML injecté depuis l'API (même rendu que le détail blog) */
.event-detail__html,
.cms-content {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-top: clamp(1.25rem, 2vw, 2rem);
}

.event-detail__html img,
.cms-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.event-detail__html iframe,
.cms-content iframe,
.event-detail__html video,
.cms-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 280px;
    display: block;
}

.event-detail__html table,
.cms-content table {
    width: 100%;
    max-width: 100%;
}

.event-detail__html h1,
.event-detail__html h2,
.event-detail__html h3,
.cms-content h1,
.cms-content h2,
.cms-content h3 {
    font-family: "Gilda Display", serif;
    color: #1e1e1e;
}

.event-detail__html p,
.cms-content p {
    line-height: 1.72;
    color: #2f2f2f;
}

/* Wrappers souvent ajoutés par l'éditeur CMS */
.event-detail__html > div,
.event-detail__html > section,
.cms-content > div,
.cms-content > section {
    width: 100%;
    max-width: 100%;
}

.event-detail__html .container,
.event-detail__html .container-fluid,
.cms-content .container,
.cms-content .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.event-detail__block h3 {
    margin: 0 0 0.45rem;
    font-family: "Gilda Display", serif;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    color: #1f1f1f;
}

.event-detail__block p {
    margin: 0;
    line-height: 1.72;
    color: #2f2f2f;
}

.event-detail__gallery {
    margin-top: clamp(1.3rem, 2.3vw, 2.2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.event-detail__gallery-item {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    overflow: hidden;
}

.event-detail__gallery-item img {
    width: 100%;
    height: clamp(190px, 22vw, 260px);
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .event-detail__top {
        grid-template-columns: 1fr;
    }

    .event-detail__intro p {
        max-width: 58ch;
    }

    .event-detail__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .event-detail__html iframe,
    .cms-content iframe {
        min-height: 200px;
    }
}

/* —— Inscription événement (participation) —— */
.event-participation-section {
    background: #f5f0e6;
}

.event-participation-section__inner {
    max-width: 480px;
    margin: 0 auto;
}

.event-participation {
    background: #fff;
    border: 1px solid #ebe6dc;
    border-radius: 14px;
    padding: 1.35rem 1.5rem 1.25rem;
    box-shadow: 0 8px 28px rgba(26, 32, 44, 0.08);
}

.event-participation__title {
    margin: 0 0 0.5rem;
    font-family: "Gilda Display", serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #1a202c;
    line-height: 1.2;
}

.event-participation__user {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #718096;
}

.event-participation__price {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #4a5568;
}

.event-participation__price strong {
    color: #b8860b;
}

.event-participation__notice {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4a5568;
}

.event-participation__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.event-participation__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-participation__field span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d3748;
}

.event-participation__field input {
    border: 1px solid #e4d6c5;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    color: #1a202c;
    background: #fff;
}

.event-participation__field input:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.event-participation__field input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.event-participation__provider {
    font-size: 0.78rem;
    color: #8a6a35;
}

.event-participation__error {
    margin: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b42318;
    font-size: 0.85rem;
    line-height: 1.4;
}

.event-participation__submit button {
    width: 100%;
}

.event-participation__login-btn a {
    display: inline-block;
}

.event-participation--pending,
.event-participation--success {
    text-align: center;
}

.event-participation__pending-icon,
.event-participation__success-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.event-participation__success-icon {
    width: 48px;
    height: 48px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: #e8f7eb;
    color: #21743a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-participation__ref-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    text-align: left;
    border: 1px solid #f0ebe3;
    border-radius: 8px;
    overflow: hidden;
}

.event-participation__ref-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f1eb;
}

.event-participation__ref-list li:last-child {
    border-bottom: 0;
}

.event-participation__ref-list span {
    color: #718096;
}

.event-participation__ref-list strong {
    color: #2d3748;
    font-variant-numeric: tabular-nums;
}

.event-participation__secondary-btn {
    width: 100%;
    border: 1px solid #d4bc8a;
    background: #fff;
    color: #8a6a35;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease;
}

.event-participation__secondary-btn:hover {
    background: #faf6ef;
}

.event-participation__actions {
    margin-top: 0.5rem;
}

.event-participation__primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #c9a227 0%, #a67c2e 100%);
    border: 1px solid #9a7b2e;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.event-participation__primary-link:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}
