:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --secondary: #d946ef;
    --bg-dark: #020617;
    --bg-surface: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.8);
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RGPD */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 1rem 0;
    z-index: 3000;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.rgpd-banner a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Navbar */
.navbar {
    padding: 2.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

@media (max-width: 900px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .nav-links {
        gap: 0.5rem;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-light);
}

.btn-accent {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-dark));
    border: 1px solid var(--primary);
    color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.btn-accent:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-medium {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.1), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-tag {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -3px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.rotating-word {
  display: inline-block;
  color: #d248f0;
  font-weight: 900;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

/* This class will be toggled by JS to create the animation */
.fade-out-professional {
  opacity: 0;
  transform: translateY(-10px);
}

.fade-in-professional {
  opacity: 0;
  transform: translateY(10px);
}


@media (max-width: 1100px) {
    .module-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Grid & Align */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.align-center {
    align-items: center;
}

.large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Features List */
.features-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.f-item {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.img-container {
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
}

.img-container img {
    width: 100%;
    height: auto;
    transition: transform 0.8s;
}

.img-container:hover img {
    transform: scale(1.03);
}

/* Glass Morph */
.glass-morph {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}

.resource-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.resource-card .res-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.guides-section h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.4rem;
}

.guides-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 2.5rem;
}

/* Accordion with Layout */
.curriculum-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.accordion-header {
    padding: 2.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit';
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s;
}

.accordion-header:hover {
    color: var(--primary-light);
    padding-left: 1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.active {
    max-height: 1200px;
    padding-bottom: 3rem;
}

.module-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.module-text ul {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-text li {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-text li::before {
    content: "→";
    color: var(--primary);
    font-weight: 900;
}

.module-img {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.module-img img {
    width: 100%;
    height: auto;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid var(--border);
    font-style: italic;
}

.testi-card .author {
    margin-top: 2rem;
    font-style: normal;
    color: var(--primary-light);
}

/* Price Cards */
.price-card {
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-card.featured {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    position: relative;
}

.price-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}

.price-card h4 {
    font-size: 1.75rem;
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-card li::before {
    content: "✓";
    color: var(--success);
    margin-right: 0.5rem;
}

/* Plus Icon for Pricing */
.price-card li.plus-li::before {
    content: '+';
    color: var(--secondary);
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

summary {
    font-family: 'Outfit';
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::after {
    content: "+";
    color: var(--primary-light);
}

details[open] summary::after {
    content: "-";
}

details p {
    margin-top: 1rem;
    color: var(--text-muted);
    padding-left: 1rem;
}

/* Modal & Quiz */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    position: relative;
    padding: 4rem;
}

.modal-content.glass-morph {
    border-color: rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-main);
}

.quiz-header {
    margin-bottom: 3rem;
    text-align: center;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s;
}

.quiz-question {
    font-family: 'Outfit';
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.q-opt {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.q-opt:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(10px);
}

/* Footer */
.minimal-footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
}

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

/* Footer Extras */
.footer-top {
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.footer-legal-grid p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Trainer & Improvement */
.trainer-section .img-container {
    max-height: 550px;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.05);
}

.trainer-section .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.improvement-list {
    text-align: left;
    margin: 2rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.improvement-list li {
    font-size: 1.1rem;
    padding-left: 2rem;
    position: relative;
}

.improvement-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
}

.improvement-grid {
    gap: 2rem;
    align-items: start;
}

.improvement-grid .glass-morph {
    text-align: left;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

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

.gap-1 {
    gap: 1rem;
}

/* Video Container Override */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%;
    /* 9:16 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube Short Embed */
.youtube-short-container {
    width: 315px;
    height: 560px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.1);
    margin: 0 auto;
    border: 1px solid var(--border);
}

.youtube-short-container iframe,
.youtube-short-container .yt-short-fallback {
    width: 100%;
    height: 100%;
    border: none;
}

/* YouTube Short Fallback (if embed blocked) */
.yt-short-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.yt-short-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-play-btn {
    position: absolute;
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    transition: transform 0.3s, background 0.3s;
}

.yt-short-fallback:hover .yt-play-btn {
    transform: scale(1.15);
    background: rgba(217, 70, 239, 0.95);
}

.yt-fallback-label {
    position: absolute;
    bottom: 16px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

/* Video Modal */
.video-modal-content {
    position: relative;
    width: 360px;
    height: 640px;
    max-height: 90vh;
    max-width: 90vw;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-modal-content .close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.video-modal-player {
    width: 100%;
    height: 100%;
}

.video-modal-player iframe,
.video-modal-player video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .youtube-short-container {
        width: 240px;
        height: 427px;
    }

    .trainer-section .img-container {
        max-width: 280px;
        max-height: 400px;
    }

    .price-card {
        padding: 2.5rem 1.5rem;
    }

    .price-card .price {
        font-size: 2.5rem;
    }

    .accordion-header {
        font-size: 1.15rem;
        padding: 1.5rem 0;
    }

    .testi-card {
        padding: 2rem;
    }

    .footer-top.grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom.flex-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        margin-left: 0;
        margin: 0 0.5rem;
    }

    .text-right {
        text-align: left;
    }

    .video-modal-content {
        width: 90vw;
        height: auto;
        aspect-ratio: 9/16;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .youtube-short-container {
        width: 200px;
        height: 356px;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-medium {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .logo {
        font-size: 0.9rem;
    }
}