* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow: hidden;
    /* empêcher les scrollbars dupliquées */
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Header avec glassmorphism */
header {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-center {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-center a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-center a:hover {
    color: #fff;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1101;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero ultra moderne */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(118, 75, 162, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 2rem;
    color: #b0b0b0;
    animation: fadeInUp 1s 0.2s backwards;
    padding: 0 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s 0.4s backwards;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cta-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

/* Stats section moderne */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
}

/* About avec design moderne */
.about {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    
}

.about-image {
    width: 100%;
    height: clamp(300px, 50vw, 500px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 8rem);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.about-content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
}

.about-content strong {
    color: #667eea;
}

/* Services avec cards modernes */
.services {
    padding: 4rem 2rem;
    background: rgba(10, 10, 20, 0.5);
}

.services h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    font-weight: 900;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
}

.service-icon {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.5s;
    width: 10px;
    height: 10px;
}

.service-icon-img {
    width: 60px;
    height: 60px;
}

.contact-icon-img {
    width: 60px;
    height: 60px;
}
.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact moderne */
.contact {
    background: rgba(10, 10, 20, 0.5);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.contact p {
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s;
}

.contact-item:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.contact-item span {
    font-size: clamp(2rem, 5vw, 3rem);
    display: block;
    margin-bottom: 1rem;
}

.contact-item strong {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.contact-item div {
    color: #b0b0b0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}
/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.contact-form {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    text-align: left;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .contact-container {
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    nav {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 12px;
        
    }

    /* s'assurer que l'en-tête n'entraîne pas de décalage horizontal */
    header {
        left: 0;
        right: 0;
        width: 100%;
        overflow: visible;
    }
}
/* Centrer le texte des boutons Connexion / Inscription dans le menu mobile */
.mobile-menu .mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.mobile-menu .auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* fallback */
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* S'assurer que les variantes conservent la largeur totale */
.mobile-menu .btn-login,
.mobile-menu .btn-signup {
  width: 100%;
}
@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.75rem;
    }
}

/* Footer minimaliste */
footer {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem 1rem;
}

footer p {
    color: #666;
    margin: 0.5rem 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .nav-center {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats {
        margin-top: 2rem;
        grid-template-columns: 1fr;
    }

    .about {
        margin: 4rem auto;
    }

    .services, .contact {
        padding: 6rem 1.5rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .service-card, .contact-item {
        padding: 1.5rem;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
/* Courses Page */
.courses {
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-header {
    text-align: center;
    margin-bottom: 4rem;
}

.courses-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 900;
}

.courses-header p {
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.courses-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Accordion */
.accordion {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(102, 126, 234, 0.1);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #667eea;
}

.accordion-item.active .accordion-header {
    background: rgba(102, 126, 234, 0.15);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
}

.pdf-list {
    padding: 0 2rem 2rem;
    display: grid;
    gap: 1rem;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s;
}

.pdf-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

.pdf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pdf-name {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses {
        padding: 4rem 1.5rem 3rem;
    }

    .accordion-header {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .pdf-list {
        padding: 0 1.5rem 1.5rem;
    }

    .pdf-item {
        padding: 0.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .courses-header h1 {
        margin-bottom: 0.5rem;
    }

    .accordion-header {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .pdf-list {
        padding: 0 1.2rem 1.2rem;
        gap: 0.8rem;
    }

    .pdf-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* Exams Page */
.exams {
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.exams-header {
    text-align: center;
    margin-bottom: 4rem;
}

.exams-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 900;
}

.exams-header p {
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.exams-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Exam List */
.exam-list {
    padding: 0 2rem 2rem;
    display: grid;
    gap: 1.5rem;
}

.exam-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.exam-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s;
}

.exam-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.exam-item.exam:hover {
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.exam-item.correction:hover {
    background: rgba(102, 234, 165, 0.1);
    box-shadow: 0 10px 30px rgba(102, 234, 165, 0.2);
}

.exam-icon,
.correction-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.exam-icon {
    color: #667eea;
}

.correction-icon {
    color: #66eaa5;
}

.exam-item .exam-name {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .exams {
        padding: 4rem 1.5rem 3rem;
    }

    .exam-pair {
        grid-template-columns: 1fr;
    }

    .exam-item {
        padding: 0.8rem;
    }

    .exam-item .exam-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .exams-header h1 {
        margin-bottom: 0.5rem;
    }

    .exam-list {
        padding: 0 1.2rem 1.2rem;
        gap: 1rem;
    }

    .exam-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .exam-icon,
    .correction-icon {
        font-size: 1.1rem;
    }
}

/* About Page */
.about-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    position: relative;
    overflow: hidden;

}


.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    
    
}

.about-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 900;
    
}

.about-hero p {
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    
}

/* Main About Section */
.about-main {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
        overflow: hidden;

    
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-image-section {
    display: flex;
    justify-content: center;
    
}

.about-image-large {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border: 4px solid rgba(255,255,255,0.03);
    background: #111;
}

.about-image-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.about-text-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    
}

.about-text-section .subtitle {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-text-section p {
    color: #b0b0b0;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    
}

/* Experience Section */
.about-experience {
    padding: 6rem 2rem;
    background: rgba(10, 10, 20, 0.5);
    max-width: 1400px;
    margin: 0 auto;
}

.about-experience h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    font-weight: 900;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s;
}

.experience-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.experience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.experience-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.experience-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Qualities Section */
.about-qualities {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-qualities h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    font-weight: 900;
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.quality-item {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    position: relative;
}

.quality-item:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.05);
}

.quality-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quality-item h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.quality-item p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Approach Section */
.about-approach {
    padding: 6rem 2rem;
    background: rgba(10, 10, 20, 0.5);
    max-width: 1400px;
    margin: 0 auto;
    
}

.about-approach h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    font-weight: 900;
}

.approach-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.approach-step {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
}

.approach-step:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.approach-step h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.approach-step p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* CTA Section */
.about-cta {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0  auto 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 30px;
    position: relative;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 900;
}

.about-cta p {
    color: #b0b0b0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
}

.about-cta .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s;
    margin-top: 1rem;
}

/* Photo du professeur — remplit toute la card et reste responsive */
.about-image,
.about-image-section,
.about-image-large {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border: 4px solid rgba(255,255,255,0.03);
    background: #111;
}

.about-image img,
.about-image-section img,
.about-image-large img,
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Ajustements responsive */
@media (max-width: 1024px) {
    .about-image,
    .about-image-section,
    .about-image-large { max-width: 480px; }
}

@media (max-width: 480px) {
    .about-image,
    .about-image-section,
    .about-image-large { max-width: 320px; aspect-ratio: 1/1; }
}
/* Animations on-scroll (about page) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* variantes utilitaires */
.animate-left { transform: translateX(-20px); }
.animate-right { transform: translateX(20px); }

.animate-on-scroll.animate-left.in-view,
.animate-on-scroll.animate-right.in-view {
  transform: translateX(0);
}

/* léger délai en cascade si plusieurs éléments côte à côte */
.animate-on-scroll[data-delay] {
  transition-delay: calc(var(--delay, 0) * 0.08s);
}
/* Hover animations — About page (only for pointer devices) */
.experience-card,
.quality-item,
.approach-step {
  transition: transform 360ms cubic-bezier(.2,.9,.3,1), box-shadow 360ms, border-color 360ms;
  will-change: transform, box-shadow;
}

@media (hover: hover) and (pointer: fine) {
  .experience-card:hover,
  .quality-item:hover,
  .approach-step:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 70px rgba(102,126,234,0.16);
    border-color: rgba(102,126,234,0.45);
  }

  .about-image-large img,
  .about-photo {
    transition: transform 600ms cubic-bezier(.2,.9,.3,1);
    will-change: transform;
  }

  .about-image-large:hover img,
  .about-photo:hover {
    transform: scale(1.03) rotate(-0.35deg);
  }

  .about-cta .cta-button:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 50px rgba(102,126,234,0.18);
  }
}
/* Auth Section */
.auth-section {
    padding: 6rem 2rem 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Auth Toggle */
.auth-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 15px;
}

.toggle-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
}

.toggle-btn:hover {
    color: #fff;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    text-align: left;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 39px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: all 0.3s;
}

.password-toggle:hover {
    transform: scale(1.1);
}

/* Form Options */
.form-options {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.remember-me,
.agree-terms {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.remember-me input,
.agree-terms input {
    width: auto;
    accent-color: #667eea;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.agree-terms a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.agree-terms a:hover {
    text-decoration: underline;
}

/* Form Submit */
.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s;
    margin-bottom: 1.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

/* Form Footer */
.form-footer {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.toggle-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Fix mobile header: empêcher overflow et forcer visibilité du bouton menu */
html, body {
  overflow-x: hidden;
}

/* permettre de positionner précisément le bouton menu */
nav {
  position: relative;
}

/* bouton menu — toujours visible en mobile et au premier plan */
.mobile-menu-btn {
  display: none; /* garde la règle par défaut pour desktop */
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1101;
}

/* Ajustements spécifiques mobile */
@media (max-width: 968px) {
  nav {
    padding: 0 1rem;
  }

  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 1rem;
    top: -9px;
  }

  /* s'assurer que l'en-tête n'entraîne pas de décalage horizontal */
  header {
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
  }
}


