/* ==========================================================================
   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;
    max-width: 100%;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    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);
}

.hamburger .close-icon {
    display: none;
}

.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;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    height: auto;
    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;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-illustration {
        max-width: 300px;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-illustration {
        max-width: 250px;
        margin-top: 0.75rem;
    }
}

/* ── Hero Slideshow ── */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Dots de navigation */
.hero-slide-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.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;
    right: 1.5rem;
    bottom: 1.5rem;
    color: var(--primary-light);
    opacity: 0.7;
    pointer-events: none;
}

.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: 0 0 2rem;
    position: relative;
    z-index: 10;
}

.carousel-slide .stars {
    position: relative;
    z-index: 11;
    margin: 0 0 1.25rem;
    min-height: 1.5rem;
    align-items: center;
}

.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-grid>* {
    min-width: 0;
}

.footer a,
.footer-bottom p {
    overflow-wrap: anywhere;
}

.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;
}

/* ==========================================================================
   Corrections recette pré-déploiement
   ========================================================================== */

/* Formulaire de contact : pas de débordement horizontal sur petit écran */
.form-grid {
    grid-template-columns: minmax(0, 1fr);
}

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

.form-group {
    min-width: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* Thème sombre : contrastes (WCAG AA) */
body.dark-theme .logo:not(.footer-logo) {
    color: var(--text-main);
}

body.dark-theme .btn-outline {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

body.dark-theme .btn-outline:hover {
    background-color: var(--gold-light);
    color: #07231B;
}

/* Thème sombre : vert de marque trop sombre sur fond sombre */
body.dark-theme .text-primary {
    color: #5FD3A8;
}

body.dark-theme .cell-avoid {
    color: #FDBA74;
}

body.dark-theme .cat-guide-card span[style*="var(--primary)"] {
    color: #5FD3A8 !important;
}

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

/* ==========================================================================
   Article Share System & Modal (Coach May Pro)
   ========================================================================== */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-share:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-share.copied {
    background: #10B981 !important;
    color: #FFF !important;
    border-color: #10B981 !important;
}

.btn-share svg {
    width: 15px;
    height: 15px;
}

.share-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.btn-share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    transition: all .2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-share-icon:hover {
    transform: translateY(-2px);
}

.btn-share-icon.whatsapp:hover {
    background: #25D366;
    color: #FFF;
    border-color: #25D366;
}

.btn-share-icon.linkedin:hover {
    background: #0A66C2;
    color: #FFF;
    border-color: #0A66C2;
}

/* Share Modal Overlay & Card */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 11, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.share-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 440px;
    padding: 1.75rem 1.85rem;
    box-shadow: var(--shadow-xl);
    transform: scale(.94) translateY(12px);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
    position: relative;
}

.share-modal-overlay.open .share-modal-card {
    transform: scale(1) translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.share-modal-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.share-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card-alt, rgba(0, 0, 0, .05));
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
    font-family: inherit;
}

.share-modal-close:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .65rem;
    margin-bottom: 1.35rem;
}

.share-target-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .85rem .3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card-alt, rgba(0, 0, 0, .03));
    color: var(--text-main);
    font-size: .76rem;
    font-weight: 600;
    transition: all .2s ease;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.share-target-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-target-btn svg {
    width: 22px;
    height: 22px;
}

.share-target-btn.whatsapp:hover {
    background: rgba(37, 211, 102, .12);
    color: #25D366;
    border-color: #25D366;
}

.share-target-btn.linkedin:hover {
    background: rgba(10, 102, 194, .12);
    color: #0A66C2;
    border-color: #0A66C2;
}

.share-target-btn.twitter:hover {
    background: rgba(29, 155, 240, .12);
    color: #1D9BF0;
    border-color: #1D9BF0;
}

.share-target-btn.email:hover {
    background: rgba(216, 164, 60, .14);
    color: var(--gold);
    border-color: var(--gold);
}

.share-copy-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-card-alt, rgba(0, 0, 0, .03));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: .35rem .35rem .35rem .85rem;
}

.share-copy-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: .82rem;
    font-family: inherit;
    outline: none;
    text-overflow: ellipsis;
    min-width: 0;
}

.share-copy-btn {
    padding: .45rem .95rem;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #FFF;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: var(--primary-dark);
}

.share-copy-btn.copied {
    background: #10B981 !important;
    color: #FFF !important;
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111827;
    color: #FFF;
    padding: .8rem 1.4rem;
    border-radius: 9999px;
    font-size: .88rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: .6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .toast-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
        text-align: center;
    }
}