﻿/* ================================================
   ODESSIAL – Formation Corporate
   Design inspiré de Cegos.fr
   Palette : Bleu #0057A8 | Teal #00B5D0 | Or #F4A20A
   ================================================ */

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0057A8;
    --blue-dk: #003F7A;
    --blue-lt: #E8F2FB;
    --teal: #0099B8;
    --teal-dk: #00778F;
    --teal-lt: #E0F7FA;
    --gold: #F4A20A;
    --gold-dk: #C98500;
    --navy: #071525;
    --navy-mid: #0E2A45;
    --white: #FFFFFF;
    --gray: #F5F7FA;
    --gray-mid: #D1D9E0;
    --text: #1A2636;
    --text-muted: #5A7186;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 16px rgba(0, 40, 80, .10);
    --shadow-lg: 0 8px 40px rgba(0, 40, 80, .16);
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
    --header-h: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

/* ===== TYPOGRAPHY ===== */
.highlight {
    color: var(--blue);
}

.section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-lt);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 168, .3);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-teal:hover {
    background: var(--teal-dk);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dk);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-card {
    background: transparent;
    color: var(--blue);
    border-color: transparent;
    padding: 8px 0;
    font-weight: 700;
    font-size: .88rem;
}

.btn-card:hover {
    color: var(--blue-dk);
    gap: 14px;
}

.btn-lg {
    padding: 15px 36px;
    font-size: .97rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-left i {
    color: var(--teal);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-right a {
    color: rgba(255, 255, 255, .6);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    transition: var(--transition);
}

.topbar-right a:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50px;
    padding: 3px 4px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1.5px solid transparent;
    color: rgba(255, 255, 255, .7);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px 3px 4px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: .05em;
}

.lang-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
}

.lang-btn.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-code {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 40, 80, .09);
    border-bottom: 3px solid var(--blue);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 40, 80, .14);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    overflow: visible;
}

.nav-link {
    padding: 7px 9px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .8rem;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: var(--blue-lt);
}

.nav-link i {
    font-size: .65rem;
    transition: var(--transition);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: var(--transition);
    border: 1px solid var(--gray-mid);
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown:hover>.nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--blue);
    background: var(--blue-lt);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-mid);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    min-width: 580px;
    z-index: 200;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* ── Cegos-style column layout with category subtitles ── */
.mega-menu--wide {
    min-width: 820px;
    padding: 0;
    left: 0;
    transform: translateX(0) translateY(-6px);
}
.mega-menu--md {
    min-width: 560px;
    padding: 0;
}
.dropdown:hover .mega-menu--wide {
    transform: translateX(0) translateY(0);
}
.dropdown:hover .mega-menu--md {
    transform: translateX(-50%) translateY(0);
}
.mega-menu-cols {
    display: flex;
    align-items: stretch;
}
.mega-col {
    flex: 1;
    padding: 18px 14px;
    border-right: 1px solid #f1f5f9;
    min-width: 0;
}
.mega-col:last-child { border-right: none; }
.mega-col-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 2px solid #f1f5f9;
    white-space: nowrap;
}
.mega-menu-cols .mega-item {
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    margin-bottom: 2px;
}
.mega-menu-cols .mega-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    font-size: 13px;
}
.mega-menu-cols .mega-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0;
}
.mega-menu-cols .mega-item span {
    font-size: 11px;
    color: #64748b;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text);
}

.mega-item:hover {
    background: var(--blue-lt);
    color: var(--blue);
}

.mega-item--cta {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white);
}

.mega-item--cta:hover {
    background: linear-gradient(135deg, var(--blue-dk), var(--teal-dk));
    color: var(--white);
}

.mega-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-lt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
    font-size: .9rem;
}

.mega-item--cta .mega-icon {
    background: rgba(255, 255, 255, .2);
    color: var(--white);
}

.mega-item strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mega-item span {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mega-item--cta span {
    color: rgba(255, 255, 255, .8);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    display: flex;
    min-height: calc(100vh - var(--header-h) - 36px);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-left-panel {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 56px 80px 48px;
    background: linear-gradient(160deg, var(--navy) 0%, #0E2A45 60%, #1A4570 100%);
    position: relative;
    z-index: 2;
}

.hero-right-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.hero-brand-badge {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .3);
    padding: 14px;
}

.hero-brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero-title .highlight {
    color: var(--teal);
}

.animate-in {
    animation: fadeInUp .7s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Search */
.hero-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    padding: 6px 6px 6px 18px;
    max-width: 440px;
    width: 100%;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    position: relative;
}

.hero-search-bar:focus-within {
    border-color: #01b9c5;
    background: rgba(255, 255, 255, .18);
}

.hero-search-bar>i {
    color: rgba(255, 255, 255, .6);
    font-size: .95rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-family: inherit;
    font-size: .92rem;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.hero-search-btn {
    background: #01b9c5;
    color: #01b9c5;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: #01b9c5;
}

.hero-search-btn:hover {
    background: #57c3c7;
    transform: scale(1.06);
}

.hero-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 100;
    display: none;
}

.hero-autocomplete.open {
    display: block;
}

.autocomplete-item {
    padding: 11px 18px;
    font-size: .86rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover {
    background: var(--blue-lt);
    color: var(--blue);
}

/* ===== DOMAINS STRIP ===== */
.domains-strip {
    background: var(--white);
    border-top: 3px solid var(--blue);
    box-shadow: 0 4px 20px rgba(0, 40, 80, .08);
    position: relative;
    z-index: 10;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.domain-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 26px 14px;
    text-align: center;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
    border-right: 1px solid var(--gray-mid);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.domain-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .3s ease;
}

.domain-card:hover::after {
    transform: scaleX(1);
}

.domain-card:hover {
    background: var(--blue-lt);
    color: var(--blue);
    transform: translateY(-2px);
}

.domain-card:last-child {
    border-right: none;
}

.domain-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.domain-icon i {
    font-size: 1.25rem;
    color: var(--blue);
}

.domain-card:hover .domain-icon {
    background: var(--blue);
}

.domain-card:hover .domain-icon i {
    color: var(--white);
}

.domain-arrow {
    font-size: .65rem;
    color: var(--text-muted);
    transition: var(--transition);
    margin-top: auto;
}

.domain-card:hover .domain-arrow {
    color: var(--blue);
    transform: translateX(4px);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: inline;
}

.stat-suffix {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .85);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== SOLUTIONS ===== */
.solutions {
    background: var(--gray);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.solution-card--featured {
    background: linear-gradient(145deg, var(--blue) 0%, var(--navy-mid) 100%);
    border-color: var(--blue);
    color: var(--white);
}

.solution-card--featured h3 {
    color: #ffffff !important;
}

.solution-card--featured p {
    color: #ffffff !important;
}

.solution-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-lt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-card--featured .solution-icon {
    background: rgba(255, 255, 255, .2);
}

.solution-icon i {
    font-size: 1.4rem;
    color: var(--blue);
}

.solution-card--featured .solution-icon i {
    color: var(--white);
}

.solution-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.solution-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
    font-size: .88rem;
    transition: var(--transition);
}

.solution-link:hover {
    gap: 12px;
}

.solution-card--featured .solution-link {
    color: var(--gold);
}

/* ===== ABOUT ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-badge-float {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.about-badge-float i {
    font-size: 1.6rem;
    color: var(--gold);
}

.about-badge-float strong {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
}

.about-badge-float span {
    font-size: .74rem;
    color: var(--text-muted);
}

.about-text {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-lt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: .9rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-weight: 700;
    color: var(--navy);
    font-size: .9rem;
}

.feature-item p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* ===== FORMATIONS ===== */
.formations {
    background: var(--gray);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.formation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.formation-card.hidden {
    display: none;
}

.card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.formation-card:hover .card-image img {
    transform: scale(1.04);
}

.card-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, .4);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.card-body p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 14px;
    font-size: .78rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--gray-mid);
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--blue);
}

.formation-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 20px;
    border-radius: 6px;
    border: 2px solid var(--gray-mid);
    background: var(--white);
    color: var(--text-muted);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.formations-cta {
    text-align: center;
    margin-top: 44px;
}

/* ===== EVENTS ===== */
.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 153, 184, .4);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.event-day {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.event-month {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
}

.event-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.event-tag {
    display: inline-block;
    background: rgba(0, 153, 184, .2);
    color: var(--teal);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.event-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    color: var(--white);
}

.event-body p {
    font-size: .84rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}

.event-details {
    display: flex;
    gap: 14px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 4px;
}

.event-details i {
    color: var(--teal);
}

/* ===== WHY US ===== */
.why-us {
    background: var(--gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    transform: scaleX(0);
    transition: var(--transition);
}

.why-card:hover {
    border-color: rgba(0, 87, 168, .2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--blue-lt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: var(--blue);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--blue);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.why-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.why-card p {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery {
    background: var(--gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 210px);
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-mid);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 80, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ===== TRUST STRIP ===== */
.trust-strip {
    background: var(--white);
    border-top: 1px solid var(--gray-mid);
    border-bottom: 1px solid var(--gray-mid);
    padding: 32px 0;
    overflow: hidden;
}

.trust-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.trust-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trust-logos-track-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trust-logos-track {
    display: flex;
    animation: trustScroll 24s linear infinite;
    width: max-content;
}

.trust-logos-track:hover {
    animation-play-state: paused;
}

@keyframes trustScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 36px;
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid var(--gray-mid);
    transition: var(--transition);
}

.trust-logo:hover {
    color: var(--blue);
}

.trust-logo i {
    font-size: 1.3rem;
    color: var(--blue);
    opacity: .6;
    transition: var(--transition);
}

.trust-logo:hover i {
    opacity: 1;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 14px;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-lt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: .9rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: .86rem;
    font-weight: 700;
    color: var(--navy);
}

.contact-item p {
    font-size: .84rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 2px solid var(--gray-mid);
    border-radius: 6px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--text);
    background: var(--gray);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, .12);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px;
    background: rgba(0, 87, 168, .08);
    border: 1px solid var(--blue);
    border-radius: 8px;
    margin-top: 14px;
    color: var(--blue);
}

.form-success i {
    font-size: 1.8rem;
}

.form-success.visible {
    display: flex;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
}

.footer-top {
    padding: 72px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 44px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.footer-logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -.02em;
    line-height: 1;
}

.footer-logo-tag {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.footer-brand p {
    font-size: .85rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    font-size: .84rem;
    color: rgba(255, 255, 255, .6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '›';
    color: var(--teal);
    font-size: .95rem;
}

.footer-links ul li a:hover {
    color: var(--teal);
    padding-left: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .84rem;
}

.footer-contact ul li i {
    color: var(--teal);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter h5 {
    font-size: .84rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
}

.newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .07);
    border: none;
    color: var(--white);
    font-size: .82rem;
    outline: none;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.newsletter-form button {
    padding: 10px 16px;
    background: #F4A20A;
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: .88rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #c47e00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: rgba(255, 255, 255, .4);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 87, 168, .4);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--blue-dk);
    transform: translateY(-3px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--blue);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .topbar-left {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 20px 20px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        gap: 4px;
        z-index: 999;
    }

    .nav-links.open {
        max-height: 600px;
    }

    .dropdown-menu,
    .mega-menu {
        display: none;
    }

    .dropdown.open>.dropdown-menu,
    .dropdown.open>.mega-menu {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        box-shadow: none;
        border: 1px solid var(--gray-mid);
        margin-top: 4px;
        min-width: auto;
        border-radius: 8px;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left-panel {
        padding: 56px 24px 36px;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero-left-panel::after {
        display: none;
    }

    .hero-right-panel {
        width: 100%;
        min-height: 260px;
    }

    .hero-brand-badge {
        bottom: 16px;
        right: 16px;
        width: 90px;
        height: 90px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 5vw, 2.2rem);
    }

    .hero-search-bar {
        max-width: 100%;
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domain-card {
        border-right: none;
        border-bottom: 1px solid var(--gray-mid);
        padding: 18px 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .solutions-grid,
    .formations-grid,
    .events-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 220px;
    }

    .gallery-item {
        min-height: 180px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .cta-actions {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .topbar {
        display: none;
    }

    .hero-left-panel {
        padding: 44px 16px 28px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }

    .section {
        padding: 52px 0;
    }

    .btn-lg {
        padding: 13px 24px;
        font-size: .88rem;
    }
}

/* ===== MEGA MENU COMPACT (Solutions, Vous êtes) ===== */
.mega-menu--sm {
    min-width: 480px;
    left: 0;
    transform: translateY(-6px);
}

.dropdown:hover .mega-menu--sm {
    transform: translateY(0);
}

/* ===== LOGO – agrandir ===== */
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ===== NAV REGISTER BUTTON ===== */
.navbar .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== HERO – CEGOS FULL-WIDTH OVERLAY STYLE ===== */
.hero {
    position: relative;
    min-height: 540px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* remove old flex-direction: row */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(7, 21, 37, 0.92) 0%,
            rgba(7, 21, 37, 0.80) 45%,
            rgba(7, 21, 37, 0.30) 70%,
            rgba(7, 21, 37, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 80px 0;
    max-width: 620px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    margin: 0;
}

.hero-title .highlight {
    color: var(--teal);
}

/* Large Cegos-style search bar */
.hero-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 50px;
    padding: 6px 8px 6px 22px;
    width: 100%;
    max-width: 560px;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-search-bar:focus-within {
    border-color: var(--teal);
    background: rgba(255, 255, 255, .25);
    box-shadow: 0 0 0 4px rgba(0, 153, 184, .2);
}

.hero-search-bar>i {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.hero-search-btn {
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: var(--teal);
    transform: scale(1.04);
}

/* Hero tags (like Cegos theme pills) */
.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .9);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: .03em;
    text-decoration: none;
}

.hero-tag:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-tag i {
    font-size: .78rem;
    color: var(--teal);
    transition: var(--transition);
}

.hero-tag:hover i {
    color: var(--white);
}

/* Remove old split-panel styles */
.hero-left-panel,
.hero-right-panel,
.hero-brand-badge {
    display: none !important;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero {
        min-height: 420px;
        background-position: center center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 21, 37, .88) 0%, rgba(7, 21, 37, .7) 100%);
    }

    .hero-content {
        padding: 60px 0;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero-search-bar {
        max-width: 100%;
        border-radius: 10px;
    }

    .hero-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 360px;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-search-btn span {
        display: none;
    }
}

/* ===== HERO FIX – hauteur réduite + image personnes visible ===== */
.hero {
    min-height: 420px !important;
    max-height: 480px;
    background-position: center 55% !important;
    align-items: center;
}

.hero-overlay {
    background: linear-gradient(90deg,
            rgba(7, 21, 37, .88) 0%,
            rgba(7, 21, 37, .65) 38%,
            rgba(7, 21, 37, .15) 65%,
            rgba(7, 21, 37, .02) 100%) !important;
}

.hero-content {
    padding: 44px 0 !important;
    gap: 20px !important;
    max-width: 560px !important;
}

.hero-title {
    font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
    margin-bottom: 0 !important;
}

.hero-search-bar {
    max-width: 480px !important;
}

.hero-tags {
    gap: 8px !important;
}

.hero-tag {
    font-size: .73rem !important;
    padding: 5px 11px !important;
}

@media (max-width: 768px) {
    .hero {
        min-height: 340px !important;
        max-height: none;
    }

    .hero-content {
        padding: 36px 0 !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }
}

/* ===== HERO – style référence : gradient gauche, photo nette droite ===== */

/* Overlay: noir/navy sur la gauche, photo 100% nette à droite */
.hero-overlay {
    background: linear-gradient(90deg,
            rgba(7, 21, 37, 0.95) 0%,
            rgba(7, 21, 37, 0.88) 25%,
            rgba(7, 21, 37, 0.55) 45%,
            rgba(7, 21, 37, 0.10) 62%,
            rgba(7, 21, 37, 0.00) 72%) !important;
}

/* Contenu : PAS de carte – texte flotte sur le gradient comme la référence */
.hero-content {
    margin-left: 8% !important;
    margin-right: auto !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 48px 0 !important;
    gap: 22px !important;
    max-width: 560px !important;
}

/* Search bar pleine largeur du contenu */
.hero-search-bar {
    max-width: 100% !important;
    width: 100% !important;
}

/* Tags en une seule ligne */
.hero-tags {
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

/* Ombre douce sur le texte pour lisibilité */
.hero-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.60) !important;
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(7, 21, 37, .88) 0%,
                rgba(7, 21, 37, .65) 100%) !important;
    }

    .hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 32px 0 !important;
    }
}

/* ===== GOOGLE MAPS ===== */
.map-container {
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-mid);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 380px;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 260px;
    }
}

.hero-search-btn:hover {
    background: #F2F222 !important;
}

/* ===== CARD ACTIONS (Détails + Panier) ===== */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-card {
    flex: 1;
    padding: 9px 14px;
    font-size: .82rem;
    text-align: center;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-card:hover {
    background: var(--teal);
}

.btn-cart-add {
    flex: 1;
    border: 2px solid var(--teal);
    background: transparent;
    color: var(--teal);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-cart-add:hover {
    background: var(--teal);
    color: #fff;
}

.btn-cart-add.btn-lg {
    flex: none;
    padding: 12px 24px;
    font-size: .93rem;
}

/* ===== PDF DOWNLOAD BUTTON ===== */
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 2px solid #F4A20A;
    color: #F4A20A;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 700;
    font-family: inherit;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: #F4A20A;
    color: #fff;
}

.btn-outline-gold.btn-lg {
    padding: 13px 28px;
    font-size: .95rem;
}

.formations-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

/* ===== FLOATING CART BUTTON ===== */
.cart-float-btn {
    position: fixed;
    bottom: 80px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 153, 184, .4);
    transition: var(--transition);
    z-index: 900;
}

.cart-float-btn:hover {
    background: var(--blue);
    transform: scale(1.08);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* ===== CART NOTIFICATION TOAST ===== */
.cart-notif {
    position: fixed;
    bottom: 150px;
    right: 28px;
    background: #22c55e;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    opacity: 0;
    transform: translateY(12px);
    transition: all .3s ease;
    z-index: 9999;
    pointer-events: none;
}

.cart-notif.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(400px, 95vw);
    height: 100vh;
    background: #fff;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(0, 0, 0, .18);
    transition: right .35s cubic-bezier(.4, 0, .2, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: var(--navy);
    color: #fff;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}

.cart-close:hover {
    color: #fff;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f4f8;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info strong {
    display: block;
    font-size: .9rem;
    color: var(--navy);
}

.cart-item-info small {
    color: #64748b;
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.cart-item-remove {
    background: none;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .8rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ===== MODAL OVERLAY + PANEL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(.96);
    background: #fff;
    border-radius: 16px;
    width: min(480px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1800;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.modal-panel.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-panel--wide {
    width: min(680px, 96vw);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: var(--navy);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

.modal-sub {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 18px;
}

/* ===== FORMATION DETAIL ===== */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f9ff;
    color: var(--teal);
    border: 1px solid #bae6fd;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
}

.detail-desc {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.detail-block {
    margin-bottom: 16px;
}

.detail-block h4 {
    color: var(--navy);
    font-size: .95rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}

.detail-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-block ul li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: #475569;
    font-size: .88rem;
    border-bottom: 1px dashed #f0f4f8;
}

.detail-block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: .8rem;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== AUTH MODAL ===== */
.auth-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    justify-content: center;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--teal);
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    padding: 0;
}

.auth-link-btn:hover {
    color: var(--blue);
}

.form-error {
    color: #e53e3e;
    font-size: .84rem;
    margin-top: 10px;
    display: none;
}

.form-success {
    color: #22c55e;
    font-size: .9rem;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 8px;
}

.form-success i {
    font-size: 1.1rem;
}

/* ===== TRAINER SECTION ===== */
.trainer-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.trainer-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.trainer-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.trainer-form label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
}

.trainer-form input,
.trainer-form textarea,
.trainer-form select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--navy);
    transition: border-color .2s;
    outline: none;
}

.trainer-form input:focus,
.trainer-form textarea:focus {
    border-color: var(--teal);
}

.trainer-form textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input {
    padding: 8px;
    cursor: pointer;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== NAV USER + OUTLINE BTN ===== */
.btn-outline-nav {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 8px;
    padding: 7px 16px;
    font-weight: 600;
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-outline-nav:hover {
    background: var(--white);
    color: var(--navy);
}

.header.scrolled .btn-outline-nav {
    border-color: var(--navy);
    color: var(--navy);
}

.header.scrolled .btn-outline-nav:hover {
    background: var(--navy);
    color: var(--white);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 160px;
    padding: 8px 0;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--navy);
    font-size: .88rem;
    text-decoration: none;
    transition: background .2s;
}

.dropdown-menu li a:hover {
    background: #f0f9ff;
    color: var(--teal);
}

/* ===== CEGOS-STYLE HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    flex-shrink: 0;
}

.header-espace-client {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy);
    padding: 7px 10px;
    border-radius: 8px;
    transition: background .2s;
    white-space: nowrap;
}

.header-espace-client:hover {
    background: #f0f4f8;
}

.header-espace-client i {
    font-size: 1.1rem;
}



.header-cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--navy);
    padding: 7px 10px;
    border-radius: 8px;
    transition: background .2s;
}

.header-cart-btn:hover {
    background: #f0f4f8;
}



.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    line-height: 1;
}

/* Old floating cart button hidden (now in header) */
.cart-float-btn {
    display: none !important;
}

/* Nav user menu dropdown */
.nav-user-menu {
    position: relative;
}

.nav-user-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    min-width: 160px;
    padding: 6px 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.nav-user-menu:hover .dropdown-menu {
    display: block;
}

/* Form groups inside modals */
.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.modal-body .form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 13px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--navy);
    outline: none;
    transition: border-color .2s;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    border-color: var(--teal);
}

/* ===== PROCESS STEPS (COMMENT ÇA MARCHE) ===== */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 28px 16px;
    position: relative;
}

.process-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 87, 168, .1);
    line-height: 1;
    margin-bottom: -10px;
}

.process-icon {
    width: 68px;
    height: 68px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 24px rgba(0, 87, 168, .15);
    font-size: 1.5rem;
    color: var(--blue);
    border: 3px solid #e8f0fb;
    transition: .3s;
}

.process-step:hover .process-icon {
    background: var(--blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 87, 168, .25);
}

.process-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.process-step p {
    font-size: .86rem;
    color: #666;
    line-height: 1.6;
}

.process-connector {
    flex-shrink: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    margin-top: 80px;
    border-radius: 2px;
}

@media (max-width: 700px) {
    .process-connector {
        display: none;
    }

    .process-step {
        min-width: 140px;
    }
}

/* ===== ENGAGEMENTS ===== */
.engagements-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .engagements-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.engagements-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.engagement-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: .25s;
}

.engagement-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}

.eng-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.engagement-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.engagement-item p {
    font-size: .83rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ===== DIGITAL LEARNING BAND ===== */
.digital-band {
    background: linear-gradient(135deg, #071525 0%, #0057A8 60%, #0099B8 100%);
    padding: 52px 0;
}

.digital-band-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.digital-band-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, .3);
    flex-shrink: 0;
}

.digital-band-text {
    flex: 1;
    min-width: 240px;
}

.digital-band-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.digital-band-text strong {
    color: var(--gold);
}

.digital-band-text p {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

.digital-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.testi-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: .3s;
    border: 2px solid transparent;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .13);
    border-color: #e8f0fb;
}

.testi-card--featured {
    background: linear-gradient(135deg, #071525, #0057A8);
    color: #fff;
    border-color: transparent !important;
}

.testi-card--featured p,
.testi-card--featured .testi-stars {
    color: rgba(255, 255, 255, .9);
}

.testi-card--featured strong {
    color: #fff;
}

.testi-card--featured span {
    color: rgba(255, 255, 255, .6);
}

.testi-quote i {
    font-size: 1.6rem;
    color: var(--teal);
    opacity: .5;
}

.testi-card--featured .testi-quote i {
    color: var(--gold);
    opacity: .7;
}

.testi-card>p {
    font-size: .9rem;
    line-height: 1.75;
    color: #555;
    font-style: italic;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.testi-author strong {
    display: block;
    font-size: .88rem;
    color: var(--navy);
}

.testi-card--featured .testi-author strong {
    color: #fff;
}

.testi-author span {
    font-size: .76rem;
    color: #888;
}

.testi-stars {
    font-size: 1rem;
    color: #F4A20A;
    margin-left: auto;
    letter-spacing: 1px;
}

/* ===== NEWS / INSIGHTS ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 960px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
}

.news-card-img {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-img--sm {
    height: 140px;
}

.news-overlay-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, .25);
}

.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-tag {
    display: inline-block;
    background: #e8f0fb;
    color: var(--blue);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .05em;
    text-transform: uppercase;
    width: fit-content;
}

.news-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: .98rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.45;
    margin: 0;
}

.news-card--featured .news-card-body h3 {
    font-size: 1.12rem;
}

.news-card-body p {
    font-size: .84rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 14px;
    font-size: .76rem;
    color: #94a3b8;
}

.news-meta i {
    color: var(--teal);
    margin-right: 4px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    margin-top: auto;
    transition: gap .2s;
}

.news-link:hover {
    gap: 10px;
    color: var(--teal);
}

/* ===== ALL DOMAINS GRID (Cegos-style) ===== */
.all-domains-section {
    background: #f5f7fa;
}

.all-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .all-domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .all-domains-grid {
        grid-template-columns: 1fr;
    }
}

.all-domain-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(7, 21, 37, .07);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.all-domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(7, 21, 37, .14);
}

.all-domain-header {
    padding: 28px 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.all-domain-header i {
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

.all-domain-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.all-domain-list {
    list-style: none;
    padding: 16px 24px;
    margin: 0;
    flex: 1;
    border-bottom: 1px solid #eef2f7;
}

.all-domain-list li {
    padding: 7px 0;
    font-size: .86rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #eee;
}

.all-domain-list li:last-child {
    border-bottom: none;
}

.all-domain-list li::before {
    content: "→";
    color: var(--accent, #0057A8);
    font-weight: 700;
    flex-shrink: 0;
}

.all-domain-footer {
    padding: 14px 24px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent, #0057A8);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s;
}

.all-domain-card:hover .all-domain-footer {
    gap: 14px;
}

/* ===== NEWS GRID — already styled above, add extra card styles ===== */
.news-card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-card-img--sm {
    height: 140px;
}

.news-overlay-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, .25);
}

/* ===== SOLUTIONS ENHANCED ===== */
.solutions-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .solutions-grid--3 {
        grid-template-columns: 1fr;
    }
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    color: #555;
}

.solution-features li .fas.fa-check {
    color: var(--blue);
    font-size: .75rem;
    flex-shrink: 0;
}

.solution-card--featured .solution-features li {
    color: rgba(255, 255, 255, .85);
}

.solution-card--featured .solution-features li .fas.fa-check {
    color: var(--gold);
}

/* ===== TRUST / ILS FONT CONFIANCE ===== */
.trust-section {
    background: #fff;
}

.trust-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .trust-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-logos-grid {
        grid-template-columns: 1fr;
    }
}

.trust-logo-card {
    background: #f8fafc;
    border: 2px solid #eef2f7;
    border-radius: 16px;
    padding: 24px 20px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    cursor: default;
}

.trust-logo-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 28px rgba(0, 87, 168, .1);
    transform: translateY(-4px);
}

.trust-logo-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-logo-icon span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.trust-logo-inner>div:last-child strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.trust-logo-inner>div:last-child p {
    font-size: .78rem;
    color: #777;
    margin: 0;
}

/* ===== DOMAINS STRIP — 6 items ===== */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

@media (max-width: 1100px) {
    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== NEWS CARDS V2 — Photo-based cegos style ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.news-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(7,21,37,.08);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.news-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(7,21,37,.14);
}

.news-card-v2-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-v2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.news-card-v2:hover .news-card-v2-img img {
    transform: scale(1.06);
}

.news-card-v2-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--blue, #0057A8);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-card-v2-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card-v2-meta {
    display: flex;
    gap: 16px;
    font-size: .78rem;
    color: #999;
}

.news-card-v2-meta i {
    margin-right: 4px;
    color: var(--teal, #0099B8);
}

.news-card-v2-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy, #071525);
    line-height: 1.45;
    margin: 0;
}

.news-card-v2-body p {
    font-size: .86rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.news-card-v2-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--blue, #0057A8);
    text-decoration: none;
    margin-top: 8px;
    transition: gap .2s, color .2s;
}

.news-card-v2-link:hover {
    gap: 12px;
    color: var(--teal, #0099B8);
}

/* ===== DOMAIN PAGE STYLES ===== */
.domain-hero {
    padding: 80px 0;
    color: #fff;
}

.domain-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.domain-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.25);
}

.domain-hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 8px 0;
    line-height: 1.2;
}

.domain-hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin: 0;
}

.domain-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) { .domain-layout { grid-template-columns: 1fr; } }

.domain-desc {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 32px;
}

.domain-themes-title,
.domain-formations-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.domain-themes-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

@media (max-width: 640px) { .domain-themes-list { grid-template-columns: 1fr; } }

.domain-themes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .9rem;
    color: #333;
    font-weight: 500;
}

.domain-themes-list li .fas.fa-check-circle {
    color: var(--blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.domain-formations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 700px) { .domain-formations-grid { grid-template-columns: 1fr; } }

/* Sidebar */
.domain-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.domain-sidebar-card {
    background: #f8fafc;
    border: 2px solid #eef2f7;
    border-radius: 16px;
    padding: 24px;
}

.domain-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.domain-sidebar-card p {
    font-size: .85rem;
    color: #666;
    margin-bottom: 16px;
}

.domain-sidebar-card--pdf {
    background: linear-gradient(135deg,#071525,#0057A8);
    border-color: transparent;
    color: #fff;
    text-align: center;
}

.domain-sidebar-card--pdf .fas {
    font-size: 2.5rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 12px;
    display: block;
}

.domain-sidebar-card--pdf h3,
.domain-sidebar-card--pdf p {
    color: #fff;
}

.domain-sidebar-card--pdf p { color: rgba(255,255,255,.8); }

.domain-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.domain-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.domain-sidebar-list a:hover {
    background: var(--blue);
    color: #fff;
}

.domain-sidebar-list a .fas {
    width: 18px;
    text-align: center;
    color: var(--blue);
}

.domain-sidebar-list a:hover .fas {
    color: #fff;
}

/* ===== SOLUTIONS V2 – Cegos Style ===== */
.solutions-v2 { background: #fff; }

.solutions-v2-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy, #071525);
    margin-bottom: 24px;
}

.solutions-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) { .solutions-v2-grid { grid-template-columns: 1fr; } }

.sol-v2-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    transition: background .2s, box-shadow .2s;
}

.sol-v2-card:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(7,21,37,.08);
}

.sol-v2-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-v2-icon svg {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    display: block;
}

.sol-v2-body { flex: 1; min-width: 0; }

a.sol-v2-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.3;
    transition: opacity .2s;
}

a.sol-v2-title:hover { opacity: .75; text-decoration: underline; }

.sol-v2-title--pink   { color: #e5195e; }
.sol-v2-title--blue   { color: #0057A8; }
.sol-v2-title--purple { color: #7c3aed; }
.sol-v2-title--green  { color: #059669; }

.sol-v2-body p {
    font-size: .86rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ===== SOLUTIONS V2 – HOVER LIKE CEGOS (dark colored bg, white text) ===== */

/* Make cards look clickable */
.sol-v2-card {
    cursor: pointer;
    transition: background .3s ease, box-shadow .25s ease !important;
}

/* Dark hover backgrounds per card color */
.sol-v2-card:nth-child(1):hover { background: #5c0530 !important; box-shadow: 0 8px 32px rgba(240,180,41,.3) !important; }
.sol-v2-card:nth-child(2):hover { background: #071e4a !important; box-shadow: 0 8px 32px rgba(0,87,168,.3) !important; }
.sol-v2-card:nth-child(3):hover { background: #2e0a5c !important; box-shadow: 0 8px 32px rgba(124,58,237,.3) !important; }
.sol-v2-card:nth-child(4):hover { background: #053d2e !important; box-shadow: 0 8px 32px rgba(5,150,105,.3) !important; }

/* Text becomes white on hover */
.sol-v2-card:hover a.sol-v2-title { color: #fff !important; }
.sol-v2-card:hover .sol-v2-body p { color: rgba(255,255,255,.85) !important; }

/* SVG icon becomes white on hover */
.sol-v2-card:hover .sol-v2-icon svg {
    filter: brightness(0) invert(1);
    transition: filter .3s ease;
}

/* Smooth icon transition always */
.sol-v2-icon svg {
    transition: filter .3s ease;
}

/* Cards are links – remove underline */
.sol-v2-card a.sol-v2-title {
    text-decoration: none;
}

/* ===== SOLUTIONS V2 HEADER ===== */
.solutions-v2-header {
    text-align: center;
    margin-bottom: 40px;
}

.solutions-v2-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy, #071525);
    margin-bottom: 8px;
}

.solutions-v2-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.solutions-v2-sub {
    font-size: .92rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SOLUTIONS V2 CARDS BIGGER ===== */
.sol-v2-card {
    padding: 36px 32px !important;
}

.sol-v2-icon {
    width: 100px !important;
    height: 100px !important;
}

.sol-v2-icon svg {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
}

a.sol-v2-title {
    font-size: 1.12rem !important;
    margin-bottom: 10px !important;
}

.sol-v2-body p {
    font-size: .9rem !important;
}

/* ===== TRUST LOGOS ONLY ===== */
.trust-logos-only {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.trust-logo-badge {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .2s, box-shadow .2s;
}

.trust-logo-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ===== EVENTS V2 – colorful banner cards ===== */
.events-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

@media (max-width: 900px) { .events-grid-v2 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .events-grid-v2 { grid-template-columns: 1fr; } }

.event-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(7,21,37,.08);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.event-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(7,21,37,.14);
}

.event-card-banner {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-banner-icon {
    font-size: 3.5rem;
    color: rgba(255,255,255,.25);
}

.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    padding: 6px 14px;
    text-align: center;
    color: #fff;
    line-height: 1.2;
}

.ev-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.ev-mon {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ev-tag-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy, #071525);
    margin-bottom: 8px;
    line-height: 1.35;
}

.event-card-body p {
    font-size: .85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.ev-meta {
    display: flex;
    gap: 16px;
    font-size: .8rem;
    color: #888;
    margin-bottom: 16px;
}

.ev-meta .fas {
    color: var(--blue, #0099B8);
    margin-right: 4px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: .85rem;
}

/* ===================================================
   ABOUT / PRESENTATION ODESSIAL SECTION
=================================================== */
.about-section { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-eyebrow { display: inline-block; margin-bottom: 12px; }
.about-text .section-title { text-align: left; margin-bottom: 20px; }
.about-text p { color: #555; line-height: 1.8; margin-bottom: 16px; }

/* Features list */
.about-features { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-feat i { font-size: 24px; margin-top: 2px; flex-shrink: 0; }
.about-feat strong { display: block; font-size: 15px; color: #1a1a2e; font-weight: 600; }
.about-feat small { color: #777; font-size: 13px; }

/* Visual side */
.about-visual { position: relative; }
.about-img-wrap { position: relative; border-radius: 20px; overflow: visible; }
.about-img-wrap img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Badge floating */
.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.about-badge-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #0057A8, #0099B8);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.about-badge strong { display: block; font-size: 15px; color: #1a1a2e; }
.about-badge small { color: #777; font-size: 12px; }

/* Stats mini */
.about-stats-mini {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
}
.about-stat {
  background: #f5f7fa;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  flex: 1;
}
.about-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #0057A8;
  font-family: 'Inter', sans-serif;
}
.about-stat span:last-child { font-size: 12px; color: #777; }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-badge { left: 10px; bottom: -10px; }
  .about-text .section-title { text-align: center; }
}

/* ===== NEWS CARD – fallback image ===== */
.news-card-v2-img img { background: #e8edf4; }

/* ===================================================
   TRUST LOGOS – Real logo images
=================================================== */
.trust-logos-only {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}
.trust-logo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 18px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 140px;
  max-width: 180px;
}
.trust-logo-img:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,87,168,0.12); }
.trust-logo-img img { max-height: 70px; max-width: 150px; object-fit: contain; filter: grayscale(30%); transition: filter 0.3s; }
.trust-logo-img:hover img { filter: grayscale(0%); }

/* ===================================================
   VOUS ETES SECTION – Client / Formateur
=================================================== */
.vous-etes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
.vous-etes-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 5px solid transparent;
}
.vous-etes-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.vous-etes-client   { border-top-color: #0057A8; }
.vous-etes-formateur{ border-top-color: #e5195e; }

.vous-etes-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.vous-etes-client   .vous-etes-icon { background: rgba(0,87,168,0.1);  color: #0057A8; }
.vous-etes-formateur.vous-etes-icon,
.vous-etes-formateur .vous-etes-icon { background: rgba(229,25,94,0.1); color: #e5195e; }

.vous-etes-card h3 { font-size: 22px; margin-bottom: 12px; color: #1a1a2e; }
.vous-etes-card p  { color: #666; line-height: 1.7; margin-bottom: 20px; }

.vous-etes-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.vous-etes-list li { display: flex; align-items: flex-start; gap: 10px; color: #444; font-size: 14px; }
.vous-etes-list li .fa-check-circle { color: #059669; font-size: 16px; margin-top: 2px; flex-shrink: 0; }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  border: 2px solid #1a1a2e; color: #1a1a2e;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all 0.25s;
}
.btn-outline-dark:hover { background: #1a1a2e; color: #fff; }

@media (max-width: 768px) {
  .vous-etes-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   DOMAIN CARDS – Show/Hide toggle
=================================================== */
.domain-hidden { display: none !important; }
.domain-shown  { display: flex !important; }

/* Buttons row below grid */
.domains-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn-catalogue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  background: linear-gradient(135deg, #d9534f, #c0392b);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(217,83,79,0.3);
}
.btn-catalogue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,83,79,0.4);
  color: #fff;
}
.btn-catalogue .fas { font-size: 16px; }

/* ===================================================
   REFERENCES CLIENTS – Cegos Style Marquee
=================================================== */
.trust-section-cegos {
  padding: 60px 0 70px;
  background: #fff;
  overflow: hidden;
}
.trust-marquee-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}
.trust-marquee-wrapper::before,
.trust-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trust-marquee-wrapper::before { left:  0; background: linear-gradient(to right, #fff, transparent); }
.trust-marquee-wrapper::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

.trust-marquee {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 18s linear infinite;
}
.trust-marquee:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-logo-box {
  background: #fff;
  border-radius: 14px;
  padding: 16px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid #eef0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 180px;
  height: 90px;
  flex-shrink: 0;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.t-logo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,87,168,0.12);
  border-color: #c0d4ec;
}
.t-logo-box img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.t-logo-box:hover img { filter: grayscale(0%); }

/* ===================================================
   MODALS – Client Contact & Formateur Application
=================================================== */
.od-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay { from { opacity:0 } to { opacity:1 } }

.od-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUpModal 0.25s ease;
}
@keyframes slideUpModal { from { transform:translateY(30px); opacity:0 } to { transform:translateY(0); opacity:1 } }

.od-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 26px; color: #888;
  cursor: pointer; line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.od-modal-close:hover { color: #e5195e; transform: scale(1.15); }

.od-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.od-modal-header h3  { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.od-modal-header p   { color: #888; font-size: 13px; margin: 0; }

.od-modal-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.od-modal-icon.client  { background: rgba(0,87,168,0.12);  color: #0057A8; }
.od-modal-icon.trainer { background: rgba(229,25,94,0.12);  color: #e5195e; }

.od-modal-form { display: flex; flex-direction: column; gap: 14px; }
.od-modal-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.od-field label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.od-field input,
.od-field textarea,
.od-field select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #dde3ec;
  border-radius: 10px; font-size: 14px;
  font-family: inherit; color: #333;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.od-field input:focus,
.od-field textarea:focus { outline: none; border-color: #0057A8; box-shadow: 0 0 0 3px rgba(0,87,168,0.1); }
.od-field textarea { resize: vertical; min-height: 90px; }

.od-modal-msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 4px; }
.od-modal-msg.od-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.od-modal-msg.od-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

.btn-full { width: 100%; justify-content: center; }

@media (max-width: 560px) {
  .od-modal { padding: 24px 18px 20px; }
  .od-modal-row { grid-template-columns: 1fr; }
}

/* File input in modal */
.od-file-input {
  display: block; width: 100%;
  padding: 10px; border: 1.5px dashed #c0cad8;
  border-radius: 10px; font-size: 13px;
  background: #fafbfc; cursor: pointer;
  transition: border-color 0.2s;
}
.od-file-input:hover { border-color: #0057A8; }
.od-file-hint { font-size: 12px; color: #888; margin-top: 4px; display: block; }

/* ===================================================
   PINK / ROSE BUTTON – Formateur
=================================================== */
.btn-rose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #e5195e, #c0144f);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(240,180,41,0.3);
}
.btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,180,41,0.45);
  color: #fff;
}

/* ===================================================
   CONTACT – You are Client/Formateur buttons inside contact section 
=================================================== */
.contact-you-etes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.contact-you-etes .btn-primary,
.contact-you-etes .btn-rose {
  justify-content: center;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 12px;
}
@media (max-width: 640px) {
  .contact-you-etes { flex-direction: column; }
}

/* Map section title */
.map-section { margin-top: 32px; }
.map-title-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px; padding: 16px 20px;
  background: #f5f7fa; border-radius: 14px;
  border-left: 4px solid #0057A8;
}
.map-title-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,87,168,0.1); color: #0057A8;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.map-title   { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
.map-subtitle{ font-size: 13px; color: #666; margin: 0; }

/* Contact right column – CTA buttons only */
.contact-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}
.contact-cta-btns .btn-primary,
.contact-cta-btns .btn-rose {
  font-size: 16px;
  padding: 18px 28px;
  border-radius: 14px;
}

/* ===================================================
   HCI Card Buttons – Client / Formateur
=================================================== */
.contact-cta-btns {
  display: flex; flex-direction: column; gap: 16px; padding: 4px 0;
}

.cta-card-btn {
  width: 100%; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: 18px;
  text-align: left; font-family: inherit;
  transition: transform 0.22s, box-shadow 0.22s, filter 0.22s;
  position: relative; overflow: hidden;
}
.cta-card-btn::before {
  content: ''; position: absolute;
  top: -40%; right: -30%; width: 160px; height: 160px;
  border-radius: 50%; opacity: 0.12;
  background: #fff;
  transition: transform 0.35s;
}
.cta-card-btn:hover::before { transform: scale(1.5); }

.cta-card-client {
  background: linear-gradient(135deg, #0057A8 0%, #0d84e3 100%);
  box-shadow: 0 8px 32px rgba(0,87,168,0.3);
  color: #fff;
}
.cta-card-formateur {
  background: linear-gradient(135deg, #c0144f 0%, #e5195e 60%, #f0436e 100%);
  box-shadow: 0 8px 32px rgba(240,180,41,0.3);
  color: #fff;
}
.cta-card-btn:hover {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.08);
  box-shadow: 0 16px 42px rgba(0,0,0,0.2);
}

.cta-card-icon {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}

.cta-card-body {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.cta-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  opacity: 0.75; color: #fff; text-transform: uppercase;
}
.cta-card-title {
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3;
}
.cta-card-desc {
  font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.4;
}

.cta-card-arrow {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  transition: background 0.22s, transform 0.22s;
}
.cta-card-btn:hover .cta-card-arrow {
  background: rgba(255,255,255,0.35);
  transform: translateX(4px);
}

/* =====================================================
   NOS FORMATIONS DU MOMENT – Cegos Style
===================================================== */
.formations-moment { padding: 0 0 60px; background: #fff; }

.formations-moment-header {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 60%, #0d084a 100%);
  padding: 52px 0 36px;
  position: relative; overflow: hidden;
}
.formations-moment-header::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.fmh-eyebrow {
  color: rgba(255,255,255,.65) !important;
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.08) !important;
}

.formations-moment-track {
  display: flex; gap: 20px;
  overflow-x: auto; padding: 32px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #0057A8 #eef0f4;
}
.formations-moment-track::-webkit-scrollbar { height: 5px; }
.formations-moment-track::-webkit-scrollbar-track { background: #eef0f4; border-radius: 10px; }
.formations-moment-track::-webkit-scrollbar-thumb { background: #0057A8; border-radius: 10px; }

.fm-card {
  flex-shrink: 0; width: 280px;
  background: #fff; border-radius: 18px; padding: 22px 20px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08); border: 1.5px solid #eef0f4;
  display: flex; flex-direction: column; gap: 10px;
  scroll-snap-align: start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fm-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,87,168,.15); border-color: #c5d8f0; }

.fm-domain {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #0057A8; background: rgba(0,87,168,.08);
  padding: 3px 10px; border-radius: 20px; width: fit-content;
}
.fm-title {
  font-size: 14px; font-weight: 700; color: #1a1a2e; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.fm-excerpt {
  font-size: 12px; color: #777; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.fm-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-stars  { color: #f59e0b; font-size: 13px; display: flex; gap: 2px; }
.fm-note   { font-size: 13px; font-weight: 700; color: #1a1a2e; }
.fm-avis   { font-size: 11px; color: #888; }
.fm-meta   { font-size: 12px; color: #666; display: flex; align-items: center; gap: 6px; }
.fm-meta i { color: #0057A8; }
.fm-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef0f4;
}
.btn-fm-voir {
  display: inline-block; padding: 9px 16px;
  background: #1a1040; color: #fff; border-radius: 20px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: background .2s; white-space: nowrap;
}
.btn-fm-voir:hover { background: #0057A8; color: #fff; }
.fm-price { text-align: right; flex-shrink: 0; }
.fm-price strong { display: block; font-size: 13px; color: #0057A8; font-weight: 700; }
.fm-devis { font-size: 11px; color: #e5195e; text-decoration: none; }
.fm-devis:hover { text-decoration: underline; }

/* =====================================================
   Add-to-Cart button on formation cards
===================================================== */
.btn-fm-cart {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 20px;
  background: linear-gradient(135deg, #0057A8, #0d84e3);
  color: #fff; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-fm-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,87,168,.35); }
.btn-fm-cart i { font-size: 11px; }

/* =====================================================
   CEGOS-STYLE FEEDBACK SIDE WIDGET
===================================================== */
.feedback-widget {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex; align-items: center;
}

.feedback-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #f0b429;
  color: #fff; border: none; cursor: pointer;
  padding: 14px 8px; border-radius: 10px 0 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  box-shadow: -3px 0 16px rgba(240,180,41,.3);
  transition: background .2s;
  min-height: 90px;
}
.feedback-tab span { writing-mode: vertical-lr; transform: rotate(180deg); font-size: 12px; }
.feedback-tab i { font-size: 16px; transform: rotate(180deg); }
.feedback-tab:hover { background: #d4950a; }

.feedback-panel {
  position: absolute; right: 38px;
  width: 300px; background: #fff;
  border-radius: 16px 0 0 16px;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  border: 1.5px solid #eef0f4;
  overflow: hidden;
  max-height: 0; width: 0; opacity: 0;
  transition: max-height .35s ease, width .35s ease, opacity .35s ease;
  pointer-events: none;
}
.feedback-panel.open {
  max-height: 400px; width: 300px; opacity: 1;
  pointer-events: auto;
}

.feedback-panel-header {
  background: linear-gradient(135deg, #1a1040, #2d1b69);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.feedback-panel-header h4 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.feedback-panel-header h4 i { color: #f0b429; }
.feedback-close {
  background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 0;
}
.feedback-close:hover { color: #fff; }

.feedback-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.feedback-lead { font-size: 13px; color: #444; margin: 0; }

.feedback-stars-row {
  display: flex; gap: 4px; justify-content: space-between;
}
.fb-star {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: #ccc; font-size: 22px; padding: 4px; border-radius: 8px;
  transition: color .15s, background .15s;
  flex: 1;
}
.fb-star span { font-size: 9px; color: #888; line-height: 1; text-align: center; }
.fb-star:hover, .fb-star.active { color: #f59e0b; background: rgba(245,158,11,.08); }

.feedback-panel-body textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #dde3ec; border-radius: 10px;
  font-size: 13px; font-family: inherit;
  resize: none; box-sizing: border-box;
  transition: border-color .2s;
}
.feedback-panel-body textarea:focus { outline: none; border-color: #e5195e; }

.feedback-success {
  display: flex; align-items: center; gap: 10px;
  color: #047857; font-weight: 600; font-size: 14px;
  background: #ecfdf5; border-radius: 10px; padding: 12px;
}
.feedback-success i { font-size: 20px; }

/* Domain card titles – single line, auto-fit font size */
.all-domain-header h3 {
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

/* Override all previous hero-search-btn rules */
button.hero-search-btn,
#heroSearchBtn {
  background: #01b9c5 !important;
  color: #fff !important;
}
button.hero-search-btn:hover,
#heroSearchBtn:hover { background: #019aaa !important; }

/* Hide domain-hidden cards by default */
.all-domain-card.domain-hidden  { display: none !important; }
.all-domain-card.domain-visible { display: flex !important; }
.all-domain-card.domain-shown   { display: flex !important; }

/* Search btn = exact same color as hero typed text (vos besoins) */
button.hero-search-btn,
#heroSearchBtn,
.hero-search-btn {
  background: #0099B8 !important;
  color: #fff !important;
}
button.hero-search-btn:hover,
#heroSearchBtn:hover,
.hero-search-btn:hover { background: #00778F !important; }

/* PDF badge on catalogue button */
.btn-badge-pdf {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 1px 5px; border-radius: 4px;
  vertical-align: middle; letter-spacing: 0.5px;
}

/* =====================================================
   CEGOS-STYLE FORMATION CARDS
===================================================== */
.formations-moment-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 32px 0;
  overflow-x: visible;
}

.cg-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}

/* Image */
.cg-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #eef2f7;
}
.cg-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.cg-card:hover .cg-card-img img { transform: scale(1.05); }
.cg-card-img-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#0099B8,#0057A8);
  color:#fff; font-size:3rem;
}

/* Domain badge */
.cg-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}

/* Body */
.cg-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.cg-card-title {
  font-size: 15px; font-weight: 700;
  color: #071525;
  line-height: 1.35;
  margin: 0;
}
.cg-card-excerpt {
  font-size: 13px; color: #555;
  line-height: 1.55; margin: 0;
  flex: 1;
}
.cg-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.cg-stars { font-size: 13px; color: #e8a000; }
.cg-note  { font-weight: 700; color: #222; }
.cg-avis  { color: #888; }
.cg-duration {
  font-size: 13px; color: #444;
  display: flex; align-items: center; gap: 6px;
}
.cg-duration i { color: #0099B8; }

/* Footer */
.cg-card-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; align-items: center;
}
.cg-btn-voir {
  flex: 1;
  background: #071525; color: #fff;
  border: none; border-radius: 50px;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  text-align: center; text-decoration: none;
  transition: background .2s;
  cursor: pointer;
}
.cg-btn-voir:hover { background: #0E2A45; color:#fff; }

.cg-btn-cart {
  background: #0099B8; color: #fff;
  border: none; border-radius: 50px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .15s;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.cg-btn-cart:hover { background: #0057A8; transform: scale(1.04); }
.cg-btn-cart.added {
  background: #059669;
  animation: cartPulse .4s ease;
}
@keyframes cartPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* =====================================================
   FORMATIONS CAROUSEL - Cegos Style Scrolling
===================================================== */
.fm-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Horizontal scroll track */
.formations-moment-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 24px 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  flex: 1;
}
.formations-moment-track::-webkit-scrollbar { display: none; }

/* Arrow buttons */
.fm-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e0e0;
  color: #071525;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s, border-color .2s, transform .15s;
  z-index: 2;
}
.fm-arrow:hover {
  background: #0099B8;
  border-color: #0099B8;
  color: #fff;
  transform: scale(1.08);
}
.fm-arrow-left { margin-right: 8px; }
.fm-arrow-right { margin-left: 8px; }

/* fm-card fixed width in carousel */
.fm-card {
  flex: 0 0 280px;
  min-width: 260px;
}

/* Cart button added state */
.btn-fm-cart.cart-added {
  background: #059669 !important;
}

/* Fix carousel - remove from container constraint */
.formations-moment .container {
  max-width: 100% !important;
  padding: 0 60px !important;
}
.fm-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 !important;
  width: 100%;
}
.formations-moment-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  overflow-x: scroll !important;
  scroll-behavior: smooth;
  padding: 24px 4px !important;
  width: 100%;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.formations-moment-track::-webkit-scrollbar { display: none !important; }
.fm-card { flex: 0 0 300px !important; min-width: 280px !important; }

/* Arrows - position prominently */
.fm-arrow {
  flex-shrink: 0 !important;
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #0099B8 !important;
  color: #0099B8 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0,153,184,.2) !important;
  transition: all .2s !important;
  z-index: 10 !important;
}
.fm-arrow:hover { background: #0099B8 !important; color: #fff !important; }
.fm-arrow-left { margin-right: 12px !important; }
.fm-arrow-right { margin-left: 12px !important; }

/* Extend dark background to cover full formations section including cards */
.formations-moment {
  background: linear-gradient(135deg, #1a0533 0%, #2d0a6b 40%, #0E2A45 100%) !important;
}
.formations-moment .container {
  background: transparent !important;
}

/* Make fm-cards slightly transparent/glassy on dark bg */
.fm-card {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important;
}
.fm-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35) !important;
}

/* Section bottom padding */
.formations-moment {
  padding-bottom: 48px !important;
}

/* Feedback button - green color */
.feedback-tab { background: #059669 !important; }
.feedback-tab:hover { background: #047857 !important; }

/* News toggle hidden state */
.news-card-hidden { display: none !important; }


/* ===================================================
   ODESSIAL – Mega-menu : couleur des sous-titres
   de colonnes + suppression des icônes
   =================================================== */

/* Sous-titres de colonnes (ex: "Sécurité & Qualité") → bleu ODESSIAL */
.mega-col-title {
  color: #0057A8 !important;
  border-bottom-color: #0057A8 !important;
  font-size: 11px !important;
}

/* Supprimer les icônes dans les menus déroulants */
.mega-menu-cols .mega-icon {
  display: none !important;
}

/* Compenser l'espace de l'icône supprimée */
.mega-menu-cols .mega-item {
  gap: 0 !important;
}

/* Titres des liens dans les menus déroulants → bleu ODESSIAL */
.mega-menu-cols .mega-item strong {
  color: #0057A8 !important;
}
.mega-menu-cols .mega-item:hover strong {
  color: #003F7A !important;
}






/* =====================================================
   ODESSIAL MOBILE RESPONSIVE - auto-merged
   ===================================================== */

/* =========================================================
   ODESSIAL – Mobile Responsive Fixes
   Covers all breakpoints: 1024px, 768px, 480px, 360px
   ========================================================= */

/* ── Ensure every element respects the box model & no overflow ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   TABLET (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {

    /* --- Container --- */
    .container {
        padding: 0 20px;
    }

    /* --- Header / Navbar --- */
    .navbar {
        gap: 10px;
    }

    .logo-img {
        height: 56px !important;
    }

    .nav-links {
        gap: 1px;
    }

    .nav-link {
        padding: 7px 7px;
        font-size: .77rem;
    }

    .header-espace-client span {
        display: none;
    }

    /* --- Hero --- */
    .hero {
        min-height: 360px !important;
        max-height: none !important;
    }

    .hero-content {
        max-width: 70% !important;
    }

    /* --- Grids --- */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

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

    /* --- Domain page --- */
    .domain-layout {
        grid-template-columns: 1fr;
    }

    /* --- Solutions V2 --- */
    .solutions-v2-grid {
        grid-template-columns: 1fr;
    }

    /* --- Process steps --- */
    .process-connector {
        display: none;
    }

    /* --- Digital band --- */
    .digital-band-inner {
        flex-direction: column;
        text-align: center;
    }

    .digital-band-actions {
        justify-content: center;
    }

    /* --- News grid --- */
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Vous êtes --- */
    .vous-etes-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* --- formations carousel --- */
    .formations-moment .container {
        padding: 0 16px !important;
    }

    /* --- dom areas --- */
    .all-domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   MOBILE (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {

    /* ---- Root vars ---- */
    :root {
        --header-h: 64px;
    }

    /* ---- Sections ---- */
    .section {
        padding: 52px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .container {
        padding: 0 16px;
    }

    /* ---- Topbar – hide contact info, keep right side ---- */
    .topbar-left {
        display: none;
    }

    .topbar {
        padding: 5px 0;
    }

    /* ---- Header / Hamburger ---- */
    .nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 46px !important;
    }

    /* Mobile nav drawer */
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        box-shadow: 0 8px 40px rgba(0,40,80,.18);
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height .4s ease;
        gap: 0;
        z-index: 998;
    }

    .nav-links.open {
        max-height: calc(100vh - var(--header-h));
    }

    .nav-link {
        padding: 12px 14px;
        font-size: .9rem;
        width: 100%;
        border-radius: 8px;
    }

    /* Mobile dropdowns – static, always open when parent is open */
    .dropdown-menu,
    .mega-menu,
    .mega-menu--wide,
    .mega-menu--md,
    .mega-menu--sm {
        display: none !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        box-shadow: none !important;
        min-width: auto !important;
        width: 100% !important;
        border-radius: 8px !important;
        border: 1px solid #e8edf4 !important;
        background: #f8fafc !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
        padding: 8px !important;
    }

    .dropdown.open > .dropdown-menu,
    .dropdown.open > .mega-menu {
        display: block !important;
    }

    /* Mega menu columns → vertical stack on mobile */
    .mega-menu-cols {
        flex-direction: column !important;
    }

    .mega-col {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,.06) !important;
        padding: 10px 8px !important;
    }

    .mega-col:last-child {
        border-bottom: none !important;
    }

    .mega-col-title {
        color: #0057A8 !important;
        font-size: 10px !important;
    }

    .mega-menu-cols .mega-item strong {
        color: #071525 !important;
        font-size: 13px !important;
    }

    /* Header actions on mobile */
    .header-actions {
        margin-left: 8px;
    }

    .header-espace-client {
        padding: 6px 8px;
        font-size: .8rem;
    }

    .header-espace-client span {
        display: none;
    }

    /* ---- Hero ---- */
    .hero {
        min-height: 300px !important;
        max-height: none !important;
        background-position: center center !important;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(7, 21, 37, .92) 0%,
            rgba(7, 21, 37, .75) 60%,
            rgba(7, 21, 37, .55) 100%) !important;
    }

    .hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 44px 0 !important;
        gap: 18px !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.1rem) !important;
        text-shadow: 0 2px 12px rgba(0,0,0,.6) !important;
    }

    .hero-search-bar {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 10px !important;
    }

    .hero-tags {
        justify-content: center;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .hero-tag {
        font-size: .72rem !important;
        padding: 5px 10px !important;
    }

    /* ---- Domains strip ---- */
    .domains-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .domain-card {
        border-right: none;
        border-bottom: 1px solid var(--gray-mid);
        padding: 16px 10px;
    }

    /* ---- Stats bar ---- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .stat-suffix {
        font-size: 1.6rem;
    }

    /* ---- Solutions ---- */
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions-v2-grid {
        grid-template-columns: 1fr;
    }

    .sol-v2-card {
        padding: 22px 18px !important;
    }

    .sol-v2-icon {
        width: 64px !important;
        height: 64px !important;
    }

    .sol-v2-icon svg {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }

    /* ---- About / Presentation ---- */
    .about-grid,
    .about-inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .about-visual {
        order: -1;
    }

    .about-badge {
        left: 10px !important;
        bottom: -10px !important;
    }

    .about-text .section-title {
        text-align: center;
    }

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

    .formation-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: .8rem;
    }

    /* ---- Formations moment carousel ---- */
    .formations-moment .container {
        padding: 0 12px !important;
        max-width: 100% !important;
    }

    .fm-carousel-wrap {
        gap: 0;
    }

    .fm-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .fm-card {
        flex: 0 0 260px !important;
        min-width: 240px !important;
    }

    /* ---- Events ---- */
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-grid-v2 {
        grid-template-columns: 1fr;
    }

    /* ---- Why us ---- */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Gallery ---- */
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gallery-item,
    .gallery-item.large {
        min-height: 200px;
        grid-column: auto;
        grid-row: auto;
    }

    /* ---- CTA banner ---- */
    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ---- Contact ---- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

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

    .contact-cta-btns .btn-primary,
    .contact-cta-btns .btn-rose {
        font-size: 14px;
        padding: 14px 20px;
    }

    /* ---- Trust logos ---- */
    .trust-logos-only {
        gap: 16px;
    }

    .trust-logo-img {
        min-width: 110px;
        padding: 12px 16px;
    }

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

    /* ---- All domains grid ---- */
    .all-domains-grid {
        grid-template-columns: 1fr;
    }

    .all-domain-header h3 {
        white-space: normal !important;
        font-size: 15px !important;
    }

    /* ---- News ---- */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Testimonials ---- */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Vous êtes ---- */
    .vous-etes-grid {
        grid-template-columns: 1fr;
    }

    .vous-etes-card {
        padding: 28px 24px;
    }

    /* ---- Engagements ---- */
    .engagements-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* ---- Domain hero ---- */
    .domain-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .domain-hero-text h1 {
        font-size: 1.6rem;
    }

    .domain-themes-list {
        grid-template-columns: 1fr;
    }

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

    /* ---- Footer ---- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-top {
        padding: 48px 0 32px;
    }

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

    /* ---- Map ---- */
    .map-container iframe {
        height: 240px;
    }

    /* ---- Modal ---- */
    .modal-panel {
        width: calc(100vw - 32px) !important;
        max-height: 92vh;
    }

    .modal-panel--wide {
        width: calc(100vw - 24px) !important;
    }

    /* ---- Cart sidebar ---- */
    .cart-sidebar {
        width: 100vw !important;
        right: -100vw !important;
    }

    .cart-sidebar.open {
        right: 0 !important;
    }

    /* ---- Feedback widget (hide on mobile) ---- */
    .feedback-widget {
        display: none;
    }

    /* ---- Scroll top btn ---- */
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    /* ---- Process steps ---- */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    /* ---- Digital band ---- */
    .digital-band-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .digital-band-actions {
        justify-content: center;
    }

    /* ---- OD Modal ---- */
    .od-modal {
        padding: 22px 16px 18px;
        border-radius: 16px;
    }

    .od-modal-row {
        grid-template-columns: 1fr;
    }

    /* ---- Single Formation page ---- */
    .formation-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SMALL MOBILE (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {

    :root {
        --header-h: 60px;
    }

    /* -- Topbar completely hidden -- */
    .topbar {
        display: none;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 44px 0;
    }

    /* --- Hero --- */
    .hero {
        min-height: 260px !important;
    }

    .hero-content {
        padding: 36px 0 !important;
        gap: 14px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-search-bar {
        padding: 5px 8px 5px 14px !important;
    }

    .hero-search-btn span {
        display: none;
    }

    .hero-search-btn {
        padding: 8px 14px !important;
    }

    /* --- Stats --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stats-bar {
        padding: 32px 0;
    }

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

    .stat-suffix {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: .74rem;
    }

    /* --- Domains strip --- */
    .domains-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .domain-card {
        padding: 14px 8px;
        font-size: .78rem;
    }

    .domain-icon {
        width: 40px;
        height: 40px;
    }

    /* --- Buttons --- */
    .btn-lg {
        padding: 12px 20px;
        font-size: .86rem;
    }

    .btn {
        padding: 11px 20px;
        font-size: .85rem;
    }

    /* --- Section titles --- */
    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    }

    /* --- Solution cards --- */
    .solution-card {
        padding: 26px 20px;
    }

    /* --- Formation cards --- */
    .card-image {
        height: 160px;
    }

    /* --- CTA banner --- */
    .cta-banner {
        padding: 44px 0;
    }

    /* --- Contact form --- */
    .contact-form-wrapper {
        padding: 20px 14px;
    }

    /* --- Footer --- */
    .footer-top {
        padding: 36px 0 24px;
    }

    .footer-logo-name {
        font-size: 1.4rem;
    }

    /* --- Gallery --- */
    .gallery-item,
    .gallery-item.large {
        min-height: 170px;
    }

    /* --- Trust logos --- */
    .trust-logos-only {
        gap: 12px;
    }

    .trust-logo-img {
        min-width: 90px;
        max-width: 130px;
        padding: 10px 12px;
    }

    .trust-logos-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Vous êtes cards --- */
    .vous-etes-card {
        padding: 22px 18px;
    }

    .vous-etes-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    /* --- Engagement items --- */
    .engagement-item {
        flex-direction: column;
        gap: 12px;
    }

    /* --- Event cards --- */
    .event-card {
        padding: 20px 18px;
    }

    /* --- Trainer form --- */
    .trainer-form-wrapper {
        padding: 24px 16px;
    }

    /* --- Formations moment (carousel) --- */
    .formations-moment-header {
        padding: 36px 0 24px;
    }

    .fm-card {
        flex: 0 0 240px !important;
        min-width: 220px !important;
    }

    /* --- Domain page layout --- */
    .domain-hero {
        padding: 48px 0;
    }

    .domain-hero-icon {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }

    .domain-hero-text h1 {
        font-size: 1.4rem;
    }

    /* --- Nav toggle size --- */
    .nav-toggle {
        width: 24px;
        height: 18px;
    }

    /* --- Scroll top --- */
    .scroll-top {
        width: 36px;
        height: 36px;
        font-size: .78rem;
        bottom: 14px;
        right: 14px;
    }

    /* --- About page --- */
    .about-stats-mini {
        gap: 10px;
        flex-wrap: wrap;
    }

    .about-stat {
        flex: 1;
        min-width: 80px;
        padding: 12px 14px;
    }

    .about-stat-num {
        font-size: 22px;
    }

    /* --- CTA card buttons (Contact section) --- */
    .cta-card-btn {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 18px 14px;
    }

    .cta-card-arrow {
        display: none;
    }
}

/* =========================================================
   EXTRA SMALL MOBILE (≤ 360px)
   ========================================================= */
@media (max-width: 360px) {

    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.35rem !important;
    }

    .logo-img {
        height: 40px !important;
    }

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

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

    .domains-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .nav-link {
        font-size: .86rem;
        padding: 10px 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: .82rem;
    }

    .trust-logos-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   UTILITY FIXES – Applied at all widths
   ========================================================= */

/* Prevent horizontal scroll caused by full-width elements */
.trust-logos-track-wrapper,
.trust-marquee-wrapper {
    overflow: hidden;
    max-width: 100%;
}

/* Make sure buttons never overflow their containers */
.btn-full {
    width: 100%;
    box-sizing: border-box;
}

/* Make newsletter form not overflow */
.newsletter-form {
    max-width: 100%;
}

.newsletter-form input {
    min-width: 0;
}

/* Fix long words never breaking and causing overflow */
.hero-title,
.section-title,
.card-body h3,
.why-card h3,
.solution-card h3 {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure the formations hero search bar input doesn't overflow */
.hero-search-input {
    min-width: 0;
    width: 100%;
}

/* Ensure mega menus don't break layout on tablet */
@media (min-width: 769px) and (max-width: 1100px) {
    .mega-menu--wide {
        min-width: calc(100vw - 48px) !important;
        left: -24px !important;
    }

    .mega-menu--md {
        min-width: 480px !important;
    }
}

/* Hero search btn text visible only above 380px */
@media (max-width: 380px) {
    .hero-search-btn span {
        display: none;
    }
}

/* Fix trainer form on mobile */
@media (max-width: 768px) {
    .trainer-form-wrapper {
        padding: 24px 16px;
        border-radius: 14px;
    }
}

/* Domain themes list fix */
@media (max-width: 640px) {
    .domain-themes-list {
        grid-template-columns: 1fr;
    }

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

/* Ou nous trouver map full width */
@media (max-width: 768px) {
    .map-title-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Page galerie responsive */
@media (max-width: 768px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 8px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 180px;
    }

    .gallery-item {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        min-height: 200px;
    }

    .gallery-item {
        min-height: 160px;
    }
}

/* Vous êtes page – detail cards */
@media (max-width: 768px) {
    .vous-etes-card {
        padding: 28px 20px;
    }

    .vous-etes-list li {
        font-size: 13px;
    }
}

/* Single formation page */
@media (max-width: 768px) {
    .single-formation-hero {
        padding: 40px 0;
    }

    .single-formation-layout {
        flex-direction: column;
    }

    .formation-sidebar {
        width: 100%;
    }
}

/* Events page */
@media (max-width: 768px) {
    .events-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .events-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Presentation page */
@media (max-width: 768px) {
    .presentation-hero {
        text-align: center;
    }
}

/* Solutions v2 cards stack nicely */
@media (max-width: 768px) {
    .sol-v2-card {
        align-items: flex-start;
        gap: 14px;
    }
}

/* Fix formations-cta button row */
@media (max-width: 480px) {
    .formations-cta {
        flex-direction: column;
        align-items: center;
    }

    .formations-cta .btn,
    .formations-cta a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Fix domains btn row */
@media (max-width: 480px) {
    .domains-btn-row {
        flex-direction: column;
        align-items: center;
    }

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

/* Fix contact you-etes buttons */
@media (max-width: 480px) {
    .contact-you-etes {
        flex-direction: column;
    }

    .contact-you-etes .btn-primary,
    .contact-you-etes .btn-rose {
        width: 100%;
        justify-content: center;
    }
}


/* =====================================================
   FIX 1: WordPress Admin Bar – hide on mobile to remove white gap
   ===================================================== */
@media (max-width: 782px) {
    #wpadminbar {
        display: none !important;
    }
    html.wp-toolbar {
        padding-top: 0 !important;
    }
    body.admin-bar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* Ensure header is flush at top when admin bar is hidden */
    body.admin-bar .header {
        top: 0 !important;
    }
}

/* =====================================================
   FIX 2: Hamburger menu – force visible on ALL mobile sizes
   ===================================================== */
@media (max-width: 900px) {
    /* Show hamburger */
    .nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 28px !important;
        height: 20px !important;
        cursor: pointer !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        z-index: 1100 !important;
        flex-shrink: 0 !important;
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
        position: fixed !important;
        top: var(--header-h, 64px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #fff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 16px 24px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 999 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
        gap: 2px !important;
    }

    /* Show nav when open class applied by JS */
    .nav-links.open {
        display: flex !important;
    }

    /* Ensure hamburger lines are visible */
    .nav-toggle span,
    .nav-toggle .hamburger-line {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #071525 !important;
        border-radius: 2px !important;
        transition: all .25s !important;
    }

    /* Nav link items on mobile */
    .nav-links .nav-link,
    .nav-links li > .nav-link {
        display: block !important;
        padding: 13px 14px !important;
        font-size: .9rem !important;
        color: #071525 !important;
        border-radius: 8px !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0,0,0,.05) !important;
    }

    .nav-links .nav-link:hover {
        background: #f0f4f8 !important;
    }

    /* Dropdown menus on mobile – static */
    .mega-menu,
    .dropdown-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        box-shadow: none !important;
        min-width: unset !important;
        width: 100% !important;
        border-radius: 8px !important;
        border: 1px solid #e8edf4 !important;
        background: #f8fafc !important;
        margin: 4px 0 8px !important;
        padding: 8px !important;
    }

    .dropdown.open > .mega-menu,
    .dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .mega-menu-cols {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .mega-col {
        border-right: none !important;
        padding: 8px 6px !important;
    }

    /* Header right side – make compact */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
    }

    /* Prevent nav links from being visible when not open */
    .nav-links:not(.open) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* =====================================================
   FIX 3: iOS Safari safe area (iPhone 14 Pro notch/Dynamic Island)
   ===================================================== */
.header {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

@supports (padding-top: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* =====================================================
   FIX 4: News card images – ensure proper display
   ===================================================== */
.news-card-v2-img {
    background: #eef2f7 !important;
    overflow: hidden !important;
}

.news-card-v2-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.news-card-v2-img img[src=""],
.news-card-v2-img img:not([src]) {
    display: none !important;
}