/* ================================
   ENTÊTE TURQUOISE MODERNE
   Design inspiré de l'interface médicale moderne
   ================================ */

/* Correctif pour header collé en haut */
#main.container,
.row.wrapper,
#book-appointment-wizard {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.booking-header-v2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Container principal */
.booking-header-v2 {
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

/* Header turquoise principal */
.turquoise-header {
    padding: 1.2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Profil docteur */
.doctor-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.doctor-avatar {
    position: relative;
}

.doctor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.doctor-photo:hover {
    transform: scale(1.05);
}

.doctor-info {
    color: white;
}

.doctor-name {
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

.doctor-specialty {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Action header */
.header-action {
    flex-shrink: 0;
}

.availability-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-indicator {
    color: #4ade80;
    font-size: 0.8rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ================================
   BANNIÈRE D'INFORMATION ROSE
   ================================ */

.info-banner {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    padding: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.banner-content i {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: gentle-bounce 3s infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ================================
   NAVIGATION MODERNISÉE
   ================================ */

.modern-navigation {
    background: #f8f9fa;
    padding: 1.5rem 0;
    /* Suppression de la bordure du bas pour continuité visuelle avec le bandeau de titre */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
    border: 3px solid transparent;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    color: white;
    border-color: rgba(32, 178, 170, 0.3);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
    transform: scale(1.1);
}

.step-indicator.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: rgba(40, 167, 69, 0.3);
}

.step-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-indicator.active .step-text {
    color: #20b2aa;
    font-weight: 600;
}

.step-indicator.completed .step-text {
    color: #28a745;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    position: relative;
    margin: 0 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    transition: width 0.6s ease;
    border-radius: 2px;
}

.modern-navigation.progress-hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    max-height: 0;
    min-height: 0 !important;
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modern-navigation {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    min-height: 90px; /* Ajuster selon le design réel */
}

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

@media (max-width: 768px) {
    .turquoise-header {
        padding: 1.5rem 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .doctor-profile {
        flex-direction: column;
        gap: 1rem;
    }
    
    .doctor-photo {
        width: 70px;
        height: 70px;
    }
    
    .doctor-name {
        font-size: 1.6rem;
    }
    
    .availability-status {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        gap: 0.2rem;
    }
    
    .progress-line {
        height: 3px;
        margin: 0 0.3rem;
        min-width: 25px;
        flex: 1;
        max-width: 60px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .step-text {
        font-size: 0.72rem;
        line-height: 1.1;
        max-width: 60px;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .doctor-name {
        font-size: 1.4rem;
    }
    
    .doctor-specialty {
        font-size: 1rem;
    }
    
    .banner-content {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .modern-navigation {
        padding: 0.5rem 0 0.2rem 0;
        min-height: 0;
        overflow-y: hidden;
        box-sizing: border-box;
    }
    .modern-navigation:not(.progress-hidden) {
        min-height: 50px;
    }
    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        overflow-x: auto;
        overflow-y: visible;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0.5rem 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    .step-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        flex: 1;
        margin: 0;
        position: relative;
    }
    .step-circle {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        margin: 2px 2px 4px 2px;
        line-height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .progress-line {
        display: none;
    }
    .step-indicator:last-child .progress-line {
        display: none;
    }
    .step-indicator:nth-child(odd):last-child .progress-line {
        display: none;
    }
    .step-text {
        display: block !important;
        font-size: 0.62rem;
        max-width: 80px;
        line-height: 1.05;
        margin-top: 2px;
        white-space: nowrap;
        word-break: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
}

#booking-form-container[style*="display: none"] ~ #frame-footer,
#booking-form-container[style*="display: none"] ~ .booking-footer {
  border-top: none !important;
  box-shadow: none !important;
} 