/* ==========================================================================
   ÉVÉNEMENTS V2 — CSS FRONTEND
   Tous les sélecteurs sont scopés sous .ev2-wrap pour éviter les conflits de thème
   ========================================================================== */

.ev2-wrap {
    width: 100%;
}

/* ==========================================================================
   LISTE DES ÉVÉNEMENTS
   ========================================================================== */
.ev2-wrap .grid-events {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.ev2-wrap .event-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    border: 1px solid #e2e8f0;
}

.ev2-wrap .event-image {
    width: 35%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex-shrink: 0;
}

.ev2-wrap .event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 65%;
}

.ev2-wrap .event-content h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0;
    color: #1e293b;
}

.ev2-wrap .event-date     { color: #0284c7; font-weight: bold; margin-bottom: 0.5rem; }
.ev2-wrap .event-format,
.ev2-wrap .event-location { color: #475569; margin-bottom: 0.5rem; font-size: 0.95rem; }

@media (max-width: 768px) {
    .ev2-wrap .event-card    { flex-direction: column; }
    .ev2-wrap .event-image,
    .ev2-wrap .event-content { width: 100%; }
}

/* ==========================================================================
   DÉTAIL DE L'ÉVÉNEMENT
   ========================================================================== */
.ev2-wrap .container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
    margin-top: 2rem;
}

.ev2-wrap .info-section {
    flex: 1 1 550px;
    padding: 2.5rem;
    box-sizing: border-box;
}

.ev2-wrap .form-section {
    flex: 1 1 350px;
    padding: 2.5rem;
    background-color: #f8fafc;
    border-left: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.ev2-wrap .info-section h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    color: #1e293b;
    margin-top: 0;
}

.ev2-wrap .hero-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    display: block;
}

.ev2-wrap .date {
    font-weight: 700;
    color: #0284c7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.ev2-wrap .description p,
.ev2-wrap .description li { line-height: 1.6; font-size: 1rem; color: #475569; }
.ev2-wrap .description ul  { padding-left: 1.5rem; margin: 1rem 0; }

@media (max-width: 768px) {
    .ev2-wrap .container    { flex-direction: column; }
    .ev2-wrap .form-section { border-left: none; border-top: 1px solid #e2e8f0; }
}

/* ==========================================================================
   FORMULAIRE D'INSCRIPTION
   ========================================================================== */
.ev2-wrap .form-section h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-top: 0;
}

.ev2-wrap .form-group { margin-bottom: 1.2rem; }

.ev2-wrap label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.ev2-wrap input[type="text"],
.ev2-wrap input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ev2-wrap input[type="text"]:focus,
.ev2-wrap input[type="email"]:focus {
    outline: none;
    border-color: #0284c7;
}

.ev2-wrap .submit-btn,
.ev2-wrap .btn-access {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 1rem;
    background-color: #0284c7;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.ev2-wrap .submit-btn:hover,
.ev2-wrap .btn-access:hover { background-color: #0369a1; }

.ev2-wrap .disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

.ev2-wrap .hidden { display: none !important; }
.ev2-wrap .honeypot { display: none !important; }

/* ==========================================================================
   BOUTONS D'AGENDA
   ========================================================================== */
.ev2-wrap .ev2-calendar-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.ev2-wrap .ev2-calendar-label {
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

.ev2-wrap .ev2-calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ev2-wrap .ev2-cal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.15s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.ev2-wrap .ev2-cal-btn:hover { opacity: 0.85; }

.ev2-wrap .ev2-cal-google  { background: #4285f4; color: #fff !important; }
.ev2-wrap .ev2-cal-ical    { background: #555;    color: #fff !important; }
.ev2-wrap .ev2-cal-outlook { background: #0078d4; color: #fff !important; }
.ev2-wrap .ev2-cal-o365    { background: #d83b01; color: #fff !important; }
.ev2-wrap .ev2-cal-yahoo   { background: #6001d2; color: #fff !important; }

/* Message de confirmation après inscription */
#ev2-confirmation {
    text-align: center;
    padding: 3rem 0;
}
#ev2-confirmation p {
    color: #15803d;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
