/* Thème sombre uniquement */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #93c5fd;
    --text-color: #f3f4f6;
    --light-text: #d1d5db;
    --background: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --font-family: 'Inter', sans-serif;
    --spacing-unit: 8px;
    --border-radius: 20px;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: background-color 0.3s, color 0.3s;
}

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

.theme-toggle-btn {
    background: var(--primary-color);
}
.theme-toggle-btn:hover {
    background: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: var(--background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.navbar, .nav-links {
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .nav-links a {
        margin-left: calc(var(--spacing-unit) * 2);
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin: calc(var(--spacing-unit) * 2) 0;
        font-size: 18px;
    }
    .navbar .container {
        flex-direction: row;
    }
}

/* Hero Section */
.hero {
    padding: 0 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--text-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

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

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--light-text);
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check {
    color: var(--success-color);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--card-bg);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--light-text);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.separator {
    color: var(--light-text);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Styles pour le contenu légal */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content h2 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.warning {
    color: var(--accent-color);
    font-weight: 500;
    margin: 1rem 0;
}

.update-date {
    margin-top: 2rem;
    font-style: italic;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        gap: 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }

    .legal-content {
        padding: 1rem;
    }

    .social-links {
        margin-top: calc(var(--spacing-unit) * 2);
    }

    .social-links a {
        margin: 0 calc(var(--spacing-unit) * 1.5);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .service-card .icon {
        font-size: 32px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
    }
}

/* Menu mobile amélioré */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1201;
        position: relative;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 340px;
        height: 100vh;
        background: rgba(20, 24, 31, 0.98);
        box-shadow: 2px 0 24px rgba(0,0,0,0.18);
        padding: 2.5rem 1.5rem 1.5rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(.77,0,.18,1);
        z-index: 1200;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a {
        margin: 1.2rem 0;
        font-size: 1.25rem;
        color: #f3f4f6;
        font-weight: 600;
        width: 100%;
        transition: color 0.2s, background 0.2s;
        border-radius: 0.5rem;
        padding: 0.5rem 0.7rem;
    }
    .nav-links a:hover, .nav-links a:active {
        background: rgba(37,99,235,0.08);
        color: var(--primary-color);
    }
    .nav-links .close-menu-btn {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: #f3f4f6;
        cursor: pointer;
        z-index: 1202;
    }
    body.menu-open {
        overflow: hidden;
    }
    /* Overlay pour fermer le menu en cliquant à l'extérieur */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.25);
        z-index: 8;
        display: none;
    }
    .menu-overlay.active {
        display: block;
    }
}

/* Réductions Section */
.reductions-section {
    padding: 4rem 0;
    background-color: var(--card-bg);
}

.reductions-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.reductions-section > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light-text);
}

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

.reduction-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.reduction-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.reduction-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.reduction-card li {
    margin: 0.5rem 0;
    color: var(--light-text);
}

/* Tableaux responsives pour tout le site */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.table-responsive table {
    min-width: 500px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    background: #1f2937;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1);
    }
    h1, h2 {
        font-size: 24px !important;
    }
    section {
        padding: calc(var(--spacing-unit) * 6) 0 !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 0.5);
    }
    h1, h2 {
        font-size: 18px !important;
    }
    section {
        padding: calc(var(--spacing-unit) * 3) 0 !important;
    }
    .table-responsive table, .pricing-table th, .pricing-table td {
        font-size: 14px !important;
        padding: calc(var(--spacing-unit) * 1) !important;
    }
    .service-card, .student-card, .hours-card, .reduction-card {
        padding: calc(var(--spacing-unit) * 2) !important;
    }
    .services-grid, .student-services, .reductions-grid, .hours-grid {
        gap: calc(var(--spacing-unit) * 1.5) !important;
    }
}

/* Cartes et sections adaptatives au thème */
.service-card, .student-card, .hours-card, .reduction-card, .feature-item, .card-section, .pricing-table, .discount-card {
    background: var(--card-bg);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

.about, .contact, .services, .reductions-section, .pack-section, .pricing-section, .hours-section, .student-section {
    background: transparent;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les cartes de tarifs */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-card li {
    margin: 0.5rem 0;
    color: var(--light-text);
}

.pricing-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-info h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.pricing-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Styles pour les horaires */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hours-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.hours-card:hover {
    transform: translateY(-5px);
}

.hours-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.hours-card .hours {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1rem 0;
}

.hours-card p {
    color: var(--light-text);
}

.hours-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hours-info h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hours-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Styles pour les étudiants */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.student-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.student-card:hover {
    transform: translateY(-5px);
}

.student-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.student-card .discount,
.student-card .features,
.student-card .pack {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 0;
}

.student-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.student-card li {
    margin: 0.5rem 0;
    color: var(--light-text);
}

.student-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.student-info h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.student-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .pricing-grid,
    .hours-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card,
    .hours-card,
    .student-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Grille des tarifs personnalisés améliorée */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}
.tarif-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    min-height: 220px;
    font-size: 1.13rem;
    position: relative;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s, background 0.3s;
    text-align: center;
}
.tarif-item:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
    transform: translateY(-4px) scale(1.025);
    z-index: 2;
}
.tarif-icone {
    font-size: 2.3rem;
    margin-bottom: 1.1rem;
    color: #b3b3c6;
    display: block;
}
.tarif-titre {
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-size: 1.18em;
    text-align: center;
}
.tarif-desc {
    color: var(--light-text);
    font-weight: 500;
    text-align: center;
    font-size: 1.05em;
}

/* Couleurs personnalisées pour chaque service (fond très doux) */
.tarif-item.blue { background: #23272e; }
.tarif-item.green { background: #1f2937; }
.tarif-item.yellow { background: #23272e; }
.tarif-item.orange { background: #1f2937; }
.tarif-item.red { background: #23272e; }
.tarif-item.pink { background: #1f2937; }
.tarif-item.violet { background: #23272e; }
.tarif-item.white { background: #1f2937; }

.tarif-titre, .tarif-desc { color: #f3f4f6; }
.tarif-icone { color: #b3b3c6; }

@media (max-width: 700px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
    .tarif-item {
        font-size: 1rem;
        padding: 1.3rem 0.7rem;
        min-height: 160px;
    }
}

/* Desktop : masquer les boutons mobile */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .close-menu-btn,
    .menu-overlay {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        height: auto !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
    }
    .nav-links a {
        color: var(--text-color);
        font-size: 1rem;
        font-weight: 500;
        margin: 0 0.7rem;
        padding: 0;
        background: none;
        border-radius: 0;
        transition: color 0.2s;
        white-space: nowrap;
    }
    .nav-links a:hover, .nav-links a:active {
        color: var(--primary-color);
        background: none;
    }
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 2.5rem 0 0 0;
    padding: 0;
    list-style: none;
}
.services-list li {
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.13rem;
    font-weight: 500;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: box-shadow 0.2s, background 0.2s;
}
.services-list li:hover {
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}