/* ============================================================
   Template MMM — css/template.css
   Malagasy Miara-Miainga — Joomla 6
   ============================================================ */

/* ---- Variables ---------------------------------------------------- */
:root {
    --mmm-blue:        #1a3a8f;
    --mmm-blue-dark:   #0d2260;
    --mmm-blue-mid:    #1e4db7;
    --mmm-blue-light:  #e8eef8;
    --mmm-yellow:      #f0b429;
    --mmm-yellow-dark: #d49b20;
    --mmm-white:       #ffffff;
    --mmm-text:        #333333;
    --mmm-text-light:  #666666;
    --mmm-border:      #dee2e6;
    --mmm-radius:      0.5rem;
    --mmm-shadow:      0 4px 20px rgba(0,0,0,0.10);
    --mmm-topbar-h:    38px;
    --mmm-header-h:    110px;
}

/* ---- Reset / Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--mmm-text);
    background: var(--mmm-white);
    margin: 0;
}

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

a { color: var(--mmm-blue); }
a:hover { color: var(--mmm-blue-dark); }

/* ---- Boutons généraux --------------------------------------------- */
.btn { border-radius: 50px; font-weight: 600; padding: 0.55rem 1.4rem; }

.mmm-btn-blue {
    background-color: var(--mmm-blue);
    color: var(--mmm-white);
    border: 2px solid var(--mmm-blue);
}
.mmm-btn-blue:hover {
    background-color: var(--mmm-blue-dark);
    border-color: var(--mmm-blue-dark);
    color: var(--mmm-white);
}

.mmm-btn-yellow {
    background-color: var(--mmm-yellow);
    color: var(--mmm-blue-dark);
    border: 2px solid var(--mmm-yellow);
}
.mmm-btn-yellow:hover {
    background-color: var(--mmm-yellow-dark);
    border-color: var(--mmm-yellow-dark);
    color: var(--mmm-blue-dark);
}

.mmm-btn-outline-yellow {
    background: transparent;
    color: var(--mmm-yellow);
    border: 2px solid var(--mmm-yellow);
}
.mmm-btn-outline-yellow:hover {
    background: var(--mmm-yellow);
    color: var(--mmm-blue-dark);
}

.mmm-btn-outline-blue {
    background: transparent;
    color: var(--mmm-blue);
    border: 2px solid var(--mmm-blue);
}
.mmm-btn-outline-blue:hover {
    background: var(--mmm-blue);
    color: var(--mmm-white);
}

.mmm-btn-outline-white {
    background: transparent;
    color: var(--mmm-white);
    border: 2px solid var(--mmm-white);
}
.mmm-btn-outline-white:hover {
    background: var(--mmm-white);
    color: var(--mmm-blue);
}

/* Bouton hero sombre translucide — "Découvrir le mouvement" */
.mmm-btn-hero {
    background: rgba(8, 28, 72, 0.52);
    color: var(--mmm-white);
    border: 1.5px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mmm-btn-hero:hover {
    background: rgba(8, 28, 72, 0.72);
    border-color: rgba(255,255,255,0.75);
    color: var(--mmm-white);
}

/* Hauteur uniforme pour tous les boutons du hero CTA */
.mmm-hero .mmm-hero-cta .btn {
    padding: 0.6rem 1.4rem;
    line-height: 1.5;
    font-size: 1rem;
}

/* Auto-application dans le hero : premier bouton outline → style translucide */
.mmm-hero .mmm-hero-cta .btn.mmm-btn-outline-white,
.mmm-hero .mmm-hero-inner .btn.mmm-btn-outline-white {
    background: rgba(8, 28, 72, 0.52);
    border: 2px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mmm-hero .mmm-hero-cta .btn.mmm-btn-outline-white:hover,
.mmm-hero .mmm-hero-inner .btn.mmm-btn-outline-white:hover {
    background: rgba(8, 28, 72, 0.72);
    border-color: rgba(255,255,255,0.75);
    color: var(--mmm-white);
}

/* ================================================================
   TOPBAR
================================================================ */
.mmm-topbar {
    /* bande bleue claire principale + fine bande foncée en bas */
    background: linear-gradient(
        to bottom,
        var(--mmm-blue-mid) 0%,
        var(--mmm-blue-mid) calc(100% - 6px),
        var(--mmm-blue-dark) calc(100% - 6px)
    );
    height: var(--mmm-topbar-h);
    display: flex;
    align-items: center;
}
.mmm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
}
.mmm-topbar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.mmm-topbar a:hover { color: var(--mmm-yellow); }

/* ================================================================
   HEADER / NAVIGATION
================================================================ */
.mmm-header {
    background-color: var(--mmm-white);
    height: var(--mmm-header-h);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mmm-header .container-xl { height: 100%; }
.mmm-header .navbar { height: 100%; padding: 0; width: 100%; }

/* Desktop (≥992px) : le bloc collapse prend tout l'espace disponible après le logo */
@media (min-width: 992px) {
    .mmm-header .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        align-items: stretch;
        height: 100%;
    }
    .mmm-header .navbar-collapse .navbar-nav {
        flex: 1 1 auto;
        justify-content: center;
    }
    .mmm-header .navbar-collapse .mmm-nav-cta {
        flex: 0 0 auto;
        align-items: center;
    }
}

/* Logo */
.mmm-logo-wrap { display: flex; align-items: center; text-decoration: none; gap: 0.85rem; }
.mmm-logo { height: 72px; width: auto; flex-shrink: 0; }
.mmm-site-name {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.mmm-site-line1 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--mmm-blue-dark);
}
.mmm-site-line2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mmm-blue-dark);
    letter-spacing: 0.03em;
}

/* Liens nav — Joomla peut générer des <a> sans classe .nav-link */
.mmm-header .navbar-nav,
.mmm-header .navbar-nav > ul {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    height: 100%;
}
.mmm-header .navbar-nav li { list-style: none; display: flex; align-items: stretch; }
/* Cible tous les liens directs du nav (avec ou sans .nav-link) */
.mmm-header .navbar-nav .nav-link,
.mmm-header .navbar-nav > ul > li > a {
    color: var(--mmm-text) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0 1.35rem;
    border-radius: 0;
    border-bottom: none;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
}
/* Soulignement jaune via ::after — positionné juste sous le texte */
.mmm-header .navbar-nav .nav-link::after,
.mmm-header .navbar-nav > ul > li > a::after {
    content: '';
    position: absolute;
    top: calc(50% + 11px);
    left: 1.35rem;
    right: 1.35rem;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}
.mmm-header .navbar-nav .nav-link:hover::after,
.mmm-header .navbar-nav > ul > li > a:hover::after {
    background: var(--mmm-yellow);
}
.mmm-header .navbar-nav .nav-link.active::after,
.mmm-header .navbar-nav .active > .nav-link::after,
.mmm-header .navbar-nav .current > a::after,
.mmm-header .navbar-nav li.active > a::after,
.mmm-header .navbar-nav li.current > a::after,
.mmm-header .navbar-nav li.current-menu-item > a::after {
    background: var(--mmm-yellow);
}
.mmm-header .navbar-nav .nav-link:hover,
.mmm-header .navbar-nav > ul > li > a:hover {
    color: var(--mmm-blue-dark) !important;
}
.mmm-header .navbar-nav .nav-link.active,
.mmm-header .navbar-nav .active > .nav-link,
.mmm-header .navbar-nav .current > a,
.mmm-header .navbar-nav li.active > a,
.mmm-header .navbar-nav li.current > a,
.mmm-header .navbar-nav li.current-menu-item > a {
    color: var(--mmm-blue-dark) !important;
    font-weight: 700;
}

/* Dropdown nav */
.mmm-header .dropdown-menu {
    border: none;
    box-shadow: var(--mmm-shadow);
    border-radius: var(--mmm-radius);
}
.mmm-header .dropdown-item { font-weight: 500; }
.mmm-header .dropdown-item:hover { background: var(--mmm-blue-light); color: var(--mmm-blue); }

/* Boutons CTA header */
.mmm-nav-cta .btn { font-size: 0.88rem; padding: 0.48rem 1.2rem; }
.mmm-nav-cta { gap: 0.6rem !important; }

/* Toggler mobile */
.navbar-toggler { border-color: var(--mmm-blue); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3a8f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================================================
   HERO
================================================================ */
.mmm-hero {
    position: relative;
    min-height: max(580px, 62vh);
    /* Fallback sans photo */
    background: linear-gradient(135deg, var(--mmm-blue-dark) 0%, var(--mmm-blue) 50%, var(--mmm-blue-mid) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Fond photo */
.mmm-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 60% 25%;
    background-repeat: no-repeat;
    z-index: 0;
}
/* Voile gauche pour lisibilité du texte */
.mmm-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 35, 100, 0.62) 0%,
        rgba(7, 35, 100, 0.34) 28%,
        rgba(7, 35, 100, 0.08) 52%,
        rgba(7, 35, 100, 0) 65%
    );
}

/* Vagues pleine largeur en bas du héro */
.mmm-hero-wave {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.mmm-hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Conteneur contenu */
.mmm-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Module hero — padding et couleur */
.mmm-hero .mmm-hero-inner {
    position: relative;
    z-index: 2;
    color: var(--mmm-white);
    padding: 5.5rem 0 8rem;
    max-width: 100%;
}

/* Élargir la colonne texte du hero : col-lg-6 → col-lg-8 (66.667%) — desktop uniquement */
@media (min-width: 992px) {
    .mmm-hero .mmm-hero-inner .col-lg-6 {
        width: 66.667%;
        max-width: 66.667%;
    }
}

/* Textes hero */
.mmm-hero h1,
.mmm-hero .mmm-hero-inner h1 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.8rem;
    color: var(--mmm-white);
    text-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.mmm-hero h1 em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.78em;
    color: rgba(255,255,255,0.90);
    display: inline;
}
/* Trait blanc séparateur entre h1 et boutons CTA */
.mmm-hero .mmm-hero-inner h1::after {
    content: '';
    display: block;
    width: 460px;
    height: 2px;
    background: rgba(255,255,255,0.70);
    margin-top: 1.6rem;
    margin-bottom: 0;
}

.mmm-hero .mmm-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

/* Vague blanche de transition bas — supprimée */

/* Responsive */
@media (max-width: 991px) {
    .mmm-hero { min-height: max(480px, 55vh); }
    .mmm-hero-waves { opacity: 0.97; }
}
@media (max-width: 640px) {
    .mmm-hero { min-height: 420px; }
    .mmm-hero .mmm-hero-inner { padding: 3.5rem 0 5.5rem; }
}

/* Accent jaune (texte inline) */
.mmm-yellow-accent { color: var(--mmm-yellow); }

/* ================================================================
   SECTION TITRES
================================================================ */
.mmm-section-title {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mmm-blue-dark);
    margin-bottom: 2.5rem;
    position: relative;
}
.mmm-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--mmm-yellow);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.mmm-section-title-left {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--mmm-blue-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--mmm-yellow);
    display: inline-block;
}

/* ================================================================
   CARTES VALEURS (home-cards)
================================================================ */
.mmm-home-cards {
    padding: 3rem 0 3.5rem;
    background: #f4f7fd;
}

/* Carte */
.mmm-card {
    background: var(--mmm-white);
    border: 1px solid var(--mmm-border);
    border-radius: var(--mmm-radius);
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: var(--mmm-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.mmm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26,58,143,0.15);
}

/* En-tête de carte : icône + titre sur la même ligne */
.mmm-card-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--mmm-blue-light);
}

/* Cercle icône */
.mmm-card .mmm-card-icon {
    width: 48px; height: 48px;
    background: var(--mmm-blue-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mmm-card .mmm-card-icon svg,
.mmm-card .mmm-card-icon img { width: 26px; height: 26px; }
/* Icône Font Awesome dans le cercle */
.mmm-card .mmm-card-icon i,
.mmm-card .mmm-card-icon .fa-solid,
.mmm-card .mmm-card-icon .fas {
    font-size: 1.25rem;
    color: var(--mmm-blue);
    line-height: 1;
}

/* Titre de la carte (dans .mmm-card-header) */
.mmm-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mmm-blue-dark);
    margin: 0;
    line-height: 1.3;
    flex: 1 1 auto;
}

/* Corps */
.mmm-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.mmm-card-body p {
    font-size: 0.9rem;
    color: var(--mmm-text-light);
    margin-bottom: 1rem;
    flex: 1 1 auto;
}
.mmm-card-body p:last-child { margin-bottom: 0; }

/* Lien "En savoir plus" */
.mmm-card .mmm-card-link {
    font-weight: 700;
    color: var(--mmm-blue);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--mmm-blue);
    padding-bottom: 1px;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}
.mmm-card .mmm-card-link:hover {
    color: var(--mmm-blue-dark);
    border-color: var(--mmm-blue-dark);
}

/* ================================================================
   AXES PRIORITAIRES
================================================================ */
.mmm-axes {
    background: linear-gradient(160deg, #1255c8 0%, #0d2260 55%, #1a3a8f 100%);
    padding: 0;
    color: var(--mmm-white);
    position: relative;
    overflow: hidden;
}

/* Vague de transition haut (depuis home-cards #f4f7fd) */
.mmm-axes-wave-top,
.mmm-axes-wave-bottom {
    display: block;
    line-height: 0;
    font-size: 0;
    position: relative;
    z-index: 1;
}
.mmm-axes-wave-top svg,
.mmm-axes-wave-bottom svg {
    display: block;
}

/* Ondes décoratives flottantes en arrière-plan */
.mmm-axes-bg-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.mmm-axes-bg-waves svg { width: 100%; height: 100%; }

/* Contenu principal au-dessus des ondes */
.mmm-axes > .container-xl {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Titre avec lignes horizontales de chaque côté */
.mmm-axes .mmm-section-title {
    color: var(--mmm-white);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    margin-bottom: 2rem;
}
.mmm-axes .mmm-section-title::before {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.30);
    border-radius: 2px;
}
.mmm-axes .mmm-section-title::after {
    flex: 1;
    height: 2px;
    width: auto;
    background: rgba(255,255,255,0.30);
    margin: 0;
    border-radius: 2px;
}

/* Grille axes — carte blanche */
.mmm-axes-grid {
    background: var(--mmm-white);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Axe item */
.mmm-axe-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--mmm-border);
    transition: background 0.2s;
    color: var(--mmm-text);
}
.mmm-axe-item:last-child { border-right: none; }
.mmm-axe-item:hover { background: var(--mmm-blue-light); }

/* Icône */
.mmm-axe-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    background: var(--mmm-blue-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.mmm-axe-icon svg,
.mmm-axe-icon img { width: 36px; height: 36px; filter: none; }
.mmm-axe-icon i,
.mmm-axe-icon .fa-solid,
.mmm-axe-icon .fas { font-size: 1.9rem; color: var(--mmm-blue); }

/* Texte axe */
.mmm-axe-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mmm-blue-dark);
    line-height: 1.3;
}
.mmm-axe-text span {
    font-size: 0.92rem;
    color: var(--mmm-text-light);
    font-weight: 500;
}

/* ================================================================
   ACTUALITÉS
================================================================ */
.mmm-actualites {
    padding: 4rem 0;
    background: var(--mmm-white);
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.mmm-actu-card {
    border-radius: var(--mmm-radius);
    overflow: hidden;
    box-shadow: var(--mmm-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s;
}
.mmm-actu-card:hover { transform: translateY(-4px); }
.mmm-actu-card img { width: 100%; height: 200px; object-fit: cover; }
.mmm-actu-card .mmm-actu-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.mmm-actu-badge {
    display: inline-block;
    background: var(--mmm-yellow);
    color: var(--mmm-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.mmm-actu-badge-comm {
    background: var(--mmm-blue);
    color: var(--mmm-white);
}
.mmm-actu-badge-actus {
    background: var(--mmm-yellow);
    color: var(--mmm-blue-dark);
}
.mmm-actu-card h3 { font-size: 1rem; font-weight: 700; color: var(--mmm-blue-dark); margin-bottom: 0.4rem; }
.mmm-actu-card h3 a { color: inherit; text-decoration: none; }
.mmm-actu-card h3 a:hover { color: var(--mmm-blue); }
.mmm-actu-card .mmm-actu-date { font-size: 0.82rem; color: var(--mmm-text-light); margin-bottom: 0.5rem; }
.mmm-actu-card p { font-size: 0.88rem; color: var(--mmm-text-light); flex: 1; }
.mmm-actu-link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mmm-blue);
    text-decoration: none;
}
.mmm-actu-link:hover { color: var(--mmm-blue-dark); text-decoration: underline; }

/* ================================================================
   REJOINDRE LE MOUVEMENT
================================================================ */
.mmm-rejoindre {
    min-height: 400px;
    padding: 7rem 0 5rem; /* 7rem top = wave (5rem) + breathing room */
    margin-top: -3.5rem;  /* débordement de 3.5rem dans l'actualités */
    color: var(--mmm-white);
    position: relative;
    z-index: 2;
    overflow: hidden;
    background:
        linear-gradient(90deg,
            var(--mmm-blue-dark)        0%,
            rgba(13, 34, 96, 0.90)     40%,
            rgba(13, 34, 96, 0.50)     70%,
            rgba(13, 34, 96, 0.15)    100%
        ),
        url('../images/mmm_membre.png') center right / cover no-repeat;
}

.mmm-rejoindre::before { display: none; }

/* Vague de transition */
.mmm-rejoindre-wave-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    line-height: 0;
    z-index: 1;
}
.mmm-rejoindre-wave-top svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Ondes décoratives de fond */
.mmm-rejoindre-bg-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.mmm-rejoindre-bg-waves svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mmm-rejoindre .container-xl { position: relative; z-index: 3; width: 100%; }

.mmm-rejoindre .mmm-rejoindre-content { max-width: 600px; }

.mmm-rejoindre h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}
.mmm-rejoindre p { opacity: 0.9; margin-bottom: 0; font-size: 1.1rem; }
.mmm-rejoindre .mmm-rejoindre-body { margin-top: 1rem; }
.mmm-rejoindre .mmm-rejoindre-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.mmm-btn-outline-white {
    background: transparent;
    color: var(--mmm-white);
    border: 2px solid var(--mmm-white);
}
.mmm-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: var(--mmm-white);
    border-color: var(--mmm-white);
}

.mmm-btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
}

/* ================================================================
   FOOTER
================================================================ */
.mmm-footer {
    background-color: var(--mmm-blue-dark);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.mmm-footer-col h4 {
    color: var(--mmm-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mmm-yellow);
    display: inline-block;
}
.mmm-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mmm-footer-col ul li { margin-bottom: 0.5rem; }
.mmm-footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.mmm-footer-col ul li a:hover { color: var(--mmm-yellow); }

.mmm-footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.mmm-footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--mmm-white);
    text-decoration: none;
    transition: background 0.2s;
}
.mmm-footer-social a:hover { background: var(--mmm-yellow); color: var(--mmm-blue-dark); }

.mmm-footer-contact { list-style: none; padding: 0; margin: 0; }
.mmm-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.mmm-footer-contact li i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--mmm-yellow);
    width: 1rem;
    text-align: center;
}
.mmm-footer-contact li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}
.mmm-footer-contact li a:hover { color: var(--mmm-yellow); }

.mmm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* ================================================================
   PAGE INTÉRIEURE
================================================================ */
.mmm-breadcrumb-bar {
    background: var(--mmm-blue-light);
    border-bottom: 1px solid var(--mmm-border);
    padding: 0.4rem 0;
    font-size: 0.85rem;
}
.mmm-breadcrumb-bar .breadcrumb { margin: 0; background: 0 0; padding: 0.25rem 0; }
.mmm-breadcrumb-bar .breadcrumb-item a { color: var(--mmm-blue); }

.mmm-main { min-height: 60vh; }

.mmm-sidebar .moduletable {
    margin-bottom: 1.5rem;
    border: 1px solid var(--mmm-border);
    border-radius: var(--mmm-radius);
    overflow: hidden;
}
.mmm-sidebar .moduletable h3 {
    background: var(--mmm-blue);
    color: var(--mmm-white);
    margin: 0;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.mmm-sidebar .moduletable > div { padding: 0.75rem 1rem; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991.98px) {
    .mmm-header { height: auto; }
    .mmm-header .navbar { padding: 0.5rem 0; }
    .mmm-axes-grid { grid-template-columns: repeat(2, 1fr); }
    .mmm-axe-item { border-bottom: 1px solid var(--mmm-border); }
    .mmm-hero { min-height: 360px; }
    .mmm-hero .mmm-hero-image { width: 100%; opacity: 0.2; }

    /* Menu mobile ouvert */
    .mmm-header .navbar-collapse.show,
    .mmm-header .navbar-collapse.collapsing {
        background: var(--mmm-white);
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    /* Liens nav en colonne */
    .mmm-header .navbar-nav,
    .mmm-header .navbar-nav > ul {
        flex-direction: column !important;
        height: auto !important;
    }
    .mmm-header .navbar-nav li { display: block; }
    .mmm-header .navbar-nav .nav-link,
    .mmm-header .navbar-nav > ul > li > a {
        padding: 0.55rem 1rem;
    }
    /* Boutons CTA : masqués sur mobile (non nécessaires dans le menu déroulant) */
    .mmm-header .navbar-collapse .mmm-nav-cta {
        display: none !important;
    }

    /* Trait hero : pas plus large que l'écran */
    .mmm-hero .mmm-hero-inner h1::after {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 575.98px) {
    .mmm-axes-grid { grid-template-columns: 1fr; }
    .mmm-hero { min-height: 300px; }
    .mmm-rejoindre { margin-top: -2rem; padding-top: 5.5rem; }
    .mmm-rejoindre-wave-top svg { height: 48px; }
    .mmm-rejoindre .mmm-rejoindre-cta { flex-direction: column; }
}
