/* Events */
.events {
    background: #ffffff;
    padding: 44px 0 60px;
}

/* Desktop: s'affiche au survol (hover) */
@media (min-width: 769px) {
    .nav-item.has-submenu .megamenu {
        pointer-events: none;
    }

    .nav-item.has-submenu:hover .megamenu,
    .nav-item.has-submenu:focus-within .megamenu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.events-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.events .kicker {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 6px;
}

.events h2 {
    color: var(--brand-dark);
    font-size: 2.4rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #edf0f5;
}

.event-cover {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.event-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.event-body {
    padding: 16px;
}

.event-body h3 {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a6472;
    margin: 6px 0 10px;
}

.event-excerpt {
    color: #3b4352;
}

.event-more {
    color: #3b4352;
    margin-top: 6px;
}

.event-read {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-color);
    font-weight: 700;
}

.event-read:hover {
    text-decoration: underline;
}

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

    .events-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Navigation Dropdown Styles */
.nav-item.has-submenu {
    /* Position static to allow the megamenu to align to the page rather than the narrow nav item */
    position: static;
}

.megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 1100;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item.has-submenu:hover .megamenu,
.nav-item.has-submenu.active .megamenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    /* allow columns to wrap on one or two rows if needed */
    gap: 10px;
    padding: 0 20px;
}

.megamenu-col {
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid #f0f0f0;
}

.megamenu-col:last-child {
    border-right: none;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.category-header i {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 10px;
}

.category-header h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.megamenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu ul li {
    margin-bottom: 10px;
}

.megamenu ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

/* Active and hover states for navigation links */
.nav-link.active,
.nav-link:hover,
.nav-item.has-submenu.active .nav-link,
.nav-item.has-submenu:hover .nav-link {
    color: var(--accent-color);
    position: relative;
}

.megamenu ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.megamenu-featured {
    flex: 0 0 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-left: 20px;
}

.featured-content h5 {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-content h6 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
}

.featured-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.featured-content .btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.featured-content .btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 1024px) {
    .megamenu-container {
        flex-wrap: wrap;
    }

    .megamenu-col {
        flex: 0 0 50%;
        margin-bottom: 20px;
        border-right: none;
    }

    .megamenu-featured {
        flex: 0 0 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Mobile: on utilise le clic (classe active), pas le hover */
@media (max-width: 768px) {
    .megamenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 10px 0;
    }

    .nav-item.has-submenu:hover .megamenu {
        display: none;
    }

    .nav-item.has-submenu.active .megamenu {
        display: block;
    }

    .megamenu-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .megamenu-col {
        flex: 0 0 100%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .megamenu-col:last-child {
        border-bottom: none;
    }
}

/* Reset et styles de base - Version 2025-09-21-17:21 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
}

/* FAQ */
.faq {
    background: #ffffff;
    padding: 24px 0 40px;
}

.faq-box {
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq .faq-sub {
    margin-top: 6px;
    color: var(--brand-dark);
}

/* Newsletter */
.newsletter {
    background: #f7f8fb;
    padding: 28px 0 56px;
}

.newsletter-row {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 22px;
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    box-shadow: 0 14px 28px rgba(20, 40, 120, .25);
}

.newsletter-text h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.newsletter-form label span {
    display: block;
    margin-bottom: 6px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
}

.newsletter-note {
    display: block;
    opacity: .9;
    margin: 8px 0 12px;
}

.newsletter-success {
    margin-top: 10px;
    background: #e7f7ee;
    color: #17643a;
    border-radius: 8px;
    padding: 8px 10px;
}

@media (max-width: 992px) {
    .newsletter-row {
        grid-template-columns: 1fr;
    }
}

/* CTA band */
.cta-band {
    background: #f7f8fb;
    padding: 36px 0 52px;
}

.cta-row {
    display: grid;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--secondary-color) 60%);
    color: #fff;
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 14px 30px rgba(20, 42, 128, 0.22);
    position: relative;
    overflow: hidden;
}

.cta-row:before {
    content: '';
    position: absolute;
    inset: -30% -10% auto auto;
    height: 200px;
    width: 200px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 70%);
    transform: translate(20%, -10%);
}

.cta-row h3 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: .2px;
}

.cta-row p {
    opacity: .95;
}

.cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-cta {
    background: #fff;
    color: var(--brand-dark);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
}

.btn-cta i {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .cta-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

/* Pédagogie / Découvrir */
.pedagogy {
    background: #f7f8fb;
    padding: 48px 0 56px;
}

.pedagogy .kicker {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.pedagogy h2 {
    color: var(--brand-dark);
    font-size: 2.6rem;
    letter-spacing: 0.2px;
    margin-bottom: 24px;
}

.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.ped-card {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 45, 120, 0.15);
}

.ped-card.accent {
    background: var(--accent-color);
    color: #fff;
}

.ped-card h3 {
    font-size: 1.25rem;
    margin: 10px 0 8px;
}

.ped-card p {
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 14px;
}

.ped-card .btn-ghost-light {
    display: inline-block;
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    border: none;
}

.ped-card.accent .btn-ghost-light {
    color: var(--accent-color);
}

.ped-card .btn-ghost-light:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
}

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

/* Accueil – section d'intro façon maquette */
.home-hero {
    /* Eviter le double espacement : le body a déjà padding-top = var(--header-offset) */
    padding: 0px 0 40px !important;
    margin-top: 12px !important;
    /* espace entre la nav et l'entête */
    background: #f7f8fb;
}

.home-hero .grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
}

.home-hero .kicker {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.home-hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--brand-dark);
    margin-bottom: 26px;
    letter-spacing: 0.3px;
}

.home-hero .side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 8px 12px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
}

.cta-primary {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* Bloc statistiques central */
.stats-band {
    padding: 30px 0 60px;
    background: #f7f8fb;
}

.stats-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 24px;
}

.stats-card {
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 24px;
}

.stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.stat .value {
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 2.2rem;
}

.stat .label {
    color: #5b6675;
}

.stats-card ul {
    margin-top: 12px;
    color: #414b57;
}

.stats-card ul li {
    margin: 6px 0;
}

.link-arrow {
    color: var(--brand-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    color: var(--accent-color);
}

/* Cartes images arrondies */
.image-card {
    background: #111;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 260px;
}

.image-card .img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.image-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

.image-card .inner {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.chip.accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 992px) {
    .home-hero .grid {
        grid-template-columns: 1fr;
    }

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

/* Bande logos partenaires */
.partners {
    background: #f7f8fb;
    padding: 18px 0;
    overflow: hidden;
}

.partners-logos {
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: nowrap;
    opacity: 0.9;
    animation: marquee 18s linear infinite;
}

.partners-logos:hover {
    animation-play-state: paused;
}

.partner-placeholder {
    width: 120px;
    height: 40px;
    border-radius: 8px;
    background: #e6e9f2;
    box-shadow: inset 0 0 0 1px #d7dce8;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes cert-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Styles pour la bande de certifications défilantes */
.cert-marquee {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cert-track:hover {
    animation-play-state: paused;
}

/* Nos formations – cartes */
.courses {
    background: #ffffff;
    padding: 30px 0 60px;
}

.courses .kicker {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.courses h2 {
    color: var(--brand-dark);
    font-size: 2.1rem;
    margin-bottom: 18px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 26px;
}

.course-card {
    background: #ffffff;
    color: #2b2f3a;
    border-radius: 18px;
    padding: 18px;
    position: relative;
    box-shadow: 0 6px 16px rgba(13, 35, 78, 0.08);
    border: 1px solid #edf0f5;
}

.course-card .inner {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 16px;
    padding: 18px;
    min-height: 220px;
}

.course-card .icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f9e9d9;
    color: #5a2a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.course-card p {
    opacity: 0.95;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-card ul {
    list-style: none;
    opacity: 0.95;
    margin-top: 8px;
}

.course-card ul li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
}

.course-card ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.82rem;
    top: 2px;
}

/* Uniformiser le bleu des cartes "Nos solutions" */
.cards-grid .course-card .inner {
    background: var(--brand-dark) !important;
}

:root {
    --primary-color: #4169e1;
    /* Royal Blue */
    --secondary-color: #2740d1;
    /* Royal Blue plus foncé */
    --accent-color: #ff6600;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --brand-dark: #2740d1;
    /* Royal Blue profond */
    --header-offset: 120px;
    /* Réduit pour éliminer l'espace vide */
}

/* Empêche le contenu de passer sous l'entête fixe */
body {
    padding-top: var(--header-offset) !important;
}

section {
    scroll-margin-top: calc(var(--header-offset) + 12px);
    margin-top: 0 !important;
    padding-top: 0px !important;
}

/* Espacement normal pour les sections */
section:first-of-type,
.hero,
.home-hero,
.formations-hero {
    margin-top: 0 !important;
    padding-top: 0px !important;
}

.container {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Variantes de boutons */
.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--brand-dark);
    color: var(--white);
}

.btn-dark:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--brand-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
    background: #f7f9fc;
    transform: translateY(-2px);
}

.btn-pill {
    border-radius: 999px;
    padding: 10px 18px;
}

.btn-primary.btn-pill {
    padding: 10px 20px;
}

/* En-tête */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #eef0f3;
    z-index: 1000;
    /* Important: allow dropdown to overflow header bounds */
    overflow: visible;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    /* un peu plus d'espace */
    width: 100%;
    /* Allow dropdown to overflow navigation bar */
    overflow: visible;
}

/* Topbar (au-dessus du menu) */
.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    /* plus d'espace entre les éléments */
    background: var(--brand-dark);
    color: var(--white);
    padding: 12px 18px;
    /* topbar un peu plus haute */
    border-radius: 0 16px 16px 16px;
    margin: 10px 0 10px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.topbar-left {
    display: flex;
    gap: 10px;
}

.topbar .social {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 50%;
}

.topbar .social:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

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

.topbar-search .search-field {
    position: relative;
    flex: 1;
}

.topbar-search .search-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 0.95rem;
}

.topbar-search input[type="search"] {
    width: 100%;
    max-width: 620px;
    padding: 10px 14px 10px 38px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
}

.topbar-search input[type="search"]::placeholder {
    color: #9aa0a6;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.logo img {
    height: 100px;
    /* Taille réduite pour bureau */
    width: auto;
    /* Maintient les proportions de l'image */
    max-width: 100%;
    /* Assure que le logo ne dépasse pas de son conteneur */
    transition: transform 0.2s ease;
    /* Transition plus rapide */
    margin: 2px 0;
    /* Espace vertical minimal */
}

/* Effet de survol subtil */
.logo:hover img {
    transform: scale(1.03);
    /* Légère augmentation de taille au survol */
}

/* Ajustement pour les écrans plus petits */
@media (max-width: 1024px) {
    .logo img {
        height: 80px;
        /* Taille réduite sur tablettes */
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
        /* Taille plus petite pour mobiles */
    }

    .navbar {
        padding: 1px 0;
        /* Espacement minimal sur mobile */
    }

    /* Correction du padding-top sur mobile */
    body {
        padding-top: 150px !important;
    }

    :root {
        --header-offset: 150px;
    }

    /* Espacement normal des sections sur mobile */
    section:first-of-type,
    .hero,
    .home-hero,
    .formations-hero {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
}

/* Ajustement de l'espacement de la barre de navigation */
.navbar {
    padding: 2px 0;
    /* Espacement vertical minimal */
    display: flex;
    align-items: center;
    min-height: 60px;
    /* Hauteur minimale pour éviter les sauts */
}

/* Ajustement du conteneur du logo */
.logo {
    margin: 0;
    /* Suppression des marges */
    line-height: 0;
    /* Évite l'espace supplémentaire sous l'image */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    /* espacement horizontal supplémentaire entre les libellés */
}

.nav-item {
    margin-left: 0;
    /* géré par gap */
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: #1f2d3d;
    padding: 8px 6px;
    position: relative;
    text-transform: none;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

/* Ensure the dropdown stays open when hovering over it */
.nav-item.has-submenu:hover .megamenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep the parent link highlighted when dropdown is active */
.nav-item.has-submenu.active .nav-link,
.nav-item.has-submenu:hover .nav-link {
    color: var(--accent-color);
}

.nav-item.has-submenu.active .nav-link:after,
.nav-item.has-submenu:hover .nav-link:after {
    width: 100%;
}

/* Hover & active states with accent color */
.nav-item:hover>.nav-link,
.nav-link:focus,
.nav-link.active,
.nav-item.has-submenu.active .nav-link,
.nav-item.has-submenu:hover .nav-link {
    color: var(--accent-color);
}

/* Aligner le chevron/caret du menu sur l'horizontale */
.nav-link i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-left: 6px;
    position: static;
    transform: none;
}

/* Focus visible pour accessibilité */
.nav-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Sous-menu (dropdown) */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1100;
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* Mega-menu */
/* Resolve conflicting grid definition: ensure flex-based layout with wrapping */
.megamenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    display: block;
    /* container inside handles the layout */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 2000;
}

.megamenu h5 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.megamenu a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
}

.megamenu a:hover {
    color: var(--accent-color);
}

/* Affichage au survol sur desktop */
@media (min-width: 993px) {

    .has-submenu:hover>.submenu,
    .has-submenu:hover>.megamenu,
    .has-submenu.open>.megamenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Section Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: calc(var(--header-offset) + 20px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Hero Swiper */
.hero.no-bg {
    background: none;
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.hero-swiper .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.hero-swiper .slide-inner {
    position: relative;
    z-index: 2;
}

/* Section Services */
.services {
    padding: 56px 0 80px;
    background: #ffffff;
}

.services .kicker {
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.services h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 2.2rem;
    color: var(--brand-dark);
}

.services-sub {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 32px;
    color: #5a6472;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.service-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 6px 14px rgba(16, 44, 120, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(16, 44, 120, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.6rem;
}

.service-card h3 {
    margin: 14px 0 8px;
    color: var(--brand-dark);
    font-size: 1.25rem;
}

.service-card p {
    color: #5a6472;
    margin-bottom: 10px;
}

.service-list {
    list-style: none;
    margin: 10px 0 0;
}

.service-list li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
    color: #3b4352;
}

.service-list li:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.service-actions {
    margin-top: 14px;
}

.service-actions a {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Section Témoignages */
.reviews {
    background: #f7f8fb;
    padding: 44px 0 56px;
}

.reviews-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.reviews-viewport {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    will-change: transform;
    animation: reviews-marquee 22s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-card {
    flex: 0 0 360px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.review-quote {
    position: absolute;
    left: -18px;
    top: -18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-body {
    min-height: 130px;
}

.review-footer {
    height: 28px;
    margin-top: 10px;
}

@keyframes reviews-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Swiper buttons + pagination */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}

.testimonial {
    padding: 40px;
    background: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote:before,
.quote:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
    position: absolute;
}

.quote:before {
    top: -15px;
    left: -10px;
}

.quote:after {
    bottom: -30px;
    right: -10px;
}

.author {
    font-weight: 500;
    color: var(--primary-color);
}

/* Pied de page */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 5px;
    background: transparent;
    border: none;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 0;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Styles responsifs */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    /* Ajustement des grilles pour tablettes */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .course-card .inner {
        min-height: 200px;
    }

    /* Navigation tablette */
    .topbar {
        padding: 10px 15px;
    }

    .topbar-search input[type="search"] {
        max-width: 400px;
    }

    /* Hero section tablette */
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Mobile large (481px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Topbar mobile */
    .topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        border-radius: 12px;
        padding: 8px 12px;
    }

    .topbar-left {
        justify-content: center;
        order: 1;
    }

    .topbar-search {
        order: 3;
        width: 100%;
    }

    .topbar-search input[type="search"] {
        width: 100%;
        max-width: none;
    }

    .topbar-actions {
        justify-content: center;
        order: 2;
    }

    /* Navigation mobile */
    .menu-toggle {
        display: flex !important;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }

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

    .nav-item {
        margin: 10px 0;
        width: 90%;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Sous-menu en mobile */
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8f9fa;
    }

    .submenu.active {
        display: block;
    }

    .submenu li a {
        padding: 10px 15px;
        width: 100%;
        text-align: left;
        background: transparent;
        font-size: 0.95rem;
        color: #666;
    }

    /* Mega-menu en mobile */
    .megamenu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 10px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8f9fa;
        margin-top: 10px;
    }

    .megamenu.active {
        display: block;
    }

    .megamenu-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 15px;
    }

    .megamenu-col {
        flex: none;
        width: 100%;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
    }

    .megamenu-col:last-child {
        border-bottom: none;
    }

    .megamenu-featured {
        flex: none;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    /* Hero section mobile */
    .hero {
        padding-top: 120px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Grilles mobile */
    .services-grid,
    .cards-grid,
    .events-grid,
    .pedagogy-grid,
    .solutions-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Cards mobile */
    .service-card,
    .course-card,
    .event-card {
        padding: 15px;
    }

    .course-card .inner {
        min-height: 180px;
        padding: 15px;
    }

    /* Home hero mobile */
    .home-hero .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

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

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section h4:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* Forms mobile */
    .newsletter-row {
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;
    }

    /* CTA mobile */
    .cta-row {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

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

    /* Page layout mobile */
    .page-cta .box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .category-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters-panel {
        position: static;
        margin-bottom: 20px;
    }

    .category-hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile petit (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Navigation très petit mobile */
    .nav-menu {
        width: 95%;
        max-width: none;
    }

    .topbar {
        padding: 6px 10px;
    }

    /* Hero très petit mobile */
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    /* Cards très petit mobile */
    .service-card,
    .course-card,
    .event-card {
        padding: 12px;
    }

    .course-card .inner {
        min-height: 160px;
        padding: 12px;
    }

    /* Boutons mobile */
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Typography mobile */
    .services h2,
    .courses h2 {
        font-size: 1.8rem;
    }

    .service-card h3,
    .course-card h3 {
        font-size: 1.1rem;
    }

    /* Spacing mobile */
    .services,
    .courses,
    .reviews {
        padding: 30px 0 40px;
    }

    .footer {
        padding: 40px 0 15px;
    }

    /* Forms très petit mobile */
    .cta-row,
    .newsletter-row {
        padding: 15px;
    }

    .page-cta .box {
        padding: 15px;
    }
}


/* Unified Page Layout (Hero, Breadcrumbs, Sections) */
.page-hero {
    background: #f7f8fb;
    padding: 110px 0 36px;
    border-bottom: 1px solid #eef0f5;
}

.page-hero .kicker {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.page-hero h1 {
    color: var(--brand-dark);
    font-size: 2.2rem;
    margin: 6px 0 8px;
    letter-spacing: .2px;
}

.page-hero p.lead {
    color: #5a6472;
    max-width: 820px;
}

.breadcrumbs {
    background: #fff;
    border-bottom: 1px solid #eef0f5;
}

.breadcrumbs .container {
    padding: 10px 20px;
}

.breadcrumbs nav {
    font-size: .95rem;
    color: #5a6472;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs .sep {
    margin: 0 6px;
    color: #9aa0a6;
}

.page-section {
    background: #fff;
    padding: 28px 0 44px;
}

.page-section.alt {
    background: #f7f8fb;
}

.section-head {
    margin-bottom: 14px;
}

.section-head h2 {
    color: var(--brand-dark);
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.section-sub {
    color: #5a6472;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 14px rgba(16, 44, 120, .06);
}

.feature h3 {
    color: var(--brand-dark);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature ul {
    list-style: none;
    margin: 8px 0 0;
}

.feature ul li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
    color: #3b4352;
}

.feature ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: .82rem;
}

.page-cta {
    background: #f7f8fb;
    padding: 24px 0 42px;
}

.page-cta .box {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(20, 40, 120, .08);
}

.page-cta h3 {
    color: var(--brand-dark);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.page-cta p {
    color: #5a6472;
}

@media (max-width: 992px) {
    .page-cta .box {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Category pages (formations/<slug>) ---- */
.category-hero-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 10px;
}

.category-visual {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(20, 42, 128, .08);
}

.category-visual .img {
    height: 260px;
    background-size: cover;
    background-position: center;
}

.category-info {
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(20, 42, 128, .06);
}

.category-info h2 {
    color: var(--brand-dark);
    margin: 6px 0 8px;
}

.chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mini-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a6472;
    font-size: .95rem;
    margin-bottom: 8px;
}

.mini-breadcrumbs a {
    color: var(--primary-color);
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.filters-panel {
    position: sticky;
    top: calc(var(--header-offset) + 12px);
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 14px;
    height: max-content;
    box-shadow: 0 8px 18px rgba(16, 44, 120, .06);
}

.filters-panel h3 {
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.filters-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.filters-panel li label {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #3b4352;
}

.cards-grid .course-card {
    overflow: hidden;
}

.course-card .card-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 0 0 10px;
}

.course-card .badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    .category-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: static;
    }
}

/* ---- Solutions page ---- */
.solutions-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
}

.solution-box {
    background: #fff;
    border: 2px solid var(--brand-dark);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(20, 42, 128, .06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solution-box p {
    color: #3b4352;
    margin: 0 0 8px;
}

.solution-box .btn {
    align-self: flex-start;
}

.sol-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sol-head i {
    color: var(--brand-dark);
    font-size: 1.6rem;
}

.sol-head h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.newsletter-card {
    background: var(--brand-dark);
    border-radius: 16px;
    padding: 16px;
    max-width: 640px;
}

.newsletter-inner {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.newsletter-inner h3 {
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.newsletter-inner p {
    color: #5a6472;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e1e5ef;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .solutions-row {
        grid-template-columns: 1fr;
    }
}

/* Solutions hero card (photocopy style, blue) */
.solutions-hero {
    display: flex;
    justify-content: center;
}

.hero-card {
    border: 2px solid var(--brand-dark);
    border-radius: 16px;
    padding: 10px;
    display: inline-block;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 12px;
    align-items: center;
}

.hero-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.hero-text {
    border: 2px solid var(--brand-dark);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

/* Titre cartes solutions en capitales */
.solution-box h3 {
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Améliorations responsives globales */

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
}

/* Tableaux responsifs */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
    }

    td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* Vidéos responsives */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Amélioration des formulaires sur mobile */
@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        /* Évite le zoom sur iOS */
        border-radius: 8px;
        border: 1px solid #ddd;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-col {
        width: 100%;
    }
}

/* Amélioration des modales sur mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal {
        padding: 10px;
    }
}

/* Amélioration des tooltips et dropdowns sur mobile */
@media (max-width: 768px) {

    .tooltip,
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 5px;
    }
}

/* Amélioration du scroll horizontal pour les éléments larges */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .scroll-x {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .scroll-x::-webkit-scrollbar {
        height: 4px;
    }

    .scroll-x::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .scroll-x::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

/* Amélioration des espacements sur très petits écrans */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

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

    .home-hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .service-card,
    .course-card,
    .event-card {
        padding: 10px;
    }

    .course-card .inner {
        min-height: 140px;
        padding: 10px;
    }
}

/* Amélioration de l'accessibilité sur mobile */
@media (max-width: 768px) {

    /* Augmentation de la zone de clic */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Amélioration du contraste pour la lecture */
    .text-muted {
        color: #555 !important;
    }

    /* Espacement des éléments interactifs */
    .btn+.btn {
        margin-left: 8px;
        margin-top: 8px;
    }
}

/* Correction du débordement horizontal */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}


.container,
.megamenu-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Styles pour appareils tactiles */
.touch-device .nav-link:hover {
    background-color: transparent;
}

.touch-device .service-card:hover,
.touch-device .course-card:hover {
    transform: none;
}

/* Amélioration des interactions tactiles */
@media (hover: none) and (pointer: coarse) {

    .service-card:hover,
    .course-card:hover,
    .event-card:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(16, 44, 120, 0.08);
    }

    .btn:hover {
        transform: none;
    }

    .social-links a:hover {
        transform: none;
    }
}

/* Prévention du scroll du body quand le menu mobile est ouvert */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Amélioration des focus states pour l'accessibilité */
@media (max-width: 768px) {

    .nav-link:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* Correction des problèmes de viewport sur iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Amélioration des cartes sur tablette */
@media (min-width: 769px) and (max-width: 1024px) {

    .service-card,
    .course-card,
    .event-card {
        padding: 18px;
    }

    .course-card .inner {
        min-height: 190px;
        padding: 18px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-img {
        height: 200px;
    }
}

/* Amélioration de la lisibilité sur petits écrans */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.9rem;
    }

    p,
    li {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Correction du débordement des images dans les cartes */
@media (max-width: 768px) {

    .event-cover,
    .card-cover,
    .hero-img {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .image-card .img {
        background-size: cover;
        background-position: center;
    }
}

/* Amélioration des espacements verticaux sur mobile */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .page-hero {
        padding: 100px 0 30px;
    }

    .home-hero {
        padding: 60px 0 30px;
    }

    .services,
    .courses,
    .events,
    .reviews {
        padding: 40px 0 50px;
    }

    .cta-band,
    .newsletter,
    .pedagogy {
        padding: 30px 0 40px;
    }
}

/* Amélioration des marges entre les éléments */
@media (max-width: 768px) {

    .service-card+.service-card,
    .course-card+.course-card,
    .event-card+.event-card {
        margin-top: 15px;
    }

    .btn+.btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .form-group+.form-group {
        margin-top: 15px;
    }
}

/* Optimisation des performances sur mobile */
@media (max-width: 768px) {
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .service-card,
    .course-card,
    .event-card {
        will-change: auto;
    }
}

/* Amélioration de la navigation par clavier */
.nav-link:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Styles pour la réduction des animations sur mobile */
.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.reduce-motion .service-card:hover,
.reduce-motion .course-card:hover,
.reduce-motion .event-card:hover {
    transform: none !important;
}

/* Utilisation de la variable CSS pour la hauteur du viewport */
.hero {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Lazy loading des images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Amélioration des performances avec will-change */
.service-card,
.course-card,
.event-card {
    will-change: transform, box-shadow;
}

.service-card:hover,
.course-card:hover,
.event-card:hover {
    will-change: auto;
}

/* Styles pour les très grands écrans */
@media (min-width: 1400px) {
    .container {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .home-hero h1 {
        font-size: 3.8rem;
    }

    .services-grid,
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Styles pour les écrans ultra-larges */
@media (min-width: 1600px) {
    .container {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Correction finale pour les débordements */
@media (max-width: 768px) {

    .row,
    .grid,
    .flex {
        flex-wrap: wrap;
        overflow-x: hidden;
    }

    .col,
    .grid-item {
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* ===== STYLES RESPONSIFS SPÉCIFIQUES AUX PAGES ===== */

/* Page Formations - Corrections responsives */
.formations-hero {
    padding: calc(var(--header-offset) + 10px) 0 40px !important;
}

@media (max-width: 768px) {
    .formations-hero {
        padding: 60px 0 40px !important;
    }

    /* Grille hero formations */
    .formations-hero [style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: none !important;
    }

    .formations-hero [style*="grid-template-columns"]>div:first-child {
        margin-bottom: 30px !important;
    }

    .formations-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .formations-hero [style*="display: flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .formations-hero .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .formations-hero h1 {
        font-size: 1.8rem !important;
    }

    .formations-hero p {
        font-size: 1rem !important;
    }
}

/* Page Solutions - Corrections responsives */
.solutions-hero .hero-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .solutions-hero .hero-layout {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .solutions-hero .hero-image {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .solutions-hero .hero-image img {
        height: 250px !important;
    }

    .solutions-hero .hero-content h1 {
        font-size: 2rem !important;
        text-align: center !important;
    }
}

/* Page Contact - Corrections responsives */
.contact-hero {
    padding: 6rem 0 4rem !important;
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 4rem 0 3rem !important;
    }

    .contact-hero h1 {
        font-size: 2.2rem !important;
    }
}

/* Grilles génériques dans toutes les pages */
@media (max-width: 768px) {
    [style*="display: grid"][style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: none !important;
    }

    [style*="display: grid"][style*="grid-template-columns"]>* {
        margin-bottom: 20px !important;
    }

    [style*="display: grid"][style*="grid-template-columns"]>*:last-child {
        margin-bottom: 0 !important;
    }

    /* Statistiques */
    [style*="grid-template-columns: repeat(auto-fit"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
}

/* Corrections pour les éléments avec styles inline */
@media (max-width: 768px) {

    /* Flexbox inline corrections */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    [style*="display: flex"][style*="gap:"]>* {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    /* Font sizes inline corrections */
    [style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
    }

    [style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    [style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    /* Padding inline corrections */
    [style*="padding: 120px"] {
        padding: 60px 0 !important;
    }

    [style*="padding: 100px"] {
        padding: 50px 0 !important;
    }

    [style*="padding: 80px"] {
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    [style*="font-size: 3.5rem"] {
        font-size: 1.8rem !important;
    }

    [style*="font-size: 3rem"] {
        font-size: 1.6rem !important;
    }

    [style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    [style*="padding: 60px"] {
        padding: 30px 0 !important;
    }

    [style*="padding: 50px"] {
        padding: 25px 0 !important;
    }

    [style*="padding: 40px"] {
        padding: 20px 0 !important;
    }
}

/* ===== STYLES POUR LES IMAGES PARTENAIRES ET CERTIFICATIONS ===== */

/* Images partenaires */
.partners-logos img,
.real-logos img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    min-height: 50px;
    width: auto;
    min-width: 80px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.partners-logos img:hover,
.real-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Images certifications */
.cert-logos img,
.certifications-grid img,
.certification-item img {
    max-width: 100%;
    height: auto;
    max-height: 35px;
    min-height: 25px;
    width: auto;
    min-width: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-logos img:hover,
.certifications-grid img:hover,
.certification-item img:hover {
    transform: scale(1.1);
}

/* Conteneurs d'images responsive */
@media (max-width: 768px) {

    .partners-logos,
    .real-logos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .cert-logos {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .partners-logos img,
    .real-logos img {
        max-height: 40px;
    }

    .cert-logos img,
    .certifications-grid img {
        max-height: 40px;
    }

    /* Certifications en-tête sur mobile - taille réduite */
    .home-hero .cert-logos img {
        max-height: 30px !important;
        min-height: 20px !important;
    }
}

@media (max-width: 480px) {

    .partners-logos,
    .real-logos,
    .certifications-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .cert-logos {
        gap: 8px !important;
    }

    /* Correction supplémentaire du padding sur très petits écrans */
    body {
        padding-top: 190px !important;
    }
}

/* Styles pour les images SVG placeholder */
.partners-logos svg,
.real-logos svg,
.cert-logos svg,
.certifications-grid svg {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.partners-logos svg:hover,
.real-logos svg:hover,
.cert-logos svg:hover,
.certifications-grid svg:hover {
    transform: scale(1.05);
}

/* Styles simples pour les vraies images */
img[src*="images/"],
img[src*="logos/"] {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 5px;
}

img[src*="images/"]:hover,
img[src*="logos/"]:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Styles spécifiques pour les conteneurs d'images */
.cert-logos,
.certifications-grid,
.partners-logos,
.real-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.cert-logos {
    gap: 4px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Certifications dans l'en-tête - taille réduite */
.home-hero .cert-logos img {
    max-height: 35px !important;
    min-height: 25px !important;
    min-width: 40px !important;
    margin: 1px !important;
}

.cert-logos img,
.certifications-grid img,
.partners-logos img,
.real-logos img {
    display: block;
    margin: 2px;
}

.cert-logos img {
    margin: 1px;
}

/* ========================================
   AMÉLIORATIONS RESPONSIVITÉ COMPLÈTE
======================================== */

/* NAVIGATION MOBILE AMÉLIORÉE */
@media (max-width: 768px) {

    /* Menu hamburger plus visible */
    #mobile-menu {
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    #mobile-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    #mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    #mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu mobile plein écran */
    .nav-menu.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 80px 20px 40px;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .nav-link {
        font-size: 18px;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Sous-menus mobiles */
    .has-submenu .megamenu,
    .has-submenu .submenu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 8px;
        border-radius: 8px;
        padding: 12px;
    }
}

/* GRILLES RESPONSIVES AMÉLIORÉES */
@media (max-width: 768px) {

    /* Grilles de services */
    .services-grid,
    .pedagogy-grid,
    .solutions-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Grilles de formations */
    .category-layout,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Grilles d'événements */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stats et hero */
    .stats-grid,
    .home-hero .grid,
    .category-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* TABLETTES - Grilles 2 colonnes */
@media (min-width: 769px) and (max-width: 1024px) {

    .services-grid,
    .pedagogy-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* ====== MENU MOBILE TYPE OFF-CANVAS ====== */
    @media (max-width: 768px) {
        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 88%;
            height: 100vh;
            background: #ffffff;
            color: #111;
            padding: 24px 20px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            transition: right .3s ease;
        }

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

        .nav-mobile-header {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 8px;
        }

        .nav-close {
            background: #5a2ca0;
            /* violet comme l'exemple */
            color: #fff;
            border: none;
            border-radius: 10px;
            width: 40px;
            height: 40px;
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-item {
            list-style: none;
        }

        .nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 4px;
            font-size: 1.05rem;
            color: #111;
        }

        /* Simplifier les sous-menus sur mobile */
        .megamenu,
        .submenu {
            display: none !important;
            padding-left: 12px;
        }

        .has-submenu.active .megamenu,
        .has-submenu.active .submenu {
            display: block !important;
        }

        .has-submenu .nav-link:after {
            content: '\25BE';
            /* chevron bas */
            font-size: 0.9rem;
            margin-left: 10px;
            opacity: .8;
        }
    }

    /* Empêcher le scroll du body quand le menu est ouvert */
    body.no-scroll {
        overflow: hidden;
    }

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

/* TYPOGRAPHIE RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    p,
    li {
        font-size: 15px;
        line-height: 1.6;
    }

    .kicker {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    body {
        font-size: 14px;
    }
}

/* CARTES RESPONSIVES */
@media (max-width: 768px) {

    .service-card,
    .course-card,
    .event-card,
    .ped-card {
        margin-bottom: 16px;
    }

    .service-card,
    .course-card {
        padding: 20px;
    }

    .event-cover,
    .card-cover {
        height: 200px;
    }
}

/* GRILLES ET BLOCS PLEINE LARGEUR SUR MOBILE */
@media (max-width: 768px) {

    /* Grilles à 1 colonne */
    .services-grid,
    .courses-grid,
    .events-grid,
    .solutions-grid,
    .pedagogy-grid,
    .partners-grid,
    .certifications-grid,
    .stats-grid,
    .features-grid,
    .cards-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Sections clés */
    .home-hero,
    .page-hero,
    .cta-band,
    .newsletter,
    .faq,
    .testimonials,
    .partners,
    .certifications {
        padding-left: 0;
        padding-right: 0;
    }

    /* Hero plus compact */
    .home-hero,
    .page-hero {
        padding: 48px 0 28px !important;
    }

    /* Cartes et composants 100% largeur */
    .service-card,
    .course-card,
    .event-card,
    .solution-card,
    .ped-card,
    .stat-card,
    .feature-card {
        width: 100% !important;
    }

    /* Médias fluides */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Tables déroulantes horizontales protégées */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* FORMULAIRES RESPONSIFS */
@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
        /* Évite le zoom automatique sur iOS */
        padding: 14px;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group {
        width: 100%;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* BOUTONS RESPONSIFS */
@media (max-width: 768px) {

    .btn,
    .cta-primary,
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* IMAGES ET MÉDIAS RESPONSIFS */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .hero-image img,
    .solutions-hero img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    /* Logos partenaires et certifications */
    .partners-logos,
    .cert-logos,
    .certifications-grid {
        justify-content: center;
        gap: 12px;
    }

    .partners-logos img,
    .cert-logos img {
        max-width: 80px;
        max-height: 50px;
    }
}

/* TABLEAUX RESPONSIFS */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
    }

    tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--primary-color);
    }

    tbody td:last-child {
        border-bottom: none;
    }
}

/* ESPACEMENTS RESPONSIFS */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Masquer la topbar sur mobile pour éviter la surcharge visuelle */
    .topbar {
        display: none !important;
    }

    /* Réduire l'entête sur mobile */
    :root {
        --header-offset: 64px;
    }

    .navbar {
        padding: 6px 8px !important;
        gap: 8px;
    }

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

    .btn {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    /* Les boutons du header ne doivent pas prendre 100% de largeur sur mobile */
    .header .btn,
    .topbar-actions .btn,
    .navbar .btn {
        width: auto !important;
        min-width: 0;
        display: inline-flex;
    }

    section {
        padding: 40px 0;
    }

    .home-hero,
    .page-hero {
        padding: 60px 0 40px;
    }

    /* Réduction des marges */
    .mb-4 {
        margin-bottom: 16px !important;
    }

    .mb-5 {
        margin-bottom: 24px !important;
    }

    .mt-4 {
        margin-top: 16px !important;
    }

    .mt-5 {
        margin-top: 24px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    section {
        padding: 32px 0;
    }
}

/* HEADER ET FOOTER RESPONSIFS */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .logo img {
        height: 50px;
    }

    .footer {
        padding: 40px 0 20px;
    }

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

    .footer-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 24px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }
}

/* MODALES ET POPUPS RESPONSIFS */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

/* SWIPER / CAROUSEL RESPONSIF */
@media (max-width: 768px) {
    .swiper-slide {
        padding: 0 8px;
    }

    .swiper-pagination {
        bottom: 8px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
}

/* ACCESSIBILITÉ TACTILE */
@media (hover: none) and (pointer: coarse) {

    /* Augmentation des zones de clic */
    .btn,
    .nav-link,
    .card,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Suppression des effets hover */
    .service-card:hover,
    .course-card:hover,
    .event-card:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    /* Focus visible pour navigation clavier */
    *:focus {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* ORIENTATION PAYSAGE MOBILE */
@media (max-width: 896px) and (orientation: landscape) {

    .home-hero,
    .page-hero {
        padding: 40px 0 30px;
    }

    .nav-menu.active {
        height: 100vh;
        overflow-y: auto;
    }

    h1 {
        font-size: 1.75rem !important;
    }
}

/* TRÈS PETITS ÉCRANS (320px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* GRANDS ÉCRANS - Optimisation */
@media (min-width: 1400px) {
    .container {
        max-width: 100% !important;
    }

    .home-hero h1 {
        font-size: 3.5rem !important;
    }

    .services-grid,
    .pedagogy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PRINT STYLES */
@media print {

    .header,
    .footer,
    .nav-menu,
    #mobile-menu,
    .cta-band,
    .newsletter {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ANIMATIONS RÉDUITES POUR ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* MODE SOMBRE (si activé par le système) */
@media (prefers-color-scheme: dark) {
    /* Optionnel : ajoutez des styles pour le mode sombre si nécessaire */
    /* body {
        background: #1a1a1a;
        color: #f0f0f0;
    } */
}