/* =============================================
   GUARDIAN ACADEMY - Main Stylesheet
   ============================================= */

:root {
    --navy: #0d2b55;
    --navy-dark: #071a35;
    --blue: #1e90ff;
    --blue-light: #4db8e8;
    --blue-soft: rgba(30, 144, 255, 0.1);
    --white: #ffffff;
    --light: #f4f8ff;
    --gray: #6c757d;
    --dark: #212529;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 24px rgba(13, 43, 85, 0.12);
    --shadow-hover: 0 8px 32px rgba(13, 43, 85, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: var(--transition); }

/* NAVBAR */
.navbar-ga {
    background: rgba(13, 43, 85, 0.97);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar-ga.scrolled { background: rgba(7, 26, 53, 0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.navbar-ga .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* LOGO */
.navbar-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-guardian {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.logo-academy {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.15rem;
    color: #5bc4f0;
    margin-top: -2px;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.dropdown { position: relative; }
.dropdown-menu-ga {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 100;
}
.dropdown:hover .dropdown-menu-ga { display: block; }
.dropdown-menu-ga a { display: block; color: var(--navy) !important; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; }
.dropdown-menu-ga a:hover { background: var(--light); color: var(--blue) !important; }
.btn-devis {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(30,144,255,0.4);
}
.btn-devis:hover { background: #1678d4 !important; transform: translateY(-1px); }

/* ACCOUNT / LOGIN BUTTON */
.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem !important;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none !important;
}
.btn-account:hover,
.btn-account.active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff !important;
}

/* HAMBURGER → X */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px;
    width: 44px;
    height: 44px;
    transition: var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.15); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* MOBILE DRAWER */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1499;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}
.mobile-overlay.active { opacity: 1; }
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -110%;
    width: min(340px, 88vw);
    height: 100dvh;
    background: linear-gradient(160deg, #071a35 0%, #0d2b55 100%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 48px rgba(0,0,0,0.45);
    overflow-y: auto;
}
.mobile-drawer.active { right: 0; }
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.mobile-drawer-close {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-drawer-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav-list {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 1.25rem;
}
.mobile-nav-link .link-icon {
    width: 32px; height: 32px;
    background: rgba(91,196,240,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mobile-nav-link .link-icon i { color: #5bc4f0; font-size: 0.875rem; }
.mobile-nav-toggle { justify-content: space-between; }
.mobile-chevron { transition: transform 0.3s ease; font-size: 0.7rem; opacity: 0.5; }
.mobile-nav-toggle.open .mobile-chevron { transform: rotate(180deg); }
.mobile-nav-submenu {
    display: none;
    flex-direction: column;
    padding: 0.25rem 0 0.5rem 3.5rem;
    gap: 0.125rem;
}
.mobile-nav-submenu.open { display: flex; }
.mobile-nav-submenu a {
    color: rgba(255,255,255,0.55);
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}
.mobile-nav-submenu a:hover { color: #5bc4f0; background: rgba(255,255,255,0.05); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 0.4rem 0; }
.mobile-drawer-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.mobile-drawer-footer a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ==================== SCROLL REVEAL ==================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="scale"].revealed { transform: scale(1); }
[data-delay="1"] { transition-delay: 0.1s !important; }
[data-delay="2"] { transition-delay: 0.2s !important; }
[data-delay="3"] { transition-delay: 0.3s !important; }
[data-delay="4"] { transition-delay: 0.4s !important; }
[data-delay="5"] { transition-delay: 0.5s !important; }

/* HERO */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0a2240 100%);
    background-size: cover;
    background-position: center 30%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,53,0.92) 0%, rgba(13,43,85,0.75) 55%, rgba(7,26,53,0.45) 100%); z-index: 1; }
.hero-image-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0.55; }
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.hero-eyebrow { color: var(--blue-light); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1.25rem; max-width: 600px; }
.hero h1 span { color: var(--blue); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 500px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary-ga {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--blue); color: var(--white);
    padding: 0.875rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(30,144,255,0.4);
    transition: var(--transition);
}
.btn-primary-ga:hover { background: #1678d4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,144,255,0.5); color: var(--white); }
.btn-outline-ga {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--white);
    padding: 0.875rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4); transition: var(--transition);
}
.btn-outline-ga:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); transform: translateY(-2px); }

/* STATS BAR */
.stats-bar { background: var(--navy); padding: 2rem 0; }
.stats-bar .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-icon { width: 48px; height: 48px; background: rgba(30,144,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon i { color: var(--blue); font-size: 1.25rem; }
.stat-text strong { display: block; color: var(--white); font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.stat-text span { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* SECTIONS */
section { padding: 5rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.section-divider { width: 50px; height: 3px; background: var(--blue); border-radius: 2px; margin: 0 auto; }
.section-subtitle { color: var(--gray); font-size: 1rem; margin-top: 0.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* FORMATION CARDS */
.formations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.formation-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-image { position: relative; height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.formation-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.card-image-placeholder i { color: rgba(255,255,255,0.15); font-size: 4rem; }
.card-icon-badge { position: absolute; bottom: -20px; left: 1.25rem; width: 48px; height: 48px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(30,144,255,0.4); border: 3px solid var(--white); }
.card-icon-badge i { color: var(--white); font-size: 1.1rem; }
.card-body { padding: 2rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-category { color: var(--blue); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.card-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.3; }
.card-description { font-size: 0.9rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; padding: 0.65rem 0.9rem; background: linear-gradient(135deg, rgba(30,144,255,0.06) 0%, rgba(13,43,85,0.04) 100%); border-left: 3px solid #1e90ff; border-radius: 0 8px 8px 0; }
.card-description-text { color: #3d5a80; display: block; }
.card-link { color: var(--blue); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 0.4rem; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 1rem; transition: var(--transition); }
.card-link:hover { gap: 0.8rem; color: #1678d4; }

/* WHY SECTION */
.why-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.why-feature { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.why-feature:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.why-feature-icon { width: 48px; height: 48px; background: var(--blue-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.why-feature-icon i { color: var(--blue); font-size: 1.25rem; }
.why-feature h4 { font-size: 1rem; font-weight: 700; color: var(--white); }
.why-feature p { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.5; }
.why-image-col { position: relative; }
.why-image-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.why-image-wrapper img { width: 100%; height: 500px; object-fit: cover; }
.why-section .section-header { text-align: left; }
.why-section .section-divider { margin: 0; }
.why-section .section-header h2 { color: var(--white); }

/* PARTNERS */
.partners-section { background: var(--light); padding: 4rem 0; }
.partners-grid { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; }
.partner-item { filter: grayscale(100%); opacity: 0.45; transition: var(--transition); font-size: 1.5rem; font-weight: 900; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }
.partner-item:hover { filter: none; opacity: 1; color: var(--navy); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-image { height: 180px; overflow: hidden; background: linear-gradient(135deg, var(--navy), #1a3d6e); position: relative; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-tag { position: absolute; top: 1rem; left: 1rem; background: var(--blue); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 50px; }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { color: var(--gray); font-size: 0.78rem; margin-bottom: 0.5rem; }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; flex: 1; margin-bottom: 1rem; }
.blog-arrow { width: 36px; height: 36px; background: var(--blue-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; align-self: flex-end; transition: var(--transition); }
.blog-arrow i { color: var(--blue); font-size: 0.875rem; }
.blog-card:hover .blog-arrow { background: var(--blue); }
.blog-card:hover .blog-arrow i { color: var(--white); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--navy-dark) 0%, #0a2240 100%); padding: 5rem 0; }
.cta-content { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.cta-text h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.cta-text p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 450px; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* FOOTER */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; max-width: 280px; }
.footer h5 { color: var(--white); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--blue); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-item i { color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-btn i { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.social-btn:hover { background: var(--blue); }
.social-btn:hover i { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; font-size: 0.8rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--blue); }

/* CALENDAR */
.calendar-section {
    background: linear-gradient(180deg, var(--light) 0%, #e8f0fb 100%);
    padding-bottom: 5rem;
}

/* Filter tabs — scrollable on mobile */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding-bottom: 0.25rem;
}
@media (max-width: 640px) {
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
        gap: 0.4rem;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
}
.filter-tab {
    background: var(--white);
    border: 2px solid rgba(13,43,85,0.1);
    color: var(--gray);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(13,43,85,0.05);
}
.filter-tab.active,
.filter-tab:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13,43,85,0.25);
}

/* Legend */
.calendar-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(13,43,85,0.07);
    width: fit-content;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Calendar container */
#calendar-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 40px rgba(13,43,85,0.1);
    border: 1px solid rgba(13,43,85,0.06);
    overflow: hidden;
}
@media (max-width: 640px) {
    #calendar-container { padding: 1rem 0.5rem; border-radius: var(--radius); }
}

/* FullCalendar overrides */
.fc-toolbar-title {
    font-size: 1.2rem !important;
    color: var(--navy) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}
@media (max-width: 640px) {
    .fc-toolbar { flex-wrap: wrap; gap: 0.5rem !important; }
    .fc-toolbar-title { font-size: 1rem !important; }
    .fc-header-toolbar { margin-bottom: 0.75rem !important; }
}
.fc-button-primary {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.85rem !important;
    box-shadow: none !important;
    transition: background 0.2s !important;
}
.fc-button-primary:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}
.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}
.fc-button-group .fc-button-primary { border-radius: 0 !important; }
.fc-button-group .fc-button-primary:first-child { border-radius: 8px 0 0 8px !important; }
.fc-button-group .fc-button-primary:last-child  { border-radius: 0 8px 8px 0 !important; }

.fc-event {
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 3px 7px !important;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s !important;
}
.fc-event:hover { opacity: 0.88; transform: scale(1.02); }
.fc-day-today { background: rgba(30,144,255,0.06) !important; }
.fc-col-header-cell { font-size: 0.8rem !important; font-weight: 700 !important; color: var(--navy) !important; }
.fc-daygrid-day-number { font-size: 0.82rem !important; color: var(--gray) !important; }
.fc-day-today .fc-daygrid-day-number {
    background: var(--blue);
    color: var(--white) !important;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 53, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 490px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    position: relative;
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(13,43,85,0.07);
}
@keyframes modalIn {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)   scale(1);    opacity: 1; }
}
@media (max-width: 520px) {
    .modal-box { padding: 1.5rem 1.25rem; border-radius: var(--radius); }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--light);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--navy); color: var(--white); }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 8rem 0 4rem; color: var(--white); text-align: center; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.breadcrumb-ga { display: flex; justify-content: center; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.breadcrumb-ga a { color: rgba(255,255,255,0.5); }
.breadcrumb-ga a:hover { color: var(--blue); }
.breadcrumb-ga span { color: var(--blue-light); }

/* FORMATION DETAIL */
.formation-detail-header { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.formation-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 90px; border: 1px solid rgba(0,0,0,0.06); }
.session-item { background: var(--light); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid var(--blue); }
.session-date { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.session-info { font-size: 0.8rem; color: var(--gray); margin-top: 0.2rem; }
.badge-status { font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 50px; text-transform: uppercase; }
.badge-open { background: rgba(30,144,255,0.1); color: var(--blue); }
.badge-full { background: rgba(220,53,69,0.1); color: #dc3545; }
.badge-cancelled { background: rgba(108,117,125,0.1); color: var(--gray); }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid rgba(0,0,0,0.08); margin-bottom: 2rem; }
.tab-btn { background: none; border: none; padding: 0.875rem 1.5rem; font-weight: 600; font-size: 0.95rem; color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.objectives-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.objectives-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--dark); }
.objectives-list li::before { content: '✓'; background: var(--blue); color: var(--white); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.875rem 1.1rem; border: 2px solid rgba(0,0,0,0.08); border-radius: var(--radius); font-size: 0.95rem; color: var(--dark); font-family: inherit; transition: var(--transition); background: var(--white); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,0.1); }
.contact-info-card { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); border-radius: var(--radius-lg); padding: 2.5rem; color: var(--white); }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon i { color: var(--blue-light); }
.contact-info-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-item span { color: rgba(255,255,255,0.65); font-size: 0.875rem; }

/* LOGIN */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-card .logo-area { text-align: center; margin-bottom: 2rem; }
.login-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.login-card p { color: var(--gray); font-size: 0.875rem; }
.login-input { width: 100%; padding: 0.875rem 1.1rem; border: 2px solid rgba(0,0,0,0.1); border-radius: var(--radius); font-size: 0.95rem; color: var(--dark); font-family: inherit; transition: var(--transition); margin-bottom: 1rem; }
.login-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,0.1); }
.login-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .why-image-col { display: none; }
    .formation-detail-header { grid-template-columns: 1fr; }
    .formation-sidebar { position: static; }
}
@media (max-width: 768px) {
    section { padding: 3.5rem 0; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .logo-guardian { font-size: 0.95rem; }
    .logo-academy { font-size: 1rem; }
    .cta-content { grid-template-columns: 1fr; text-align: center; }
    .cta-buttons { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .why-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .stats-bar .container { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .filter-tabs { gap: 0.4rem; }
}

/* UTILITIES */
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.text-blue { color: var(--blue) !important; }

/* ==================== ENHANCED DYNAMICS ==================== */

/* Hero animated background shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(30,144,255,0.06);
    animation: floatShape 8s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 500px; height: 500px; top: -150px; right: -100px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 300px; height: 300px; bottom: -80px; right: 15%; animation-delay: 3s; animation-duration: 10s; }
.hero-shape:nth-child(3) { width: 200px; height: 200px; top: 30%; left: 5%; animation-delay: 1.5s; animation-duration: 7s; background: rgba(91,196,240,0.04); }
@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

/* Pulse animation for stat icons */
.stat-icon { animation: subtlePulse 4s ease-in-out infinite; }
.stat-item:nth-child(2) .stat-icon { animation-delay: 1s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 2s; }
.stat-item:nth-child(4) .stat-icon { animation-delay: 3s; }
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(30,144,255,0); }
}

/* Formation card enhanced hover */
.formation-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.formation-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 48px rgba(13,43,85,0.18);
}
.formation-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #5bc4f0);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}
.formation-card { position: relative; }
.formation-card:hover::after { transform: scaleX(1); }

/* Blog card hover */
.blog-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); }

/* Why features shimmer */
.why-feature {
    position: relative;
    overflow: hidden;
}
.why-feature::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s ease;
}
.why-feature:hover::before { left: 150%; }

/* Section counter numbers */
.count-number {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}

/* Smooth underline links in footer */
.footer-links a {
    position: relative;
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.25s ease;
}
.footer-links a:hover::after { width: 100%; }

/* Page header parallax hint */
.page-header { will-change: transform; }

/* Btn animations */
.btn-blue, .btn-primary-ga, .btn-devis {
    position: relative;
    overflow: hidden;
}
.btn-blue::after, .btn-primary-ga::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.btn-blue:hover::after, .btn-primary-ga:hover::after {
    width: 300px; height: 300px; opacity: 1;
}

/* Card image zoom */
.card-image { overflow: hidden; }
.card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.formation-card:hover .card-image img { transform: scale(1.08); }
.text-navy { color: var(--navy) !important; }
.text-center { text-align: center; }
.btn-blue {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--blue); color: var(--white);
    padding: 0.75rem 1.75rem; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer;
    transition: var(--transition); box-shadow: 0 2px 12px rgba(30,144,255,0.35);
}
.btn-blue:hover { background: #1678d4; transform: translateY(-2px); color: var(--white); }
.btn-outline-navy {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--navy);
    padding: 0.75rem 1.75rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    border: 2px solid rgba(13,43,85,0.2); cursor: pointer; transition: var(--transition);
}
.btn-outline-navy:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

