
/* =========================================================
   BEN'S LINE DANCE
   EVENTS.CSS
   ---------------------------------------------------------
   PAGE ÉVÈNEMENTS
   Mobile First
   Palette harmonisée avec ABOUT / USER
   ========================================================= */


/* =========================================================
   1. PAGE
========================================================= */

.events-page {

    width: 100%;

    background: #f8f5ee;

    color: #302a24;

}


/* =========================================================
   2. HERO
========================================================= */

.events-top {

    width: 100%;

    background:
        linear-gradient(
            135deg,
            #4f624b 0%,
            #66785f 45%,
            #80694f 100%
        );

    color: #fffaf0;

    border-bottom: 1px solid #ddd5c7;

}


.events-top-inner {

    width: calc(100% - 32px);

    max-width: 1400px;

    min-height: 190px;

    margin: 0 auto;

    padding: 28px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

}


.events-top-content {

    min-width: 0;

}


.events-eyebrow {

    display: block;

    margin-bottom: 8px;

    color: #e8eee5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .15em;

}


.events-top h1 {

    margin: 0;

    color: #fffaf0;

    font-size: clamp(
        2rem,
        8vw,
        3rem
    );

    line-height: 1.05;

    letter-spacing: -.03em;

}


.events-top p {

    max-width: 620px;

    margin: 10px 0 0;

    color: rgba(
        255,
        250,
        240,
        .88
    );

    font-size: 14px;

    line-height: 1.55;

}


/* =========================================================
   HERO ICON
========================================================= */

.events-top-mark {

    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        .14
    );

    color: #fff;

    font-size: 21px;

    box-shadow:
        0 8px 22px
        rgba(
            63,
            53,
            43,
            .14
        );

}


/* =========================================================
   3. CONTENU
========================================================= */

.events-content {

    width: calc(100% - 32px);

    max-width: 1100px;

    margin: 0 auto;

    padding: 42px 0 70px;

}


/* =========================================================
   4. ENTÊTE
========================================================= */

.events-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

}


.events-section-label {

    display: block;

    margin-bottom: 8px;

    color: #667a62;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .16em;

}


.events-heading h2 {

    margin: 0;

    color: #302a24;

    font-size: clamp(
        1.55rem,
        6vw,
        2.2rem
    );

    line-height: 1.15;

    letter-spacing: -.025em;

}


.events-heading p {

    margin: 8px 0 0;

    color: #756d63;

    font-size: 14px;

}


/* =========================================================
   BOUTON ADMIN
========================================================= */

.events-add-button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border-radius: 12px;

    border: 1px solid #4b3f35;

    background: #4b3f35;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 5px 15px
        rgba(
            75,
            63,
            53,
            .16
        );

    transition:
        .2s ease;

}


.events-add-button:hover {

    background: #d8cabc;

    border-color: #b9a999;

    color: #4b3f35;

    transform: translateY(-1px);

}


/* =========================================================
   5. FILTRES
========================================================= */

.events-filters {

    margin-bottom: 28px;

    padding: 18px;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 18px;

    box-shadow:
        0 6px 20px
        rgba(
            63,
            53,
            43,
            .05
        );

}


.events-filter-form {

    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;

}


.events-search-field {

    position: relative;

}


.events-search-field i {

    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #667a62;

    pointer-events: none;

}


.events-search-field input,

.events-filter-form select {

    width: 100%;

    min-height: 48px;

    padding: 12px 15px;

    border: 1px solid #ddd5c7;

    border-radius: 12px;

    background: #fff;

    color: #302a24;

    font-family: inherit;

    font-size: 14px;

}


.events-search-field input {

    padding-left: 43px;

}


.events-search-field input:focus,

.events-filter-form select:focus {

    outline: none;

    border-color: #667a62;

    box-shadow:
        0 0 0 3px
        rgba(
            102,
            122,
            98,
            .12
        );

}


/* =========================================================
   BOUTON RECHERCHE
========================================================= */

.events-search-button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border: 1px solid #4b3f35;

    border-radius: 12px;

    background: #4b3f35;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;

}


.events-search-button:hover {

    background: #d8cabc;

    border-color: #b9a999;

    color: #4b3f35;

}


/* =========================================================
   6. LISTE
========================================================= */

.events-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


/* =========================================================
   CARTE ÉVÈNEMENT
========================================================= */

.event-card {

    overflow: hidden;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 18px;

    box-shadow:
        0 6px 20px
        rgba(
            63,
            53,
            43,
            .05
        );

    transition:
        box-shadow .25s ease,
        transform .25s ease;

}


.event-card:hover {

    box-shadow:
        0 10px 28px
        rgba(
            63,
            53,
            43,
            .09
        );

}


/* =========================================================
   CARTE PRINCIPALE
========================================================= */

.event-card-main {

    display: grid;

    grid-template-columns:
        58px
        1fr;

    gap: 15px;

    align-items: center;

    padding: 17px;

}


/* =========================================================
   DATE
========================================================= */

.event-card-date {

    width: 58px;

    height: 62px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #667a62,
            #4f624b
        );

    color: #fff;

    box-shadow:
        0 7px 16px
        rgba(
            63,
            53,
            43,
            .14
        );

}


.event-card-date strong {

    font-size: 23px;

    line-height: 1;

}


.event-card-date span {

    margin-top: 4px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}


/* =========================================================
   INFORMATIONS
========================================================= */

.event-card-info {

    min-width: 0;

}


.event-status {

    display: inline-flex;

    align-items: center;

    margin-bottom: 6px;

    padding: 4px 9px;

    border-radius: 50px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.event-status.upcoming {

    background: #e8eee5;

    color: #52654f;

}


.event-status.week {

    background: #f4ead7;

    color: #80694f;

}


.event-status.today {

    background: #e8eee5;

    color: #667a62;

}


.event-status.past {

    background: #eee9e3;

    color: #756d63;

}


.event-card-info h3 {

    margin: 0;

    color: #302a24;

    font-size: 17px;

    line-height: 1.25;

}


.event-organizer {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 5px 0 0;

    color: #756d63;

    font-size: 12px;

}


.event-organizer i {

    color: #667a62;

}


/* =========================================================
   META
========================================================= */

.event-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 7px 14px;

    margin-top: 9px;

}


.event-meta span {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #756d63;

    font-size: 12px;

}


.event-meta i {

    color: #667a62;

}


/* =========================================================
   ACTIONS
========================================================= */

.event-card-actions {

    grid-column: 1 / -1;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 7px;

    padding-top: 3px;

}


.event-action,

.event-expand-button {

    width: 39px;

    height: 39px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    border: 1px solid #e2dbd1;

    background: #f8f5ee;

    color: #594a3c;

    text-decoration: none;

    cursor: pointer;

    transition: .2s ease;

}


.event-action:hover,

.event-expand-button:hover {

    transform: translateY(-1px);

}


.event-action.edit {

    background: #eef5ff;

    border-color: #dbe8fa;

    color: #2563eb;

}


.event-action.delete {

    background: #fff0ef;

    border-color: #f4d8d5;

    color: #c62828;

}


.event-action.view {

    background: #e8eee5;

    border-color: #d7e1d3;

    color: #52654f;

}


.event-expand-button:hover,

.event-card.open .event-expand-button {

    background: #4b3f35;

    border-color: #4b3f35;

    color: #fff;

}


/* =========================================================
   7. DÉTAILS EXPANSIBLES
========================================================= */

.event-details {

    display: grid;

    grid-template-columns: 1fr;

    gap: 22px;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    padding: 0 17px;

    background: #faf8f4;

    border-top: 1px solid transparent;

    transition:
        max-height .4s ease,
        opacity .3s ease,
        padding .3s ease,
        border-color .3s ease;

}


.event-card.open .event-details {

    max-height: 1400px;

    opacity: 1;

    visibility: visible;

    padding: 22px 17px;

    border-color: #ddd5c7;

}


/* =========================================================
   IMAGE
========================================================= */

.event-details-image img {

    display: block;

    width: 100%;

    height: 210px;

    object-fit: cover;

    border-radius: 16px;

    border: 1px solid #ddd5c7;

    box-shadow:
        0 8px 25px
        rgba(
            63,
            53,
            43,
            .10
        );

}


/* =========================================================
   DESCRIPTION
========================================================= */

.event-details-description h3 {

    margin: 0 0 10px;

    color: #302a24;

    font-size: 22px;

}


.event-details-description p {

    margin: 0;

    color: #756d63;

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   INFOS
========================================================= */

.event-details-info {

    display: flex;

    flex-direction: column;

    gap: 0;

}


.event-detail {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #e4ded5;

}


.event-detail strong {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #594a3c;

    font-size: 13px;

}


.event-detail strong i {

    width: 17px;

    color: #667a62;

    text-align: center;

}


.event-detail span {

    flex: 1;

    color: #756d63;

    font-size: 13px;

    text-align: right;

    word-break: break-word;

}


/* =========================================================
   BOUTON FICHE
========================================================= */

.event-details-button {

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: 17px;

    padding: 12px 18px;

    border-radius: 12px;

    background: #4b3f35;

    border: 1px solid #4b3f35;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: .2s ease;

}


.event-details-button:hover {

    background: #d8cabc;

    border-color: #b9a999;

    color: #4b3f35;

}


/* =========================================================
   8. ÉTAT VIDE
========================================================= */

.events-empty {

    padding: 55px 25px;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 18px;

    text-align: center;

}


.events-empty-icon {

    width: 64px;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 17px;

    border-radius: 50%;

    background: #e8eee5;

    color: #667a62;

    font-size: 25px;

}


.events-empty h3 {

    margin: 0 0 7px;

    color: #302a24;

    font-size: 21px;

}


.events-empty p {

    margin: 0;

    color: #756d63;

    font-size: 14px;

}


/* =========================================================
   9. PAGINATION
========================================================= */

.events-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin: 32px 0;

}


.events-page-button {

    min-width: 42px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 13px;

    border-radius: 11px;

    border: 1px solid #ddd5c7;

    background: #fff;

    color: #594a3c;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: .2s ease;

}


.events-page-button:hover,

.events-page-button.active {

    background: #4b3f35;

    border-color: #4b3f35;

    color: #fff;

}


/* =========================================================
   10. CONTACT
========================================================= */

.events-contact {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;

    margin-top: 40px;

    padding: 27px 22px;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 20px;

    box-shadow:
        0 8px 25px
        rgba(
            63,
            53,
            43,
            .06
        );

    text-align: center;

}


.events-contact-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e8eee5;

    color: #667a62;

    font-size: 23px;

}


.events-contact-content {

    min-width: 0;

}


.events-contact-content h2 {

    margin: 0 0 8px;

    color: #302a24;

    font-size: 22px;

    line-height: 1.2;

}


.events-contact-content p {

    max-width: 650px;

    margin: 0;

    color: #756d63;

    font-size: 14px;

    line-height: 1.65;

}


.events-contact-button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border-radius: 12px;

    background: #4b3f35;

    border: 1px solid #4b3f35;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition: .2s ease;

}


.events-contact-button:hover {

    background: #d8cabc;

    border-color: #b9a999;

    color: #4b3f35;

}


/* =========================================================
   11. TABLETTE
========================================================= */

@media (min-width: 576px) {

    .events-top-inner {

        min-height: 210px;

        padding: 38px 0;

    }


    .events-content {

        padding-top: 55px;

    }


    .events-filter-form {

        grid-template-columns:
            2fr
            1fr;

    }


    .events-search-button {

        grid-column: span 2;

    }


    .event-card-main {

        grid-template-columns:
            64px
            1fr
            auto;

        padding: 20px;

    }


    .event-card-date {

        width: 64px;

        height: 66px;

    }


    .event-card-actions {

        grid-column: auto;

        padding-top: 0;

    }


    .event-details {

        padding-left: 20px;

        padding-right: 20px;

    }


    .event-card.open .event-details {

        padding: 25px 20px;

    }

}


/* =========================================================
   12. TABLETTE LARGE
========================================================= */

@media (min-width: 768px) {

    .events-top-inner {

        width: calc(100% - 48px);

    }


    .events-content {

        width: calc(100% - 48px);

    }


    .events-filter-form {

        grid-template-columns:
            2fr
            1fr
            1fr
            1fr
            auto;

    }


    .events-search-button {

        grid-column: auto;

    }


    .event-details {

        grid-template-columns:
            250px
            1fr
            280px;

        gap: 25px;

        align-items: start;

    }


    .event-details-image img {

        height: 190px;

    }


    .events-contact {

        flex-direction: row;

        text-align: left;

        align-items: center;

        padding: 30px;

    }


    .events-contact-content {

        flex: 1;

    }


    .events-contact-button {

        flex: 0 0 auto;

    }

}


/* =========================================================
   13. DESKTOP
========================================================= */

@media (min-width: 992px) {

    .events-top-inner {

        width: calc(100% - 32px);

        max-width: 1400px;

        min-height: 190px;

        height: 190px;

        padding: 32px 0;

    }


    .events-top-mark {

        width: 60px;

        height: 60px;

        flex-basis: 60px;

        font-size: 24px;

    }


    .events-content {

        max-width: 1100px;

        padding-top: 65px;

        padding-bottom: 100px;

    }


    .events-filter-form {

        gap: 10px;

    }


    .event-card-main {

        padding: 20px 22px;

    }


    .event-details {

        grid-template-columns:
            280px
            1fr
            300px;

        gap: 30px;

        padding-left: 22px;

        padding-right: 22px;

    }


    .event-card.open .event-details {

        padding:
            28px 22px;

    }


    .event-details-image img {

        height: 210px;

    }


    .events-contact {

        margin-top: 50px;

        padding: 35px;

    }

}


/* =========================================================
   14. PETIT MOBILE
========================================================= */

@media (max-width: 400px) {

    .events-top-inner {

        width: calc(100% - 24px);

        min-height: 190px;

        padding: 22px 0;

        gap: 12px;

    }


    .events-top h1 {

        font-size: 1.85rem;

    }


    .events-top p {

        font-size: 13px;

        line-height: 1.45;

    }


    .events-top-mark {

        width: 46px;

        height: 46px;

        flex-basis: 46px;

        font-size: 18px;

    }


    .events-content {

        width: calc(100% - 24px);

    }


    .event-card-main {

        gap: 12px;

        padding: 14px;

    }


    .event-card-date {

        width: 53px;

        height: 58px;

    }


    .event-card-date strong {

        font-size: 21px;

    }


    .event-card-info h3 {

        font-size: 15px;

    }


    .event-meta {

        gap: 5px 10px;

    }


    .event-meta span {

        font-size: 11px;

    }


    .event-action,

    .event-expand-button {

        width: 36px;

        height: 36px;

    }

}


/* =========================================================
   15. RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .event-card,
    .events-add-button,
    .events-search-button,
    .event-action,
    .event-expand-button,
    .event-details,
    .events-page-button,
    .events-contact-button {

        transition: none;

    }

}


/*=====================================================
                IMAGE — APERÇU ÉVÈNEMENT
======================================================*/

.expand-left{

    width:100%;
    min-width:0;

    display:flex;
    align-items:flex-start;
    justify-content:center;

}

/* =====================================================
   IMAGE DE L'ÉVÈNEMENT
   S'adapte toujours à l'espace disponible
===================================================== */

.event-image {

    width: 100%;
    max-width: 100%;

    height: 220px;

    display: block;

    object-fit: contain;
    object-position: center;

    border-radius: 18px;

    border: 1px solid var(--border);

    background: #f3eee4;

    box-shadow:
        0 12px 35px rgba(0,0,0,.10);

    transition: .35s ease;

}


/*=====================================================
                HOVER IMAGE
======================================================*/

.event-image:hover{

    transform:scale(1.02);

}

@media(max-width:992px){

    .table-header{

        display:none;

    }

    .table-row{

        display:flex;

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

        padding:25px;

    }

    .actions{

        width:100%;

        justify-content:flex-end;

    }

    .event-date{

        width:50px;

        height:50px;

    }

    .event-expand{

        grid-template-columns:1fr;

        padding:25px;

    }

    .event-image{

        width:100%;

        max-width:420px;

        height:auto;

        max-height:300px;

        object-fit:contain;

        margin:0 auto;

    }

    .expand-right{

        margin-top:15px;

    }

}

@media(max-width:576px){

    .events-page{

        padding:0px 0;

    }

    .event-expand{

        padding:20px;

    }

    .expand-left{

        width:100%;

    }

    .event-image{

        width:100%;

        max-width:100%;

        height:auto;

        max-height:220px;

        object-fit:contain;

        border-radius:14px;

    }

    .detail-item{

        flex-direction:column;

        gap:8px;

    }

    .detail-item span{

        text-align:left;

    }

    .actions{

        justify-content:center;

        flex-wrap:wrap;

    }

    .page-btn{

        min-width:42px;

        height:42px;

    }

}
@media(max-width:992px){

    .event-image{

        width:100%;
        max-width:100%;
        height:220px;

        object-fit:contain;

    }

}

@media(max-width:576px){

    .event-image{

        height:180px;

    }

}


/* ==========================================================
   MODAL ÉVÈNEMENT
   BEN'S LINE DANCE
   FIX — CENTRÉ ÉCRAN DESKTOP + MOBILE
========================================================== */

.event-modal {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;

    background: rgba(48, 42, 36, .68);

    z-index: 99999 !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}


.event-modal.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==========================================================
   CONTENEUR DU MODAL
========================================================== */

.event-modal-content {

    position: relative !important;

    width: min(100%, 900px) !important;

    max-width: 900px !important;

    max-height: calc(100vh - 40px) !important;

    margin: 0 !important;

    overflow-y: auto;

    background: #fffdf8;

    border: 1px solid #ddd5c7;

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(63,53,43,.30);

    transform: translateY(15px) scale(.98);

    transition:
        transform .25s ease;

}


.event-modal.active .event-modal-content {

    transform:
        translateY(0) scale(1);

}


/* ==========================================================
   BOUTON FERMER
========================================================== */

.event-modal-close {

    position: absolute !important;

    top: 15px;
    right: 15px;

    z-index: 10;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: rgba(255,253,248,.94);

    color: #3f352b;

    font-size: 19px;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(63,53,43,.15);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.event-modal-close:hover {

    background: #667a62;

    color: #fffdf8;

    transform: rotate(90deg);

}


/* ==========================================================
   IMAGE DU MODAL
========================================================== */

.event-modal-image {

    width: 100%;

    aspect-ratio: 16 / 7;

    overflow: hidden;

    background: #e8eee5;

}


.event-modal-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

}


/* ==========================================================
   CONTENU
========================================================== */

.event-modal-body {

    padding: 28px;

}


.event-modal-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: #667a62;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .15em;

}


.event-modal-title {

    margin: 0 0 20px;

    color: #302a24;

    font-size: clamp(24px, 4vw, 34px);

    line-height: 1.15;

    font-weight: 800;

}


/* ==========================================================
   INFORMATIONS
========================================================== */

.event-modal-info {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

}


.event-modal-info-item {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 13px;

    background: #f5f1e8;

    border: 1px solid #ddd5c7;

    border-radius: 13px;

}


.event-modal-info-item i {

    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #e8eee5;

    color: #667a62;

}


.event-modal-info-item div {

    min-width: 0;

}


.event-modal-info-item small {

    display: block;

    margin-bottom: 3px;

    color: #756d63;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .06em;

}


.event-modal-info-item strong {

    display: block;

    color: #302a24;

    font-size: 13px;

    overflow-wrap: anywhere;

}


/* ==========================================================
   DESCRIPTION
========================================================== */

.event-modal-description {

    margin-top: 20px;

    color: #302a24;

    font-size: 14px;

    line-height: 1.75;

}


.event-modal-description p {

    margin: 0;

}


/* ==========================================================
   BOUTON FICHE
========================================================== */

.event-modal-footer {

    display: flex;

    justify-content: center;

    margin-top: 24px;

}


.event-modal-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 11px 23px;

    border-radius: 50px;

    background: #3f352b;

    color: #fffdf8;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;

}


.event-modal-button:hover {

    background: #594a3c;

    transform: translateY(-2px);

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .event-modal {

        align-items: center !important;
        justify-content: center !important;

        padding: 12px !important;

    }


    .event-modal-content {

        width: 100% !important;

        max-width: none !important;

        max-height: calc(100vh - 24px) !important;

        border-radius: 18px;

    }


    .event-modal-image {

        aspect-ratio: 16 / 9;

    }


    .event-modal-body {

        padding: 20px;

    }


    .event-modal-title {

        font-size: 24px;

        padding-right: 35px;

    }


    .event-modal-info {

        grid-template-columns: 1fr;

        gap: 8px;

    }


    .event-modal-info-item {

        min-height: 58px;

    }


    .event-modal-description {

        font-size: 13px;

    }


    .event-modal-footer {

        margin-top: 20px;

    }


    .event-modal-button {

        width: 100%;

    }

}


/* ==========================================================
   EMPÊCHE LE SCROLL DE LA PAGE DERRIÈRE LE MODAL
========================================================== */

body.modal-open {

    overflow: hidden !important;

}

/* ============================================================
                       MODAL ÉVÈNEMENT
   ============================================================ */


/*
|--------------------------------------------------------------------------
| BODY BLOQUÉ
|--------------------------------------------------------------------------
*/

body.event-modal-open {
    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| CONTENEUR PRINCIPAL
|--------------------------------------------------------------------------
*/

.event-modal {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    z-index: 99999 !important;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}


/*
|--------------------------------------------------------------------------
| MODAL OUVERT
|--------------------------------------------------------------------------
*/

.event-modal.open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}


/*
|--------------------------------------------------------------------------
| OVERLAY
|--------------------------------------------------------------------------
*/

.event-modal-overlay {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100dvh !important;

    background: rgba(0, 0, 0, .72);

    z-index: 1;

}


/*
|--------------------------------------------------------------------------
| FENÊTRE
|--------------------------------------------------------------------------
*/

.event-modal-dialog {

    position: relative !important;

    z-index: 2;

    width: min(
        1100px,
        calc(100vw - 40px)
    );

    max-height: calc(100dvh - 60px);

    margin: 0 !important;

    background: #f5efe5;

    border-radius: 22px;

    overflow-y: auto;

    overflow-x: hidden;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .45);

    transform: translateY(20px) scale(.97);

    transition:
        transform .25s ease;

}


/*
|--------------------------------------------------------------------------
| ANIMATION OUVERT
|--------------------------------------------------------------------------
*/

.event-modal.open .event-modal-dialog {

    transform:
        translateY(0)
        scale(1);

}


/*
|--------------------------------------------------------------------------
| BOUTON FERMER
|--------------------------------------------------------------------------
*/

.event-modal-close {

    position: absolute !important;

    top: 16px;
    right: 16px;

    z-index: 20;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: #5b3926;

    color: #fff;

    font-size: 20px;

    transition:
        transform .2s ease,
        background .2s ease;

}


.event-modal-close:hover {

    transform: scale(1.08);

    background: #3f281b;

}


/*
|--------------------------------------------------------------------------
| CORPS
|--------------------------------------------------------------------------
*/

.event-modal-body {

    width: 100%;

    padding: 0;

}


/*
|--------------------------------------------------------------------------
| CONTENU
|--------------------------------------------------------------------------
*/

.modal-event-content {

    display: grid;

    grid-template-columns:
        minmax(300px, .9fr)
        minmax(400px, 1.1fr);

    gap: 0;

}


/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

.modal-event-image {

    width: 100%;

    min-height: 500px;

    background: #ded4c5;

}


.modal-event-image img {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 500px;

    object-fit: cover;

}


/*
|--------------------------------------------------------------------------
| INFORMATIONS
|--------------------------------------------------------------------------
*/

.modal-event-info {

    padding: 55px 45px 45px;

}


/*
|--------------------------------------------------------------------------
| TITRE
|--------------------------------------------------------------------------
*/

.modal-event-info h2 {

    margin: 12px 0 20px;

    color: #4b2f20;

    font-size: clamp(
        28px,
        4vw,
        42px
    );

    line-height: 1.1;

}


/*
|--------------------------------------------------------------------------
| DESCRIPTION
|--------------------------------------------------------------------------
*/

.modal-description {

    margin: 0 0 28px;

    color: #5f5148;

    font-size: 16px;

    line-height: 1.7;

}


/*
|--------------------------------------------------------------------------
| DÉTAILS
|--------------------------------------------------------------------------
*/

.modal-event-details {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


/*
|--------------------------------------------------------------------------
| UNE INFO
|--------------------------------------------------------------------------
*/

.modal-event-details > div {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    padding: 14px;

    background: rgba(255, 255, 255, .55);

    border: 1px solid rgba(91, 57, 38, .12);

    border-radius: 12px;

}


/*
|--------------------------------------------------------------------------
| ICÔNES
|--------------------------------------------------------------------------
*/

.modal-event-details > div > i {

    flex: 0 0 20px;

    margin-top: 3px;

    color: #8a684f;

    font-size: 17px;

}


/*
|--------------------------------------------------------------------------
| TEXTE
|--------------------------------------------------------------------------
*/

.modal-event-details span {

    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;

    color: #4b2f20;

    font-size: 15px;

    font-weight: 600;

    overflow-wrap: anywhere;

}


.modal-event-details small {

    color: #8a684f;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

}


/*
|--------------------------------------------------------------------------
| STATUT
|--------------------------------------------------------------------------
*/

.modal-event-info .event-status {

    display: inline-flex;

    width: fit-content;

}


/*
|--------------------------------------------------------------------------
| TABLETTE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .event-modal-dialog {

        width: min(
            760px,
            calc(100vw - 30px)
        );

        max-height: calc(100dvh - 30px);

        border-radius: 18px;

    }


    .modal-event-content {

        grid-template-columns: 1fr;

    }


    .modal-event-image {

        min-height: 280px;

        height: 280px;

    }


    .modal-event-image img {

        min-height: 280px;

        height: 280px;

    }


    .modal-event-info {

        padding: 35px 30px 30px;

    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .event-modal {

        align-items: center !important;

        justify-content: center !important;

        padding: 12px !important;

    }


    .event-modal-dialog {

        width: calc(100vw - 24px) !important;

        max-width: none !important;

        max-height: calc(100dvh - 24px) !important;

        border-radius: 16px;

    }


    .modal-event-content {

        display: block;

    }


    .modal-event-image {

        height: 210px;

        min-height: 210px;

    }


    .modal-event-image img {

        height: 210px;

        min-height: 210px;

        object-fit: cover;

    }


    .modal-event-info {

        padding: 30px 20px 22px;

    }


    .modal-event-info h2 {

        padding-right: 35px;

        font-size: 28px;

        line-height: 1.15;

    }


    .modal-description {

        font-size: 15px;

        line-height: 1.6;

    }


    .modal-event-details {

        grid-template-columns: 1fr;

        gap: 9px;

    }


    .modal-event-details > div {

        padding: 12px;

    }


    .event-modal-close {

        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 18px;

    }

}


/*
|--------------------------------------------------------------------------
| TRÈS PETITS ÉCRANS
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .event-modal {

        padding: 8px !important;

    }


    .event-modal-dialog {

        width: calc(100vw - 16px) !important;

        max-height: calc(100dvh - 16px) !important;

    }


    .modal-event-image {

        height: 180px;

        min-height: 180px;

    }


    .modal-event-image img {

        height: 180px;

        min-height: 180px;

    }


    .modal-event-info {

        padding: 25px 16px 18px;

    }


    .modal-event-info h2 {

        font-size: 25px;

    }

}

/* =========================================================
   MODAL ÉVÈNEMENT — IMAGE MOBILE COMPLÈTE
   ========================================================= */

.modal-event-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-event-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .modal-event-image {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .modal-event-image img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

}
/* =========================================================
   IMAGE — EXPANSION DE LA CARTE
   L'image s'adapte entièrement à l'espace disponible
   ========================================================= */

.event-details-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.event-details-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .event-details-image {
        width: 100%;
        height: auto;
    }

    .event-details-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 240px;
        object-fit: contain;
    }

}