/* Test 1 - Plugin Styles */

:root {
    --test1-red: #E94C4C;
    --test1-orange: #FFA726;
    --test1-blue: #4DB5C1;
    --test1-beige: #E8D5BA;
    --test1-cream: #F5E6D3;
    --test1-black: #1A1A1A;
}

.test1-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.test1-form-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--test1-red);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.test1-registration-form {
    background: linear-gradient(135deg, var(--test1-beige) 0%, var(--test1-cream) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 4px solid var(--test1-red);
    box-shadow: 0 10px 40px rgba(233, 76, 76, 0.2);
}

.test1-form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid var(--test1-blue);
}

.test1-type-section {
    border-left: 5px solid var(--test1-red);
}

.test1-form-section h3 {
    color: var(--test1-red);
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.test1-type-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.test1-type-option {
    cursor: pointer;
}

.test1-type-option input[type="radio"] {
    display: none;
}

.test1-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    border: 3px solid #E0E0E0;
    border-radius: 15px;
    background: #F9F9F9;
    transition: all 0.3s;
}

.test1-type-option input[type="radio"]:checked + .test1-type-card {
    border-color: var(--test1-red);
    background: linear-gradient(135deg, rgba(233, 76, 76, 0.1), rgba(255, 167, 38, 0.1));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 76, 76, 0.3);
}

.test1-type-icon {
    font-size: 3rem;
}

.test1-type-label {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--test1-black);
    text-transform: uppercase;
}

.test1-form-group {
    margin-bottom: 20px;
}

.test1-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--test1-black);
}

.test1-form-group label.required::after {
    content: ' *';
    color: var(--test1-red);
}

.test1-form-group input,
.test1-form-group select,
.test1-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: inherit;
}

.test1-form-group input:focus,
.test1-form-group select:focus,
.test1-form-group textarea:focus {
    outline: none;
    border-color: var(--test1-red);
}

.test1-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.test1-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.test1-price-display {
    background: linear-gradient(135deg, var(--test1-red) 0%, #FF6B6B 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(233, 76, 76, 0.3);
}

.test1-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.test1-cgv-checkbox {
    background: #FFF9E6;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFA726;
    margin: 20px 0;
}

.test1-cgv-checkbox label {
    line-height: 1.6;
    color: #333;
}

.test1-cgv-checkbox strong {
    color: #E94C4C;
}

.test1-category-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #F9F9F9;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--test1-black) !important;
}

.test1-category-checkbox:hover {
    background: #F0F0F0;
    border-color: var(--test1-orange);
}

.test1-category-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.test1-category-checkbox input[type="checkbox"]:checked + span {
    color: var(--test1-red);
}

.test1-options-grid {
    display: grid;
    gap: 15px;
}

.test1-options-aligned {
    background: #F9F9F9;
    padding: 20px;
    border-radius: 10px;
}

.test1-option-header {
    display: grid;
    grid-template-columns: 50px 1fr 150px;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #E94C4C;
    margin-bottom: 15px;
    font-weight: bold;
    color: #E94C4C;
}

.test1-option-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.test1-option-row:last-child {
    border-bottom: none;
}

.test1-option-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.test1-option-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.test1-option-label {
    display: flex;
    flex-direction: column;
}

.test1-option-label label {
    font-weight: 600;
    cursor: pointer;
    color: var(--test1-black);
}

.test1-option-qty {
    display: flex;
    justify-content: center;
}

.test1-option-qty input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.test1-option-item {
    background: #F9F9F9;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test1-option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--test1-black) !important;
}

.test1-option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.test1-option-item input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    text-align: center;
}

.test1-recap-section {
    background: linear-gradient(135deg, rgba(77, 181, 193, 0.1), rgba(255, 184, 77, 0.1));
    border-left: 5px solid var(--test1-orange);
}

.test1-recap-grid {
    display: grid;
    gap: 10px;
}

.test1-recap-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    font-weight: 600;
}

.test1-recap-total {
    background: linear-gradient(135deg, var(--test1-red) 0%, #FF6B6B 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 15px 20px;
}

.test1-form-submit {
    text-align: center;
    margin-top: 30px;
}

.test1-btn {
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.test1-btn-primary {
    background: linear-gradient(135deg, var(--test1-red) 0%, #C91F1F 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 76, 76, 0.4);
}

.test1-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 76, 76, 0.6);
}

.test1-form-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.test1-form-message.success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 3px solid #10B981;
}

.test1-form-message.error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 3px solid #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .test1-form-row,
    .test1-type-choice {
        grid-template-columns: 1fr;
    }
    
    .test1-registration-form {
        padding: 20px;
    }
    
    .test1-form-title {
        font-size: 1.8rem;
    }
}

/* Public Events List */
/* ═══════════════════════════════════════
   LISTE ÉVÉNEMENTS PUBLIQUE
═══════════════════════════════════════ */
.ym-evlist { padding: 20px 0; }
.ym-evlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}
.ym-ev-card {
    background: #fff;
    border: 2px solid #080808;
    box-shadow: 4px 4px 0 #080808;
    overflow: hidden;
    transition: transform .12s, box-shadow .12s;
    display: flex;
    flex-direction: column;
}
.ym-ev-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #080808; }
.ym-ev-card.past { opacity: .65; filter: grayscale(.4); }

/* Affiche */
.ym-ev-poster-wrap { display: block; position: relative; height: 200px; overflow: hidden; text-decoration: none; flex-shrink: 0; }
.ym-ev-poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ym-ev-card:hover .ym-ev-poster { transform: scale(1.03); }
.ym-ev-poster-fallback { background: linear-gradient(135deg,#1a2a4a,#2d4a7a); display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size:60px; color:rgba(255,255,255,.15); }

/* Badges */
.ym-ev-badge { position:absolute; top:12px; left:12px; font-family:'Bebas Neue',sans-serif; font-size:11px; letter-spacing:3px; padding:4px 12px; color:#fff; }
.ym-ev-badge.next    { background:#E94C4C; }
.ym-ev-badge.today   { background:#f59e0b; animation: ym-pulse 1.5s ease-in-out infinite; }
.ym-ev-badge.past-badge { background:rgba(0,0,0,.5); }
@keyframes ym-pulse { 0%,100%{opacity:1;} 50%{opacity:.6;} }

/* Corps */
.ym-ev-body { padding: 16px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.ym-ev-title { margin:0; font-family:'Bebas Neue',sans-serif; font-size:18px; letter-spacing:2px; line-height:1.2; }
.ym-ev-title a { color:#080808; text-decoration:none; }
.ym-ev-title a:hover { color:#E94C4C; }
.ym-ev-meta { display:flex; flex-direction:column; gap:4px; font-family:'Space Mono',monospace; font-size:10px; letter-spacing:1px; color:#666; }
.ym-ev-meta strong { color:#080808; }

/* Compte à rebours */
.ym-ev-countdown { display:inline-flex; align-items:baseline; gap:5px; background:#080808; padding:6px 14px; align-self:flex-start; }
.ym-ev-cd-num { font-family:'Bebas Neue',sans-serif; font-size:22px; color:#E94C4C; line-height:1; }
.ym-ev-cd-lbl { font-family:'Space Mono',monospace; font-size:8px; letter-spacing:2px; color:rgba(255,255,255,.6); text-transform:uppercase; }

/* Bouton */
.ym-ev-btn { display:block; text-align:center; background:#080808; color:#fff; font-family:'Bebas Neue',sans-serif; font-size:14px; letter-spacing:3px; padding:11px 20px; text-decoration:none; margin-top:auto; transition:background .15s; border:2px solid #080808; }
.ym-ev-btn:hover { background:#E94C4C; border-color:#E94C4C; color:#fff; }
.ym-ev-btn.past { background:#888; border-color:#888; }
.ym-ev-btn.past:hover { background:#555; border-color:#555; }

@media(max-width:600px){ .ym-evlist-grid{ grid-template-columns:1fr; } }

/* Public Exhibitors */
.test1-exhibitors-public {
    padding: 20px 0;
}

.test1-event-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6CC 100%);
    border-radius: 15px;
    margin-bottom: 40px;
}

.test1-event-header-poster {
    max-width: 400px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.test1-event-header h1 {
    color: #E94C4C;
    margin: 15px 0;
}

.test1-event-info {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
}

.test1-exhibitors-count {
    font-size: 1.2rem;
    margin: 15px 0;
}

.test1-no-exhibitors {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #999;
}

.test1-exhibitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.test1-exhibitor-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4DB5C1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.test1-exhibitor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.test1-exhibitor-card h3 {
    color: #E94C4C;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test1-exhibitor-type {
    font-size: 1rem;
}

.test1-exhibitor-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.test1-cat-badge {
    background: #E8D5BA;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.test1-exhibitor-desc {
    color: #333;
    line-height: 1.6;
    margin: 15px 0;
}

.test1-exhibitor-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.test1-exhibitor-social a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.test1-exhibitor-social a:hover {
    transform: scale(1.2);
}

/* ════════════════════════════════════════════════════════════════
   v3.23.75 : Fix responsive formulaire inscription public
   ════════════════════════════════════════════════════════════════ */
@media(max-width:600px){
    .test1-registration-form { padding: 10px !important; max-width: 100% !important; }
    .test1-form-title { font-size: 20px !important; }
    .test1-registration-form h3 { font-size: 15px !important; word-wrap: break-word; }
    .test1-registration-form input,
    .test1-registration-form select,
    .test1-registration-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
    }
    /* Tous les grid du form passent en 1 colonne */
    .test1-registration-form [style*="grid"],
    .test1-registration-form [style*="display:grid"],
    .test1-registration-form [style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
    /* Exception : préférence emplacement (3 cartes) reste en grille adaptative */
    #pref-options { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }

    /* Labels de profils : texte aligné au lieu de centré, padding réduit */
    [id^="label-profil-"] { padding: 12px !important; }
    [id^="label-profil-"] > div { font-size: 12px !important; }

    /* Boutons submit en pleine largeur */
    button[type="submit"] { width: 100% !important; padding: 14px !important; font-size: 15px !important; }
}

/* v3.23.76 : Section Options du formulaire — rendre lisible sur mobile */
@media(max-width:600px){
    /* Masquer l'en-tête "Option / Quantité" (pas utile en mobile) */
    .test1-option-header { display: none !important; }

    /* Chaque ligne : flex simple label+input sur 1 ligne */
    .test1-option-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }
    .test1-option-label {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .test1-option-label label {
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: normal !important;
        text-transform: none !important;
        line-height: 1.3 !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    .test1-option-label small {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-top: 3px !important;
    }
    .test1-option-qty {
        flex: 0 0 70px !important;
        justify-content: flex-end !important;
    }
    .test1-option-qty input[type="number"] {
        width: 70px !important;
        padding: 8px !important;
        font-size: 14px !important;
    }
    .test1-options-aligned {
        padding: 14px !important;
    }
}

