/* ============================================================
   IFPTA - Institut de Formation Professionnelle
   Main Stylesheet
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================================ */
:root {
    --primary: #003087;
    --primary-dark: #001f5b;
    --primary-light: #1565C0;
    --secondary: #1565C0;
    --accent-green: #2E7D32;
    --accent-green-light: #43A047;
    --accent-red: #C62828;
    --accent-red-light: #E53935;
    --accent-orange: #E65100;
    --white: #FFFFFF;
    --light-bg: #f0f4ff;
    --light-gray: #f5f5f5;
    --gray: #9E9E9E;
    --dark-gray: #424242;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a6a;
    --text-light: #6b6b8a;
    --border-color: #e0e8ff;
    --shadow-sm: 0 2px 8px rgba(0, 48, 135, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 48, 135, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 48, 135, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 48, 135, 0.2);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --font-family: 'Poppins', sans-serif;
    --container-max: 1280px;
    --container-padding: 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Explicit reset on html & body — overrides any browser user-agent stylesheet margin */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 !important;
    /* overflow-x sur html (pas body) — body avec overflow:hidden casse position:sticky */
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    /* PAS de overflow-x:hidden ici — ça casse le position:sticky du site-header */
   margin-top: -25px !important;
    padding: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-family);
}

input, textarea, select {
    font-family: var(--font-family);
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-lg {
    padding: 100px 0;
}

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

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

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

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-light); }

.bg-primary { background: var(--primary); }
.bg-light { background: var(--light-bg); }
.bg-white { background: var(--white); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    border-radius: 2px;
}

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

/* Divider */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

.btn-white:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background: var(--accent-red);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--accent-red-light);
    color: var(--white);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--light-bg);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.badge-red {
    background: #ffebee;
    color: var(--accent-red);
}

.badge-green {
    background: #e8f5e9;
    color: var(--accent-green);
}

.badge-blue {
    background: #e3f2fd;
    color: var(--secondary);
}

.badge-orange {
    background: #fff3e0;
    color: var(--accent-orange);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e9;
    color: #2E7D32;
    border-color: #4CAF50;
}

.alert-error {
    background: #ffebee;
    color: #C62828;
    border-color: #EF5350;
}

.alert-warning {
    background: #fff8e1;
    color: #F57F17;
    border-color: #FFC107;
}

.alert-info {
    background: #e3f2fd;
    color: #1565C0;
    border-color: #42A5F5;
}

/* ============================================================
   TICKER BAR — bandeau défilant (au-dessus du header)
   ============================================================ */
.ticker-bar {
    background: var(--ticker-bg, #C62828);
    color: #fff;
    display: flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    position: relative;
    z-index: 1002;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    flex-shrink: 0;
    margin: 0;              /* no gap above the bar */
    padding: 0;
}

.ticker-label-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,.22);
    padding: 0 18px;
    height: 100%;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.15);
}

.ticker-runway {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

/* Track holds 2 copies of messages for seamless loop */
.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    padding-left: 32px;
    width: max-content;
    height: 100%;
    animation: tickerRoll linear infinite;
    /* duration set via inline style */
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerRoll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity .2s;
}
.ticker-item.active,
a.ticker-item:hover { opacity: .85; text-decoration: underline; text-underline-offset: 3px; }

.ticker-item i.fa-circle { font-size: .35em; opacity: .6; }

.ticker-close {
    background: rgba(0,0,0,.15);
    border: none;
    color: rgba(255,255,255,.75);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    flex-shrink: 0;
    transition: background .2s;
}
.ticker-close:hover { background: rgba(0,0,0,.3); color: #fff; }

/* Mobile: smaller ticker */
@media (max-width: 768px) {
    .ticker-bar { height: 34px; }
    .ticker-label-badge { padding: 0 10px; font-size: .7rem; letter-spacing: .5px; }
    .ticker-item { font-size: .78rem; }
    .ticker-close { width: 26px; height: 26px; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a,
.top-bar-right a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    color: var(--white);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right span {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-mini {
    display: flex;
    gap: 10px;
}

.social-mini a {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    transition: var(--transition);
}

.social-mini a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ============================================================
   NAVBAR
   ============================================================ */

/* ── site-header : sticky uniquement ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: var(--white);
    padding: 16px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    margin-top: 0 !important;  /* garantit aucun espace au-dessus */
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

/* Aucune marge entre top-bar et navbar */
.top-bar {
    margin-bottom: 0 !important;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

/* Logo */
.nav-logo img {
    height: 60px;
    width: auto;
}

.logo-fallback-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-abbr {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-full {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

/* ============================================================
   MEGA DROPDOWN NAVIGATION
   ============================================================ */
.nav-item.has-dropdown {
    position: static; /* let the dropdown span full navbar width */
}

/* Dropdown shown/hidden entirely by JavaScript (class dd-open)
   No CSS hover trigger needed — avoids all positioning conflicts */

/* Rotate chevron when dropdown is open */
.nav-item.has-dropdown:has(.dd-open) .nav-link i.fa-chevron-down,
.nav-item.has-dropdown.mobile-open .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}
.nav-link i.fa-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* ── Dropdown visual styles only — ALL positioning done by JavaScript ── */
/* display:none is set inline on the HTML element in nav.php              */
.nav-dropdown,
.dropdown-menu {
    /* Visual appearance */
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 48, 135, 0.18);
    border: 1px solid var(--border-color);
    /* Animation */
    animation: ddFadeIn 0.18s ease;
}

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

/* ── Inner grid ── */
.mega-dropdown-inner,
.dropdown-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 220px;
    gap: 0;
    padding: 8px;
}

/* ── Columns ── */
.mega-col,
.dropdown-column {
    padding: 20px 18px;
    border-right: 1px solid var(--border-color);
}

.mega-col:last-child,
.dropdown-column:last-child {
    border-right: none;
}

/* ── Column heading ── */
.mega-heading,
.dropdown-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-bg);
}

/* ── Links inside dropdown ── */
.mega-col ul,
.dropdown-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-col ul li a,
.dropdown-column ul li a {
    display: block;
    padding: 6px 4px;
    font-size: 0.855rem;
    color: var(--text-medium);
    border-radius: 4px;
    transition: color 0.2s, padding-left 0.2s;
    text-decoration: none;
}

.mega-col ul li a:hover,
.dropdown-column ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mega-col ul li a.see-all,
.dropdown-column ul li a.see-all {
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
    font-size: 0.82rem;
}

/* ── CTA column ── */
.mega-col-cta {
    background: var(--light-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-cta-box {
    text-align: center;
    padding: 16px;
}

.mega-cta-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.mega-cta-box h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.mega-cta-box p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* nav-inner must NOT override positioning so dropdown anchors to .navbar */
.nav-inner {
    position: relative; /* dropdown will anchor here for better centering */
}

.dropdown-cta {
    padding: 16px;
    display: flex;
    align-items: center;
}

.dropdown-cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.dropdown-cta-card i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.dropdown-cta-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.dropdown-cta-card p {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-bottom: 14px;
}

/* Nav CTA */
.btn-nav-cta {
    padding: 10px 24px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Hamburger — hidden on desktop, visible on mobile */
.hamburger,
.nav-hamburger {
    display: none;       /* hidden by default on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

/* Hamburger lines — used by both .hamburger > .hamburger-line and .nav-hamburger > span */
.hamburger-line,
.nav-hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
}

/* Active/open state — X animation */
.hamburger.active .hamburger-line:nth-child(1),
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2),
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3),
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================================
   HERO SECTION — Professional cinematic hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #03081e;
    background-image: linear-gradient(135deg, #03081e 0%, #0a1e55 50%, #0d3a8a 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ── Overlay: SOLID dark on left (text zone), fades on right (image zone) ── */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        rgba(3, 8, 30, 0.98) 0%,
        rgba(3, 8, 30, 0.97) 18%,
        rgba(3, 8, 30, 0.94) 33%,
        rgba(3, 8, 30, 0.88) 45%,
        rgba(3, 8, 30, 0.72) 56%,
        rgba(3, 8, 30, 0.42) 68%,
        rgba(3, 8, 30, 0.15) 82%,
        rgba(3, 8, 30, 0.02) 100%
    );
}

/* Bottom vignette — stats area always legible */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(3,8,30,0.75) 0%, transparent 100%);
}

/* Text above both ::before and ::after overlays */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hide all legacy elements */
.hero-overlay, .hero-shapes, .hero-shape,
.hero-bg-img, .hero-gradient-bg, .hero-bg-overlay,
.hero-image, .hero-image-float { display: none !important; }

/* ── Hero layout: text occupies left ~52%, right shows image ── */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 0 72px;
    max-width: 580px;
}

.hero-content { color: #fff; width: 100%; }

/* ── Accreditation badge ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 6px 15px;
    border-radius: 40px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease forwards;
}
.hero-badge i { color: #FFD700; font-size: 0.7rem; }

/* ── Title ── */
.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-highlight {
    color: #FFD700;
    display: block;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(255,215,0,0.3);
}

/* ── Subtitle ── */
.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    animation: fadeInUp 0.6s ease 0.18s both;
}

/* ── Buttons container ── */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeInUp 0.6s ease 0.26s both;
}

/* Bouton 1 — bleu IFPTA solide */
.hero-btn-primary {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: #003087 !important;    /* IFPTA primary blue */
    background-image: none !important;
    color: #ffffff !important;
    padding: 13px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    font-style: normal !important;
    text-decoration: none !important;
    border: 2px solid #003087 !important;
    transition: background-color 0.2s, transform 0.15s !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,48,135,0.35) !important;
}
.hero-btn-primary:hover {
    background-color: #001f5b !important;
    border-color: #001f5b !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Bouton 2 — fond semi-transparent blanc avec bordure blanche */
.hero-btn-ghost {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.15) !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 13px 28px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    font-style: normal !important;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    transition: background-color 0.2s, border-color 0.2s !important;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.hero-btn-ghost:hover {
    background-color: rgba(255,255,255,0.28) !important;
    border-color: rgba(255,255,255,0.9) !important;
    color: #ffffff !important;
}

/* ── Stats bar at bottom of hero ── */
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.18);
    animation: fadeInUp 0.6s ease 0.34s both;
}
.hero-stat { text-align: left; }
.hero-stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.62);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Hide the right column (no longer used) */
.hero-image { display: none !important; }

.hero-image-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    height: 480px;
}

.hero-image-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.hero-float-1 {
    bottom: -20px;
    left: -30px;
}

.hero-float-2 {
    top: -20px;
    right: -20px;
    animation-delay: -2s;
}

.hero-float-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-float-1 .hero-float-icon {
    background: var(--light-bg);
    color: var(--primary);
}

.hero-float-2 .hero-float-icon {
    background: #e8f5e9;
    color: var(--accent-green);
}

.hero-float-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-float-text span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Hero placeholder (when no image) */
.hero-image-placeholder {
    width: 100%;
    height: 480px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    gap: 16px;
}

.hero-image-placeholder i {
    font-size: 5rem;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: var(--primary);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 24px 20px;
    border-right: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-suffix {
    font-size: 1.8rem;
    color: #FFD700;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-teaser {
    background: var(--white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-placeholder {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, var(--light-bg), #dce8ff);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary);
}

.about-img-placeholder i {
    font-size: 4rem;
    opacity: 0.4;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-badge-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: #FFD700;
    line-height: 1;
}

.about-badge-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content {
    padding: 20px 0;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 32px;
}

.about-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-list-icon {
    width: 44px;
    height: 44px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.about-list-item:hover .about-list-icon {
    background: var(--primary);
    color: var(--white);
}

.about-list-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.about-list-text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================================
   FORMATIONS SECTION
   ============================================================ */
.formations-section {
    background: var(--light-bg);
}

.formations-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--white);
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,48,135,0.3);
}

/* ── Active filter bar (server-side filter) ── */
.filter-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f0f4ff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 28px;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.filter-clear-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.filter-clear-link:hover { color: var(--accent-red); }

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Formation Card */
.formation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.formation-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), #dce8ff);
}

.formation-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.formation-card:hover .formation-card-image img {
    transform: scale(1.08);
}

/* Attractive category placeholder when no image uploaded */
.formation-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Gradient based on data-category set inline */
    background: linear-gradient(135deg, #dce8ff 0%, #b8d0ff 100%);
    position: relative;
    overflow: hidden;
}
.formation-card-image-placeholder::before {
    /* Decorative circles */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25) 0%, transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(0,48,135,.08) 0%, transparent 50%);
}
.formation-card-image-placeholder i {
    font-size: 3.2rem;
    position: relative;
    z-index: 1;
}
.formation-card-image-placeholder .placeholder-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
    position: relative;
    z-index: 1;
}

.formation-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.formation-card-diploma {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.formation-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.formation-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.formation-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.formation-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.formation-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.formation-meta-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

.formation-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.formation-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================================
   WHY IFPTA SECTION
   ============================================================ */
.why-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================================
   SHORT COURSES SECTION
   ============================================================ */
.short-courses {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.short-courses::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.short-courses .section-header * {
    color: var(--white);
}

.short-courses .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.short-courses .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.short-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.short-course-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: var(--white);
    transition: var(--transition);
}

.short-course-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.short-course-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: #FFD700;
}

.short-course-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.short-course-card p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 16px;
}

.short-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* ── Short course WITH image (new style) ── */
.sc-with-image {
    padding: 0;
    overflow: hidden;
}

.sc-image-area {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,48,135,.3), rgba(0,20,60,.5));
}

.sc-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.sc-with-image:hover .sc-image-area img { transform: scale(1.06); }

.sc-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #FFD700;
    opacity: 0.85;
}

.sc-badge-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: #FFD700;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-body {
    padding: 16px 18px 18px;
}

.short-course-duration {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: var(--light-bg);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    flex: 0 0 calc(33.333% - 19px);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: -16px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.star-rating i {
    color: #FFB300;
    font-size: 0.8rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), #dce8ff);
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.25;
}

.blog-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 20px 22px 16px;
    flex: 1;
    /* Natural flow — no forced flex column so content stacks normally */
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.blog-meta-item i {
    color: var(--primary);
    font-size: 0.72rem;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;     /* no forced bottom space */
    /* flex: 1 removed — was pushing button to very bottom */
}

/* ── Blog card footer ── */
.blog-card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.blog-card-footer .btn {
    font-size: 0.83rem;
}

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    /* margin-top: auto removed */
}

/* ── Formation filter hidden state ── */
.filter-hidden { display: none !important; }

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(6px);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: var(--white);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-info-text a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--accent-red);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 48, 135, 0.08);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
}

.form-error {
    font-size: 0.78rem;
    color: var(--accent-red);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b8a' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ============================================================
   PAGE HERO / BANNER
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: var(--light-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-light);
}

.breadcrumb ol li::after {
    content: '/';
    color: var(--border-color);
}

.breadcrumb ol li:last-child::after {
    display: none;
}

.breadcrumb ol li a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb ol li a:hover {
    text-decoration: underline;
}

.breadcrumb ol li.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================
   BLOG SINGLE PAGE
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.blog-post-header {
    margin-bottom: 28px;
}

.blog-post-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.blog-post-content {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.blog-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 16px;
}

.blog-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.blog-post-content p {
    margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-post-content ul li,
.blog-post-content ol li {
    list-style: disc;
    margin-bottom: 8px;
}

.blog-post-content ol li {
    list-style: decimal;
}

/* ── Year Filter Section ── */
.year-filter-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.year-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.year-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 24px;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    color: var(--text-medium);
    font-size: .84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.year-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--light-bg);
}
.year-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 600;
}

.year-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 5px;
    background: rgba(0,0,0,.08);
    color: inherit;
}
.year-tab.active .year-tab-count { background: rgba(255,255,255,.25); }

/* ── Active filters bar ── */
.blog-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f0f4ff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: .84rem;
}
.filter-label {
    font-weight: 600;
    color: var(--text-medium);
    margin-right: 4px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: .8rem;
    color: var(--text-dark);
    font-weight: 500;
}
.filter-chip-year { border-color: var(--primary); color: var(--primary); background: #eef3ff; }
.chip-close {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1;
    margin-left: 2px;
}
.chip-close:hover { color: var(--accent-red); }
.clear-filters {
    margin-left: auto;
    color: var(--accent-red);
    font-size: .8rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-count {
    color: var(--text-light);
    font-size: .78rem;
}

/* ── Blog search form ── */
.blog-search-form { margin-bottom: 24px; }
.blog-search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 40px;
    padding: 0 8px 0 18px;
    gap: 8px;
    transition: border-color .2s;
}
.blog-search-box:focus-within { border-color: var(--primary); }
.blog-search-box i { color: var(--text-light); flex-shrink: 0; }
.blog-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: .9rem;
    background: transparent;
}
.blog-search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.blog-search-box button:hover { background: var(--primary-dark); }
.search-clear-btn {
    color: var(--text-light);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0 6px;
}

/* ── Blog empty state ── */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.blog-empty i { font-size: 3rem; color: var(--border-color); display: block; margin-bottom: 16px; }
.blog-empty h3 { color: var(--text-light); margin-bottom: 8px; }
.blog-empty a { color: var(--primary); font-weight: 600; }

/* ── Sidebar year list ── */
.sidebar-year-list,
.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-year-list li a,
.sidebar-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    text-decoration: none;
    font-size: .875rem;
    transition: all .2s;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-year-list li:last-child a,
.sidebar-category-list li:last-child a { border-bottom: none; }
.sidebar-year-list li a:hover,
.sidebar-category-list li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 16px;
}
.sidebar-year-list li a.active,
.sidebar-category-list li a.active {
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 600;
}
.year-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 7px;
    color: var(--primary);
}

/* Legacy year-btn (backward compat) */
.year-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: all .2s;
    text-decoration: none;
}
.year-btn:hover, .year-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--primary);
}

.sidebar-categories li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.sidebar-categories a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.sidebar-categories .count {
    background: var(--light-bg);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-recent li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-recent li:last-child {
    border-bottom: none;
}

.sidebar-recent-img {
    width: 70px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--light-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.4;
}

.sidebar-recent-text a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
    transition: var(--transition);
}

.sidebar-recent-text a:hover {
    color: var(--primary);
}

.sidebar-recent-text span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

/* ============================================================
   FORMATION DETAIL
   ============================================================ */
.formation-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.formation-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-enroll-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-enroll-price {
    text-align: center;
    margin-bottom: 24px;
}

.sidebar-enroll-price .price-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

.sidebar-enroll-price .price-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

.sidebar-meta-list {
    margin-bottom: 24px;
}

.sidebar-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.sidebar-meta-item:last-child {
    border-bottom: none;
}

.sidebar-meta-item .label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-meta-item .label i {
    color: var(--primary);
    width: 16px;
}

.sidebar-meta-item .value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab-link:hover {
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--light-bg);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
}

.footer-top {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-logo img {
    height: 55px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-accreditation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 24px;
}

.footer-accreditation i {
    color: #FFD700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-accreditation small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.12);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--secondary);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-list li i {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-list a:hover {
    color: var(--white);
}

/* Footer Newsletter */
.footer-newsletter {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-newsletter h5 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-newsletter h5 i {
    color: var(--secondary);
}

.footer-newsletter p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    line-height: 1.5;
}

.newsletter-input-group {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-input-group input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: var(--white);
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input-group button {
    background: var(--secondary);
    color: var(--white);
    padding: 0 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.newsletter-input-group button:hover {
    background: var(--primary);
}

.newsletter-msg {
    font-size: 0.75rem;
    margin-top: 8px;
}

.newsletter-msg.success { color: #66BB6A; }
.newsletter-msg.error { color: #EF5350; }

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.footer-copyright strong {
    color: rgba(255,255,255,0.8);
}

.footer-slogan {
    background: var(--secondary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

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

.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-accred-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-accred-bar i {
    color: #FFD700;
    opacity: 0.5;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;       /* ← carré parfait */
    background: #dce8ff;
    overflow: hidden;
    display: block;             /* pas flex, pas centré — image remplit tout */
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    opacity: 1 !important;      /* pleine visibilité */
    filter: none !important;    /* aucun filtre */
    border-radius: 0;           /* carré */
    transform: none;
    transition: transform 0.4s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }

/* Icône placeholder (pas de photo) */
.team-photo .fa-user-tie {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.18;
    width: 100%;
    height: 100%;
}

.team-info {
    padding: 18px 20px 20px;
}

.team-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.team-role {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--white);
    font-weight: 600;
    background: var(--primary);
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-top: 8px;
    margin-bottom: 0;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.78rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}

.value-card:nth-child(2) { border-top-color: var(--accent-green); }
.value-card:nth-child(3) { border-top-color: var(--accent-red); }
.value-card:nth-child(4) { border-top-color: var(--accent-orange); }

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.value-card:nth-child(2) .value-icon { color: var(--accent-green); }
.value-card:nth-child(3) .value-icon { color: var(--accent-red); }
.value-card:nth-child(4) .value-icon { color: var(--accent-orange); }

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Accreditation Section */
.accreditation-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.accreditation-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.accreditation-icon {
    font-size: 4rem;
    color: #FFD700;
    margin-bottom: 16px;
}

.accreditation-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    margin: 16px 0;
    border: 1px solid rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
/* ── Scroll reveal animations ── */
/* Class added by JS: "revealed" (not "visible" — fixed mismatch) */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
.stagger-children.revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.13s; }
.stagger-children.revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.20s; }
.stagger-children.revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.28s; }
.stagger-children.revealed > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.35s; }
.stagger-children.revealed > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.42s; }
.stagger-children.revealed > *:nth-child(n+7) { opacity:1; transform:none; transition-delay:0.5s; }

/* Map placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    gap: 12px;
    border: 2px dashed var(--border-color);
}

.map-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

/* Search box */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,48,135,0.08);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-red);
    color: var(--white);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Enrollment inline form */
.enrollment-section {
    background: var(--light-bg);
}

.enrollment-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Partners Section */
.partners-section {
    background: var(--light-bg);
    padding: 48px 0;
}

.partners-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 28px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 70px;
    transition: var(--transition);
    opacity: 0.7;
}

.partner-logo:hover {
    opacity: 1;
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.partner-logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        max-width: 100%;
        text-align: left;
    }
    .hero-subtitle { max-width: 100%; }
    .hero-stats { justify-content: flex-start; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-badge {
        right: 0;
    }

    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .short-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-layout,
    .formation-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .formation-detail-sidebar {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .stat-item:nth-child(2n) {
        border-bottom: none;
    }

    .dropdown-menu {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    .section { padding: 60px 0; }
    .section-lg { padding: 70px 0; }

    .top-bar {
        display: none;
    }

    /* Mobile Nav — show hamburger button */
    .hamburger,
    .nav-hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        gap: 4px;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    /* Mobile dropdown appearance — position/display handled by JS */
    .nav-item.has-dropdown .dropdown-menu[style*="static"],
    .nav-item.has-dropdown .nav-dropdown[style*="static"] {
        box-shadow: none;
        border: 1px solid var(--border-color);
        background: var(--light-bg);
        border-radius: var(--radius-md);
        margin-top: 4px;
        padding: 4px;
    }

    .mega-dropdown-inner,
    .dropdown-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dropdown-column,
    .mega-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 8px;
    }

    .mega-col-cta,
    .dropdown-cta {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    /* ══ HERO MOBILE ══ */
    .hero {
        min-height: 88vh;
        align-items: center;           /* content vertically centered */
        background-position: center center;
    }

    /* Uniform dark overlay on mobile — full coverage for readability */
    .hero::before {
        background: rgba(3, 8, 30, 0.82);   /* simple solid dark */
    }
    .hero::after { height: 30%; }

    .hero-inner {
        padding: 80px 0 48px;
        max-width: 100%;
        width: 100%;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 13px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6.5vw, 2rem);
        line-height: 1.18;
        margin-bottom: 14px;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 28px;
        max-width: 100%;
        overflow: visible;       /* show full subtitle on mobile */
        display: block;
    }

    /* ── Boutons côte à côte sur mobile ── */
    .hero-buttons {
        flex-direction: row;   /* côte à côte */
        gap: 10px;
        width: 100%;
    }
    .hero-buttons a {
        flex: 1;               /* chaque bouton prend la moitié */
        justify-content: center !important;
        padding: 13px 8px !important;
        font-size: 0.82rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap;
        min-width: 0;
    }

    /* ── Stats : 4 colonnes sur une seule ligne ── */
    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        margin-top: 24px;
        padding-top: 18px;
        width: 100%;
        justify-content: space-between;
    }
    .hero-stat {
        flex: 1;
        text-align: center;
        padding: 0 2px;
    }
    .hero-stat-number { font-size: 1.25rem; }
    .hero-stat-label  { font-size: 0.58rem; letter-spacing: 0; }

    .hero-float-1,
    .hero-float-2 {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formations-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .short-courses-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .enrollment-form-card {
        padding: 24px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .accreditation-banner {
        padding: 32px 24px;
    }

    .footer-bottom-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .dropdown-menu {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .formation-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .tabs-header {
        gap: 0;
    }

    .tab-link {
        padding: 10px 14px;
        font-size: 0.82rem;
    }
}
