* {
    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 */
}

/* 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%;
}

.cta-button {
    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);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.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: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.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;
}

/* 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;
}



.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;
}

.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-block;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.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);
}

.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;
}

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

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

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

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

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #9a13a7;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.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;
}

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

.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;
}

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

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

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

.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);
}

@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) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .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: 100px; /* Header ajusté pour mobile */
    }
    
    section[id] {
        scroll-margin-top: 100px;
    }
}
