/* Navbar moderne et élégante */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(129, 44, 53, 0.08) !important;
    padding: 0.5rem 0 !important;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #812c35, #f6cd94) 1;
}

/* Logo avec effet subtil */
.navbar-brand img {
    border-radius: 50%;
    transition: all 0.4s ease;
    border: 2px solid #812c35;
    box-shadow: 0 2px 10px rgba(129, 44, 53, 0.15);
}

.navbar-brand img:hover {
    transform: scale(1.05);
    border-color: #f6cd94;
    box-shadow: 0 4px 15px rgba(246, 205, 148, 0.3);
}

/* Liens navigation élégants */
.navbar-nav .nav-link {
    color: #812c35 !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem !important;
    margin: 0 0.3rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.1), rgba(246, 205, 148, 0.1));
    border-radius: 25px;
    transition: width 0.4s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #812c35 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.3);
}

.navbar-nav .nav-link.active::before {
    display: none;
}

/* Bouton toggler élégant */
.navbar-toggler {
    border: 2px solid #812c35;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.1), rgba(246, 205, 148, 0.1));
    border-color: #f6cd94;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(129, 44, 53, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23812c35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Collapse menu mobile - style moderne et élégant */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1.5rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(129, 44, 53, 0.03), rgba(246, 205, 148, 0.05));
        border-radius: 15px;
        border: 1px solid rgba(129, 44, 53, 0.1);
        box-shadow: 0 8px 32px rgba(129, 44, 53, 0.08);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid rgba(129, 44, 53, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateX(8px);
        border-color: #f6cd94;
        box-shadow: 0 4px 15px rgba(129, 44, 53, 0.15);
        background: linear-gradient(135deg, rgba(129, 44, 53, 0.05), rgba(246, 205, 148, 0.05));
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #812c35, #f6cd94);
        color: #ffffff !important;
        border: none;
        box-shadow: 0 6px 20px rgba(129, 44, 53, 0.3);
        transform: scale(1.02);
    }
    
    .navbar-nav .nav-link.active:hover {
        transform: scale(1.02) translateX(8px);
    }
}

/* ===== SECTION DE CONNEXION ===== */
main.bg-light {
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.02) 0%, rgba(246, 205, 148, 0.05) 100%) !important;
}

/* Card de connexion élégante */
.card {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(129, 44, 53, 0.12) !important;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #812c35, #f6cd94);
}

.card-body {
    position: relative;
    background: #ffffff;
}

/* Icône et titre */
.card-body .bi-person-circle {
    background: linear-gradient(135deg, #812c35, #f6cd94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body h2 {
    color: #812c35;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.75rem;
}

.card-body .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Formulaire */
.form-label {
    color: #812c35;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.form-label i {
    color: #f6cd94;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.6rem 0.875rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #812c35;
    box-shadow: 0 0 0 0.2rem rgba(129, 44, 53, 0.15);
}

.form-control:hover {
    border-color: #f6cd94;
}

/* Checkbox personnalisée */
.form-check-input {
    border: 2px solid #812c35;
    border-radius: 6px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #812c35;
    border-color: #812c35;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(129, 44, 53, 0.2);
}

.form-check-label {
    color: #495057;
    cursor: pointer;
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, #812c35, #f6cd94) !important;
    border: none !important;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 44, 53, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #812c35 !important;
    color: #812c35 !important;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #812c35, #f6cd94) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.3);
}

/* Lien mot de passe oublié */
.text-decoration-none {
    color: #812c35 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.text-decoration-none:hover {
    color: #f6cd94 !important;
    text-decoration: underline !important;
}

/* Divider */
hr {
    border-color: rgba(129, 44, 53, 0.1) !important;
    opacity: 1 !important;
}

/* Alertes personnalisées */
.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    border-radius: 12px;
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    border-radius: 12px;
    color: #155724;
}

/* ========== HOMEPAGE STYLES ========== */

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(246, 205, 148, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(129, 44, 53, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section h1 .text-primary {
    color: #812c35 !important;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(129, 44, 53, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(129, 44, 53, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* Features Section Elegant */
.features-section {
    background: linear-gradient(180deg, #ffffff 0%, rgba(246, 205, 148, 0.03) 100%);
}

.feature-elegant {
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-elegant:hover {
    transform: translateY(-8px);
}

.feature-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.05), rgba(246, 205, 148, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.feature-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-elegant:hover .feature-circle::before {
    opacity: 1;
}

.feature-circle-inner {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-elegant:hover .feature-circle-inner {
    background: linear-gradient(135deg, #812c35, #f6cd94);
}

.feature-circle-inner i {
    font-size: 2.5rem;
    color: #812c35;
    transition: all 0.4s ease;
}

.feature-elegant:hover .feature-circle-inner i {
    color: white;
    transform: scale(1.1);
}

/* Stats Elegant */
.stats-elegant {
    border-top: 1px solid rgba(129, 44, 53, 0.1);
    padding-top: 40px;
}

.stat-elegant {
    position: relative;
}

.stat-elegant::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #812c35, #f6cd94);
    border-radius: 2px;
}

.stat-elegant-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #812c35;
    line-height: 1;
}

.stat-elegant-text {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(129, 44, 53, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(129, 44, 53, 0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #812c35, #f6cd94);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #812c35;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.badge-intermediate {
    background: #f6cd94;
    color: #812c35;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.08);
    transition: all 0.3s ease;
    border: 2px solid rgba(129, 44, 53, 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(129, 44, 53, 0.15);
}

.pricing-card.featured {
    border: 2px solid #812c35;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(129, 44, 53, 0.3);
}

.pricing-header {
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.05), rgba(246, 205, 148, 0.05));
    border-bottom: 2px solid rgba(129, 44, 53, 0.1);
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(135deg, #812c35, #f6cd94);
    color: white;
}

.pricing-value {
    margin-top: 10px;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.08);
    border-left: 4px solid #f6cd94;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: #812c35;
    box-shadow: 0 8px 25px rgba(129, 44, 53, 0.15);
}

.testimonial-rating i {
    color: #f6cd94;
    font-size: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #812c35, #f6cd94);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar i {
    font-size: 2rem;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #812c35, #a03846);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 205, 148, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 205, 148, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section .btn-outline-light {
    border-color: white;
    color: white;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: #812c35;
}

/* ========== COURSE PAGE STYLES ========== */

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.03) 0%, rgba(246, 205, 148, 0.03) 100%);
    border-bottom: 1px solid rgba(129, 44, 53, 0.1);
}

/* Course Elegant Cards */
.course-elegant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(129, 44, 53, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(129, 44, 53, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-elegant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(129, 44, 53, 0.15);
    border-color: rgba(129, 44, 53, 0.15);
}

.course-elegant-header {
    position: relative;
}

.course-elegant-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-elegant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-elegant-card:hover .course-elegant-image img {
    transform: scale(1.15);
}

.course-elegant-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background 0.3s ease;
}

.course-elegant-card:hover .course-elegant-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(129, 44, 53, 0.4) 100%);
}

.course-elegant-badge {
    background: white;
    color: #812c35;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.course-elegant-badge.badge-intermediate {
    background: #f6cd94;
    color: #812c35;
}

.course-elegant-badge.badge-relax {
    background: #28a745;
    color: white;
}

.course-elegant-badge.badge-advanced {
    background: #dc3545;
    color: white;
}

.course-elegant-badge.badge-prenatal {
    background: #e83e8c;
    color: white;
}

.course-elegant-badge.badge-express {
    background: #fd7e14;
    color: white;
}

.course-elegant-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-elegant-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    gap: 15px;
}

.course-elegant-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.course-elegant-price-tag {
    background: linear-gradient(135deg, #812c35, #a03846);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(129, 44, 53, 0.2);
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.course-elegant-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(129, 44, 53, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6c757d;
}

.meta-item i {
    color: #812c35;
    font-size: 1rem;
}

.course-elegant-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-elegant-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(129, 44, 53, 0.05), rgba(246, 205, 148, 0.05));
    border: 2px solid #812c35;
    border-radius: 30px;
    color: #812c35;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-elegant-btn:hover {
    background: linear-gradient(135deg, #812c35, #a03846);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(129, 44, 53, 0.2);
}

.course-elegant-btn i {
    transition: transform 0.3s ease;
}

.course-elegant-btn:hover i {
    transform: translateX(5px);
}

/* Filters Section */
.form-select,
.form-control {
    border-radius: 10px;
    border: 1px solid rgba(129, 44, 53, 0.2);
    padding: 0.6rem 1rem;
}

.form-select:focus,
.form-control:focus {
    border-color: #812c35;
    box-shadow: 0 0 0 0.2rem rgba(129, 44, 53, 0.15);
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1px solid rgba(129, 44, 53, 0.2);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .course-detail-image {
        height: 200px;
    }
    
    .page-header {
        padding: 50px 0 40px;
    }
}
