* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll offset pour compenser le header fixe */
html {
    scroll-padding-top: 120px; /* Augmenté pour compenser le header */
    scroll-behavior: smooth; /* Animation de scroll fluide */
}

/* Amélioration de l'affichage du calendrier des appels gratuits */
#calendar-free-call .fc-list-event {
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#calendar-free-call .fc-list-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.2s ease !important;
}

#calendar-free-call .fc-list-event-title {
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Offset pour les sections avec ancres */
section[id] {
    scroll-margin-top: 120px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #9a13a7 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    object-fit: cover;
    
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #9a13a7;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Styles pour le menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.dropdown-menu a::after {
    display: none;
}

.cta-button {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 120px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #9a13a7, rgba(118, 75, 162, 0.9));
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
    justify-content: center;
    justify-items: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-free-trial {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-primary {
    background: white;
    color: #9a13a7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #9a13a7;
}

.btn-free-trial {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #9a13a7;
    background: linear-gradient(135deg, #9a13a7, #7a0e87);
    color: white;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(154, 19, 167, 0.3);
}

.btn-free-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 19, 167, 0.4);
    background: linear-gradient(135deg, #7a0e87, #5a0a64);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card .btn-primary {
    margin-top: auto;
    align-self: flex-end;
    width: fit-content;
    height: 58px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9a13a7;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: white;
}

.team-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .team-intro-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.team-intro-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}



.image-placeholder-large img {
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #94a3b8;
    object-fit: cover;
}

/* Images HGG avec hauteur augmentée */
.image-placeholder-large.hgg-image img {
    height: 400px;
}

/* Image Anglais avec hauteur augmentée pour netteté */
.image-placeholder-large.anglais-image img {
    height: 500px;
}

/* Image Espagnol avec hauteur augmentée pour netteté */
.image-placeholder-large.espagnol-image img {
    height: 500px;
}

/* Image Culture Générale 2 avec hauteur augmentée */
.image-placeholder-large.cg2-image img {
    height: 400px;
}

/* Image Allemand avec hauteur augmentée pour netteté */
.image-placeholder-large.allemand-image img {
    height: 500px;
}



.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-photo {
    margin-bottom: 1.5rem;
}

.photo-placeholder img {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    object-fit: cover;
}




.team-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #9a13a7;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.team-school {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.team-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
   
}


/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 4px solid transparent;
}

.pricing-card.featured {
    border: 3px solid #9a13a7;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'POPULAIRE';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #9a13a7;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-left-color: #9a13a7;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    border-left-color: #9a13a7;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.pricing-header p {
    color: #666;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9a13a7;
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: #666;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #9a13a7;
    font-weight: bold;
}

.pricing-features li.keep-checkmark::before {
    content: '✓';
}

.coming-soon {
    color: #dc3545;
    font-weight: bold;
}

/* Service Content Grid Layout */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0;
}

.service-text {
    line-height: 1.6;
    text-align: center;
}

/* Styles spécifiques pour les pages PrepaAssets */
.service-page .service-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 4rem;
}

.service-page .service-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 900px;
}

.service-page .service-text h3,
.service-page .service-text p,
.service-page .service-text ul,
.service-page .service-text li {
    text-align: center;
    margin-bottom: 1.2rem;
}

.service-page .service-text h3 {
    font-size: 1.8rem;
    color: #9a13a7;
    margin-bottom: 1.5rem;
}

.service-page .service-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.service-page .service-text ul {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.service-page .service-text li {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

/* Alignement des listes dans PrepaAssets */
.service-page .service-text ul {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    padding-left: 0;
    list-style: none;
}

.service-page .service-text li {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.service-page .service-text li::before {
    content: '•';
    color: #9a13a7;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Listes imbriquées - niveau 2 */
.service-page .service-text ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.service-page .service-text ul ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-page .service-text ul ul li::before {
    content: '◦';
    color: #764ba2;
    font-size: 1rem;
}

/* Listes imbriquées - niveau 3 */
.service-page .service-text ul ul ul li::before {
    content: '▪';
    color: #666;
    font-size: 0.9rem;
}

/* Styles spécifiques pour les conteneurs de listes */
.highlight-box ul,
.stats-box ul {
    text-align: left;
    padding-left: 0;
    margin: 1rem 0;
}

.highlight-box li,
.stats-box li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: left;
    line-height: 1.6;
}

.highlight-box li::before,
.stats-box li::before {
    content: '•';
    color: #9a13a7;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Ajustement pour les listes imbriquées dans les boîtes */
.highlight-box ul ul,
.stats-box ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.highlight-box ul ul li,
.stats-box ul ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight-box ul ul li::before,
.stats-box ul ul li::before {
    content: '◦';
    color: #764ba2;
    font-size: 1rem;
}

/* Groupe de boutons pour PrepaAssets */
.prepassets-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.purchase-button {
    background: linear-gradient(135deg, #9a13a7 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    min-height: 48px;
    min-width: 200px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(154, 19, 167, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 19, 167, 0.4);
    background: linear-gradient(135deg, #8a1197 0%, #654a92 100%);
}

/* Responsive pour PrepaAssets */
@media (max-width: 768px) {
    .service-page .service-content {
        padding: 2rem 1rem;
    }
    
    .prepassets-button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .purchase-button {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

.service-video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #9a13a7;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #764ba2;
}

.video-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-placeholder p {
    margin: 0.5rem 0;
    color: #9a13a7;
    font-weight: 600;
}

.video-subtitle {
    font-size: 0.9rem !important;
    color: #666 !important;
    font-weight: 400 !important;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-placeholder {
        max-width: 100%;
    }
}

/* Button Group Header for PrepaChat */
.button-group-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-button-large {
    background: linear-gradient(135deg, #9a13a7 0%, #764ba2 100%);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(154, 19, 167, 0.3);
    text-decoration: none;
    display: inline-flex; /* Changé de inline-block à inline-flex */
    align-items: center; /* Centrage vertical du texte */
    justify-content: center; /* Centrage horizontal du texte */
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
    line-height: 1; /* Réinitialise la hauteur de ligne */
}

.auth-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 19, 167, 0.4);
    background: linear-gradient(135deg, #8a1197 0%, #654a92 100%);
}

.auth-button-large:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(154, 19, 167, 0.3);
}

/* Responsive design for button group */
@media (max-width: 768px) {
    .button-group-header {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-button-large {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

.pricing-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left-color: #9a13a7;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}


/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #9a13a7;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #9a13a7;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.auth-modal-enhanced {
    max-width: 550px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
}

.close:hover {
    color: #9a13a7;
}

.auth-form {
    margin-top: 1rem;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Message boxes for reset password */
#resetMessageBox .message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

#resetMessageBox .message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#resetMessageBox .message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ============================================
   RECHARGE CREDITS MODAL
   ============================================ */

.credits-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.credit-option {
    position: relative;
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.credit-option:hover {
    border-color: #9a13a7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.2);
}

.credit-option.selected {
    border-color: #9a13a7;
    background: linear-gradient(135deg, rgba(154, 19, 167, 0.05), rgba(118, 75, 162, 0.05));
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.3);
}

.credit-option-hours {
    font-size: 2rem;
    font-weight: 700;
    color: #9a13a7;
    margin-bottom: 0.5rem;
}

.credit-option-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.credit-option-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recharge-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
}

.recharge-summary p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    color: #333;
}

.recharge-summary strong {
    color: #9a13a7;
    font-size: 1.2rem;
}

/* ============================================
   OAUTH BUTTONS
   ============================================ */

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    width: 100%;
    padding: 12px 20px;
    min-height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oauth-btn:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.oauth-btn.google-btn:hover {
    background: #f8f9fa;
}

.oauth-btn.apple-btn {
    background: #000;
    color: white;
    border-color: #000;
}

.oauth-btn.apple-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.oauth-btn.microsoft-btn:hover {
    background: #f8f9fa;
}

/* ============================================
   AUTH DIVIDER
   ============================================ */

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    
    color: #333;
    font-weight: 500;
}

.form-group input:not([type="checkbox"]), .form-group select {
    width: 100%;
    padding: 14px;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:not([type="checkbox"]):focus, .form-group select:focus {
    outline: none;
    border-color: #9a13a7;
    box-shadow: 0 0 0 3px rgba(154, 19, 167, 0.1);
}

.form-group input:not([type="checkbox"]).error {
    border-color: #ef4444;
}

.input-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

/* ============================================
   FORM OPTIONS (Remember me + Forgot password)
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.remember-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    accent-color: #9a13a7;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.remember-checkbox:focus,
.remember-checkbox:active,
.remember-checkbox:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.remember-checkbox::-moz-focus-inner {
    border: 0;
}

.remember-label {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap;
}

.forgot-password-link {
    color: #9a13a7;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    margin-left: auto;
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .forgot-password-link {
        margin-left: auto;
    }
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-bar-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: #10b981;
}

.auth-button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.4);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Newsletter checkbox styling */
.newsletter-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.newsletter-checkbox {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 2px solid #9a13a7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.newsletter-checkbox:checked {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    border-color: #9a13a7;
}

.newsletter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.newsletter-checkbox:hover {
    border-color: #764ba2;
    box-shadow: 0 0 3px rgba(154, 19, 167, 0.3);
}

.newsletter-label {
    margin: 0;
    cursor: pointer;
    color: #666;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.auth-switch a {
    color: #9a13a7;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    padding: 120px 0 50px;
    min-height: 100vh;
    background: #f8fafc;
    display: none;
}

/* ============================================
   ONBOARDING BANNER
   ============================================ */

.onboarding-banner {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(154, 19, 167, 0.3);
    animation: slideDown 0.5s ease;
}

.onboarding-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.onboarding-content > p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.onboarding-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.onboarding-step {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-step:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.onboarding-step.completed {
    background: rgba(76, 175, 80, 0.3);
}

.step-number {
    background: white;
    color: #9a13a7;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.3;
}

.dismiss-onboarding {
    background: white;
    color: #9a13a7;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dismiss-onboarding:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.dashboard-subscription-badge {
    display: flex;
    align-items: center;
}

.subscription-badge {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   NEXT VISIO COUNTDOWN
   ============================================ */

.next-visio-countdown {
    background: linear-gradient(135deg, #FF6B6B, #FFB347);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.countdown-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-details {
    flex: 1;
    min-width: 200px;
}

.countdown-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.time-unit {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.time-value {
    font-size: 2.5rem;
}

.time-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.time-separator {
    opacity: 0.7;
}

.countdown-subject {
    font-size: 0.95rem;
    opacity: 0.9;
}

.countdown-cta {
    background: white;
    color: #FF6B6B;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.countdown-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   DASHBOARD GRID
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    row-gap: 1.5rem;
    column-gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-action-btn {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.3);
}

/* ============================================
   COURSES LIST
   ============================================ */

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item-new {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #9a13a7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.course-item-new:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.course-info {
    flex: 1;
    min-width: 200px;
}

.course-subject {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.course-date {
    color: #666;
    font-size: 0.9rem;
}

.course-teacher {
    color: #999;
    font-size: 0.85rem;
}

/* ============================================
   RESOURCES LIST
   ============================================ */

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #f1f5f9;
}

.resource-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.resource-info {
    flex: 1;
}

.resource-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.resource-count, .resource-status {
    color: #666;
    font-size: 0.85rem;
}

.resource-download-btn {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resource-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.3);
}

/* ============================================
   WEEKLY PROGRESS
   ============================================ */

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.progress-details {
    display: flex;
    flex-direction: column;
}

.progress-value {
    font-size: 2rem;
    font-weight: 700;
    color: #9a13a7;
    line-height: 1;
}

.progress-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   CREDITS CARD
   ============================================ */

.credits-card {
    text-align: center;
}

.credits-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.credits-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(154, 19, 167, 0.3);
}

.credits-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.credits-unit {
    font-size: 0.85rem;
    opacity: 0.9;
}

.credits-info {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-action-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(154, 19, 167, 0.3);
}

.quick-action-btn.secondary {
    background: #f8fafc;
    color: #666;
    border: 2px solid #e2e8f0;
}

.quick-action-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.action-icon {
    font-size: 1.3rem;
}

@media (min-width: 992px) {
    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        
    }

    .teacher-grid > .dashboard-card:nth-child(1) { /* Prochains cours */
        grid-column: 1;
        grid-row: 1;
        height: 520px;
    }

    .teacher-grid > .dashboard-card:nth-child(2) { /* Gérer vos disponibilités */
        grid-column: 2 / 4;
        grid-row: 1 / 3;
    }
    
    .teacher-grid > .dashboard-card:nth-child(3) { /* Actions rapides */
        grid-column: 1;
        grid-row: 2;
        margin-top: auto;
        justify-content: flex-end;
    }
}

.actions-rapides-prof {
    height: 200px;
    
    
}

#availability-calendar, #teacher-availability-calendar, #calendar-visio, #calendar-free-call {
    min-height: 600px;
}

/* Calendar Mobile Optimization */
@media (max-width: 768px) {
    #availability-calendar, #teacher-availability-calendar, #calendar-visio, #calendar-free-call {
        min-height: 400px;
    }
    
    /* FullCalendar mobile customizations */
    .fc-header-toolbar {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .fc-button-group {
        display: flex !important;
    }
    
    .fc-button {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Calendar grid mobile */
    .fc-daygrid-day-number {
        font-size: 0.9rem !important;
        padding: 0.25rem !important;
    }
    
    .fc-daygrid-day-top {
        flex-direction: row !important;
        justify-content: center !important;
    }
    
    .fc-daygrid-event {
        font-size: 0.7rem !important;
        margin-bottom: 1px !important;
    }
    
    /* Calendar legend mobile */
    .calendar-legend {
        flex-direction: column !important;
        gap: 0.5rem !important;
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    .legend-item {
        justify-content: center !important;
    }
    
    /* Time grid mobile for week/day views */
    .fc-timegrid-slot-label {
        font-size: 0.7rem !important;
    }
    
    .fc-timegrid-event {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    #availability-calendar, #teacher-availability-calendar, #calendar-visio, #calendar-free-call {
        min-height: 350px;
    }
    
    .fc-button {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.8rem !important;
        padding: 0.2rem !important;
    }
    
    .fc-daygrid-event {
        font-size: 0.65rem !important;
    }
    
    .calendar-legend {
        font-size: 0.75rem !important;
    }
    
    .legend-color {
        width: 12px !important;
        height: 12px !important;
        margin-right: 6px !important;
    }
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.available {
    background-color: #a7d7a9; /* Brighter green for background */
}

.legend-color.my-course {
    background-color: #007bff; /* Blue for my course */
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.course-info h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.course-info p {
    color: #666;
    font-size: 0.9rem;
}

.course-status {
    background: #9a13a7;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-status.completed {
    background: #10b981;
}

.course-status.upcoming {
    background: #f59e0b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #ffffff !important;
        backdrop-filter: none;
        flex-direction: column;
        padding: 90px 2rem 2rem 2rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 1rem;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
        background: #ffffff;
    }
    
    .nav-links a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-links .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        margin-top: 0.25rem;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        border-left: 3px solid rgba(154, 19, 167, 0.15);
        border-radius: 12px;
    }
    
    .nav-links .dropdown-menu a {
        padding: 0.4rem 0;
        color: #333;
    }
    
    .nav-links .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .cta-button {
        margin-top: 1rem;
        width: 100%;
    }
    
    header .cta-button {
        width: auto;
        margin-top: 0;
        padding: 10px 16px;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }
    
    .btn-free-trial {
        grid-column: 1;
        margin-top: 0.5rem;
    }
    
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* PrepAI options grid mobile adaptation */
    .prepai-options-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Dashboard content mobile spacing */
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    /* Dashboard cards mobile */
    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Calendar cards mobile */
    .calendar-card {
        overflow-x: auto;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    /* Team cards mobile optimization */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Service content mobile */
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Text size adjustments */
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Pricing features mobile */
    .pricing-features {
        text-align: left;
    }
    
    .pricing-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Add mobile-specific improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 1rem;
        width: 98%;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .auth-button-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Course Lists */
#upcomingCourses,
#completedCourses,
#teacherUpcomingCourses {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px; /* Add some padding to avoid scrollbar overlapping content */
}

/* Dashboard Course Lists */
#upcomingCourses,
#completedCourses,
#teacherUpcomingCourses {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px; /* Add some padding to avoid scrollbar overlapping content */
}

/* Resources Page */
.subject-section {
    margin-bottom: 2rem;
}

.subject-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #9a13a7;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.resource-card {
    flex: 0 0 160px;
    height: 180px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    color: #9a13a7;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* Chat Page */
.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: #f8fafc;
}

.chat-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chat-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.chat-header p {
    font-size: 1.1rem;
    color: #666;
}

.chat-box {
    width: 100%;
    max-width: 800px;
    height: 60vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.back-button {
    margin-top: 2rem;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


/* Variante outline assortie aux boutons du dashboard */
.auth-button--outline {
  background: #fff;
  color: #764ba2;
  border: 2px solid #764ba2;
  box-shadow: none;
}
.auth-button--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

/* === Panier de créneaux === */
.cart-panel {
  margin-top: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  padding: 1.25rem;
}
.cart-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}
.cart-summary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0.75rem 0 0.5rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item__info {
  display: grid;
  gap: 0.15rem;
}
.cart-item__price {
  font-weight: 600;
}
.cart-remove {
  min-width: 120px;
}

/* Ajustement de l'offset pour mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 0; /* Réinitialisé car le header n'est plus fixe */
    }
    
    section[id] {
        scroll-margin-top: 0; /* Réinitialisé car le header n'est plus fixe */
    }
    
    /* Header statique sur mobile pour éviter les superpositions */
    header {
        position: static; /* Changé de fixed à static sur mobile */
    }
    
    /* Ajuster le padding des sections qui avaient un padding-top pour compenser le header fixe */
    .hero {
        padding: 100px 0 80px; /* Réduit car plus de header fixe */
    }
    
    .service-page {
        padding: 20px 0 30px; /* Réduit car plus de header fixe */
    }
    
    .dashboard {
        padding: 20px 0 30px; /* Réduit car plus de header fixe */
    }
}

/* Styles pour les pages individuelles PrepaAssets */
.service-page {
    padding: 120px 0 50px;
    min-height: 100vh;
    background: #f8fafc;
    display: none;
}

.service-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
}

.back-button {
    background: linear-gradient(135deg, #9a13a7 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(154, 19, 167, 0.3);
}

.service-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(154, 19, 167, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #9a13a7;
}

.highlight-box h4 {
    color: #9a13a7;
    margin-bottom: 0.5rem;
}

.stats-box {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.stats-box h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
}

.quote-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
    font-style: italic;
    text-align: center;
}

/* Responsive pour les pages individuelles */
@media (max-width: 768px) {
    .service-page {
        padding: 20px 0 30px; /* Réduit car le header est statique sur mobile */
    }
    
    .service-header, .service-content {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
    }
    
    .service-header {
        margin-top: 0;
    }
    
    .back-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .service-page {
        padding: 15px 0 20px; /* Encore plus réduit pour très petits écrans */
    }
    
    .service-header, .service-content {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1rem;
    }
}

/* Widget Newsletter Flottant */
.newsletter-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(154, 19, 167, 0.4);
    cursor: pointer;
    z-index: 1500;
    max-width: 280px;
    animation: slideInFromRight 0.5s ease-out;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.newsletter-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(154, 19, 167, 0.6);
    background: linear-gradient(135deg, #8a1197, #654a92);
}

.widget-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.widget-text {
    flex: 1;
}

.widget-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    color: white;
}

.widget-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.widget-close {
    position: absolute;
    top: -5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.widget-close:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Animations pour le widget */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation de disparition */
.newsletter-widget.hiding {
    animation: slideOutToRight 0.3s ease-in forwards;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animation pour mettre en évidence la case newsletter */
@keyframes highlightNewsletter {
    0%, 100% {
        background: rgba(154, 19, 167, 0.1);
        border-color: rgba(154, 19, 167, 0.3);
        transform: scale(1);
    }
    50% {
        background: rgba(154, 19, 167, 0.2);
        border-color: rgba(154, 19, 167, 0.5);
        transform: scale(1.02);
    }
}

/* Responsive pour le widget */
@media (max-width: 768px) {
    .newsletter-widget {
        bottom: 15px;
        right: 15px;
        max-width: 250px;
        padding: 12px 15px;
    }
    
    .widget-icon {
        font-size: 1.5rem;
    }
    
    .widget-title {
        font-size: 0.9rem;
    }
    
    .widget-subtitle {
        font-size: 0.8rem;
    }
    
    .widget-close {
        width: 22px;
        height: 22px;
        font-size: 14px;
        top: -3px;
        right: 3px;
    }
}

@media (max-width: 480px) {
    .newsletter-widget {
        bottom: 10px;
        right: 10px;
        max-width: 200px;
        padding: 10px 12px;
    }
    
    .widget-content {
        gap: 8px;
    }
    
    .widget-icon {
        font-size: 1.3rem;
    }
    
    .widget-title {
        font-size: 0.8rem;
    }
    
    .widget-subtitle {
        font-size: 0.75rem;
    }
}

/* Styles pour les drapeaux PNG */
.service-icon img, .advantage-icon img, .video-icon img {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon img,
.advantage-card:hover .advantage-icon img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive pour les drapeaux */
@media (max-width: 768px) {
    .service-icon img, .advantage-icon img {
        width: 35px !important;
        height: 26px !important;
    }
    
    .video-icon img {
        width: 45px !important;
        height: 34px !important;
    }
}

@media (max-width: 480px) {
    .service-icon img, .advantage-icon img {
        width: 30px !important;
        height: 22px !important;
    }
    
    .video-icon img {
        width: 40px !important;
        height: 30px !important;
    }
}

/* ============================================
   AMÉLIORATION HERO SECTION - Stats & Badges
   ============================================ */

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem auto;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   BADGE "PLUS POPULAIRE"
   ============================================ */

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.pricing-card {
    position: relative;
}

/* ============================================
   RESPONSIVE - Hero Stats & Badges
   ============================================ */

@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .trust-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */

.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.exit-popup-close:hover {
    color: #333;
}

.exit-popup-header {
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    padding: 40px 30px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.exit-popup-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.exit-popup-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.exit-popup-body {
    padding: 40px 30px;
}

.exit-popup-offer {
    text-align: center;
    margin-bottom: 30px;
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.exit-popup-offer h3 {
    font-size: 2rem;
    color: #9a13a7;
    margin-bottom: 1rem;
}

.exit-popup-offer p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.offer-benefits {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.offer-benefits li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.exit-popup-cta {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #9a13a7, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(154, 19, 167, 0.3);
}

.exit-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(154, 19, 167, 0.4);
}

.exit-popup-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Exit Popup */
@media (max-width: 768px) {
    .exit-popup-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .exit-popup-header {
        padding: 30px 20px 20px;
    }
    
    .exit-popup-header h2 {
        font-size: 2rem;
    }
    
    .exit-popup-body {
        padding: 30px 20px;
    }
    
    .exit-popup-offer h3 {
        font-size: 1.5rem;
    }
}

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

@media (max-width: 768px) {
    .dashboard {
        padding: 100px 0 30px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .onboarding-steps {
        flex-direction: column;
    }
    
    .onboarding-step {
        min-width: 100%;
    }
    
    .countdown-content {
        flex-direction: column;
        text-align: center;
    }
    
    .countdown-icon {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        font-size: 2rem;
        justify-content: center;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .credits-circle {
        width: 100px;
        height: 100px;
    }
    
    .credits-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 0.95rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .course-item-new {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .progress-value {
        font-size: 1.5rem;
    }
    
    /* Modal optimizations for mobile */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Form optimizations */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .oauth-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .password-strength-bar {
        height: 5px;
    }
    
    /* Ensure 16px font size on all inputs to prevent iOS zoom */
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 14px !important;
        min-height: 44px !important;
    }
    
    .auth-button {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
    }
}
