.elementor-32266 .elementor-element.elementor-element-6b8baba{--display:flex;}.elementor-32266 .elementor-element.elementor-element-07510cc{--display:flex;}.elementor-32266 .elementor-element.elementor-element-2c5a3d3{width:100%;max-width:100%;}.elementor-32266 .elementor-element.elementor-element-b7fdb61{--display:flex;}/* Start custom CSS */:root {
    --ai-blue: #1e40af;
    --ai-purple: #7e3af2;
    --ai-pink: #ff2d7d;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Masquage des formulaires sources */
#pm_regform_5, #pm_regform_6, .pmagic { display: none !important; }

.ai4good-master-wrapper {
    display: flex;
    justify-content: center;
    width: 100vw !important;
    min-height: 100vh !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 60px 20px !important;
    padding: 60px 20px;
    background: radial-gradient(circle at top right, #1a1c4b, #07081a);
    font-family: -apple-system, sans-serif;
    color: #fff;
}

.apple-card {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* Tabs / Segmented Control */
.segmented-control {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 40px;
    position: relative;
}

.segmented-control button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.segmented-control button.active { color: #fff; }

.slider {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: rgba(255,255,255,0.1);
    border-radius: 11px;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;
}

/* Form Fields */
.field-box { margin-bottom: 24px; animation: fadeIn 0.6s ease; }
.field-box label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 8px; text-transform: uppercase; }

input, select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.4s;
}

/* Focus Halo Boréal */
input:focus, select:focus {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 30px -5px var(--ai-blue), 15px 0 30px -5px var(--ai-purple), -15px 0 30px -5px var(--ai-pink);
    transform: scale(1.01);
}

.btn-vibrant {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple), var(--ai-pink));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
}

.hidden-section { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 3. Champs Rounded & Sans Bordures */
.field-box { margin-bottom: 25px !important; }
.field-box label { display: block !important; font-size: 11px !important; font-weight: 700 !important; color: rgba(255,255,255,0.4) !important; margin-bottom: 10px !important; text-transform: uppercase !important; letter-spacing: 1px !important; }

input, select {
    width: 100% !important; 
    background: rgba(255, 255, 255, 0.06) !important; 
    border: none !important; /* Pas de bordure comme demandé */
    border-radius: 20px !important; /* Totalement rounded */
    padding: 16px 20px !important; 
    color: #fff !important; 
    font-size: 16px !important; 
    outline: none !important;
    color-scheme: dark !important; /* Uniformisation sombre des options select */
}

/* 4. Sélecteur de Genre par Icônes */
.gender-grid { display: flex !important; gap: 12px !important; }
.gender-btn {
    flex: 1 !important; padding: 15px !important; background: rgba(255,255,255,0.05) !important; 
    border-radius: 20px !important; cursor: pointer !important; display: flex !important; 
    flex-direction: column !important; align-items: center !important; gap: 6px !important; 
    transition: 0.3s !important; color: rgba(255,255,255,0.3) !important;
}
.gender-btn.active {
    color: #fff !important; background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 0 20px -5px #a80fc4 !important;
}
.gender-btn svg { width: 22px !important; height: 22px !important; fill: currentColor !important; }
.gender-btn span { font-size: 9px !important; font-weight: 800 !important; }

/* Halo Boréal au Focus (Couleurs AI4GOOD) */
input:focus, select:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 
                0 0 30px -5px #1e40af, 
                15px 0 30px -10px #a80fc4, 
                -15px 0 30px -10px #d84de8 !important;
}

/* Fix pour les options invisibles */
select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Style du Loader */
.ai-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db; /* Bleu ou ta couleur */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style du message de succès */
.ai-success-msg {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #00ff88;
    margin-top: 15px;
}

.ai-error-msg {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ff4444;
    margin-top: 15px;
}

/* --- STYLES EXISTANTS --- */
/* (Gardez votre CSS précédent pour les inputs, buttons, etc.) */
select option { color: #000; background: #fff; }

/* --- NOUVEAUX STYLES --- */

/* Checkbox Container */
/* --- CHECKBOX FIX (CORRECTION DU PROBLÈME VISUEL) --- */
.checkbox-container {
    display: flex;
    flex-direction: row; /* Force la ligne */
    align-items: flex-start; /* Aligne en haut si le texte est long */
    gap: 12px;
    margin-bottom: 25px;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.checkbox-container input[type="checkbox"] {
    appearance: auto; /* Garde le style natif ou reset */
    width: 20px !important;  /* Force une petite largeur */
    min-width: 20px !important; /* Empêche le rétrécissement */
    height: 20px !important;
    margin-top: 2px; /* Petit ajustement vertical */
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

.checkbox-container label {
    margin: 0;
    cursor: pointer;
    text-transform: none; /* Pas de majuscules forcées */
    font-weight: normal;
    color: #fff;
}

.magenta-link {
    color: #ff2d7d;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
}
.magenta-link:hover { color: #fff; }

/* --- MODAL SCROLLABLE FIX --- */
.ai-modal {
    display: none;
    position: fixed;
    z-index: 100000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px; /* Marge de sécurité sur mobile */
    box-sizing: border-box;
}

.ai-modal-content {
    background: #121430; /* Fond solide pour lisibilité */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    
    /* --- C'EST ICI QUE LA MAGIE OPÈRE --- */
    max-height: 85vh; /* Hauteur max = 85% de l'écran */
    overflow-y: auto; /* Scroll vertical activé */
    /* ----------------------------------- */
    
    color: #fff;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* Scrollbar personnalisée pour le modal (Webkit) */
.ai-modal-content::-webkit-scrollbar {
    width: 8px;
}
.ai-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.ai-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.ai-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.ai-modal-close {
    position: sticky; /* Reste collé en haut */
    top: -10px; /* Ajustement par rapport au padding */
    float: right;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: #121430; /* Cache le texte qui passe dessous */
    padding: 0 0 10px 10px;
    z-index: 10;
    line-height: 1;
}

@media (max-width: 768px) {
    
    /* 1. Le conteneur principal ne doit plus avoir de marge interne sur les côtés */
    .ai4good-master-wrapper {
        padding: 0 !important;
        align-items: flex-start; /* Colle le formulaire en haut */
    }

    /* 2. La carte devient un bloc "Plein Écran" */
    .apple-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important; /* Enlève les coins arrondis */
        border: none !important; /* Enlève la bordure blanche fine */
        box-shadow: none !important; /* Enlève l'ombre portée */
        margin: 0 !important;
        padding: 30px 20px !important; /* Garde un peu d'espace interne pour le texte */
        min-height: 100vh; /* Prend toute la hauteur de l'écran */
        background: radial-gradient(circle at top right, #1a1c4b, #07081a); /* Force le fond sombre uni */
    }

    /* 3. Force les champs Nom/Prénom en colonne (l'un sous l'autre) */
    #section-participant div[style*="display:flex"],
    #section-establishment div[style*="display:flex"],
    /* Cible aussi les divs flex génériques si vous en ajoutez d'autres */
    .field-box div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 4. Ajustements ergonomiques pour le mobile */
    .segmented-control {
        border-radius: 0; /* Optionnel : onglets carrés sur les bords */
        margin-bottom: 30px;
    }
    
    .segmented-control button {
        font-size: 13px;
    }

    .checkbox-container {
        font-size: 12px;
        padding-right: 5px; /* Évite que le texte touche le bord droit */
    }
}/* End custom CSS */