/**
 * ========================================
 * CDC STAGE POPUP - STYLES COMPLETS V2
 * ========================================
 * 
 * Architecture : Mobile-first, scroll vertical
 * Responsive : Desktop 800px+
 * 
 * Fichier : assets/css/cdc-stage-popup.css
 */

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
    --popup-max-width: 700px;
    --popup-padding: 15px 50px;
    --primary-color: #002CB2;
    
    --color-vert: #002CB2;
    --color-vert-clair: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1a1a1a;
    --text-light: #666;
    --border-color: #e7e7e7;
    --bg-light: #e7e7e7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ========================================
   OVERLAY & CONTAINER
   ======================================== */

#cdc-stage-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

.cdc-popup-container {
    background: white;
    width: 100%;
    max-width: var(--popup-max-width);
    max-height: 95vh;
    margin: auto;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile : plein écran */
@media (max-width: 768px) {
    #cdc-stage-popup {
        padding: 0;
        align-items: flex-start;
    }
    
    .cdc-popup-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}

/* ========================================
   BOUTON FERMER
   ======================================== */

.cdc-popup-close {
position: absolute;
top: 10px;
right: 10px;
width: 50px;
height: 50px;
padding: 0px 10px;
border-radius: none;
background: rgba(0, 0, 0, 0.5);
color: white;
font-size: 28px;
line-height: 1;
cursor: pointer;
border-radius: 50px;
z-index: 10;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
}
.cdc-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* ========================================
   CONTENU SCROLLABLE
   ======================================== */

.cdc-popup-content {
    height: 95vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .cdc-popup-content {
        height: 100vh;
    }
}

/* ========================================
   POSTER (EN HAUT FIXE)
   ======================================== */

.stage-poster-header {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.stage-poster-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

@media (max-width: 768px) {
    .stage-poster-image {
        max-height: 300px;
    }
}

/* ========================================
   SECTIONS
   ======================================== */

.stage-section {
padding: var(--popup-padding);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

/* ========================================
   HEADER
   ======================================== */

.stage-header {
    background: white;
}

.stage-title {
   /* font-size: 28px;
    font-weight: 700;*/
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.stage-date {
    font-size: 1.2em;
     font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .stage-title {
        font-size: 24px;
    }
}

/* ========================================
   PROFESSEURS
   ======================================== */
.stage-professeurs{
padding: var(--popup-padding);
}

.stage-professeurs h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.profs-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.prof-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
    min-width: 200px;
}

.prof-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 3px solid var(--primary-color);*/
}

.prof-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.prof-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========================================
   DESCRIPTION
   ======================================== */

.stage-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

#stage-description-content {
line-height: 1.6;
font-size: 1.2em;
color: var(--text-color);
}

/* ========================================
   PROGRAMME (LISTE PASSIVE)
   ======================================== 

.stage-programme h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.niveaux-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.niveau-info-card {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-light);
}

.niveau-info-card h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--primary-color);
}

.niveau-horaire {
    font-size: 14px;
    color: var(--color-vert);
    margin-bottom: 8px;
}

.niveau-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}*/





/* ========================================
   TARIFS - ACCORDÃ‰ONS
   ======================================== */

.stage-tarifs h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.devise-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
   /* border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 4px;*/
    width: fit-content;
}

.devise-btn {
    padding: 8px 20px;
    border: none;
    background: #333;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition);
}

.devise-btn.active {
    background: var(--primary-color);
    color: white;
}

.devise-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* AccordÃ©on */
.tarif-accordion {
    /*margin-bottom: 15px;*/
    border-top: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.tarif-accordion.open {
    border-color: var(--primary-color);
}

.accordion-header {
    padding: 15px;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #e8e8e8;
}

.accordion-header .icon {
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.accordion-header .header-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.accordion-header .title {
    font-weight: 600;
    font-size: 16px;
}

.badge-economie {
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.accordion-content {
    display: none;
    padding: 20px;
    background: white;
}

.tarif-accordion.open .accordion-content {
    display: block;
}

/* Tableau tarifs */
.tarif-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* Tableau prix Solo/Duo */
.tarif-table-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.tarif-table-grid thead th {
    padding: 12px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-align: center;
}

.tarif-table-grid thead th:first-child {
    text-align: left;
}

.tarif-table-grid tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.tarif-table-grid tbody tr:hover {
    background: #f8f9fa;
}

.tarif-table-grid tbody tr.populaire {
    background: #fff9e6;
}

.tarif-table-grid tbody tr.populaire:hover {
    background: #fff4d6;
}

.tarif-table-grid td {
    padding: 15px 12px;
    text-align: center;
}

.tarif-table-grid td:first-child {
    text-align: left;
    font-weight: 500;
}

.niveau-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prix-solo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.prix-duo {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

.rabais-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}

.badge-pop {
    background: var(--warning-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .tarif-table-grid {
        font-size: 14px;
    }
    
    .tarif-table-grid td {
        padding: 10px 8px;
    }
    
    .prix-solo, .prix-duo {
        font-size: 16px;
    }
}

.tarif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
}

.tarif-row:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.tarif-row.populaire {
    background: #fff9e6;
    border-color: var(--warning-color);
    font-weight: 600;
}

.tarif-row .prix {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.tarif-row .rabais {
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.tarif-row .badge-pop {
    background: var(--warning-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.info-box {
    padding: 12px 15px;
    margin: 20px 0px;
    border-radius: var(--radius);
    background: #e7f5ff;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    line-height: 1.5;
}

.info-box.membre {
    background: #d4edda;
    border-color: var(--success-color);
}

/* CTA Devenir membre */
.cta-devenir-membre {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    color: white;
}

.cta-devenir-membre .cta-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cta-devenir-membre .icon {
    font-size: 32px;
}

.cta-devenir-membre .text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.cta-devenir-membre .text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.btn-devenir-membre {
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: white;
    color: #764ba2;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-devenir-membre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   CARTES DE NIVEAUX - Programme
   ================================ */

.niveau-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    /*border: 2px solid var(--border-color);*/
    border-radius: 25px;
    background-color: #f6f6f6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* Important pour le bouton absolu */
}

.niveau-card:hover {
    border-color: var(--color-vert);
    background-color: var(--color-vert-clair);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.niveau-card:hover .niveau-select-btn { 
border-color: var(--color-vert); 
background-color: var(--color-vert); 
}


.niveau-card.selected {
    border-color: var(--color-vert);
    border-width: 3px;
    background: var(--color-vert-clair);
}

/* Contenu de la carte - prend toute la largeur sauf le bouton */
.niveau-content {
    flex: 1;
    padding-right: 70px; /* Espace pour le bouton */
}



.niveau-titre {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.niveau-horaire {
    color: var(--color-vert);
    margin: 0 0 15px 0;
}

.niveau-subtitle {
    color: var(--text-light);
    margin: 5px 0 20px 0;
    margin-bottom: 1rem;
}

.niveau-disponibilite-badge {
    display: inline-block;
    /* padding: 6px 12px;
    background-color: #d1fae5;
    border-radius: 6px;*/
    color: #22c55e !important;
    font-size: 0.7em;
    font-weight: 600;
}


/* Bouton SVG - Positionné à droite */
.niveau-select-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #a6a6a6;
    background-color: #a6a6a6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Caché par défaut */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0; /* Important : enlever tout padding */
}

.niveau-select-btn:hover {
    border-color: var(--color-vert);
    background-color: var(--color-vert);
}

.niveau-card.selected .niveau-select-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.niveau-select-btn svg {
    width: 36px;  /* Augmenté pour mieux voir */
    height: 36px; /* Augmenté pour mieux voir */
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    display: block; /* Important */
}

.niveau-card.selected .niveau-select-btn svg {
    stroke: #ffffff;
    stroke-width: 3;
}

/* ========================================
   FORMULAIRE
   ======================================== */

.cdc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    /*font-weight: 600;*/
}

.form-group input[type="email"],
.form-group input[type="text"] {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group .description {
    color: var(--text-light);
}

.stage-checkbox-label {
    display: flex;
    align-items: flex-start;
    background: #fce7f9;
    gap: 10px;
    opacity: 1;
    cursor: pointer;
    padding: 10px;
   appearance: auto;
    -webkit-appearance: checkbox;
    transition: var(--transition);
}

.stage-checkbox-label:hover {
    background: #d5feee;
}

.stage-checkbox-label input[type="checkbox"] {
    background: #d5feee;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.membre-status-msg {
   /* margin-top: 8px;
    padding: 10px;*/
    border-radius: var(--radius);
    font-size: 14px;
}

.membre-detected {
    background: #d4edda;
    border: 1px solid var(--success-color);
    color: #155724;
}

/* ========================================
   RÉCAPITULATIF
   ======================================== */
#section-recap {
    /* background: #f9fafb;
   border: 2px solid var(--primary-color);
    border-radius: var(--radius);*/
   /* padding: 20px;*/
    margin: 20px 0;
}

#section-recap h3 {
    color: var(--text-colo);
    margin-bottom: 15px;
    font-size: 20px;
}

.devise-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    /*background: white;
    padding: 4px;*/
    border-radius: var(--radius);
    width: fit-content;
}

.devise-btn {
    padding: 8px 16px;
    border: none;
    color: var(--text-color);
    background: var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.devise-btn.active {
    background: var(--primary-color);
    color: white;
}

.recap-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recap-details {
/* border: 2px solid var(--border-color); */
/* border-radius: 25px; */
background-color: #e8fff0;
margin: -30px -50px;
/* box-shadow: 0 6px 12px rgba(0,0,0,0.08); */
padding: 20px 50px;
}

.recap-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.recap-line:last-child {
    border-bottom: none;
}

.recap-line.rabais {
    color: var(--success-color);
}

.recap-line.total {
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--text-color);
}

.recap-item {
    padding: 8px 0;
    /*border-bottom: 1px solid var(--border-color);*/
}

.recap-item strong {
    color: var(--text-color);
     font-size: 24px;

}

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

.recap-separator {
    height: 1px;
    background-color: var(--text-color);
    /*margin: 15px 0;*/
}

.recap-prix-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.recap-prix-line {
    display: flex;
    justify-content: space-between;
    /*padding: 8px 0;*/
}

.recap-prix-line.prix-rabais {
color: #49bf5e;
}

.recap-prix-line.prix-cotisation {
    color: #0284c7;
}

.recap-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.recap-total .total-prix {
    font-size: 18px;
    /*color: var(--text-color);*/
}
    
.recap-item.highlight {
    background: #fff3cd;
    padding: 10px;
    border-radius: var(--radius);
    margin-top: 10px;
}

.recap-niveaux-list {
list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.recap-niveaux-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--text-light);
}

/* Mode de paiement */
.payment-method-selector {
    margin: 20px 0;
}

.payment-method-selector h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.payment-option .option-content {
display: flex;
padding: 20px;
border: 2px solid var(--border-color);
border-radius: var(--radius);
cursor: pointer;
margin-bottom: 10px;
transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.payment-option input[type="radio"]:checked + .option-content {
    color: var(--primary-color);
    border: 2px solid var(--color-vert);
border-width: 3px;
background: var(--color-vert-clair);
 box-shadow: var(--shadow);
 padding: 20px;
}

.payment-option input[type="radio"]:checked ~ * {
    border-color: var(--primary-color);
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-title {
    font-weight: 700;
    font-size: 18px;
}

.option-badge.rabais {
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    width: fit-content;
}

.option-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* Breakdown prix */
.price-breakdown {
   /*  background: white;
   border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;*/
    margin: 20px 0;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-line:last-child {
    border-bottom: none;
}

.price-line.rabais {
    color: var(--success-color);
    font-weight: 600;
}

.price-line.cotisation {
    background: #fff9e6;
    padding: 10px;
    border-radius: var(--radius);
    margin-top: 10px;
}

.total-final {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
}

/* ========================================
   BOUTONS D'ACTION
   ======================================== */

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: #e7f5ff;
}

.btn-large {
    padding: 18px 30px;
    font-size: 20px;
}

/* ========================================
   LOADING
   ======================================== */

.loading-indicator {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .stage-section {
        padding: 15px;
    }
    
    .tarif-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tarif-row .prix {
        font-size: 18px;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .btn-large {
        font-size: 18px;
        padding: 15px 20px;
    }
}

/* ============================================ */
/* CONTENEUR PRINCIPAL SECTION TARIFS */
/* ============================================ */

/*.section-tarifs {
    padding: 30px 20px;
    background: white;
}*/

/* ============================================ */
/* INFOS GÉNÉRALES (Toujours visible) */
/* ============================================ */

.stage-tarifs-info-generale {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    border-left: 4px solid var(--cdc-info);
    border-radius: 8px;
    margin-top: 20px;
}

.stage-tarifs-info-generale .info-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.stage-tarifs-info-generale .info-content {
    flex: 1;
}

.stage-tarifs-info-generale .info-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
}

.stage-tarifs-info-generale .tarifs-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stage-tarifs-info-generale .tarifs-tips li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cdc-text-normal);
}

.stage-tarifs-info-generale .tarifs-tips li:last-child {
    margin-bottom: 0;
}

.stage-tarifs-info-generale .tarifs-tips strong {
    color: #1e40af;
    font-weight: 600;
}

.membre-cta-inline {
    display: inline-block;
    margin-left: 5px;
}

.membre-cta-inline a {
    color: var(--cdc-info);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.membre-cta-inline a:hover {
    color: #1e40af;
}

/* ============================================ */
/* ACCORDÃ‰ONS SOLO/DUO */
/* ============================================ */

.stage-tarifs-accordeons {
    margin-bottom: 30px;
}

.stage-accordion-block {
    margin-bottom: 15px;
}

/* Header accordÃ©on (style identique Ã  cdc-form-cours) */
.stage-accordion-header {
    width: 100%;
    padding: 18px 35px;
    background: var(--bg-light);
    color: var(--text-color);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.stage-accordion-header:hover {
    background:var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stage-accordion-header:active {
    background:var(--primary-color);
        color: white;
    transform: translateY(0);
}

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

.stage-accordion-header .accordion-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.stage-accordion-header .accordion-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    transition: none;
}

/* Contenu accordÃ©on (fermÃ© par dÃ©faut) */
.stage-accordion-content {
    display: none;
    padding: 15px 0px;
   /* background: var(--cdc-bg-light);
    border-radius: 0 0 12px 12px;*/
    margin-top: -5px;
}

/* Animation slideDown (cohÃ©rente avec cdc-form-cours) */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-accordion-content[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

/* ============================================ */
/* TABLEAU TARIFS */
/* ============================================ */

.tarifs-tableau {
    width: 100%;
    background: none;
   /* border-radius: 8px;*/
    overflow: hidden;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
}

/* Ligne du tableau */
.tarifs-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 10px;
   /*padding: 10px 0px;*/
    border-bottom: 1px solid #afafaf;
    align-items: center;
}

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

/* En-tÃªte */
.tarifs-row.tarifs-header {
   /* background: #f3f4f6;*/
    font-weight: 600;
    border-bottom: 1px solid #afafaf;
    /* padding-top: 12px;
   padding-bottom: 12px;*/
}

/* Ligne populaire
.tarifs-row-populaire {
    background: linear-gradient(to right, #fef3c7, #fef9c3);
    border-left: 3px solid var(--cdc-warning);
} */

/* Colonnes */
.tarifs-col {
    text-align: center;
    position: relative;
}

.tarifs-col.tarifs-membre {
    background: var(--color-vert-clair);
    padding: 15px 20px;
}

.tarifs-col.tarifs-non-membre {
    background: #f2f2f2;
    padding: 15px 20px;
}


.tarifs-col.tarifs-label {
    text-align: left;
   /* font-weight: 500;*/
    padding-left: 5px;
}

/* ===== BADGES ===== */

.badge-membre {
    display: block;
    color: #dc2626;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 5px;
    /*text-transform: uppercase;
    letter-spacing: 0.5px;*/
}

.badge-non-membre {
    display: block;
    color: var(--cdc-text-muted);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.badge-rabais {
    display: inline-block;
    background: var(--cdc-success);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.badge-populaire {
    display: inline-block;
    font-size: 16px;
    margin-left: 5px;
}

/* Badge "C'est vous !" */
.badge-user {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ec4899;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* ===== DEVISES ===== */

.devises {
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    color: var(--cdc-text-muted);
    font-weight: 700;
    margin-top: 3px;
}

.devises span {
    width: 48%;
    text-align: center;
}

/* ===== PRIX ===== */

.prix {
    display: inline-block;
    width: 48%;
   /*  font-size: 16px;
   font-weight: 600;*/
    color: var(--cdc-text-normal);
    text-align: center;
}

/* ============================================ */
/* HIGHLIGHT MEMBRE DÃ‰TECTÃ‰ */
/* ============================================ */

/* Highlight colonne membre si user = membre */
.tarifs-tableau[data-user-status="membre"] .tarifs-col.tarifs-membre {
    background: linear-gradient(to bottom, #fce7f3, #fbcfe8);
    border-radius: 8px;
    padding: 10px 5px;
   /* box-shadow: 0 0 0 2px #ec4899;*/
    position: relative;
}

.tarifs-tableau[data-user-status="membre"] .tarifs-col.tarifs-non-membre {
    opacity: 0.4;
    filter: grayscale(70%);
}

/* Highlight colonne non-membre si user = non-membre */
.tarifs-tableau[data-user-status="non-membre"] .tarifs-col.tarifs-non-membre {
    background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
    border-radius: 8px;
    padding: 10px 5px;
    box-shadow: 0 0 0 2px var(--cdc-text-muted);
    position: relative;
}

.tarifs-tableau[data-user-status="non-membre"] .tarifs-col.tarifs-membre {
    opacity: 0.4;
    filter: grayscale(70%);
}

/* ============================================ */
/* CTA DEVENIR MEMBRE */
/* ============================================ */

.stage-cta-membre {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.stage-cta-membre .cta-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stage-cta-membre .cta-content {
    flex: 1;
}

.stage-cta-membre .cta-content h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
}

.stage-cta-membre .cta-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.cta-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    align-items: center;
}

.cotisation-prix {
    font-weight: 700;
    font-size: 18px;
}

.economie-info {
    opacity: 0.9;
}

.btn-devenir-membre {
    background: white;
    color: #7c3aed;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-devenir-membre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-devenir-membre:active {
    transform: translateY(0);
}

/* ============================================ */
/* RESPONSIVE MOBILE */
/* ============================================ */

@media (max-width: 768px) {
    
    /* Section tarifs */
    .section-tarifs {
        padding: 20px 10px;
    }
    
    /* Infos gÃ©nÃ©rales */
    .stage-tarifs-info-generale {
        flex-direction: column;
        padding: 15px;
    }
    
    .stage-tarifs-info-generale .info-icon {
        font-size: 24px;
    }
    
    .stage-tarifs-info-generale .info-content h4 {
        font-size: 16px;
    }
    
    .stage-tarifs-info-generale .tarifs-tips li {
        font-size: 13px;
    }
    
    /* AccordÃ©ons */
    .stage-accordion-header {
        padding: 15px 20px;
    }
    
    .stage-accordion-header .accordion-title {
        font-size: 16px;
    }
    
    .stage-accordion-header .accordion-icon {
        font-size: 20px;
    }
    
    
    /* Tableau */
    .tarifs-row {
        grid-template-columns: 1fr 1.5fr 1.5fr;
        gap: 5px;
      /*  padding: 12px 5px;*/
        font-size: 13px;
    }
    
    .tarifs-col.tarifs-label {
        font-size: 12px;
        padding-left: 5px;
    }
    
    .badge-membre,
    .badge-non-membre {
        font-size: 11px;
    }
    
    .devises {
        font-size: 10px;
    }
    
    .devises span {
        width: 48%;
    }
    
    .prix {
        font-size: 14px;
    }
    
    .badge-rabais {
        font-size: 9px;
        padding: 2px 6px;
        display: block;
        margin: 3px 0 0 0;
    }
    
    .badge-populaire {
        font-size: 14px;
        display: block;
        margin: 3px 0 0 0;
    }
    
    .badge-user {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* CTA Membre */
    .stage-cta-membre {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .stage-cta-membre .cta-icon {
        font-size: 28px;
    }
    
    .stage-cta-membre .cta-content h4 {
        font-size: 18px;
    }
    
    .cta-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-devenir-membre {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ============================================ */
/* RESPONSIVE TRÃˆS PETIT Ã‰CRAN (< 375px) */
/* ============================================ */

@media (max-width: 374px) {
    
    .tarifs-row {
        grid-template-columns: 0.8fr 1.6fr 1.6fr;
        font-size: 12px;
    }
    
    .tarifs-col.tarifs-label {
        font-size: 11px;
    }
    
    .badge-membre,
    .badge-non-membre {
        font-size: 10px;
    }
    
    .devises {
        font-size: 9px;
    }
    
    .prix {
        font-size: 13px;
    }
    
    .stage-accordion-header .accordion-title {
        font-size: 14px;
    }
}

/* ============================================ */
/* ACCESSIBILITÃ‰ */
/* ============================================ */

/* Focus visible pour navigation clavier */
.stage-accordion-header:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.btn-devenir-membre:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.5);
    outline-offset: 2px;
}

/* Animation rÃ©duite pour utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    .stage-accordion-header,
    .btn-devenir-membre {
        transition: none;
    }
    
    .stage-accordion-content[style*="display: block"] {
        animation: none;
    }
}

/* ============================================ */
/* PRINT (masquer interactions) */
/* ============================================ */

@media print {
    .stage-accordion-header {
        background: #f3f4f6 !important;
        color: black !important;
        cursor: default;
        border-radius: 8px;
    }
    
    .stage-accordion-header .accordion-icon {
        display: none;
    }
    
    .stage-accordion-content {
        display: block !important;
        padding: 10px;
    }
    
    .btn-devenir-membre {
        display: none;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

/*.error {
    padding: 15px;
    background: #fdd;
    border: 1px solid var(--danger-color);
    border-radius: var(--radius);
    color: var(--danger-color);
    text-align: center;
}*/

/**
 * ========================================
 * CDC STAGE POPUP V2 - ADDITIONS CSS
 * ========================================
 * 
 * Ce fichier contient UNIQUEMENT les nouveaux styles
 * et modifications pour la structure V2.
 * 
 * À INTÉGRER dans cdc-stage-popup.css existant
 * ========================================
 */

/* ========================================
   1. POSTER SANS PADDING (full-width)
   ======================================== */

.stage-poster-header {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Le poster commence en haut, pas de padding */
}

.stage-poster-image {
    width: 100%;
    height: auto;
    display: block;
    /* Assure qu'il n'y a pas d'espace blanc */
}

/* ========================================
   2. STICKY BAR - CHOIX DU RÔLE
   ======================================== */

.role-selector-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin: 0;
    width: 100%;
}

.role-selector-sticky .sticky-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: var(--popup-max-width);
    margin: 0 auto;
}

.role-selector-sticky .sticky-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
}

.role-selector-sticky .role-buttons {
    display: flex;
    gap: 10px;
}

.role-selector-sticky .role-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.role-selector-sticky .role-btn:hover {
    border-color: var(--primary-color);
    color:  var(--primary-color)
    background: rgba(0, 44, 178, 0.05);
    transform: translateY(-2px);
}

.role-selector-sticky .role-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff !important;
}

.role-selector-sticky .role-btn .emoji {
    font-size: 1.6em;
}


.role-selector-sticky .role-btn .label {
    font-weight: 600;
    color: var(--text-color);
}

.role-selector-sticky .role-btn.active .label {
    color: white;
}

/* Mobile : Stack vertical si nécessaire */
@media (max-width: 480px) {
    .role-selector-sticky .sticky-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .role-selector-sticky .role-buttons {
        width: 100%;
    }
    
    .role-selector-sticky .role-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   3. MESSAGE CONTEXTUEL (si pas de rôle)
   ======================================== */

.role-banner-message {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 15px 20px;
    margin: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.role-banner-message .banner-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.role-banner-message .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.role-banner-message .text {
    flex: 1;
}

.role-banner-message strong {
    display: block;
    color: #92400e;
    margin-bottom: 4px;
    font-size: 15px;
}

.role-banner-message p {
    color: #78350f;
    font-size: 14px;
    margin: 0;
}

/* État caché par défaut (géré par JS) */
.role-banner-message.hidden {
    display: none;
}

/* ========================================
   4. SECTION PROGRAMME (avec boutons SVG)
   ======================================== */

/* Les styles pour les boutons SVG (flèche → coche) 
   seront ajoutés dans l'étape JS, mais voici la base */
   
   /* Overlay de chargement pour les niveaux */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.loading-overlay .spinner {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    padding: 20px;
}
   
   .niveaux-selection-list {
   position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.niveaux-selection-list[data-state="disabled"] {
    /*opacity: 0.5;*/
    pointer-events: none;
}

.niveau-item {
    position: relative;
    padding-right: 60px; /* Espace pour le bouton SVG */
}

/* ========================================
   6. CHECKBOX PARTENAIRE (après récap)
   ======================================== */

#section-partenaire-toggle {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
}

#section-partenaire-toggle .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#section-partenaire-toggle .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#section-partenaire-toggle .checkbox-label span {
    font-size: 16px;
    font-weight: 600;
}

#section-partenaire-toggle .description {
    margin-top: 8px;
    margin-left: 30px;
    font-size: 14px;
    color: var(--text-light);
}


/* ========================================
   6B. BOUTON PARTENAIRE
   ======================================== */

.section-btn-partenaire {
    padding-top: 0px;
}

.btn-partenaire-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-partenaire-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.btn-partenaire-toggle .icon {
    font-size: 20px;
}

.btn-partenaire-toggle.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.btn-partenaire-toggle.active .text::before {
    content: "✓ ";
}


/* ========================================
   7. CTA MEMBRE - Toggle Button
   ======================================== */

.stage-cta-membre-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.stage-cta-membre-box .cta-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.stage-cta-membre-box .cta-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stage-cta-membre-box h4 {
    color: white;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.stage-cta-membre-box .cta-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stage-cta-membre-box .cotisation-prix {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.stage-cta-membre-box .economie-info {
    font-size: 13px;
    opacity: 0.9;
    display: none; /* Masqué en version compacte */
}

.btn-devenir-membre {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-devenir-membre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* État actif (membre ajouté) */
.btn-devenir-membre.active {
    background: var(--success-color);
    color: white;
}

.btn-devenir-membre.active::before {
    content: "✓ ";
}

/* ========================================
   8. MESSAGES SUCCÈS / ERREUR
   ======================================== */

#form-messages {
    margin: 20px;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.form-message.success {
    background: #d1fae5;
    border: 1px solid var(--success-color);
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    border: 1px solid var(--danger-color);
    color: #991b1b;
}

.form-message.warning {
    background: #fef3c7;
    border: 1px solid var(--warning-color);
    color: #92400e;
}

.form-message .icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ========================================
   10. RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
    .role-selector-sticky {
        padding: 12px 15px;
    }
    
    .role-selector-sticky .sticky-label {
        font-size: 13px;
    }
    
    .role-selector-sticky .role-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    #section-recap {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .stage-cta-membre-box {
        padding: 20px 15px;
    }
    
    .stage-section {
        padding: 15px;
    }
}


