/**
 * Enerconfort RDV - Styles
 * Couleurs: #031966, blanc, rgba(255,255,255,0.3)
 */

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.enerconfort-rdv-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.enerconfort-rdv-wrapper *,
.enerconfort-rdv-wrapper *::before,
.enerconfort-rdv-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */

.enerconfort-progress {
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    height: 80px;
    margin-bottom: 40px;
}

/* Lignes de progression avec pseudo-éléments */
.enerconfort-progress::before,
.enerconfort-progress::after {
    content: '';
    position: absolute;
    top: 25px;
    height: 3px;
    transition: all 0.4s ease;
}

/* Ligne 1 : de gauche au centre */
.enerconfort-progress::before {
    left: 85px;
    right: calc(50% + 25px);
    background: white;
}

/* Ligne 2 : du centre à droite */
.enerconfort-progress::after {
    left: calc(50% + 25px);
    right: 95px;
    background: rgba(255, 255, 255, 0.3);
}

/* Quand étape 3 est active/complétée */
.enerconfort-progress.step3-active::after {
    background: white;
}

/* Étapes */
.enerconfort-step {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.enerconfort-step[data-step="1"] {
    left: 0;
    transform: translateX(0);
}

.enerconfort-step[data-step="2"] {
    left: 50%;
    transform: translateX(-50%);
}

.enerconfort-step[data-step="3"] {
    left: 100%;
    transform: translateX(-100%);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.step-circle svg {
    width: 24px;
    height: 24px;
    display: none;
}

.step-circle .step-check {
    display: none;
}

.step-number {
    display: block;
}

/* Étape complétée */
.enerconfort-step.completed .step-circle {
    background: white;
    border-color: white;
    color: #031966;
}

.enerconfort-step.completed .step-circle svg {
    display: block;
    color: #031966;
}

.enerconfort-step.completed .step-circle .step-number {
    display: none;
}

.enerconfort-step.completed .step-circle .step-check {
    display: block;
}

/* Étape active */
.enerconfort-step.active .step-circle {
    background: #F5A623;
    border-color: #F5A623;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.enerconfort-step.active .step-circle .step-number {
    display: block;
}

.enerconfort-step.active .step-circle .step-check {
    display: none;
}

.step-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* ============================================
   TITRE PRINCIPAL
   ============================================ */

.enerconfort-title {
    color: white;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 0;
    line-height: 1.3;
}

/* ============================================
   CONTENEUR CALENDLY
   ============================================ */

.enerconfort-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.calendly-container {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.calendly-embed {
    min-width: 320px;
    width: 100%;
    height: 900px;
}

.calendly-embed iframe {
    border: none !important;
}

/* ============================================
   BOX DE CONFIRMATION (Étape 3)
   ============================================ */
.step-3-content {
    margin: 30px 0;
}
.confirmation-box {
    background:white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-box h2 {
    color: #031966;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.confirmation-box p {
    color: #031966;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
    margin-top: 0;
}

.confirmation-box p:last-child {
    margin-bottom: 0;
}

.confirmation-box strong {
    font-weight: 600;
}

/* ============================================
   BLOC RÉASSURANCE
   ============================================ */

.enerconfort-reassurance {
    margin-top: 0px;
    text-align: center;
}

.enerconfort-reassurance h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 0;
}

.reassurance-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reassurance-item {
    background: #031966;
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    max-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reassurance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(3, 25, 102, 0.4);
}

.reassurance-item.light {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.enerconfort-content.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.enerconfort-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 1490px) {
    .calendly-embed {
        height: 900px;
    }
}
/* ============================================
   RESPONSIVE - 1390px
   ============================================ */

@media (max-width: 1390px) {
    .calendly-embed {
        height: 900px;
    }
}
@media (max-width: 1040px) {
    .calendly-embed {
        height: 1400px;
    }
}

/* ============================================
   RESPONSIVE - 900px
   ============================================ */

@media (max-width: 900px) {
    .step-label {
        font-size: 12px;
    }
    
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .enerconfort-progress::before,
    .enerconfort-progress::after {
        top: 22px;
    }
    
    .enerconfort-progress::before {
        left: 50px;
        right: calc(50% + 22px);
    }
    
    .enerconfort-progress::after {
        left: calc(50% + 22px);
        right: 45px;
    }
    
    .enerconfort-title {
        font-size: 26px;
    }
    .enerconfort-progress {
        width:100% !important;
        max-width:100% !important;
    }
    .enerconfort-step[data-step="1"] {
        left:-20px !important;
    }
}

/* ============================================
   RESPONSIVE - 768px (Tablette)
   ============================================ */

@media (max-width: 768px) {
    .enerconfort-rdv-wrapper {
        padding: 30px 15px;
    }
    
    .calendly-embed {
        height: 1400px;
    }
    
    .step-label {
        font-size: 11px;
        max-width: 100px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .enerconfort-progress {
        height: 90px;
    }
    
    .confirmation-box {
        padding: 30px 20px;
    }
    
    .confirmation-box h2 {
        font-size: 22px;
    }
    
    .reassurance-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .reassurance-item {
        width: 100%;
        max-width: 250px;
        
    }
    .enerconfort-title {
        margin-bottom:20px !important;
    }
}

/* ============================================
   RESPONSIVE - 480px (Mobile)
   ============================================ */

@media (max-width: 480px) {
    .calendly-embed {
        height: 1200px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .enerconfort-progress::before,
    .enerconfort-progress::after {
        top: 20px;
    }
    
    .enerconfort-progress::before {
        left: 20px;
        right: calc(50% + 20px);
    }
    
    .enerconfort-progress::after {
        left: calc(50% + 20px);
        right: 40px;
    }
    
    .step-label {
        font-size: 10px;
        max-width: 80px;
    }
    
    .enerconfort-title {
        font-size: 22px;
    }
    
    .confirmation-box {
        padding: 25px 15px;
    }
    
    .confirmation-box h2 {
        font-size: 20px;
    }
    
    .confirmation-box p {
        font-size: 14px;
    }
    
    .enerconfort-reassurance h3 {
        font-size: 18px;
    }
    
    .reassurance-item {
        font-size: 13px;
        padding: 15px 20px;
    }
}