/*==================================================
    SECTION PRINCIPALE
==================================================*/

.opening_section{
    width:100%;
    max-width:1300px;
    margin:20px auto;
    padding:20px;
    display:flex;
    flex-direction: column;
    gap: 28px;
    color:#ffffff;
}

/*==================================================
    LIGNE DU HAUT : Titre+badges / Statut / Horloge
==================================================*/

.hero_top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    width:100%;
    flex-wrap: wrap;
}

/*==================================================
    COLONNE GAUCHE : TITRE + SOUS-TITRE + BADGES
==================================================*/

.hero_left{
    flex:1 1 460px;
    min-width:280px;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.titlehoraire{
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    line-height: 1.15;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin:0;
    transition: color .3s ease;
}

.titlehoraire span{
    color: #ffd600;
    transition: color .3s ease;
}

.hero_subtitle{
    margin:0;
    font-size:1.05rem;
    font-weight: bold;
    color:#c9c9d1;
    font-weight:500;
}

.hero_subtitle .bolt{
    display:inline-block;
    filter: drop-shadow(0 0 6px rgba(255,214,0,.6));
}

/*==================================================
    BADGES DE CARACTÉRISTIQUES
==================================================*/

.feature_badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:4px;
    width: 100%;
}

.feature_badge{
    display:flex;
    align-items:center;
    justify-content:center; /* Centre le contenu horizontalement */
    gap:8px;
    background: rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:12px;
    padding:8px 12px;
    white-space:nowrap;
    transition: all .3s ease;
    flex: 1 1 0; /* Tous les badges ont la même largeur */
    min-width: 0; /* Permet aux badges de rétrécir si nécessaire */
    max-width: 100%;
    text-align: center; /* Centre le texte */
}

.feature_badge:hover{
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,214,0,0.3);
    transform: translateY(-2px);
}

.feature_icon{
    width:26px;
    height:26px;
    min-width:26px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
}

.feature_icon.icon_cal{ background:rgba(255,214,0,.15); color:#ffd600; }
.feature_icon.icon_coach{ background:rgba(255,214,0,.15); color:#ffd600; }
.feature_icon.icon_amb{ background:rgba(255,214,0,.15); color:#ffd600; }

.feature_text{
    display:flex;
    flex-direction:column;
    line-height:1.2;
    align-items: center; /* Centre le texte verticalement */
    text-align: center; /* Centre le texte */
    flex-shrink: 1; /* Permet au texte de rétrécir si nécessaire */
    min-width: 0; /* Permet au texte de rétrécir */
}
.feature_title{
    font-size:.72rem;
    font-weight: 700;
    color:#ffffff;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.feature_sub{
    font-size:.64rem;
    color:#9a9aa5;
    white-space: nowrap; /* Empêche le retour à la ligne */
}
/*==================================================
    COLONNE CENTRALE : STATUT + COMPTE À REBOURS
==================================================*/

.opening_infos{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:22px;
    padding: 18px 28px;
    gap: 8px;
    transition: transform 0.4s ease;
    min-width: 300px;
}

.opening_infos:hover{
    transform: translateY(-4px);
    border-color: rgba(255,214,0,.2);
}

/*==================================================
    STATUT
==================================================*/

.status_line{
    display:flex;
    justify-content: center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    font-size:18px;
    transition: all 0.3s ease;
    white-space:nowrap;
}

.status_dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background: #00d96f;
    box-shadow:0 0 15px #00d96f;
    transition: all 0.4s ease;
}

.status_dot.ferme{
    background: #ff4444;
    box-shadow:0 0 15px #ff4444;
}

#status{
    font-weight: 700;
    transition: color 0.3s ease;
}

#message{
    color:#ffd34e;
    font-weight: 700;
    transition: all 0.3s ease;
}

.separator{
    width:1px;
    height:16px;
    background:rgba(255,255,255,.20);
}

/*==================================================
    HORLOGE DIGITALE (COMPTE À REBOURS)
==================================================*/

.digital_clock{
    margin-top:8px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-family: 'Courier New', monospace;
}

.digit_col{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    min-width:62px;
}

.digit_value{
    font-size:60px;
    font-weight: 700;
    letter-spacing:1px;
    color:#ffffff;
    line-height:1;
    text-shadow:
        0 0 8px rgba(255,255,255,.20),
        0 0 18px rgba(255,255,255,.10);
    transition: all 0.3s ease;
}

.opening_infos:hover .digit_value{
    color:#ffd600;
    text-shadow:
        0 0 15px rgba(255,214,0,.5),
        0 0 30px rgba(255,214,0,.3);
}

.digit_label{
    font-size:11px;
    color:#8a8a92;
    letter-spacing:2px;
    font-family: Arial, sans-serif;
}

.digit_colon{
    font-size:38px;
    font-weight:300;
    color:#555;
    line-height:1;
    align-self:flex-start;
    margin-top:2px;
}

/*==================================================
    HORAIRES INFO
==================================================*/

.horaires-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.horaire-label{
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.horaire-plage{
    font-size: 20px;
    font-weight: 700;
    color: #ffd600;
    text-shadow: 0 0 15px rgba(255,214,0,.3);
}

/*==================================================
    HORLOGE ANALOGIQUE
==================================================*/

.opening_clock{
    flex:0 0 auto;
    width:200px;
    height:200px;
    display:flex;
    justify-content:center;
    align-items:center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.opening_clock:hover{
    transform: scale(1.06) rotate(-3deg);
}

.clock{
    width:200px;
    height:200px;
    position:relative;
    border-radius:50%;
    border:6px solid #ffd600;
    box-shadow:
        inset 0 0 25px rgba(255,255,255,.08),
        0 0 45px rgba(255,214,0,.35),
        0 10px 35px rgba(0,0,0,.35);
    transition: all 0.5s ease;
}

.opening_clock:hover .clock{
    box-shadow:
        inset 0 0 40px rgba(255,214,0,.15),
        0 0 70px rgba(255,214,0,.5),
        0 15px 45px rgba(0,0,0,.5);
}

.clock::before{
    content:"";
    position:absolute;
    inset:10px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.25);
}

.clock span{
    position:absolute;
    font-size:19px;
    font-weight: 700;
    color:#ffffff;
}

.n12{ top:14px; left:50%; transform:translateX(-50%); }
.n3{ right:16px; top:50%; transform:translateY(-50%); }
.n6{ bottom:14px; left:50%; transform:translateX(-50%); }
.n9{ left:16px; top:50%; transform:translateY(-50%); }

.center{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#00d96f;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:10;
    box-shadow:0 0 15px #00d96f;
}

.center.ferme{
    background:#ff4444;
    box-shadow:0 0 15px #ff4444;
}

.hand{
    position:absolute;
    left:50%;
    bottom:50%;
    transform-origin:bottom center;
    border-radius:20px;
}

.hour{ width:5px; height:40px; background:#ffffff; }
.minute{ width:3px; height:58px; background:#d7d7d7; }
.second{ width:2px; height:66px; background:#ffd600; }

/*==================================================
    EN-TÊTE ÉVÈNEMENTS
==================================================*/

.events_header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:20px;
    flex-wrap: wrap;
    gap: 14px;
}

.events_title{
    position:relative;
    font-size:1.3rem;
    font-weight: 700;
    color:#ffffff;
    text-transform:uppercase;
    letter-spacing:1px;
    margin:0;
    padding-bottom:10px;
}

.events_title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:38px;
    height:3px;
    background:#ffd600;
    border-radius:3px;
}

.btn_voir_tous{
    display:flex;
    align-items:center;
    gap:8px;
    color:#ffd600;
    font-weight: 700;
    font-size:.85rem;
    text-transform:uppercase;
    letter-spacing:.5px;
    text-decoration:none;
    background: rgba(255,214,0,.08);
    border:1px solid rgba(255,214,0,.3);
    border-radius:30px;
    padding:10px 18px;
    transition: all .3s ease;
    white-space:nowrap;
}

.btn_voir_tous:hover{
    background: rgba(255,214,0,.18);
    transform: translateX(3px);
}

/*==================================================
    DEUXIÈME LIGNE : Événements Grid
==================================================*/

.opening_row_bottom{
    width: 100%;
}

.events-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    justify-content: center;
}

/*==================================================
    CARTE ÉVÉNEMENT
==================================================*/

.event-countdown-item{
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display:flex;
    flex-direction:column;
}

.event-countdown-item:hover{
    border-color: rgba(255,214,0,0.3);
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(255,214,0,0.1);
}

/* Bandeau image - HAUTEUR AUGMENTÉE */
.event-media{
    position:relative;
    height: 200px; /* Augmenté de 130px à 200px */
    width:100%;
    background-size:cover;
    background-position:center;
    background-color:#1c1c22;
}

.event-media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(10,10,14,.85) 100%);
}

.event-badge{
    position:absolute;
    top:14px;
    left:14px;
    z-index:2;
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:20px;
    font-size:.68rem;
    font-weight: 800;
    letter-spacing:1px;
    text-transform:uppercase;
    backdrop-filter: blur(4px);
}

.event-badge .dot{
    width:7px;
    height:7px;
    border-radius:50%;
    display:inline-block;
}

.event-badge.cat-football,
.event-badge.cat-boxe,
.event-badge.cat-bienetre{ 
    background:rgba(255,214,0,.9); 
    color:#161616; 
}

.event-badge.cat-football .dot,
.event-badge.cat-boxe .dot,
.event-badge.cat-bienetre .dot{ 
    background:#161616; 
}

.event-date-badge{
    position:absolute;
    top:12px;
    right:12px;
    z-index:2;
    background: rgba(10,10,14,.75);
    font-weight: bold;
    border:1px solid rgba(255,255,255,.15);
    border-radius:12px;
    padding:6px 12px;
    text-align:center;
    min-width:64px;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.event-date-day{
    display: block;
    font-size: .55rem;
    font-weight: 700;
    color: #c9c9d1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-num{
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.event-date-month{
    display: block;
    font-size: .55rem;
    font-weight: 700;
    color: #c9c9d1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-heure{
    display: block;
    font-size: .6rem;
    font-weight: 700;
    color: #ffd600;
    margin-top: 2px;
}

/* Corps de la carte */
.event-countdown-header{
    padding: 14px 18px 4px;
}

.event-countdown-header h3{
    font-size: 17px;
    color: #ffffff;
    margin: 0 0 6px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.event-countdown-item:hover .event-countdown-header h3{
    color: #ffd600;
}

.event-countdown-desc{
    font-size: 13px;
    color: #9a9aa5;
    line-height:1.4;
    margin-bottom: 4px;
}

.event-lieu{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ffd600;
    font-weight: 600;
    margin-top: 4px;
    padding: 0 18px 16px; /* Ajout de padding-bottom pour remplacer l'espace du chronomètre */
}

.event-lieu i{
    font-size: 11px;
}

/* Le chronomètre a été complètement supprimé */
/* La classe .event-countdown-timer et ses enfants ont été retirées */

/* État vide */
.no-events{
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 40px;
    font-size: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    border: 1px dashed rgba(255,255,255,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.events-grid:has(.event-countdown-item:only-child) {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
}

.events-grid:has(.event-countdown-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
}

/*==================================================
    BARRE DE CONFIANCE
==================================================*/
/* ==================================================
   BARRE DE CONFIANCE - VERSION AMÉLIORÉE
   ================================================== */
/* ==================================================
   BARRE DE CONFIANCE - VERSION AMÉLIORÉE
   ================================================== */

.trust_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 26px;
}

.trust_item {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu horizontalement */
    gap: 12px;
    flex: 1 1 0; /* Tous les items ont la même largeur */
    min-width: 0; /* Permet aux items de rétrécir si nécessaire */
    max-width: 100%;
    text-align: center; /* Centre le texte */
}

.trust_icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(255, 214, 0, 0.1);
    color: #ffd600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
}

.trust_text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    align-items: center; /* Centre le texte verticalement */
    text-align: center; /* Centre le texte */
    flex-shrink: 1; /* Permet au texte de rétrécir si nécessaire */
    min-width: 0; /* Permet au texte de rétrécir */
}

.trust_text strong {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.trust_text span {
    font-size: 0.72rem;
    color: #9a9aa5;
    white-space: nowrap; /* Empêche le retour à la ligne */
}
/* ==================================================
   RESPONSIVE - MOBILES (≤768px) - OBLIGATOIRE 2 COLONNES
   ================================================== */
/* ==================================================
   RESPONSIVE - MOBILES (≤768px) - OBLIGATOIRE 2 COLONNES
   ================================================== */

@media (max-width: 768px) {
    /* ============================================
       BARRE DE CONFIANCE - 2 COLONNES AVEC DERNIER CENTRÉ
       ============================================ */
    .trust_bar { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonnes égales */
        gap: 14px !important;
        padding: 16px 14px !important;
        border-radius: 16px !important;
        justify-items: center !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .trust_item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Centre horizontalement */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* Le 5ème item (dernier) sera centré sur sa propre ligne */
    .trust_item:nth-child(5) {
        grid-column: 1 / -1; /* S'étend sur toute la largeur */
        justify-self: center; /* Se centre horizontalement */
        max-width: 50%; /* Limite la largeur pour un meilleur rendu */
        margin: 0 auto; /* Centre avec la marge auto */
    }
    
    /* Centre le texte dans chaque item */
    .trust_item .trust_text {
        text-align: center !important;
        align-items: center !important;
    }
    
    .trust_icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
    
    .trust_text strong {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
    
    .trust_text span {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
}
/* ==================================================
   RESPONSIVE - PETITS MOBILES (≤480px)
   ================================================== */
/* ==================================================
   RESPONSIVE - PETITS MOBILES (≤480px)
   ================================================== */

@media (max-width: 480px) {
    .trust_bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Toujours 2 colonnes */
        gap: 10px !important;
        padding: 12px 10px !important;
        border-radius: 14px !important;
        justify-items: center !important;
    }
    
    .trust_item {
        gap: 8px !important;
        justify-content: center !important;
    }
    
    /* Le 5ème item centré */
    .trust_item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .trust_icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 12px !important;
    }
    
    .trust_text strong {
        font-size: 0.7rem !important;
    }
    
    .trust_text span {
        font-size: 0.6rem !important;
    }
}
/* ==================================================
   TRÈS PETITS ÉCRANS (≤380px) - 2 COLONNES OBLIGATOIRE
   ================================================== */
/* ==================================================
   TRÈS PETITS ÉCRANS (≤380px) - 2 COLONNES OBLIGATOIRE
   ================================================== */

@media (max-width: 380px) {
    .trust_bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Toujours 2 colonnes */
        gap: 8px !important;
        padding: 10px 8px !important;
        border-radius: 12px !important;
        justify-items: center !important;
    }
    
    .trust_item {
        gap: 6px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important; /* Garde tout sur une ligne */
    }
    
    /* Le 5ème item centré */
    .trust_item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .trust_icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 10px !important;
    }
    
    .trust_text strong {
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }
    
    .trust_text span {
        font-size: 0.5rem !important;
        white-space: nowrap !important;
    }
}
/* ==================================================
   ÉCRANS ≤ 344px - 2 COLONNES OBLIGATOIRE
   ================================================== */
/* ==================================================
   ÉCRANS ≤ 344px - 2 COLONNES OBLIGATOIRE
   ================================================== */

@media (max-width: 344px) {
    .trust_bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 COLONNES OBLIGATOIRES */
        gap: 6px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
        justify-items: center !important;
        align-items: center !important;
    }
    
    .trust_item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important; /* Empêche le retour à la ligne */
        padding: 2px 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
    
    /* Le 5ème item centré */
    .trust_item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .trust_icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 8px !important;
        border-radius: 50% !important;
        background: rgba(255, 214, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .trust_text {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.1 !important;
        text-align: center !important;
        align-items: center !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    
    .trust_text strong {
        font-size: 0.5rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.2px !important;
    }
    
    .trust_text span {
        font-size: 0.4rem !important;
        color: #9a9aa5 !important;
        white-space: nowrap !important;
        letter-spacing: 0.2px !important;
    }
}

/*==================================================
    RESPONSIVE - TABLETTES (≤1100px)
==================================================*/

@media(max-width:1100px){
    .hero_top{
        flex-wrap:wrap;
        justify-content:center;
    }
    
    .hero_left{
        order:1;
        flex-basis:100%;
        text-align:center;
        align-items:center;
    }
    
    .titlehoraire{ 
        text-align:center; 
        font-size: 2rem;
    }
    
    .feature_badges{ 
        justify-content:center; 
    }
    
    .opening_infos{ 
        order:2; 
        min-width: 280px;
    }
    
    .opening_clock{ 
        order:3; 
    }
    
    .events-grid{ 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/*==================================================
    RESPONSIVE - PETITES TABLETTES (≤900px)
==================================================*/

@media(max-width:900px){
    .opening_section {
        padding: 15px;
        gap: 20px;
    }
    
    .hero_top {
        gap: 18px;
    }
    
    .hero_left {
        gap: 12px;
    }
    
    .titlehoraire {
        font-size: 1.8rem;
    }
    
    .hero_subtitle {
        font-size: 0.95rem;
    }
    
    .digit_value{ 
        font-size:44px; 
    }
    
    .digit_col{ 
        min-width:55px; 
    }
    
    .digit_colon{ 
        font-size:34px; 
    }
    
    .opening_infos{ 
        padding:16px 20px; 
        min-width: 260px;
    }
    
    .opening_clock {
        width: 170px;
        height: 170px;
    }
    
    .clock {
        width: 170px;
        height: 170px;
    }
    
    .clock span {
        font-size: 16px;
    }
    
    .hour { height: 34px; }
    .minute { height: 50px; }
    .second { height: 56px; }
    
    .feature_badge {
        padding: 6px 10px;
    }
    
    .feature_icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 10px;
    }
    
    .feature_title {
        font-size: 0.68rem;
    }
    
    .feature_sub {
        font-size: 0.6rem;
    }
    
    /* Ajustement hauteur image sur tablette */
    .event-media {
        height: 170px;
    }
}

/*==================================================
    RESPONSIVE - MOBILES (≤768px)
==================================================*/

@media(max-width:768px){
    .opening_section {
        padding: 12px;
        gap: 18px;
        margin: 10px auto;
    }
    
    /* ============================================
       HERO TOP : Chaque bloc sur sa propre ligne
       ============================================ */
    .hero_top {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow-x: visible;
    }
    
    /* Bloc 1 : Titre + badges (pleine largeur) */
    .hero_left {
        flex: 1 1 auto;
        width: 100%;
        min-width: auto;
        max-width: none;
        text-align: center;
        align-items: center;
        order: 1;
    }
    
    .titlehoraire { 
        text-align: center; 
        font-size: 1.6rem;
    }
    
    .hero_subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Badges en grid de 2 colonnes sur mobile */
    .feature_badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .feature_badge {
        flex: none; /* Désactive flex pour utiliser grid */
        width: 100%; /* Prend toute la largeur de sa colonne */
        justify-content: center;
        padding: 8px 10px;
        box-sizing: border-box;
    }
    
    /* Le 3ème badge sera centré sur sa propre ligne */
    .feature_badge:nth-child(3) {
        grid-column: 1 / -1; /* S'étend sur toute la largeur */
        justify-self: center; /* Se centre horizontalement */
        max-width: 50%; /* Optionnel: limite la largeur pour un meilleur rendu */
        margin: 0 auto; /* Centre avec la marge auto */
    }
    
    /* Bloc 2 : Statut + compte à rebours (pleine largeur, centré) */
    .opening_infos { 
        order: 2;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 16px;
        border-radius: 20px;
    }
    
    /* Bloc 3 : Horloge analogique sur sa propre ligne, centrée */
    .opening_clock { 
        order: 3;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }
    
    .clock { 
        width: 150px;
        height: 150px;
        border-width: 5px;
    }
    
    .clock span {
        font-size: 14px;
    }
    
    .hour { height: 30px; width: 4px; }
    .minute { height: 44px; width: 2.5px; }
    .second { height: 50px; width: 1.5px; }
    
    .center {
        width: 10px;
        height: 10px;
    }
    
    .n12 { top: 12px; }
    .n3 { right: 12px; }
    .n6 { bottom: 12px; }
    .n9 { left: 12px; }
    
    /* ============================================
       STATUT + COMPTE À REBOURS
       ============================================ */
    .status_line { 
        font-size: 15px; 
        gap: 8px;
        justify-content: center;
    }
    
    .digital_clock {
        justify-content: center;
    }
    
    .digit_value { 
        font-size: 38px; 
    }
    
    .digit_col { 
        min-width: 50px; 
    }
    
    .digit_label { 
        font-size: 9px; 
        letter-spacing: 1px;
    }
    
    .digit_colon { 
        font-size: 28px; 
    }
    
    .horaire-plage { 
        font-size: 18px; 
    }
    
    .horaire-label {
        font-size: 10px;
    }
    
    /* ============================================
       GRILLE ÉVÉNEMENTS
       ============================================ */
    .events-grid { 
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .events-grid:has(.event-countdown-item:only-child),
    .events-grid:has(.event-countdown-item:nth-child(2):last-child) { 
        grid-template-columns: 1fr; 
    }
    
    .events_header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 12px; 
    }
    
    .events_title {
        font-size: 1.1rem;
    }
    
    .btn_voir_tous {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    /* ============================================
       BARRE DE CONFIANCE EN GRID 2 COLONNES
       ============================================ */
    .trust_bar { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 14px 16px;
        align-items: start;
    }
    
    .trust_item {
        min-width: 0;
        flex: 1 1 auto;
        gap: 10px;
    }
    
    .trust_icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
    }
    
    .trust_text strong {
        font-size: 0.78rem;
    }
    
    .trust_text span {
        font-size: 0.68rem;
    }
    
    /* ============================================
       CARTES ÉVÉNEMENTS - HAUTEUR IMAGE AUGMENTÉE SUR MOBILE
       ============================================ */
    .event-countdown-item {
        border-radius: 16px;
    }
    
    .event-media {
        height: 160px; /* Augmenté sur mobile */
    }
    
    .event-countdown-header h3 {
        font-size: 15px;
    }
    
    .event-countdown-desc {
        font-size: 12px;
    }
    
    .event-lieu {
        font-size: 11px;
        padding: 0 14px 14px;
    }
    
    .event-date-badge {
        min-width: 54px;
        padding: 4px 8px;
    }
    
    .event-date-num {
        font-size: 1.2rem;
    }
    
    .event-date-day,
    .event-date-month {
        font-size: 0.5rem;
    }
    
    .event-date-heure {
        font-size: 0.55rem;
    }
}

/*==================================================
    RESPONSIVE - PETITS MOBILES (≤480px)
==================================================*/

@media(max-width:480px){
    .opening_section {
        padding: 10px;
        gap: 14px;
        margin: 5px auto;
    }
    
    .hero_top {
        gap: 12px;
    }
    
    .titlehoraire { 
        font-size: 1.35rem; 
        letter-spacing: 0.3px;
    }
    
    .hero_subtitle {
        font-size: 0.82rem;
    }
    
    /* Badges toujours en grid 2 colonnes */
    .feature_badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .feature_badge {
        padding: 6px 8px;
        gap: 6px;
    }
    
    /* Le 3ème badge centré */
    .feature_badge:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .feature_icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 9px;
        border-radius: 6px;
    }
    
    .feature_title {
        font-size: 0.65rem;
    }
    
    .feature_sub {
        font-size: 0.58rem;
    }
    
    /* Compte à rebours */
    .opening_infos {
        padding: 14px 12px;
        border-radius: 16px;
        gap: 6px;
    }
    
    .digital_clock { 
        gap: 6px; 
    }
    
    .digit_value { 
        font-size: 34px; 
    }
    
    .digit_col { 
        min-width: 48px; 
        gap: 3px;
    }
    
    .digit_label { 
        font-size: 8px; 
        letter-spacing: 0.5px;
    }
    
    .digit_colon { 
        font-size: 26px; 
        margin-top: 0;
    }
    
    .status_line { 
        font-size: 14px; 
        gap: 6px;
    }
    
    .status_dot {
        width: 10px;
        height: 10px;
    }
    
    .separator {
        height: 12px;
    }
    
    .horaire-plage { 
        font-size: 17px; 
    }
    
    .horaire-label {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    /* Horloge */
    .clock { 
        width: 130px;
        height: 130px;
        border-width: 4px;
    }
    
    .clock span {
        font-size: 12px;
    }
    
    .hour { height: 26px; width: 3.5px; }
    .minute { height: 38px; width: 2px; }
    .second { height: 44px; width: 1.5px; }
    
    .n12 { top: 10px; }
    .n3 { right: 10px; }
    .n6 { bottom: 10px; }
    .n9 { left: 10px; }
    
    .events_title {
        font-size: 1rem;
    }
    
    .btn_voir_tous {
        font-size: 0.78rem;
        padding: 10px 14px;
    }
    
    /* Barre de confiance toujours en grid 2 colonnes */
    .trust_bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 12px;
        gap: 10px;
        border-radius: 14px;
    }
    
    .trust_icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 13px;
    }
    
    .trust_text strong {
        font-size: 0.72rem;
    }
    
    .trust_text span {
        font-size: 0.62rem;
    }
    
    /* Cartes événements - HAUTEUR IMAGE AUGMENTÉE */
    .event-media {
        height: 140px; /* Augmenté sur petit mobile */
    }
    
    .event-badge {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 0.62rem;
    }
    
    .event-date-badge {
        top: 10px;
        right: 10px;
        min-width: 48px;
    }
    
    .event-date-num {
        font-size: 1.1rem;
    }
    
    .event-countdown-header {
        padding: 10px 14px 2px;
    }
    
    .event-countdown-header h3 {
        font-size: 14px;
    }
    
    .event-lieu {
        padding: 0 14px 12px;
        font-size: 10px;
    }
}

/*==================================================
    RESPONSIVE - TRÈS PETITS MOBILES (≤360px)
==================================================*/

@media(max-width:360px){
    .titlehoraire { 
        font-size: 1.2rem; 
    }
    
    /* Badges en 1 colonne sur très petit écran si nécessaire */
    .feature_badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .digital_clock { 
        gap: 4px; 
    }
    
    .digit_value { 
        font-size: 28px; 
    }
    
    .digit_col { 
        min-width: 40px; 
    }
    
    .digit_label { 
        font-size: 7px; 
    }
    
    .digit_colon { 
        font-size: 22px; 
    }
    
    .opening_infos {
        padding: 10px;
    }
    
    .status_line { 
        font-size: 12px; 
    }
    
    .clock { 
        width: 110px;
        height: 110px;
        border-width: 3px;
    }
    
    .clock span {
        font-size: 10px;
    }
    
    .hour { height: 22px; width: 3px; }
    .minute { height: 32px; width: 2px; }
    .second { height: 36px; width: 1.5px; }
    
    .center {
        width: 6px;
        height: 6px;
    }
    
    .n12 { top: 8px; }
    .n3 { right: 8px; }
    .n6 { bottom: 8px; }
    .n9 { left: 8px; }
    
    /* Barre de confiance en 1 colonne */
    .trust_bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .trust_item {
        gap: 8px;
    }
    
    .event-date-badge {
        min-width: 44px;
    }
    
    .event-date-num {
        font-size: 1rem;
    }
    
    .event-media {
        height: 120px; /* Augmenté sur très petit mobile */
    }
}

/* ================================================================
   MODAL "VOIR TOUS LES ÉVÉNEMENTS"
   ================================================================ */

.all-events-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.all-events-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.all-events-container {
    position: relative;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: allEventsSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes allEventsSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.all-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 10px;
}

.all-events-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.all-events-count {
    font-size: 0.85rem;
    color: #ffd600;
    background: rgba(255, 214, 0, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.all-events-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    margin-left: auto;
}

.all-events-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

.all-events-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.all-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Ajustement hauteur image dans le modal */
.all-events-grid .event-media {
    height: 200px;
}

/* Scrollbar personnalisée */
.all-events-body::-webkit-scrollbar {
    width: 6px;
}

.all-events-body::-webkit-scrollbar-track {
    background: transparent;
}

.all-events-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.all-events-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .all-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .all-events-modal {
        padding: 0;
    }
    
    .all-events-container {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .all-events-body {
        max-height: calc(100vh - 70px);
        padding: 16px;
    }
    
    .all-events-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .all-events-grid .event-media {
        height: 160px;
    }
    
    .all-events-header {
        padding: 14px 16px;
    }
    
    .all-events-header h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .all-events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .all-events-grid .event-media {
        height: 140px;
    }
    
    .all-events-header h2 {
        font-size: 1rem;
    }
    
    .all-events-count {
        font-size: 0.75rem;
        padding: 2px 10px;
    }
}




/* ================================================================
   MODAL DE RÉSERVATION - FULLSCREEN SUR MOBILE UNIQUEMENT
   ================================================================ */

/* Modal de réservation - version fullscreen sur mobile */
@media (max-width: 768px) {
    #RESModalOverlay {
        padding: 0 !important;
        align-items: stretch !important;
        background: #14141a !important;
    }
    
    #RESModalOverlay .RES-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        animation: RESMobileSlideUp 0.3s ease-out !important;
        background: #14141a !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ajuster le corps du modal pour qu'il prenne tout l'espace */
    #RESModalOverlay .RES-modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 20px !important;
    }
    
    /* Ajuster l'image dans le modal */
    #RESModalOverlay .RES-event-image-container {
        height: 200px !important;
    }
    
    #RESModalOverlay .RES-event-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Animation de slide up */
    @keyframes RESMobileSlideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Ajuster les boutons pour qu'ils soient bien visibles */
    #RESModalOverlay .RES-form-actions {
        padding: 16px 0 !important;
        flex-shrink: 0 !important;
    }
    
    #RESModalOverlay .RES-btn-submit {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    #RESModalOverlay .RES-btn-close-modal {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* Ajuster le header */
    #RESModalOverlay .RES-modal-header {
        padding: 16px 20px !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    }
    
    #RESModalOverlay .RES-modal-title {
        font-size: 1.1rem !important;
    }
    
    /* Ajuster les champs du formulaire */
    #RESModalOverlay .RES-form-group {
        margin-bottom: 16px !important;
    }
    
    #RESModalOverlay .RES-form-group label {
        font-size: 13px !important;
    }
    
    #RESModalOverlay .RES-form-group input,
    #RESModalOverlay .RES-form-group textarea {
        font-size: 15px !important;
        padding: 12px !important;
    }
    
    /* Ajuster les infos de l'événement */
    #RESModalOverlay .RES-event-info-item {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
}

/* Pour les très petits mobiles (moins de 480px) */
@media (max-width: 480px) {
    #RESModalOverlay .RES-event-image-container {
        height: 160px !important;
    }
    
    #RESModalOverlay .RES-modal-title {
        font-size: 1rem !important;
    }
    
    #RESModalOverlay .RES-modal-body {
        padding: 16px !important;
    }
    
    #RESModalOverlay .RES-form-group input,
    #RESModalOverlay .RES-form-group textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }
}

/* Pour les très grands écrans, conserver le style d'origine */
@media (min-width: 769px) {
    #RESModalOverlay {
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    #RESModalOverlay .RES-modal-content {
        max-width: 500px !important;
        width: 90% !important;
        max-height: 90vh !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 0 30px 80px rgba(0,0,0,0.8) !important;
        animation: RESDesktopFadeIn 0.3s ease-out !important;
    }
    
    @keyframes RESDesktopFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}















/* ================================================================
   MODAL DE SUCCÈS - STYLE COMPLET
   ================================================================ */

.success-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal-container {
    position: relative;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 50px 40px 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Décoration de fond */
.success-decoration {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Checkmark animé */
.success-checkmark {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark {
    width: 100px;
    height: 100px;
    position: relative;
}

.checkmark-circle {
    stroke: #ffd600;
    stroke-width: 2;
    stroke-linecap: round;
    animation: circleAnimation 0.6s ease-in-out;
}

@keyframes circleAnimation {
    0% {
        stroke-dasharray: 166;
        stroke-dashoffset: 166;
    }
    100% {
        stroke-dasharray: 166;
        stroke-dashoffset: 0;
    }
}

.checkmark-check {
    stroke: #ffd600;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

@keyframes drawCheckmark {
    to {
        stroke-dashoffset: 0;
    }
}

/* Titre principal */
.success-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: italic;
}

.success-title .success-highlight {
    color: #ffd600;
    font-style: italic;
}

/* Message principal */
.success-message {
    font-size: 1rem;
    color: #e0e0e0;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

/* Sous-titre avec accents */
.success-subtitle {
    font-size: 1rem;
    color: #e0e0e0;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.success-subtitle .success-highlight {
    color: #ffd600;
    font-weight: 700;
}

/* Ligne de séparation avec éclair */
.success-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd600, transparent);
}

.divider-icon {
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Boîte email */
.success-email-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.email-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: 50%;
    color: #ffd600;
    animation: slideInLeft 0.5s ease-out 0.3s backwards;
}

.email-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.email-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-main {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.email-main .success-highlight {
    color: #ffd600;
    font-weight: 700;
}

.email-sub {
    font-size: 0.95rem;
    color: #b0b0b8;
    margin: 0;
    line-height: 1.4;
}

/* Détails de l'événement */
.event-details-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-details-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.event-details-item:last-child {
    border-bottom: none;
}

.event-details-item.highlight-item {
    background: rgba(255, 214, 0, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 -4px;
    border-bottom: none;
}

.event-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.event-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.event-value {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.event-value.highlight-text {
    color: #ffd600;
    font-weight: 700;
}

/* Bouton d'action */
.success-button {
    width: 100%;
    padding: 16px 24px;
    background: #ffd600;
    color: #14141a;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.2);
    animation: slideInUp 0.5s ease-out 0.4s backwards;
    margin-bottom: 16px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-button:hover {
    background: #ffe34d;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 214, 0, 0.3);
}

.success-button:active {
    transform: translateY(-1px);
}

.button-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.success-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ================================================================
   FOOTER AVEC RUBAN JAUNE DÉFILANT
   ================================================================ */

.success-footer {
    margin-top: 0;
    margin-bottom: -30px;
    margin-left: -40px;
    margin-right: -40px;
    padding: 12px 0 0 0;
    background: #0a0a0e;
    border-top: 1px solid rgba(255, 214, 0, 0.15);
    overflow: hidden;
}

.ribbon-container {
    background: linear-gradient(90deg, #ffd600, #ffaa00, #ffd600);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ribbon-container::before,
.ribbon-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.ribbon-container::before {
    left: 0;
    background: linear-gradient(90deg, #ffd600, transparent);
}

.ribbon-container::after {
    right: 0;
    background: linear-gradient(-90deg, #ffd600, transparent);
}

.ribbon-scroll {
    display: flex;
    white-space: nowrap;
    animation: scrollRibbon 25s linear infinite;
    gap: 0;
}

.ribbon-message {
    display: inline-block;
    padding: 0 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #14141a;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes scrollRibbon {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================================================================
   RESPONSIVE - TABLETTE ET MOBILE
   ================================================================ */

@media (max-width: 768px) {
    .success-modal-overlay {
        padding: 0;
    }
    
    .success-modal-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        padding: 40px 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message,
    .success-subtitle {
        font-size: 0.95rem;
    }
    
    .email-icon {
        width: 40px;
        height: 40px;
    }
    
    .email-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .success-button {
        padding: 14px 20px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .button-arrow {
        font-size: 1.2rem;
    }
    
    .success-decoration {
        display: none;
    }
    
    .success-footer {
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: -20px;
    }
    
    .ribbon-message {
        font-size: 0.7rem;
        padding: 0 20px;
        letter-spacing: 1px;
    }
    
    .event-details-box {
        padding: 10px 12px;
    }
    
    .event-icon {
        font-size: 16px;
        width: 24px;
    }
    
    .event-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .success-modal-container {
        padding: 30px 16px 16px;
    }
    
    .success-checkmark {
        margin-bottom: 16px;
    }
    
    .checkmark {
        width: 80px;
        height: 80px;
    }
    
    .success-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .success-message,
    .success-subtitle {
        font-size: 0.9rem;
    }
    
    .success-divider {
        margin: 16px 0;
        gap: 12px;
    }
    
    .divider-line {
        max-width: 50px;
    }
    
    .divider-icon {
        font-size: 20px;
    }
    
    .success-email-box {
        padding: 12px;
        margin-bottom: 16px;
        gap: 12px;
    }
    
    .email-icon {
        width: 36px;
        height: 36px;
    }
    
    .email-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .email-main {
        font-size: 0.9rem;
    }
    
    .email-sub {
        font-size: 0.85rem;
    }
    
    .success-button {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .button-arrow {
        font-size: 1.1rem;
    }
    
    .success-footer {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -16px;
        padding: 8px 0 0 0;
    }
    
    .ribbon-container {
        padding: 8px 0;
    }
    
    .ribbon-message {
        font-size: 0.6rem;
        padding: 0 15px;
        letter-spacing: 0.5px;
    }
    
    .event-details-box {
        padding: 8px 10px;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .event-details-item {
        padding: 4px 0;
        gap: 10px;
    }
    
    .event-details-item.highlight-item {
        padding: 6px 10px;
    }
    
    .event-icon {
        font-size: 14px;
        width: 20px;
    }
    
    .event-label {
        font-size: 0.6rem;
    }
    
    .event-value {
        font-size: 0.8rem;
    }
    
    .ribbon-scroll {
        animation-duration: 18s;
    }
}

/* ================================================================
   CLASSE UTILITAIRE
   ================================================================ */

.success-highlight {
    color: #ffd600;
    font-weight: 700;
}

/* Scrollbar personnalisée pour le modal */
.success-modal-container::-webkit-scrollbar {
    width: 4px;
}

.success-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.success-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 214, 0, 0.3);
    border-radius: 10px;
}

.success-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 214, 0, 0.5);
}



/* ================================================================
   EFFET BOUGIE D'ANNIVERSAIRE - PARTICULES #ffd600 CONTINUES
   ================================================================ */

/* Conteneur de particules - effet sparkle automatique */
.success-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(1px 1px at 15% 25%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 85% 15%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 50% 10%, #ffd600 100%, transparent),
        radial-gradient(2px 2px at 20% 80%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 75% 70%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 45% 85%, #ffd600 100%, transparent),
        radial-gradient(2px 2px at 5% 45%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 90% 50%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 35% 40%, #ffd600 100%, transparent),
        radial-gradient(2px 2px at 65% 30%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 10% 65%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 80% 85%, #ffd600 100%, transparent),
        radial-gradient(2.5px 2.5px at 55% 55%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 30% 15%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 70% 20%, #ffd600 100%, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0;
    animation: sparkleBurst 3s ease-in-out infinite;
}

/* Animation d'explosion de paillettes façon bougie */
@keyframes sparkleBurst {
    0% {
        opacity: 0;
        background-position: 50% 50%;
        transform: scale(0.8);
    }
    15% {
        opacity: 0.9;
        background-position: 30% 40%;
        transform: scale(1.1);
    }
    30% {
        opacity: 0.7;
        background-position: 70% 60%;
        transform: scale(1);
    }
    45% {
        opacity: 0.4;
        background-position: 45% 30%;
        transform: scale(0.95);
    }
    60% {
        opacity: 0.8;
        background-position: 60% 70%;
        transform: scale(1.05);
    }
    75% {
        opacity: 0.5;
        background-position: 25% 55%;
        transform: scale(1);
    }
    90% {
        opacity: 0.2;
        background-position: 80% 35%;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        background-position: 50% 50%;
        transform: scale(0.8);
    }
}

/* Particules scintillantes supplémentaires avec délai */
.success-modal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(0.8px 0.8px at 25% 35%, #ffd600 100%, transparent),
        radial-gradient(1.2px 1.2px at 65% 45%, #ffd600 100%, transparent),
        radial-gradient(0.8px 0.8px at 40% 70%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, #ffd600 100%, transparent),
        radial-gradient(0.8px 0.8px at 55% 15%, #ffd600 100%, transparent),
        radial-gradient(1.2px 1.2px at 15% 75%, #ffd600 100%, transparent),
        radial-gradient(1px 1px at 85% 65%, #ffd600 100%, transparent),
        radial-gradient(1.5px 1.5px at 35% 50%, #ffd600 100%, transparent),
        radial-gradient(0.8px 0.8px at 60% 80%, #ffd600 100%, transparent),
        radial-gradient(1.2px 1.2px at 20% 20%, #ffd600 100%, transparent);
    background-size: 200% 200%;
    background-position: 100% 100%;
    opacity: 0;
    animation: sparkleBurstReverse 3.5s ease-in-out 0.5s infinite;
}

/* Animation inversée pour plus de dynamisme */
@keyframes sparkleBurstReverse {
    0% {
        opacity: 0;
        background-position: 50% 50%;
        transform: scale(1.2) rotate(0deg);
    }
    20% {
        opacity: 0.8;
        background-position: 70% 30%;
        transform: scale(0.9) rotate(5deg);
    }
    40% {
        opacity: 0.5;
        background-position: 30% 65%;
        transform: scale(1.1) rotate(-3deg);
    }
    60% {
        opacity: 0.9;
        background-position: 55% 40%;
        transform: scale(0.95) rotate(2deg);
    }
    80% {
        opacity: 0.3;
        background-position: 40% 75%;
        transform: scale(1.05) rotate(-1deg);
    }
    100% {
        opacity: 0;
        background-position: 50% 50%;
        transform: scale(1.2) rotate(0deg);
    }
}

/* Particules flottantes qui montent comme des bulles */
@keyframes floatUpParticles {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    90% {
        opacity: 0.5;
        transform: translateY(-80px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Ajout de points lumineux mobiles avec des ombres portées */
.success-modal-container {
    position: relative;
    overflow: hidden;
}

/* Création de particules volantes avec box-shadow */
.success-modal-container .success-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffd600;
    border-radius: 50%;
    box-shadow: 
        0 0 8px 3px rgba(255, 214, 0, 0.8),
        0 0 20px 6px rgba(255, 214, 0, 0.4),
        25px -20px 0 1px rgba(255, 214, 0, 0.9),
        25px -20px 0 3px rgba(255, 214, 0, 0.3),
        -20px -35px 0 2px rgba(255, 214, 0, 0.8),
        -20px -35px 0 5px rgba(255, 214, 0, 0.2),
        30px -50px 0 1.5px rgba(255, 214, 0, 0.9),
        30px -50px 0 4px rgba(255, 214, 0, 0.3),
        -35px -15px 0 1.5px rgba(255, 214, 0, 0.7),
        -35px -15px 0 3px rgba(255, 214, 0, 0.2),
        15px -45px 0 2px rgba(255, 214, 0, 0.8),
        15px -45px 0 5px rgba(255, 214, 0, 0.25),
        -10px -55px 0 1px rgba(255, 214, 0, 0.9),
        -10px -55px 0 3px rgba(255, 214, 0, 0.2),
        45px -30px 0 1.5px rgba(255, 214, 0, 0.8),
        45px -30px 0 4px rgba(255, 214, 0, 0.2);
    animation: particleExplosion 3s ease-out infinite;
    z-index: 2;
}

/* Animation d'explosion continue des particules */
@keyframes particleExplosion {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    5% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    20% {
        transform: translate(10px, -30px) scale(1.2);
        opacity: 0.9;
    }
    40% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.6;
    }
    60% {
        transform: translate(20px, -70px) scale(0.6);
        opacity: 0.3;
    }
    80% {
        transform: translate(-10px, -85px) scale(0.4);
        opacity: 0.1;
    }
    100% {
        transform: translate(0, -100px) scale(0);
        opacity: 0;
    }
}

/* Brillance pulsante sur toute la card */
@keyframes candleGlow {
    0%, 100% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 214, 0, 0.2),
            inset 0 0 20px rgba(255, 214, 0, 0.05);
    }
    25% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(255, 214, 0, 0.3),
            inset 0 0 30px rgba(255, 214, 0, 0.08);
    }
    50% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(255, 214, 0, 0.25),
            inset 0 0 25px rgba(255, 214, 0, 0.06);
    }
    75% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 60px rgba(255, 214, 0, 0.35),
            inset 0 0 35px rgba(255, 214, 0, 0.1);
    }
}

.success-modal-container {
    animation: candleGlow 2s ease-in-out infinite;
}

/* Particules type "feu d'artifice" miniatures */
@keyframes miniFirework {
    0% {
        box-shadow: 
            0 0 0 0 rgba(255, 214, 0, 0),
            0 0 0 0 rgba(255, 214, 0, 0);
    }
    10% {
        box-shadow: 
            15px -25px 0 2px rgba(255, 214, 0, 0.9),
            -15px -25px 0 2px rgba(255, 214, 0, 0.9);
    }
    30% {
        box-shadow: 
            30px -45px 0 1.5px rgba(255, 214, 0, 0.7),
            -30px -45px 0 1.5px rgba(255, 214, 0, 0.7),
            0 -50px 0 2px rgba(255, 214, 0, 0.8);
    }
    60% {
        box-shadow: 
            40px -60px 0 1px rgba(255, 214, 0, 0.4),
            -40px -60px 0 1px rgba(255, 214, 0, 0.4),
            25px -70px 0 1.5px rgba(255, 214, 0, 0.3),
            -25px -70px 0 1.5px rgba(255, 214, 0, 0.3);
    }
    100% {
        box-shadow: 
            50px -80px 0 0px rgba(255, 214, 0, 0),
            -50px -80px 0 0px rgba(255, 214, 0, 0),
            35px -90px 0 0px rgba(255, 214, 0, 0),
            -35px -90px 0 0px rgba(255, 214, 0, 0);
    }
}

/* Application sur le bouton pour un effet surprise quand on clique */
.success-button {
    position: relative;
    overflow: visible;
}

.success-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: buttonSparkle 4s linear infinite;
}

@keyframes buttonSparkle {
    0% {
        box-shadow: 
            0 0 0 0 rgba(255, 214, 0, 0);
    }
    25% {
        box-shadow: 
            20px -15px 0 3px rgba(255, 214, 0, 0.8),
            -20px -15px 0 3px rgba(255, 214, 0, 0.8),
            15px -30px 0 2px rgba(255, 214, 0, 0.6),
            -15px -30px 0 2px rgba(255, 214, 0, 0.6);
    }
    50% {
        box-shadow: 
            30px -25px 0 2px rgba(255, 214, 0, 0.5),
            -30px -25px 0 2px rgba(255, 214, 0, 0.5),
            25px -45px 0 1.5px rgba(255, 214, 0, 0.3),
            -25px -45px 0 1.5px rgba(255, 214, 0, 0.3),
            0 -40px 0 2.5px rgba(255, 214, 0, 0.4);
    }
    75% {
        box-shadow: 
            40px -40px 0 1px rgba(255, 214, 0, 0.2),
            -40px -40px 0 1px rgba(255, 214, 0, 0.2),
            35px -60px 0 1px rgba(255, 214, 0, 0.1),
            -35px -60px 0 1px rgba(255, 214, 0, 0.1),
            10px -55px 0 1.5px rgba(255, 214, 0, 0.15);
    }
    100% {
        box-shadow: 
            50px -50px 0 0px rgba(255, 214, 0, 0),
            -50px -50px 0 0px rgba(255, 214, 0, 0),
            45px -70px 0 0px rgba(255, 214, 0, 0),
            -45px -70px 0 0px rgba(255, 214, 0, 0),
            15px -65px 0 0px rgba(255, 214, 0, 0);
    }
}





/* ================================================================
   MODAL DE RÉSERVATION - STYLE COMPLET
   ================================================================ */

/* Overlay du modal */
#RESModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: RESFadeIn 0.3s ease-out;
}

@keyframes RESFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Conteneur principal */
#RESModalOverlay .RES-container {
    position: relative;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: RESModalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes RESModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* HEADER */
#RESModalOverlay .RES-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

#RESModalOverlay .RES-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

#RESModalOverlay .RES-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

#RESModalOverlay .RES-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

/* BODY */
#RESModalOverlay .RES-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Scrollbar personnalisée */
#RESModalOverlay .RES-body::-webkit-scrollbar {
    width: 4px;
}

#RESModalOverlay .RES-body::-webkit-scrollbar-track {
    background: transparent;
}

#RESModalOverlay .RES-body::-webkit-scrollbar-thumb {
    background: rgba(255, 214, 0, 0.3);
    border-radius: 10px;
}

/* Informations de l'événement */
#RESModalOverlay .RES-event-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#RESModalOverlay .RES-event-info img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

#RESModalOverlay .RES-event-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

#RESModalOverlay .RES-event-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #c9c9d1;
}

#RESModalOverlay .RES-event-details p:first-child {
    font-weight: 600;
    color: #ffd600;
}

/* Formulaire */
#RESModalOverlay .RES-form-group {
    margin-bottom: 16px;
}

#RESModalOverlay .RES-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9c9d1;
    margin-bottom: 6px;
}

#RESModalOverlay .RES-required {
    color: #ff4444;
}

#RESModalOverlay .RES-optional {
    color: #888;
    font-weight: 400;
    font-size: 0.75rem;
}

#RESModalOverlay .RES-form-group input,
#RESModalOverlay .RES-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

#RESModalOverlay .RES-form-group input:focus,
#RESModalOverlay .RES-form-group textarea:focus {
    outline: none;
    border-color: #ffd600;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

#RESModalOverlay .RES-form-group input::placeholder,
#RESModalOverlay .RES-form-group textarea::placeholder {
    color: #666;
}

#RESModalOverlay .RES-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Actions du formulaire */
#RESModalOverlay .RES-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#RESModalOverlay .RES-btn-cancel {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 1;
}

#RESModalOverlay .RES-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#RESModalOverlay .RES-btn-submit {
    padding: 12px 24px;
    background: #ffd600;
    border: none;
    border-radius: 30px;
    color: #14141a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 2;
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.2);
}

#RESModalOverlay .RES-btn-submit:hover {
    background: #ffe34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 214, 0, 0.3);
}

#RESModalOverlay .RES-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#RESModalOverlay .RES-btn-submit.RES-loading {
    opacity: 0.7;
    cursor: wait;
}

/* ================================================================
   MODAL DE RÉSERVATION - FULLSCREEN SUR MOBILE UNIQUEMENT
   ================================================================ */

@media (max-width: 768px) {
    #RESModalOverlay {
        padding: 0 !important;
        align-items: stretch !important;
        background: #14141a !important;
        backdrop-filter: none !important;
    }
    
    #RESModalOverlay .RES-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        animation: RESMobileSlideUp 0.3s ease-out !important;
        background: #14141a !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    @keyframes RESMobileSlideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    #RESModalOverlay .RES-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 16px 20px !important;
        max-height: none !important;
    }
    
    #RESModalOverlay .RES-header {
        padding: 14px 20px !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    
    #RESModalOverlay .RES-header h2 {
        font-size: 1.1rem !important;
    }
    
    #RESModalOverlay .RES-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 24px !important;
    }
    
    #RESModalOverlay .RES-event-info {
        padding: 12px !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    
    #RESModalOverlay .RES-event-info img {
        width: 60px !important;
        height: 60px !important;
    }
    
    #RESModalOverlay .RES-event-details p {
        font-size: 0.85rem !important;
    }
    
    #RESModalOverlay .RES-form-group {
        margin-bottom: 14px !important;
    }
    
    #RESModalOverlay .RES-form-group label {
        font-size: 0.8rem !important;
    }
    
    #RESModalOverlay .RES-form-group input,
    #RESModalOverlay .RES-form-group textarea {
        font-size: 16px !important; /* Évite le zoom sur iOS */
        padding: 12px 14px !important;
    }
    
    #RESModalOverlay .RES-actions {
        gap: 10px !important;
        margin-top: 16px !important;
        padding-top: 16px !important;
        flex-shrink: 0 !important;
    }
    
    #RESModalOverlay .RES-btn-cancel {
        padding: 14px !important;
        font-size: 0.9rem !important;
    }
    
    #RESModalOverlay .RES-btn-submit {
        padding: 14px !important;
        font-size: 0.95rem !important;
        flex: 2 !important;
    }
}

/* Pour les très petits mobiles */
@media (max-width: 480px) {
    #RESModalOverlay .RES-body {
        padding: 12px 16px !important;
    }
    
    #RESModalOverlay .RES-header {
        padding: 12px 16px !important;
    }
    
    #RESModalOverlay .RES-header h2 {
        font-size: 1rem !important;
    }
    
    #RESModalOverlay .RES-event-info {
        padding: 10px !important;
        gap: 10px !important;
    }
    
    #RESModalOverlay .RES-event-info img {
        width: 50px !important;
        height: 50px !important;
    }
    
    #RESModalOverlay .RES-form-group input,
    #RESModalOverlay .RES-form-group textarea {
        padding: 10px 12px !important;
        font-size: 15px !important;
    }
    
    #RESModalOverlay .RES-btn-cancel,
    #RESModalOverlay .RES-btn-submit {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Pour les très grands écrans */
@media (min-width: 769px) {
    #RESModalOverlay .RES-container {
        max-width: 480px !important;
        width: 90% !important;
        max-height: 90vh !important;
    }
}




