/**
 * ===================================
 * CDC FORM UNIFIED CSS
 * Fusion de cdc-frontend.css et cdc-form-cours.css
 * Version complète avec les nouveaux styles
 * ===================================
 */

/* ===== VARIABLES GLOBALES ===== */
:root {
    /* Couleurs principales */
    --cdc-primary: #002CB2;
    --cdc-secondary: #ff385c;
    --cdc-secondary-dark: #000;
    --cdc-success: #10b981;
    --cdc-warning: #f59e0b;
    --cdc-danger: #ef4444;
    --cdc-info: #3b82f6;
    --cdc-pink: #ff69b4;
    --cdc-pink-dark: #ff1493;
    
    /* États */
    --cdc-bg-normal: #ffffff;
    --cdc-border-normal: #e7e7e7;
    --cdc-text-normal: #000000;
    
    --cdc-bg-hover: #002CB2;
    --cdc-border-hover: #002CB2;
    --cdc-text-hover: #002CB2;
    
    --cdc-bg-active: #002CB2;
    --cdc-border-active: #002CB2;
    --cdc-text-active: #ffffff;
    
    /* Espacements */
    --cdc-spacing-xs: 4px;
    --cdc-spacing-sm: 8px;
    --cdc-spacing-md: 16px;
    --cdc-spacing-lg: 24px;
    --cdc-spacing-xl: 32px;
    
    /* Bordures */
    --cdc-radius-sm: 4px;
    --cdc-radius-md: 8px;
    --cdc-radius-lg: 12px;
    --cdc-radius-full: 50px;
}

/* ===== RESET DE BASE ===== */
.cdc-form-container *,
.cdc-inscription-form *,
.cdc-form-container *::before,
.cdc-form-container *::after {
    box-sizing: border-box;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.cdc-form-container,
.cdc-inscription-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== SECTIONS ===== */
.cdc-section {
    background: var(--cdc-bg-normal);
    border-radius: var(--cdc-radius-md);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cdc-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    color: var(--cdc-text-normal);
}

/* ===== CHAMPS DE FORMULAIRE ===== */
.cdc-field {
    margin-bottom: 20px;
}

.cdc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.cdc-field input[type="text"],
.cdc-field input[type="email"],
.cdc-field input[type="tel"],
.cdc-field textarea,
.cdc-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.cdc-field input:focus,
.cdc-field textarea:focus {
    outline: none;
    border-color: var(--cdc-secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== GRILLE 2 COLONNES ===== */
.cdc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cdc-row .cdc-field {
    flex: 1;
}

/* ===== BOUTONS RÔLES - GROS CARRÉS AVEC EMOJI ===== */
.cdc-roles-emoji {
    display: flex;
    gap: 20px;
    justify-content: center;
    /*margin: 30px 0;*/
}

.cdc-role-emoji-btn {
    position: relative;
    flex: 1;
    max-width: 180px;
}

.cdc-role-emoji-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.cdc-role-emoji-btn label {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px 10px;
background: #fff;
border: 2px solid #dee2e6;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
min-height: 100px;
position: relative;
}

.cdc-role-emoji-btn label .emoji {
    font-size: 1.8em;
    margin-bottom: 0px;
    display: block;
}

.cdc-role-emoji-btn label strong {
    font-size: 1.1em;
    color: #495057;
   /* text-transform: uppercase;
    letter-spacing: 1px;*/
}

/* État sélectionné */
.cdc-role-emoji-btn input:checked + label {
    background: linear-gradient(135deg, var(--cdc-pink), var(--cdc-pink-dark));
    border-color: var(--cdc-pink-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
}

.cdc-role-emoji-btn input:checked + label strong {
    color: white;
}

/* Hover */
.cdc-role-emoji-btn:hover label {
    background: #fff;
    border-color: var(--cdc-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== TOGGLE PARTENAIRE - RECTANGLE ===== */
.cdc-partenaire-btn {
    text-align: center;
    margin: 25px auto;
    max-width: 500px;
    position: relative;
}

.cdc-partenaire-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.cdc-partenaire-btn label {
display: flex;
align-items: center;
justify-content: center;
gap: 0px;
padding: 15px 10px;
background:  #fff5fb;
border: 2px solid var(--cdc-pink);
border-radius: 35px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1;
font-weight: 800;
color: var(--cdc-pink);
box-shadow: 0 3px 10px rgba(255, 105, 180, 0.2);

}

.cdc-partenaire-btn label .emoji {
    font-size: 1.4em;
}

.cdc-partenaire-btn input:checked + label {
background: linear-gradient(135deg, var(--cdc-pink), var(--cdc-pink-dark));
border-color: var(--cdc-pink-dark);
    color: #ffffff;
}

.cdc-partenaire-btn:hover label {
background: linear-gradient(135deg, var(--cdc-pink), var(--cdc-pink-dark));
border-color: var(--cdc-pink-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.2);
}

/* ===================================
   SÉLECTEUR DE MONNAIE
   =================================== */

.cdc-currency-selector-inline {
    display: flex;
    gap: 5px;
}

.cdc-currency-selector-inline label {
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    background: white;
    color: #333;
    position: relative;
}

.cdc-currency-selector-inline label:hover {
    border-color: var(--cdc-primary);
    background: #f0f4ff;
}

/* Cacher les inputs radio */
.cdc-currency-selector-inline input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* État actif */
.cdc-currency-selector-inline label.active {
    background: var(--cdc-primary); !important;
    color: white !important;
    border-color:var(--cdc-primary); !important;
}

/* Support pour les navigateurs modernes */
.cdc-currency-selector-inline label:has(input:checked) {
    background: var(--cdc-primary); !important;
    color: white !important;
    border-color:var(--cdc-primary); !important;
}
/* ===== CHECKBOXES VISIBLES (RGPD, etc.) ===== */
.cdc-checkbox-label input[type="checkbox"] {
    /* Ces checkbox doivent rester visibles */
    position: static;
    opacity: 1;
    pointer-events: auto;
    appearance: auto;
    -webkit-appearance: checkbox;
    margin-right: 8px;
}

/* Info box adhésion */
.cdc-info-box {
    background: #e8f4ff;
    border: 1px solid #90caf9;
    padding: 12px 16px;
    border-radius: var(--cdc-radius-sm);
    margin: 16px 0;
    font-size: 0.95rem;
}

/* Texte d'aide */
.cdc-help-text {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===== BANDEAU ADHÉSION ===== */
.cdc-adhésion-bandeau {
    background: linear-gradient(135deg, #e8f4f8, #d4e8f0);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
   /* border: 2px solid #b8dae8;*/
}

.cdc-adhésion-bandeau label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.cdc-adhésion-bandeau input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cdc-adhésion-bandeau strong {
    color: #2c5aa0;
    font-size: 1.05em;
}

/* ===== MESSAGE HELPER ===== */
.cdc-role-helper {
    text-align: center;
    margin: 20px 0;
    color: #333;
    /*font-style: italic;*/
    padding: 15px;
    /*background: #f8f9fa;
    border-radius: 8px;*/
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/**
 * =========================================
 * ACCORDÉONS JOUR-STYLE
 * Structure : 1 accordéon = 1 header avec fond coloré
 * =========================================
 */

/* Block conteneur d'un accordéon */
.cdc-style-block {
    margin-bottom: 15px;
}

/* Header accordéon avec fond coloré (appliqué inline) */
.cdc-style-header {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 38px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.1s ease;
    /* background-color: appliqué via style="" inline en PHP */
    /* color: white; déjà dans inline */
}

.cdc-style-header:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cdc-style-header:active {
    transform: translateY(0);
}

.cdc-style-header:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Titre de l'accordéon */
.cdc-accordion-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

/* Icône + / - */
.cdc-accordion-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    transition: none;
    /* Pas de rotation, juste + devient - */
}

/* Container des créneaux (fermé par défaut) */
.cdc-creneaux-container {
    display: none;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Animation d'ouverture/fermeture */
.cdc-creneaux-container[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}


/* Ligne de cours (horaire + boutons) */
.cdc-ligne-cours {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
.cdc-horaire-niveau-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*gap: 5px;*/
}

.cdc-horaire-niveau-ligne {
    font-size: 17px;
    line-height: 1;
}

/* ✅ Horaires : poids normal */
.cdc-separateur, .cdc-horaires {
    font-size: 17px;
    font-weight: 300;
    color: #000;
}

/* ✅ Séparateur */
/* ✅ Niveau : gras uniquement ici */
.cdc-niveau {
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

/* Info places (PHP initial) */
.cdc-places-info {
    font-size: 0.9em;
    margin-left: 8px;
}

.cdc-places-info.status-complet {
    color: #f44336;
    font-weight: 600;
}

.cdc-places-info.status-waitlist {
    color: #ff9800;
}

.cdc-places-info.status-dernieres {
    color: #f44336;
}

/* Statut dynamique (JS) */
.cdc-status-dynamic {
    font-size: 0.9em;
    margin-left: 8px;
}

.cdc-btn-semestre input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Labels des boutons semestre */
.cdc-btn-semestre label {
    padding: 8px 16px;
    background: var(--cdc-border-normal);
    border: 2px solid var(--cdc-border-normal);
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.cdc-btn-semestre label:hover:not(.disabled) {
    background: var(--cdc-primary);
    color: white;
    border-color: var(--cdc-primary);
}

.cdc-btn-semestre input:checked + label {
    background: var(--cdc-primary);
    color: white;
    border-color: var(--cdc-primary);
}

.cdc-btn-semestre label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}


    /* États des boutons */
.cdc-btn-container input:checked + .cdc-btn-unified,
.cdc-btn-semestre input:checked + label {
    background: var(--cdc-primary);
    color: white;
    border-color: var(--cdc-primary);
}

.cdc-btn-container input:disabled + .cdc-btn-unified,
.cdc-btn-semestre input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.cdc-btn-container input:disabled + .cdc-btn-unified::after,
.cdc-btn-semestre input:disabled + label::after {
    content: " (Complet)";
    color: #ff6b6b;
    font-size: 0.9em;
}
/* Semestre fermé (inscriptions closes) - override "(Complet)" */
.cdc-btn-semestre.semestre-ferme input:disabled + label::after {
    content: " (Fermé)";
        color: #ff6b6b;
    font-size: 0.9em;

}    

/* Créneau individuel */
.cdc-creneau {
/* background: white; */
padding: 6px 0px 15px 0px;
margin-bottom: 10px;
/* border-radius: 6px; */
border-bottom: 1px solid #d2d2d2;
transition: all 0.2s ease;
}

/* Ligne de cours (layout horizontal) */
.cdc-ligne-cours {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.cdc-horaire-niveau-wrapper {
    flex: 1;
    min-width: 200px;
}

.cdc-horaire-niveau {
    flex: 1;
    min-width: 200px;
    max-width: 50%;
}

.cdc-boutons-semestre {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.cdc-btn-semestre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/*.cdc-creneau:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}*/

/* États spéciaux des créneaux */
.cdc-creneau-complet {
    background: #f5f5f5;
    opacity: 0.7;
}

.cdc-creneau-waitlist {
    border-left: 4px solid #ff9800;
}

.cdc-creneau-dernieres-places {
    border-left: 4px solid #f44336;
}

/* === BADGES DE DISPONIBILITÉ PAR SEMESTRE === */

/* Message de disponibilité sous chaque bouton semestre */
.cdc-status-semestre {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    max-width: 200px;
    white-space: normal;
    line-height: 1.3;
}

/* Status disponible */
.cdc-status-semestre.status-available {
    color: #28a745;
    /* background: #d4edda;*/
}

/* Status complet */
.cdc-status-semestre.status-full,
.cdc-status-semestre.cdc-badge-complet {
    color: #dc3545;
    /* background: #f8d7da;*/
}

/* Status dernières places */
.cdc-status-semestre.status-warning,
.cdc-status-semestre.cdc-badge-dernieres {
    color: #ff8c00;
    /* background: #fff3cd;*/
}

/* Status liste d'attente */
.cdc-status-semestre.cdc-badge-attente {
    color: #0066cc;
    /* background: #cce5ff;*/
}

/* Semestre fermé */
.cdc-btn-semestre.semestre-ferme {
    opacity: 0.4;
}

.cdc-btn-semestre.semestre-ferme label {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #ccc !important;
}

.cdc-btn-semestre.semestre-ferme .cdc-status-semestre.status-closed {
    color: #dc3545;
   /* background: #f8d7da;*/
    font-weight: 600;
}



/* Séparateur + */
.cdc-plus {
    font-size: 18px;
    font-weight: bold;
    color: #999;
}

/* Réduction année complète */
.cdc-reduction {
    color: #4caf50;
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cdc-ligne-cours {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cdc-boutons-semestre {
        width: 100%;
        justify-content: space-between;
    }
    
    .cdc-accordion-title {
        font-size: 14px;
    }
    
    .cdc-style-header {
        padding: 12px 15px;
    }
}



/* Badge réduction année */
.cdc-reduction {
    display: inline-block;
    padding: 5px 10px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* ===== RÉCAPITULATIF DES PRIX ===== */
.cdc-price-summary {
    background: white;
    /*border: 2px solid var(--cdc-secondary);*/
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cdc-price-summary h3 {
    color: var(--cdc-secondary-dark);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdc-price-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    /*border-bottom: 1px solid #f0f0f0;*/
}

.cdc-price-line:last-child {
    border-bottom: none;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--cdc-secondary-dark);
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--cdc-secondary-dark);
}

.cdc-price-total {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--cdc-secondary-dark);
}

/* ===== MODES DE PAIEMENT ===== */
.cdc-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.cdc-payment-btn {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.cdc-payment-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.cdc-payment-btn label {
    display: block;
    padding: 15px;
    background: white;
    border: 2px solid var(--cdc-border-normal);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cdc-payment-btn label:hover:not(.disabled) {
    border-color: var(--cdc-primary);
    color: var(--cdc-primary);
    background: var(--cdc-border-normal);
}
.cdc-payment-btn input:checked + label {
    background: var(--cdc-secondary);
    color: white;
    border-color: var(--cdc-secondary);
}

/* ===== CHECKBOX ET LABELS ===== */
.cdc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cdc-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* ===== MESSAGES ET ALERTES ===== */
.cdc-alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.cdc-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cdc-success {
background: #d5fce8;
padding: 20px;
border-radius: 20px;
}

.cdc-error {
background: #ff99dc;
padding: 20px;
border-radius: 20px;
}

.cdc-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cdc-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.cdc-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== BOUTON DE SOUMISSION ===== */
.cdc-submit-btn {
    background: var(--cdc-text-active);
    color: var(--cdc-primary);
    padding: 15px 40px;
    border: 2px solid var(--cdc-primary);
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cdc-submit-btn:hover {
    background: var(--cdc-primary);
    border-color: var(--cdc-primary);
    color: var(--cdc-text-active);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cdc-submit-btn:active {
    transform: translateY(0);
}

.cdc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== LOADER ===== */
.cdc-loader,
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--cdc-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cdc-form-container,
    .cdc-inscription-form {
        padding: 0 15px;
    }
    
    .cdc-section {
        padding: 20px;
    }
    
    .cdc-row {
        flex-direction: column;
    }
    
    .cdc-row .cdc-field {
        width: 100%;
    }
    
    .cdc-roles-emoji {
        flex-direction: column;
        align-items: center;
    }
    
    .cdc-role-emoji-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .cdc-ligne-cours {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cdc-boutons-semestre {
        width: 100%;
        margin-top: 10px;
    }
    
    .cdc-btn-unified,
    .cdc-btn-semestre label {
        min-width: 100px;
        font-size: 0.9em;
        padding: 8px 15px;
    }
    
    .cdc-payment-methods {
        flex-direction: column;
    }
    
    .cdc-payment-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cdc-form-container,
    .cdc-inscription-form {
        padding: 0 10px;
    }
    
    .cdc-section {
        padding: 15px;
    }
    
    .cdc-role-emoji-btn label {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .cdc-role-emoji-btn label .emoji {
        font-size: 1.6em;
    }
    
    .cdc-role-emoji-btn label strong {
        font-size: 1em;
    }
}

/* ===== CLASSES D'ÉTAT POUR JAVASCRIPT ===== */
.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.has-error,
.error-field {
    border-color: var(--cdc-danger) !important;
}

.field-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* ===== STYLES ÉQUILIBRAGE ===== */
.cdc-equilibrage-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #856404;
}

.cdc-places-disponibles {
    display: inline-block;
    padding: 4px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.85em;
    margin-left: 10px;
}

.cdc-places-completes {
    background: #f8d7da;
    color: #721c24;
}

.cdc-places-attente {
    background: #fff3cd;
    color: #856404;
}

.cdc-creneau-bloque {
    opacity: 0.6;
    background: #f8f8f8;
}

.cdc-creneau-complet {
    border-left: 4px solid var(--cdc-danger);
}

.cdc-creneau-dernieres-places {
    border-left: 4px solid var(--cdc-warning);
}

.cdc-creneau-desequilibre {
    border-left: 4px solid var(--cdc-info);
}


/* ===== UTILITAIRES ===== */
.cdc-hidden { display: none; }
.cdc-text-center { text-align: center; }
.cdc-font-bold { font-weight: 700; }

/* ===== FIX ANDROID ===== */
@supports (-webkit-appearance: none) {
    input[type="radio"],
    input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    .cdc-btn-unified,
    .cdc-btn-container label {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
}

/* ===== IMPRESSION ===== */
@media print {
    .cdc-btn-unified,
    .cdc-button-group,
    .cdc-submit-btn,
    .cdc-payment-methods {
        display: none !important;
    }
    
    .cdc-section {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Fin du CSS unifié */