/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary: #0B5D47;
    --primary-dark: #063B2F;
    --primary-light: rgba(11, 93, 71, 0.1);
    --gold: #D8A43C;
    --gold-light: #E5BE6A;
    
    /* Theme variables - Default Light */
    --bg-color: #FAF9F6;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-color: rgb(0 0 0 / 0.05);
    
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
}

body.dark-theme {
    --bg-color: #0B1C18;
    --bg-card: #122822;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #1A3A31;
    --shadow-color: rgb(0 0 0 / 0.3);
    --primary-light: rgba(11, 93, 71, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }

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

.text-center { text-align: center; }
.w-full { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover { background-color: var(--gold-light); }

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

body.dark-theme .navbar.scrolled {
    background-color: rgba(18, 40, 34, 0.9);
    border-bottom: 1px solid rgba(26, 58, 49, 0.5);
}

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

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

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.desktop-nav ul {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover { color: var(--primary); }

.desktop-nav .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Dropdown Menu Desktop */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-main);
    padding: 0.25rem 0;
}

.dropdown-chevron {
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    transform: translateX(3px);
}

.dropdown-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-icon.icon-light {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-icon.icon-gold {
    background-color: rgba(216, 164, 60, 0.15);
    color: var(--gold);
}

body.dark-theme .dropdown-icon.icon-gold {
    color: var(--gold-light);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dropdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.badge-mini {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-mini.badge-free {
    background-color: var(--primary-light);
    color: var(--primary);
}

body.dark-theme .badge-mini.badge-free {
    color: var(--gold-light);
}

.badge-mini.badge-gold {
    background-color: rgba(216, 164, 60, 0.2);
    color: var(--gold);
}

body.dark-theme .badge-mini.badge-gold {
    color: var(--gold-light);
}

.dropdown-footer {
    margin-top: 0.25rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.dropdown-footer a {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    display: block;
    padding: 0.4rem !important;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

body.dark-theme .dropdown-footer a {
    color: var(--gold-light) !important;
}

.dropdown-footer a:hover {
    background-color: var(--primary-light);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-nav a {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Mobile Submenu / Accordion */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0 0.5rem 0.75rem;
    border-left: 2px solid var(--primary-light);
    margin-top: 0.5rem;
}

.mobile-submenu.open {
    display: flex;
}

.mobile-subitem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.mobile-subitem:hover {
    color: var(--primary) !important;
}

body.dark-theme .mobile-subitem:hover {
    color: var(--gold-light) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background-color: var(--primary-light);
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(30%, -30%);
    z-index: -1;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(216, 164, 60, 0.1);
    color: var(--gold);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ping {
    position: relative;
    display: flex;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
}

.ping::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--gold);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.trust-indicator {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    display: flex;
    color: var(--gold);
}

.trust-indicator p {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.trust-indicator p span {
    font-weight: 700;
    color: var(--text-main);
}

/* Hero Illustration (CSS Art) */
.hero-illustration {
    position: relative;
    height: 350px;
    width: 100%;
    background: linear-gradient(to top right, var(--primary), var(--primary-dark));
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(to right, #808080 1px, transparent 1px), linear-gradient(to bottom, #808080 1px, transparent 1px);
    background-size: 24px 24px;
}

.floating-panel {
    position: relative;
    z-index: 10;
    width: 75%;
    height: 75%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.floating-anim {
    animation: float 4s ease-in-out infinite;
}

.panel-header {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background-color: #f87171; }
.dot-yellow { background-color: #fbbf24; }
.dot-green { background-color: #4ade80; }

.panel-body {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.col-left {
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bar { border-radius: 4px; }
.bar-sm { height: 32px; background-color: rgba(255, 255, 255, 0.2); }
.bar-full { height: 100%; background-color: rgba(255, 255, 255, 0.1); }

.col-right {
    width: 66%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.row-top {
    display: flex;
    gap: 1rem;
}
.box {
    width: 50%;
    height: 80px;
    border-radius: 4px;
}
.box-light { background-color: rgba(255, 255, 255, 0.2); }
.box-gold { background-color: rgba(216, 164, 60, 0.4); }

.row-bottom {
    width: 100%;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    gap: 0.5rem;
}

.chart-bar {
    width: 25%;
    border-radius: 4px 4px 0 0;
    background-color: rgba(255, 255, 255, 0.3);
}
.chart-bar.h-40 { height: 40%; }
.chart-bar.h-60 { height: 60%; }
.chart-bar.h-80 { height: 80%; }
.chart-bar.h-100 { height: 100%; }
.chart-bar.gold { background-color: rgba(216, 164, 60, 0.5); }

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Expertise section removed */

/* ==========================================================================
   Formations
   ========================================================================== */
.formation-card {
    padding: 2rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 0 0 0 100px;
    z-index: 0;
}

.formation-card > *:not(.card-deco) {
    position: relative;
    z-index: 1;
}

.free-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.deco-free {
    background-color: var(--primary-light);
}

.premium-card {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.deco-premium {
    background-color: rgba(216, 164, 60, 0.1);
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    width: max-content;
}

.badge-free {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-premium {
    background-color: var(--gold);
    color: var(--white);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title h3 {
    font-size: 1.5rem;
}

.icon-bg-light {
    padding: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 0.75rem;
}

.icon-bg-gold {
    padding: 0.75rem;
    background-color: rgba(216, 164, 60, 0.2);
    color: var(--gold);
    border-radius: 0.75rem;
}

.card-desc {
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.premium-card .card-desc { color: #d1d5db; }

.subtitle-gold {
    color: var(--gold-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}



/* ==========================================================================
   About (Why Choose Us)
   ========================================================================== */
.about {
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-bg-glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(216, 164, 60, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.separator {
    width: 80px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 4px;
}

.feature-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track-container {
    background-color: var(--bg-card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--primary-light);
}

.carousel-track {
    position: relative;
    height: 100%;
    list-style: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.carousel-slide.current-slide {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    margin: 1.5rem 0 2rem;
    position: relative;
    z-index: 10;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to top right, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.author-info h4 { font-size: 1.125rem; }
.author-info p { font-size: 0.875rem; color: var(--text-muted); }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.current-indicator {
    background-color: var(--primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 20;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

body.dark-theme .carousel-indicator.current-indicator {
    background-color: var(--gold);
}

/* ==========================================================================
   Theme Toggle & Navbar Actions
   ========================================================================== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.theme-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: scale(1.05);
}

body.dark-theme .theme-toggle:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.contact-form {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(11, 93, 71, 0.15);
}

body.dark-theme .form-group input:focus, 
body.dark-theme .form-group select:focus, 
body.dark-theme .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(216, 164, 60, 0.15);
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    position: relative;
    padding: 6rem 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary-dark);
    z-index: 0;
}

.cta-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.8) 0, rgba(255,255,255,0) 1px);
    background-size: 24px 24px;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

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

.cta-box p {
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo { color: var(--white); }

.footer-brand p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 1rem 0 1.5rem;
}

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

.social-links a {
    color: #d1d5db;
    transition: color 0.3s;
}
.social-links a:hover { color: var(--gold); }

.footer-links h4, .footer-newsletter h4 {
    color: var(--gold);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

.footer-newsletter p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-newsletter input {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: inherit;
}
.footer-newsletter input:focus {
    outline: none;
    border-color: var(--gold);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up { transform: translateY(40px); }
.fade-right { transform: translateX(-40px); }
.fade-left { transform: translateX(40px); }
.scale-up { transform: scale(0.9); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .hero { padding-top: 10rem; }
    .hero-container { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .hero-buttons { flex-direction: row; }
    
    .carousel-btn { display: flex; }
    .prev { left: -20px; }
    .next { right: -20px; }
    
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .hamburger { display: none; }
    .desktop-nav { display: flex; }
    
    .about-container { flex-direction: row; align-items: center; }
    .about-text { width: 40%; }
    .about-features { width: 60%; }
}

/* ==========================================================================
   Nouveaux Styles (Validation, Retour Haut, Premium)
   ========================================================================== */
.is-valid {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.is-invalid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom-left-radius: 1rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.premium-card {
    transform: scale(1.05);
    border: 2px solid var(--gold);
    z-index: 5;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==========================================================================
   Accessibility: Skip Link
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--gold);
}

/* ==========================================================================
   E-book Card Highlight & Payment Reassurance
   ========================================================================== */
#ebook-card:target,
.highlight-pulse {
    animation: pulseBorder 1.8s ease-in-out 2;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 164, 60, 0.7), var(--shadow-xl);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(216, 164, 60, 0), var(--shadow-xl);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(216, 164, 60, 0), var(--shadow-xl);
    }
}

.payment-reassurance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   Reading Progress Bar (Course Pages)
   ========================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--gold), #4ade80);
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Global Modal System (identical to PDF / Paywall modal)
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 11, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border-radius: 1.25rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    0% { transform: scale(0.92) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-box .icon-badge {
    width: 52px;
    height: 52px;
    background: rgba(216, 164, 60, 0.14);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal-box .icon-badge svg {
    width: 26px;
    height: 26px;
    stroke: var(--gold);
}

.modal-box h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 700;
}

.modal-box .modal-subtitle {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.modal-footer-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

#chariow-widget {
    width: 100%;
    min-height: 200px;
}

#chariow-widget iframe {
    max-width: 100% !important;
    border: none !important;
}




