/* --- VARIABLES & BASE STYLES --- */
:root {
    --bleu-titres: #2c3e50;
    --vert-accent: #1abc9c;
    --texte-cta: #ffffff;
    --vert-positif: #1abc9c;
    --fond-principal: #ffffff;
    --fond-alterne: #f8f9fa;
    --texte-principal: #34495e;
    --ombre-moderne: 0 4px 6px rgba(44, 62, 80, 0.1), 0 1px 3px rgba(44, 62, 80, 0.08);
    --radius-moyen: 16px;
    --radius-large: 24px;
    --font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--texte-principal);
    background-color: var(--fond-principal);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bleu-titres);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vert-accent);
}

h1, h2, h3 {
    color: var(--bleu-titres);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

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

section {
    padding: 90px 0;
}

section:nth-child(even) {
    background-color: var(--fond-alterne);
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-moyen);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-moderne);
}

.cta-button.primary, .button-packs {
    background-color: var(--vert-accent);
    color: var(--texte-cta);
}

.cta-button.primary:hover, .button-packs:hover {
    background-color: #16a085; /* Darker shade of accent green */
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--bleu-titres);
    border-color: var(--bleu-titres);
}

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

/* --- UTILITIES --- */
.anim-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load:nth-child(2) { animation-delay: 0.1s; }
.animate-on-load:nth-child(3) { animation-delay: 0.2s; }
.animate-on-load:nth-child(4) { animation-delay: 0.3s; }
.animate-on-load:nth-child(5) { animation-delay: 0.4s; }


/* --- TOP BAR --- */
.top-bar {
    background-color: var(--fond-alterne);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    font-weight: 600;
}

.top-bar .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* --- HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--fond-principal);
    height: 100px;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    height: 80px;
    box-shadow: var(--ombre-moderne);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--bleu-titres);
}

.logo .logo-icon {
    height: 64px;
}

.logo .logo-text {
    height: 40px; /* Hauteur ajustable */
}

.main-nav ul {
    display: flex;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.main-nav li {
    flex-grow: 1;
    border-left: 1px solid #f0f0f0;
}

.main-nav li:first-child {
    border-left: none;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: var(--texte-principal);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--fond-alterne);
    color: var(--vert-accent);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bleu-titres);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- HERO --- */
.hero {
    padding-top: 100px;
    padding-bottom: 72px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-content h1 span {
    display: block;
}

.lead-text {
    font-size: 20px;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.trust-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 48px;
}

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

.stat-item span {
    font-size: 40px;
    font-weight: 800;
    color: var(--bleu-titres);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-large);
    box-shadow: var(--ombre-moderne);
}

.badge, .sticker {
    position: absolute;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.success-badge {
    top: 20px;
    right: 20px;
    background-color: var(--vert-positif);
    color: white;
}

.info-sticker {
    bottom: 20px;
    left: -10px;
    background-color: var(--vert-accent);
    color: var(--texte-cta);
    transform: rotate(-5deg);
}

/* --- METHODOLOGY --- */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.timeline-item {
    background: var(--fond-principal);
    padding: 32px;
    border-radius: var(--radius-moyen);
    border: 1px solid #eee;
    text-align: center;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bleu-titres);
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
}

.timeline-item h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

/* --- PACKS --- */
.packs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pack-card {
    background: var(--fond-principal);
    padding: 32px;
    border-radius: var(--radius-large);
    box-shadow: var(--ombre-moderne);
    display: flex;
    flex-direction: column;
}

.pack-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.pack-card ul {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pack-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.pack-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vert-positif);
    font-weight: 600;
}

.pack-card .cta-button {
    background-color: var(--bleu-titres);
    color: white;
}

.pack-card .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--bleu-titres);
    text-align: center;
    margin-bottom: 24px;
}

/* --- SUBJECTS --- */
.subjects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.subject-pill {
    background-color: var(--fond-principal);
    color: var(--bleu-titres);
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 18px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.subject-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-moderne);
}

.subject-pill.more-subjects {
    background-color: var(--bleu-titres);
    color: var(--fond-principal);
    border-color: var(--bleu-titres);
}

/* --- TESTIMONIALS --- */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 40px;
    text-align: center;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide p {
    font-size: 22px;
    font-style: italic;
    margin-bottom: 16px;
}

.carousel-slide span {
    font-weight: 600;
    color: var(--bleu-titres);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--ombre-moderne);
}

.carousel-button.prev { left: 0; }
.carousel-button.next { right: 0; }

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

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.faq-icon {
    font-size: 24px;
    color: var(--bleu-titres);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 24px;
}

/* --- CONTACT --- */
.contact-lead {
    text-align: center;
    font-size: 18px;
    margin-bottom: 48px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--fond-principal);
    padding: 48px;
    border-radius: var(--radius-large);
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
}

.contact-form .cta-button {
    align-self: flex-start;
    background-color: var(--vert-accent);
    color: var(--texte-cta);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--bleu-titres);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.main-footer a {
    color: white;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* --- STICKY HELP BUTTON --- */
.sticky-help-button {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--vert-accent);
    color: var(--texte-cta);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--ombre-moderne);
    font-weight: 600;
    z-index: 90;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    .hero-content h1 { font-size: 48px; }
    .lead-text { font-size: 18px; }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .main-header {
        height: 80px;
    }
    .main-header.scrolled { height: 70px; }

    .logo .logo-img {
        height: 60px;
    }

    .logo .logo-text {
        height: 30px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--fond-principal);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .main-nav a { font-size: 24px; }

    .burger-menu {
        display: block;
    }
    
    .burger-menu.open .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.open .burger-line:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .button-packs { display: none; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper { order: 1; }

    .hero-content h1 { font-size: 40px; }
    .lead-text { margin-left: auto; margin-right: auto; }
    .hero-cta, .trust-cards, .stats { justify-content: center; }
    .stats { gap: 24px; }
    .stat-item span { font-size: 32px; }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .sticky-help-button { display: block; }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    h2 { font-size: 26px; }
    .hero-content h1 { font-size: 32px; }
    .hero-cta { flex-direction: column; }
    .trust-cards { flex-direction: column; align-items: center; }
    .packs-container { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 8px; }
}

/* --- FOOTER SOCIAL LINKS --- */
.main-footer .footer-social {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.main-footer .footer-social a {
    opacity: 1;
    font-weight: 500;
}

.main-footer .footer-social a:hover {
    text-decoration: underline;
}

/* --- New Logo Style --- */
.logo .logo-img {
    height: 80px;
    width: auto;
}

/* --- RESEAUX SOCIAUX --- */
.reseaux {
    background-color: var(--fond-principal);
}

.reseaux-lead {
    text-align: center;
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reseaux-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--texte-principal);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--bleu-titres);
}

.social-link svg {
    width: 64px;
    height: 64px;
    fill: var(--bleu-titres);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--vert-accent);
}