/* =========================================================
   ACAN — style.css
   Navbar & Hero : nouvelle version (Poppins / Font Awesome)
   Reste du site : sections existantes adaptées à cette palette
   ========================================================= */

:root {
    /* Couleurs de marque */
    --color-primary: #5b3df0;
    --color-primary-dark: #3a1fb8;
    --color-primary-light: #7c5cf5;
    --color-accent: #8b6ef2;

    --color-text: #171330;
    --color-text-soft: #6b6b85;
    --color-text-muted: #6b6b85; /* alias pour les sections existantes */
    --color-dark: #171330;       /* alias titres */

    --color-bg: #ffffff;
    --color-bg-soft: #f7f6fd;
    --color-accent-soft: #f7f6fd; /* alias fonds d'icônes */
    --color-bg-page: #f7f7fb;     /* fond gris pour l'alternance des sections */
    --color-footer: #0A0B2E;

    --color-border: #ececf5;

    --gradient-primary: linear-gradient(135deg, #6a3df5 0%, #4527c9 100%);
    --gradient-hero-shape: linear-gradient(135deg, #7b4dff 0%, #3a1fb8 60%, #241263 100%);

    --shadow-sm: 0 2px 8px rgba(23, 19, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(23, 19, 48, 0.10);
    --shadow-lg: 0 20px 45px rgba(60, 30, 170, 0.18);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 88px;
    --gtk-ticker-h: 0px;

    /* Transition pour le changement de thème */
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================================
   MODE SOMBRE - survole des variables
   ========================================================= */
.dark-mode {
    --color-text: #e8e8f0;
    --color-text-soft: #a8a8c0;
    --color-text-muted: #a8a8c0;
    --color-dark: #e8e8f0;

    --color-bg: #0f0e1a;
    --color-bg-soft: #1c1a2e;
    --color-accent-soft: #1c1a2e;
    --color-bg-page: #13111f;
    --color-footer: #070612;

    --color-border: #2a283c;

    --gradient-primary: linear-gradient(135deg, #8b6ef2, #5b3df0);
    --gradient-hero-shape: linear-gradient(135deg, #5b3df0, #2a1a7a);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* Appliquer la transition sur les éléments qui utilisent les variables */
body,
.navbar,
.hero__bg-shape,
.floating-card,
.track-card,
.event-card,
.partner-logo,
.cta-inner,
.footer,
.badge,
.btn--outline,
.btn-secondary {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    line-height: 1.15;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    border-radius: var(--radius-pill);
}

.btn--pill { border-radius: var(--radius-pill); }

.btn--primary,
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn--primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--primary i,
.btn--primary svg { transition: transform 0.25s ease; width: 15px; height: 15px; }
.btn--primary:hover i,
.btn--primary:hover svg { transform: translateX(3px); }

.btn--outline,
.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn--outline:hover,
.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.btn-outline-light svg { width: 15px; height: 15px; }

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

/* =========================================================
   Bandeau événements en vedette — défile en continu, au-dessus de la navbar
   ========================================================= */
body.has-gtk-ticker { --gtk-ticker-h: 38px; }

.gtk-ticker {
    background: #1c0c66;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 101;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.gtk-ticker-track {
    display: flex;
    width: max-content;
    height: var(--gtk-ticker-h);
    box-sizing: border-box;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    transform: translateX(100vw);
    animation: gtk-ticker-scroll 18s linear infinite;
}
.gtk-ticker:hover .gtk-ticker-track,
.gtk-ticker:focus-within .gtk-ticker-track { animation-play-state: paused; }
.gtk-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.gtk-ticker-item > i { color: #ffd166; font-size: 11px; flex-shrink: 0; }
.gtk-ticker-item strong { font-weight: 700; }
.gtk-ticker-date { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.gtk-ticker-sep { color: rgba(255, 255, 255, 0.35); }
.gtk-ticker-dot { color: rgba(255, 255, 255, 0.4); }
.gtk-ticker-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}
.gtk-ticker-meta i { color: rgba(255, 255, 255, 0.55); font-size: 10px; }
@keyframes gtk-ticker-scroll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .gtk-ticker-track { animation: none; }
}
@media (max-width: 640px) {
    body.has-gtk-ticker { --gtk-ticker-h: 32px; }
    .gtk-ticker-track { gap: 26px; padding: 0 14px; font-size: 12px; }
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
    position: sticky;
    top: var(--gtk-ticker-h);
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.dark-mode .navbar {
    background: rgba(15, 14, 26, 0.85);
}

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

.navbar__logo img { height: 64px; width: auto; max-width: none; }

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar__link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-soft);
    padding: 8px 2px;
    transition: color 0.2s ease;
}
.navbar__link:hover { color: var(--color-primary); }

.navbar__link.active {
    color: var(--color-text);
    font-weight: 600;
}
.navbar__link.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: background 0.2s ease;
}
.icon-btn:hover { background: #ece9fd; }
.dark-mode .icon-btn:hover { background: #2f2b4a; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding-top: 56px;
    overflow: hidden;
}

.hero__bg-shape {
    position: absolute;
    top: 50%;
    right: -150px;
    width: 940px;
    height: 940px;
    transform: translateY(-50%);
    border-radius: 63% 37% 41% 59% / 55% 45% 55% 45%;
    background: var(--gradient-hero-shape);
    z-index: 0;
    opacity: 0.97;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg-shape::before {
    content: "";
    position: absolute;
    top: 4%;
    left: 6%;
    width: 46%;
    height: 46%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 16px;
    padding-bottom: 56px;
}

/* --- Contenu texte --- */
.hero__content { max-width: 560px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    margin-bottom: 22px;
}
.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 22px;
}

.hero__text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat__icon {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.2;
}

.stat__label {
    font-size: 0.78rem;
    color: var(--color-text-soft);
}

/* --- Visuel --- */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    margin: 0;
}

.hero__person {
    position: relative;
    z-index: 1;
    height: 560px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(30, 15, 90, 0.35));
    opacity: 0;
    transition: opacity 0.5s ease;
}
.hero__person.is-loaded {
    opacity: 1;
}

/* Décor "code" affiché dans la forme violette, derrière la photo */
.hero__code-decor {
    position: absolute;
    z-index: 0;
    top: 6%;
    right: -6%;
    width: 300px;
    margin: 0;
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 10.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.2);
    white-space: pre;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.15) 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.15) 80%, transparent 100%);
}
.hero__code-decor .cd-kw { color: rgba(216, 197, 255, 0.4); }
.hero__code-decor .cd-fn { color: rgba(180, 226, 255, 0.35); }
.hero__code-decor .cd-var { color: rgba(255, 255, 255, 0.28); }
.hero__code-decor .cd-str { color: rgba(255, 205, 235, 0.35); }

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-md);
    padding: 13px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    animation: float 4s ease-in-out infinite;
}

.floating-card--top {
    top: 14%;
    left: 6%;
}

.floating-card--bottom {
    bottom: 12%;
    right: 4%;
    animation-delay: -2s;
}

.floating-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.floating-card__value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

/* =========================================================
   Bandeau filières (hero)
   ========================================================= */
.tracks {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.tracks__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 32px;
    flex-wrap: wrap;
}

.track {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-soft);
    transition: color 0.2s ease;
    white-space: nowrap;
}
.track i { font-size: 0.95rem; color: var(--color-text-soft); transition: color 0.2s ease; }

.track:hover,
.track--active {
    color: var(--color-primary);
}
.track:hover i,
.track--active i {
    color: var(--color-primary);
}

/* =========================================================
   A PROPOS
   ========================================================= */
.about {
    padding: 56px 0;
    background: var(--color-bg-page);
}
.about .container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-bg-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-block;
}

.about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #9ad6ff, #5b8cff);
}
.about-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease;
}
.play-btn svg { width: 22px; height: 22px; color: var(--color-primary); margin-left: 3px; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }

.about-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
}
.about-text > p {
    color: var(--color-text-soft);
    font-size: 15.5px;
    margin-bottom: 28px;
    max-width: 480px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature-item .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--color-bg-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feature-item .icon svg { width: 19px; height: 19px; color: var(--color-primary); }
.feature-item .title { font-weight: 700; font-size: 14.5px; color: var(--color-text); }

/* =========================================================
   FILIERES / SERVICES
   ========================================================= */
.tracks-section {
    padding: 56px 0;
    background: var(--color-bg);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 44px;
    gap: 24px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 32px; font-weight: 700; max-width: 520px; }
.section-head p { color: var(--color-text-soft); font-size: 15px; max-width: 420px; }

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    touch-action: pan-y;
}

.track-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.track-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.track-card-media {
    height: 180px;
    position: relative;
    overflow: hidden;
}
.track-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.track-card:hover .track-card-media img { transform: scale(1.08); }

.track-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
}
.dark-mode .track-card-badge {
    background: rgba(15, 14, 26, 0.92);
}
.track-card-badge svg { width: 20px; height: 20px; color: var(--color-primary); }

.track-card-body { padding: 20px 22px 22px; }
.track-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.track-card-body p { font-size: 13.5px; color: var(--color-text-soft); margin-bottom: 16px; }
.track-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 700; color: var(--color-primary);
}
.track-card-link svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.track-card:hover .track-card-link svg { transform: translateX(4px); }

.tracks-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}
.carousel-arrow {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    color: var(--color-text);
}
.carousel-arrow:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-border);
    transition: all 0.25s ease;
    cursor: pointer;
}
.carousel-dots span.active { background: var(--color-primary); width: 22px; border-radius: 4px; }

/* =========================================================
   EVENEMENTS
   ========================================================= */
.events-section {
    padding: 56px 0;
    background: var(--color-bg-page);
}
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.event-card,
.event-card--cta {
    flex: 1 1 260px;
    max-width: 300px;
}
.event-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: inherit;
    text-decoration: none;
}
.dark-mode .event-card {
    background: rgba(28, 26, 46, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: inherit; text-decoration: none; }

.event-media {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(23, 19, 48, 0.85);
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    line-height: 1.1;
    backdrop-filter: blur(4px);
}
.dark-mode .event-date-badge {
    background: rgba(0, 0, 0, 0.7);
}
.event-date-badge .day { font-size: 15px; font-weight: 800; display: block; }
.event-date-badge .month { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.event-tag {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.event-body { padding: 16px 18px 18px; }
.event-body h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.event-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.event-meta span {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--color-text-soft);
    font-weight: 500;
}
.event-meta svg { width: 13px; height: 13px; }
.event-link {
    font-size: 12.5px; font-weight: 700; color: var(--color-primary);
    display: inline-flex; align-items: center; gap: 5px;
}
.event-link svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.event-card:hover .event-link svg { transform: translateX(3px); }

.event-card--cta {
    background: var(--gradient-hero-shape);
    color: #fff;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.event-card--cta .icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.event-card--cta .icon svg { width: 20px; height: 20px; color: #fff; }
.event-card--cta h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.event-card--cta p { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 18px; }

/* =========================================================
   PARTENAIRES
   ========================================================= */
.partners-section {
    padding: 40px 0 48px;
    background: var(--color-bg-page);
    border-top: 1px solid var(--color-border);
}
.partners-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.partners-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--color-text-soft);
    text-transform: uppercase;
}
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
    width: 100%;
}
.partner-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-soft);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: default;
    white-space: nowrap;
}
.partner-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--color-text);
}
.partner-logo i { font-size: 24px; }
.partner-logo--orange { color: #FF7900; opacity: 1; }

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
    padding: 0 0 56px;
    background: var(--color-bg-page);
}
.cta-inner {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-title {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.cta-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.cta-btn {
    background: #fff;
    color: var(--color-primary-dark);
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.cta-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.cta-btn:hover i { transform: translateX(3px); }

/* =========================================================
   FOOTER
   ========================================= */
.footer {
    background: var(--color-footer);
    color: rgba(255,255,255,0.7);
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 56px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; line-height: 1.6; max-width: 260px; margin-bottom: 20px; color: rgba(255,255,255,0.55); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.footer-socials a:hover { background: var(--color-primary); border-color: var(--color-primary); }
.footer-socials svg { width: 15px; height: 15px; color: #fff; }

.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-contact { list-style: none; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px;
    margin-bottom: 4px;
}
.footer-contact svg { width: 15px; height: 15px; color: var(--color-primary-light); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: #fff; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .hero__title { font-size: 2.6rem; }
    .hero__bg-shape { width: 680px; height: 680px; right: -140px; }
    .hero__visual { height: 440px; }
    .hero__person { height: 400px; }
    .floating-card { padding: 11px 14px; font-size: 0.72rem; }

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

@media (max-width: 900px) {
    .navbar__nav { display: none; }
    .hamburger { display: flex; }

    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: 20px;
        padding-bottom: 0;
        gap: 32px;
    }
    .hero__content { max-width: 100%; order: 1; }

    /* Le bloc texte reste sur fond clair : on désactive le blob plein écran */
    .hero__bg-shape { display: none; }

    .hero__visual {
        order: 2;
        display: flex;
        height: 440px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 50vw 50vw 0 0;
        background: var(--gradient-hero-shape);
        overflow: hidden;
    }
    .hero__person { height: 320px; }

    /* Bandeau des objectifs du centre de formation : masqué sur mobile */
    .tracks { display: none; }

    .about .container { grid-template-columns: 1fr; }

    .cta-inner { padding: 26px 22px; flex-direction: column; align-items: flex-start; }
    .cta-btn { width: 100%; justify-content: center; }
    .partners-logos { gap: 30px; }

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

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero__title { font-size: 2.1rem; }
    .hero__text { font-size: 0.95rem; }
    .hero__stats { gap: 20px; }
    .floating-card { font-size: 0.72rem; padding: 10px 14px; }
    .floating-card--top { left: 4px; top: 8%; }
    .floating-card--bottom { right: 4px; bottom: 6%; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { width: 100%; }

    .hero__visual { height: 380px; }
    .hero__person { height: 270px; }
    .hero__code-decor { width: 220px; font-size: 9px; }

    .tracks-grid { grid-template-columns: 1fr; }
    .events-grid .event-card,
    .events-grid .event-card--cta { flex-basis: 100%; max-width: 420px; }
    .about-features { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .partners-logos { gap: 20px; }
    .partner-logo { font-size: 16px; }
    .cta-inner { padding: 20px 18px; }
    .cta-title { font-size: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Très petits écrans (ex. 320px) : resserre encore texte, cartes et carrousels */
@media (max-width: 360px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: 1.85rem; }
    .badge { font-size: 0.7rem; padding: 6px 12px; }
    .hero__stats { gap: 14px; }
    .stat__value { font-size: 1.05rem; }
    .hero__visual { height: 340px; }
    .hero__person { height: 240px; }
    .section-head h2 { font-size: 21px; }
    .track-card-body { padding: 16px 18px 18px; }
    .track-card-body h3 { font-size: 16.5px; }
    .tracks-carousel-nav { gap: 12px; }
}

/* Menu mobile ouvert : une seconde barre horizontale, noms séparés par des | */
.navbar__nav.open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 16px 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
}
.navbar__nav.open li {
    display: flex;
    align-items: center;
}
.navbar__nav.open li:not(:last-child)::after {
    content: "|";
    color: var(--color-border);
    margin: 0 12px;
    font-weight: 400;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Accessibilité : focus visible */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .floating-card { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
}
