/**
 * ╔══════════════════════════════════════════════════════════════════╗
 * ║  MACWIN — macwin.css  VERSION 4                                  ║
 * ║  Feuille de style UNIQUE — mode clair & sombre                   ║
 * ║  Protocole graphique officiel 04/10/2017                         ║
 * ╠══════════════════════════════════════════════════════════════════╣
 * ║  PALETTE OFFICIELLE (charte graphique macwin)                    ║
 * ║   #ff9d55  orange clair  (dégradé logo)                          ║
 * ║   #ff7816  orange vif    (dégradé logo)                          ║
 * ║   #fdc657  jaune doré    (dégradé logo)                          ║
 * ║   #fcb119  orange MACWIN (couleur secondaire principale)         ║
 * ║   #005376  bleu marine   (couleur primaire mode clair)           ║
 * ╠══════════════════════════════════════════════════════════════════╣
 * ║  TYPOGRAPHIE                                                     ║
 * ║   Logo / titres : Audiowide (Google Fonts)                       ║
 * ║   Corps de texte : Rubik (Google Fonts)                          ║
 * ╠══════════════════════════════════════════════════════════════════╣
 * ║  IMAGES DE FOND — MODIFIER ICI UNIQUEMENT                        ║
 * ║  Toutes les images de fond sont des CSS variables dans :root {}  ║
 * ║  Exemple : --hero-img: url('../images/mon-image.webp');          ║
 * ╠══════════════════════════════════════════════════════════════════╣
 * ║  OPACITÉS DES VOILES — MODIFIER ICI UNIQUEMENT                   ║
 * ║  Valeur 0 = transparent, 1 = totalement opaque                   ║
 * ╚══════════════════════════════════════════════════════════════════╝
 */

/* ════════════════════════════════════════════════════════════════════
   1. VARIABLES MODE CLAIR (défaut)
════════════════════════════════════════════════════════════════════ */
:root {

    /* ── Couleurs principales (charte officielle) ── */
    --primary:           #005376;   /* bleu marine officiel */
    --primary-dk:        #003a52;   /* bleu foncé survol/actif */
    --primary-lt:        #e6f2f7;   /* bleu très clair fond */
    --secondary:         #fcb119;   /* orange MACWIN exact */
    --secondary-dk:      #d4920e;   /* orange foncé survol */
    --secondary-lt:      #fff4d6;   /* orange très clair fond */
    --nav-link-hover-bg: #c8c7c7;  /* fond lien hover mode clair */
    --orange-vif:        #ff7816;   /* orange dégradé logo */
    --orange-clair:      #ff9d55;   /* orange clair dégradé logo */
    --jaune:             #fdc657;   /* jaune doré dégradé logo */

    /* ── Texte & fonds ── */
    --dark:              #2e2e2e;   /* footer, textes foncés */
    --text:              #232323;
    --text-muted:        #767676;
    --bg:                #ffffff;
    --bg-grey:           #f0f0f0;
    --bg-light:          #f9f9f9;
    --white:             #ffffff;
    --border:            #e0e0e0;

    /* ── Logo & Navbar ── */
    --logo-color:        #005376;   /* MACWIN mode clair = bleu officiel */
    --logo-color-dark:   #ffffff;   /* MACWIN mode sombre = blanc */
    --logo-font:         'Audiowide', cursive;
    --logo-size:         1.55rem;
    --logo-img-size:     52px;
    --navbar-bg:         #ffffff;
    --navbar-shadow:     0 2px 16px rgba(0,0,0,.08);
    --nav-link-color:    #232323;
    --nav-link-hover:    #fcb119;
    --nav-cta-bg:        #fcb119;
    --nav-cta-color:     #ffffff;
    --nav-cta-hover-bg:  #d4920e;

    /* ── Layout ── */
    --section-padding:   80px 0;
    --card-radius:       6px;
    --shadow:            0 4px 24px rgba(0,0,0,.10);
    --shadow-hover:      0 8px 32px rgba(0,0,0,.16);
    --transition:        all .3s ease-in-out;
    --border-radius:     6px;

    /* ── Footer ── */
    --footer-bg:         #2e2e2e;
    --footer-text:       rgba(255,255,255,.72);
    --footer-link:       rgba(255,255,255,.55);
    --footer-link-hover: #fcb119;
    --footer-border:     rgba(255,255,255,.07);

    /* ══════════════════════════════════════════
       IMAGES DE FOND — MODIFIER CES URLs
       Pour changer une image : remplacer l'URL
       ══════════════════════════════════════════ */
    --hero-img-1:        url('../images/background4.webp');   /* Hero slide 1 */
    --hero-img-2:        url('../images/landes-plages.jpg');  /* Hero slide 2 */
    --section-bg-img:    url('../images/background4.webp');   /* Sections fond image */
    --cta-bg-img:        url('../images/background4.webp');   /* Bandeau CTA */
    --form-bg-img:       url('../images/landes-plages.jpg');  /* Fond formulaire */
    --zone-landes-img:   url('../images/landes-plages.jpg');  /* Carte Landes */
    --zone-basque-img:   url('../images/biarritz-pyrennees-atlantiques2.jpg'); /* Carte Pays Basque */
    --error-bg-landes:   url('../images/landes-plages.jpg');  /* Page erreur Landes */
    --error-bg-basque:   url('../images/biarritz-pyrennees-atlantiques2.jpg'); /* Page erreur Pays Basque */

    /* ══════════════════════════════════════════
       OPACITÉS DES VOILES — MODIFIER CES VALEURS
       0.0 = transparent / 1.0 = opaque
       ══════════════════════════════════════════ */
    --hero-overlay-opacity:    0.62;   /* Voile hero carrousel */
    --section-img-opacity:     0.55;   /* Sections fond image */
    --cta-img-opacity:         0.65;   /* Bandeau CTA */
    --zone-landes-opacity:     0.40;   /* Voile photo Landes */
    --zone-basque-opacity:     0.40;   /* Voile photo Pays Basque */
    --form-section-opacity:    0.60;   /* Voile fond formulaire */

    /* ══════════════════════════════════════════
       HAUTEURS DES BANDEAUX ZONES
       ══════════════════════════════════════════ */
    --zone-card-header-height: 260px;  /* Hauteur bandeau Landes / Pays Basque */
}

/* ════════════════════════════════════════════════════════════════════
   2. VARIABLES MODE SOMBRE
   Seules les variables qui changent sont redéclarées ici.
════════════════════════════════════════════════════════════════════ */
body.dark-mode {
    --logo-color:        #ffffff;
    --bg:                #232323;
    --bg-grey:           #252525;
    --bg-light:          #222222;
    --bg2:               #252525;
    --bg3:               #2e2e2e;
    --text:              #e8e8e8;
    --text-muted:        #a0a0a0;
    --border:            #383838;
    --navbar-bg:         #2e2e2e;
    --navbar-shadow:     0 2px 16px rgba(0,0,0,.4);
    --nav-link-color:    #e8e8e8;
    --primary:           #005376;   /* gardé pour les éléments qui en ont besoin */
    --primary-lt:        #2e2e2e;   /* plus de bleu-foncé : fond neutre */
    --secondary-lt:      rgba(252,177,25,.12);
    --nav-link-hover-bg: #474747;
    --dropdown-bg:       #2e2e2e;
    --shadow:            0 4px 24px rgba(0,0,0,.35);
    --card-bg:           #252525;
    --footer-bg:         #1a1a1a;
}

/* ════════════════════════════════════════════════════════════════════
   3. BASE & RESET
════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    transition: background .3s, color .3s;
    margin: 0;
    padding: 0;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-top: 0;
}

/* ════════════════════════════════════════════════════════════════════
   4. NAVBAR
════════════════════════════════════════════════════════════════════ */
.mbr-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    transition: background .3s, box-shadow .3s;
}

.mbr-navbar.scrolled {
    box-shadow: 0 3px 20px rgba(0,0,0,.15);
}

.mbr-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo — Audiowide, couleur officielle */
.mbr-navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-family: var(--logo-font);
    font-size: var(--logo-size);
    font-weight: 700;
    color: var(--logo-color);
    letter-spacing: .04em;
    flex-shrink: 0;
    transition: color .3s;
    -webkit-text-stroke: 0.5px currentColor;
}

.mbr-navbar-brand img {
    width: var(--logo-img-size);
    height: var(--logo-img-size);
    object-fit: contain;
    flex-shrink: 0;
}

.mbr-navbar-brand:hover { color: var(--secondary); text-decoration: none; }

/* Liens nav */
.mbr-navbar-links {
    display: flex;
    align-items: center;
    gap: .2rem;
    flex-wrap: nowrap;
}

/* Espace avant les 3 boutons droits (toggle dark, CTA téléphone) */
.mbr-dark-toggle {
    margin-left: .6rem;
}

.mbr-nav-cta {
    margin-left: .4rem;
}

.mbr-nav-link {
    color: var(--nav-link-color);
    font-size: .88rem;
    font-weight: 500;
    padding: .4rem .65rem;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
    text-decoration: none;
}

.mbr-nav-link:hover,
.mbr-nav-link.active {
    color: var(--nav-link-color);
    background: var(--nav-link-hover-bg, transparent);
    text-decoration: none;
}

/* Dropdowns */
.mbr-nav-dropdown { position: relative; }

.mbr-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--dropdown-bg, var(--bg));
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: .4rem 0;
    z-index: 200;
    transition: opacity .15s ease, visibility .15s ease;
    /* Padding-top pour créer une zone tampon invisible entre le lien et le menu */
    padding-top: .8rem;
    margin-top: -4px;
}

/* Pseudo-élément "pont" invisible : couvre le gap entre le lien et le menu */
.mbr-nav-dropdown::after {
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 199;
}

.mbr-nav-dropdown:hover .mbr-dropdown-menu,
.mbr-nav-dropdown.open .mbr-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mbr-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    font-size: .86rem;
    color: var(--text);
    transition: background .15s, color .15s;
    text-decoration: none;
}

.mbr-dropdown-menu a:hover {
    background: var(--nav-link-hover-bg, #c8c7c7);
    color: var(--text);
}

.mbr-dropdown-menu a i {
    color: var(--secondary);
    width: 16px;
    flex-shrink: 0;
}

/* Toggle dark mode */
.mbr-dark-toggle {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .3rem .75rem;
    cursor: pointer;
    font-size: .82rem;
    font-family: 'Rubik', sans-serif;
    color: var(--text);
    transition: var(--transition);
    white-space: nowrap;
}

.mbr-dark-toggle:hover {
    background: var(--primary-lt);
    border-color: var(--primary);
}

/* CTA téléphone navbar */
.mbr-nav-cta {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--nav-cta-bg);
    color: var(--nav-cta-color) !important;
    padding: .4rem 1rem;
    border-radius: 4px;
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
    text-decoration: none;
}

.mbr-nav-cta:hover {
    background: var(--nav-cta-hover-bg);
    color: #fff !important;
    text-decoration: none;
}

/* Hamburger mobile */
.mbr-navbar-toggler {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .4rem .6rem;
    cursor: pointer;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.mbr-navbar-toggler:hover {
    background: var(--bg-grey);
}

/* ════════════════════════════════════════════════════════════════════
   5. HERO CARROUSEL — Bootstrap 4
   Le carrousel n'affiche qu'1/3 : correctif → min-height 100vh
════════════════════════════════════════════════════════════════════ */
.mbr-hero-carousel {
    position: relative;
    /* CORRECTIF V4 : was 88vh — maintenu mais overflow forcé visible */
    min-height: 88vh;
    overflow: hidden;
}

/* Forcer le carrousel Bootstrap à occuper toute la hauteur et largeur */
.mbr-hero-carousel,
.mbr-hero-carousel .carousel,
.mbr-hero-carousel .carousel-inner,
.mbr-hero-carousel .carousel-item {
    height: 88vh;
    min-height: 520px;
    width: 100%;
}

.mbr-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

/* Voile sombre paramétrable */
.mbr-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--hero-overlay-opacity));
    z-index: 1;
}

.mbr-hero-slide .container,
.mbr-hero-slide .mbr-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Slides — images */
.mbr-hero-slide-1 { background-image: var(--hero-img-1); }
.mbr-hero-slide-2 { background-image: var(--hero-img-2); }

/* Contenu textuel hero */
.mbr-hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .8rem;
    border-radius: 3px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.mbr-hero-slide h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .8rem;
    line-height: 1.2;
}

.mbr-hero-slide h1 span { color: var(--secondary); }

.mbr-hero-slide p {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.88);
    max-width: 580px;
    margin-bottom: 1.8rem;
}

.mbr-hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Stats hero */
.mbr-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.mbr-hero-stat { color: #fff; }

.mbr-hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.mbr-hero-stat span { font-size: .82rem; opacity: .85; }

/* Contrôles carousel */
.mbr-hero-carousel .carousel-control-prev,
.mbr-hero-carousel .carousel-control-next {
    width: 48px;
    opacity: .65;
    transition: opacity .2s;
}

.mbr-hero-carousel .carousel-control-prev:hover,
.mbr-hero-carousel .carousel-control-next:hover { opacity: 1; }

.mbr-hero-carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    margin: 0 4px;
}

.mbr-hero-carousel .carousel-indicators .active { background: var(--secondary); }

/* ════════════════════════════════════════════════════════════════════
   6. BOUTONS
════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.6rem;
    border-radius: 4px;
    font-family: 'Rubik', sans-serif;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dk);
    border-color: var(--secondary-dk);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.65);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

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

.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-sm { padding: .35rem 1rem; font-size: .82rem; }

/* CTA générique inline */
.cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--secondary);
    color: #fff !important;
    padding: .7rem 1.7rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
    margin: .3rem .3rem .3rem 0;
    transition: var(--transition);
    font-size: .92rem;
}
.cta:hover { background: var(--secondary-dk); color: #fff !important; }
.cta.large { padding: .9rem 2.2rem; font-size: .98rem; }

/* ════════════════════════════════════════════════════════════════════
   7. CONTENEUR PRINCIPAL
════════════════════════════════════════════════════════════════════ */
.mbr-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ════════════════════════════════════════════════════════════════════
   8. SECTIONS GÉNÉRIQUES
════════════════════════════════════════════════════════════════════ */
.mbr-section {
    padding: var(--section-padding);
    background: var(--bg);
}

.mbr-section-grey { background: var(--bg-grey); }
.mbr-section-light { background: var(--bg-light); }

.mbr-section-image {
    position: relative;
    background-image: var(--section-bg-img);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mbr-section-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--section-img-opacity));
    z-index: 1;
}

.mbr-section-image .mbr-container,
.mbr-section-image .container { position: relative; z-index: 2; }

/* En-têtes de section */
.mbr-section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.mbr-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--primary);
    margin-bottom: .5rem;
}

.mbr-section-image .mbr-section-head h2 { color: #fff; }

.mbr-label {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .22rem .8rem;
    border-radius: 3px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .7rem;
}

.mbr-section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: .4rem auto 0;
}

.mbr-section-image .mbr-section-subtitle { color: rgba(255,255,255,.8); }

/* ════════════════════════════════════════════════════════════════════
   9. CARTES SERVICES
════════════════════════════════════════════════════════════════════ */
.mbr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

/* Grille 2×2 fixe (sections formations, livres blancs) */
.mbr-cards-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Carte PDF livres blancs */
.mbr-card-pdf .mbr-card-icon i {
    font-size: 2rem;
}

.mbr-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.mbr-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary);
    color: var(--text);
    text-decoration: none;
}

.mbr-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-lt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.mbr-card:hover .mbr-card-icon {
    background: var(--secondary);
    color: #fff;
}

.mbr-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: .5rem;
}

.mbr-card p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Cartes service inline (pages intérieures) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.service-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--card-radius); padding: 1.4rem;
    box-shadow: var(--shadow); text-decoration: none;
    color: var(--text); transition: var(--transition); display: block;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(0,83,118,.12); transform: translateY(-2px); color: var(--text); }
.service-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: .4rem; }
.service-card p { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   10. FEATURES (liste icône + texte)
════════════════════════════════════════════════════════════════════ */
.mbr-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.mbr-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mbr-feature:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.mbr-feature-icon {
    color: var(--secondary);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.mbr-feature h4 { font-size: .95rem; margin-bottom: .3rem; color: var(--primary); }
.mbr-feature p  { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════════
   11. ZONES — Landes & Pays Basque
   V4 CORRECTIF : bandeaux 2x plus hauts (~260px), titres lisibles
════════════════════════════════════════════════════════════════════ */

/* Titre de section "Nos secteurs" — plus grand et lisible */
.mbr-zones-section .mbr-section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

.mbr-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

@media (max-width: 767px) { .mbr-zones-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1099px) { .mbr-zones-grid { grid-template-columns: 1fr 1fr; } }

.mbr-zone-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Bandeau photo — V4 : 2x plus haut (var paramétrable) */
.mbr-zone-card-header {
    position: relative;
    height: var(--zone-card-header-height);  /* 260px par défaut */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    gap: .75rem;
}

.mbr-zone-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mbr-zone-landes-header {
    background-image: var(--zone-landes-img);
}
.mbr-zone-landes-header::before {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,var(--zone-landes-opacity)) 60%,
        rgba(0,0,0,.1) 100%
    );
}

.mbr-zone-basque-header {
    background-image: var(--zone-basque-img);
}
.mbr-zone-basque-header::before {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,var(--zone-basque-opacity)) 60%,
        rgba(0,0,0,.1) 100%
    );
}

.mbr-zone-card-header > * { position: relative; z-index: 2; }

/* Icône zone */
.mbr-zone-card-header i {
    font-size: 2.4rem;
    color: var(--secondary);
    flex-shrink: 0;
    drop-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Texte zone — V4 : beaucoup plus lisible */
.mbr-zone-header-text { display: flex; flex-direction: column; }

.mbr-zone-card-header h3 {
    margin: 0 0 .3rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);  /* Titre grand et lisible */
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.mbr-zone-card-header p {
    margin: 0;
    font-size: .92rem;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Bande colorée sous le bandeau */
.mbr-zone-colorbar { height: 5px; }
.mbr-zone-colorbar-blue   { background: var(--primary); }
.mbr-zone-colorbar-orange { background: var(--secondary); }

/* Corps de la carte zone */
.mbr-zone-cities {
    background: var(--bg);
    padding: 1.4rem 1.6rem;
}

.mbr-zone-cities-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: .75rem;
}

.mbr-zone-cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.1rem;
}

.mbr-zone-cities-list a {
    font-size: .8rem;
    color: var(--primary);
    background: var(--primary-lt);
    padding: .22rem .65rem;
    border-radius: 20px;
    transition: var(--transition);
    text-decoration: none;
}

.mbr-zone-cities-list a:hover {
    background: var(--secondary);
    color: #fff;
}

/* ════════════════════════════════════════════════════════════════════
   12. AVIS / TÉMOIGNAGES
════════════════════════════════════════════════════════════════════ */
.mbr-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mbr-review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: var(--transition);
}

.mbr-review-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.mbr-review-stars { color: var(--secondary); font-size: 1rem; letter-spacing: .1em; }

.mbr-review-text {
    font-size: .88rem;
    color: var(--text);
    line-height: 1.65;
    font-style: italic;
    flex: 1;
}

.mbr-review-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
}

.mbr-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.mbr-review-name { font-weight: 600; font-size: .9rem; color: var(--text); }

.mbr-review-source {
    font-size: .72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.mbr-review-source i { color: var(--secondary); }

/* ════════════════════════════════════════════════════════════════════
   13. À PROPOS / ABOUT
════════════════════════════════════════════════════════════════════ */
.mbr-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 899px) { .mbr-about-grid { grid-template-columns: 1fr; } }

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

.mbr-about-text blockquote {
    border-left: 4px solid var(--secondary);
    padding: .8rem 1.2rem;
    margin: 1.2rem 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 0 6px 6px 0;
}

/* ════════════════════════════════════════════════════════════════════
   14. YOUTUBE — Grille de vignettes
════════════════════════════════════════════════════════════════════ */
.mbr-youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mbr-youtube-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    color: var(--text);
}

.mbr-youtube-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    text-decoration: none;
    color: var(--text);
}

.mbr-youtube-thumb {
    position: relative;
    padding-top: 56.25%; /* 16/9 */
    overflow: hidden;
    background: #000;
}

.mbr-youtube-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.mbr-youtube-card:hover .mbr-youtube-thumb img { transform: scale(1.04); }

.mbr-youtube-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    transition: background .2s;
}

.mbr-youtube-card:hover .mbr-youtube-play { background: rgba(0,0,0,.15); }

.mbr-youtube-play i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
    transition: transform .2s;
}

.mbr-youtube-card:hover .mbr-youtube-play i { transform: scale(1.12); }

.mbr-youtube-info {
    padding: 1rem 1.1rem;
}

.mbr-youtube-info h4 {
    font-size: .9rem;
    margin-bottom: .3rem;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbr-youtube-info span {
    font-size: .76rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════════
   15. BANDEAU CTA
════════════════════════════════════════════════════════════════════ */
.mbr-cta-section {
    position: relative;
    background-image: var(--cta-bg-img);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 70px 0;
    text-align: center;
}

.mbr-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,83,118,var(--cta-img-opacity));
    z-index: 1;
}

.mbr-cta-section .mbr-container { position: relative; z-index: 2; }
.mbr-cta-section h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.mbr-cta-section p  { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1.05rem; }
.mbr-cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════════
   16. FORMULAIRE DE CONTACT (section fond image)
════════════════════════════════════════════════════════════════════ */
.mbr-form-section {
    position: relative;
    background-image: var(--form-bg-img);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--section-padding);
}

.mbr-form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--form-section-opacity));
    z-index: 1;
}

.mbr-form-section .container,
.mbr-form-section .mbr-container { position: relative; z-index: 2; }

/* ════════════════════════════════════════════════════════════════════
   17. GOOGLE MAP
════════════════════════════════════════════════════════════════════ */
.mbr-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary);
}

.mbr-map-wrapper iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ════════════════════════════════════════════════════════════════════
   18. FOOTER
════════════════════════════════════════════════════════════════════ */
.mbr-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
    font-size: .88rem;
}

.mbr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Logo footer — Audiowide blanc toujours */
.mbr-footer-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
}

.mbr-footer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.mbr-footer-brand span {
    font-family: var(--logo-font);
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;            /* Toujours blanc dans le footer foncé */
    letter-spacing: .04em;
}

.mbr-footer h5 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.mbr-footer p { line-height: 1.7; margin-bottom: .4rem; }

.mbr-footer-links { list-style: none; padding: 0; margin: 0; }
.mbr-footer-links li { margin-bottom: .45rem; }
.mbr-footer-links a {
    color: var(--footer-link);
    font-size: .86rem;
    transition: color .2s, padding-left .2s;
    display: flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
}
.mbr-footer-links a:hover { color: var(--footer-link-hover); padding-left: 4px; }

.mbr-footer-contact { list-style: none; padding: 0; margin: 0; }
.mbr-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .65rem;
    color: var(--footer-text);
}
.mbr-footer-contact i { color: var(--secondary); margin-top: .15rem; flex-shrink: 0; }
.mbr-footer-contact a { color: var(--footer-link); text-decoration: none; }
.mbr-footer-contact a:hover { color: var(--footer-link-hover); }

/* Bouton téléphone footer */
.mbr-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--secondary);
    color: #fff !important;
    padding: .75rem 1.5rem;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: .5rem;
    transition: background .2s;
    text-decoration: none;
}
.mbr-footer-phone:hover { background: var(--secondary-dk); }

/* Réseaux sociaux footer */
.mbr-footer-social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.mbr-footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}
.mbr-footer-social a:hover { background: var(--secondary); color: #fff; }

/* Barre basse footer */
.mbr-footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.mbr-footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.mbr-footer-bottom a:hover { color: var(--secondary); }

/* ════════════════════════════════════════════════════════════════════
   19. BOUTON RETOUR EN HAUT
   V4 CORRECTIF : ajouté (absent de V3)
════════════════════════════════════════════════════════════════════ */
#scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
    z-index: 900;
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover { background: var(--secondary-dk); }

/* ════════════════════════════════════════════════════════════════════
   20. PAGES D'ERREUR (404, 403, 500) — Landes / Pays Basque
════════════════════════════════════════════════════════════════════ */
.mbr-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.mbr-error-page.landes { background-image: var(--error-bg-landes); }
.mbr-error-page.pays-basque { background-image: var(--error-bg-basque); }

.mbr-error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.mbr-error-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem;
    max-width: 560px;
}

.mbr-error-code {
    font-family: var(--logo-font);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 400;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: .2rem;
    text-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.mbr-error-content h1 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: #fff;
    margin-bottom: .7rem;
}

.mbr-error-content p {
    color: rgba(255,255,255,.82);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ════════════════════════════════════════════════════════════════════
   21. BREADCRUMB
════════════════════════════════════════════════════════════════════ */
.mbr-breadcrumb { background: var(--bg-grey); padding: .75rem 0; font-size: .82rem; }
.mbr-breadcrumb-list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mbr-breadcrumb-list li { display: flex; align-items: center; gap: .35rem; }
.mbr-breadcrumb-list li::after { content: '/'; color: var(--text-muted); font-size: .75rem; }
.mbr-breadcrumb-list li:last-child::after { display: none; }
.mbr-breadcrumb-list a { color: var(--primary); }
.mbr-breadcrumb-list .active { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════
   22. PAGE HERO (sous-pages intérieures)
════════════════════════════════════════════════════════════════════ */
.mbr-page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    padding: 55px 0;
    position: relative;
    overflow: hidden;
}

.mbr-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-img-1);
    background-size: cover;
    background-position: center;
    opacity: .1;
}

.mbr-page-hero .mbr-container { position: relative; z-index: 1; }
.mbr-page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: .4rem; }
.mbr-page-hero p  { color: rgba(255,255,255,.85); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   23. ANIMATIONS AU SCROLL
════════════════════════════════════════════════════════════════════ */
.mbr-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.mbr-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   24. DARK MODE — surcharges
   Palette : fond #232323/#2e2e2e, texte blanc, accent #fcb119
════════════════════════════════════════════════════════════════════ */

/* ── Fonds sections ── */
body.dark-mode .mbr-section-grey,
body.dark-mode .mbr-section-light,
body.dark-mode .page-section { background: #252525; }
body.dark-mode .page-section.bg-light { background: #2a2a2a; }
body.dark-mode .mbr-breadcrumb { background: #252525; }

/* ── Titres — blancs ── */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #ffffff !important; }

/* ── Icônes — jaunes ── */
body.dark-mode .mbr-card-icon,
body.dark-mode .mbr-feature-icon,
body.dark-mode .service-card-icon,
body.dark-mode .mbr-card-icon i,
body.dark-mode .mbr-feature-icon i { color: #fcb119 !important; background: #383838 !important; }

/* ── Cartes ── */
body.dark-mode .mbr-card,
body.dark-mode .mbr-feature,
body.dark-mode .mbr-review-card,
body.dark-mode .service-card {
    background: #2e2e2e;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

/* ── Boutons — fond plein #fcb119, hover plus sombre ── */
body.dark-mode .cta,
body.dark-mode .btn,
body.dark-mode .btn-primary,
body.dark-mode .btn-info,
body.dark-mode .btn-outline-primary,
body.dark-mode a.cta {
    background: #fcb119 !important;
    color: #ffffff !important;
    border-color: #fcb119 !important;
}
body.dark-mode .cta:hover,
body.dark-mode .btn:hover,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-info:hover,
body.dark-mode a.cta:hover {
    background: #d4920e !important;
    border-color: #d4920e !important;
    color: #ffffff !important;
}

/* ── Liens ── */
body.dark-mode a { color: #fcb119; }
body.dark-mode a:hover { color: #d4920e; }

/* ── Dark toggle ── */
body.dark-mode .mbr-dark-toggle {
    background: rgba(252,177,25,.15);
    border-color: rgba(252,177,25,.4);
    color: #fcb119;
}

/* ── Zones villes ── */
body.dark-mode .mbr-zone-cities { background: #252525; }
body.dark-mode .mbr-zone-cities-list a { background: #2e2e2e; color: #e0e0e0; }
body.dark-mode .mbr-zone-cities-list a:hover { background: #383838; color: #fcb119; }

/* ── Timeline ── */
body.dark-mode .mbr-timeline-content h4,
body.dark-mode .apropos-timeline-body h4 { color: #ffffff !important; }
body.dark-mode .mbr-timeline-year,
body.dark-mode .apropos-timeline-annee { color: #fcb119; }
body.dark-mode .mbr-timeline-item,
body.dark-mode .apropos-timeline-item {
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: .5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* ── Domaines / features 2x2 ── */
body.dark-mode .mbr-features-2x2 .mbr-feature {
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
}

/* ── Formulaire ── */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2e2e2e;
    border-color: #444;
    color: #e0e0e0;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #666; }

/* ── Footer ── */
body.dark-mode .mbr-footer { background: #111111; }
body.dark-mode .mbr-footer-brand span { color: #ffffff; }

/* ── Avis ── */
body.dark-mode .mbr-review-card { background: #2e2e2e; border-color: #3a3a3a; }
body.dark-mode .mbr-review-text { color: #c0c0c0; }

/* ════════════════════════════════════════════════════════════════════
   25. UTILITAIRES
════════════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white   { color: #fff !important; }
.text-muted   { color: var(--text-muted) !important; }
.mt-1 { margin-top: .5rem; }   .mb-1 { margin-bottom: .5rem; }
.mt-2 { margin-top: 1rem; }    .mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2rem; }    .mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.zones-links { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .88rem; }
.zones-links a { color: var(--primary); margin-right: .3rem; }
.zones-links a:hover { color: var(--secondary); }

/* ════════════════════════════════════════════════════════════════════
   26. RESPONSIVE
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
    .mbr-navbar-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navbar-bg); border-top: 1px solid var(--border); padding: 1rem; gap: .2rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
    .mbr-navbar-links.open { display: flex; }
    .mbr-navbar { position: relative; }
    .mbr-navbar-toggler { display: flex; }
    .mbr-nav-link { padding: .6rem 1rem; border-radius: 4px; width: 100%; }
    .mbr-nav-dropdown .mbr-dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-light); border-radius: 6px; padding: .2rem 0; visibility: hidden; opacity: 0; height: 0; overflow: hidden; transition: none; margin-top: 0; pointer-events: none; }
    .mbr-nav-dropdown.open .mbr-dropdown-menu { visibility: visible; opacity: 1; height: auto; pointer-events: auto; }
    .mbr-dark-toggle { width: fit-content; }
    .mbr-nav-cta { width: fit-content; margin-top: .5rem; }
    .mbr-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .mbr-hero-carousel,
    .mbr-hero-carousel .carousel,
    .mbr-hero-carousel .carousel-inner,
    .mbr-hero-carousel .carousel-item,
    .mbr-hero-slide { height: 75vh; min-height: 480px; }
    .mbr-hero-slide { background-attachment: scroll; }
    .mbr-hero-stats { gap: 1.5rem; }
    .mbr-section { padding: 50px 0; }
    .mbr-cards { grid-template-columns: 1fr; }
    .mbr-cards-2x2 { grid-template-columns: 1fr; }
    .mbr-about-img img { height: 250px; }
    .mbr-hero-btns { flex-direction: column; }
    .mbr-about-grid { grid-template-columns: 1fr; }
    .mbr-footer-grid { grid-template-columns: 1fr; }
    :root { --zone-card-header-height: 200px; }
    /* Titres sections responsive */
    .mbr-section-head h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
    .mbr-section-head h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
    .mbr-card h3 { font-size: 1rem; }
    .mbr-section-subtitle { font-size: .9rem; }
}

@media (max-width: 575px) {
    .mbr-footer-grid { grid-template-columns: 1fr; }
    .mbr-hero-stats { gap: 1rem; }
    .mbr-hero-stat strong { font-size: 1.4rem; }
}

/* ════════════════════════════════════════════════════════════════════
   SLIDER FULLSCREEN — calqué sur macwin.fr / assistance-informatique-landes.fr
   Structure : .full-screen > .mbr-slider > .carousel-inner >
               .carousel-item.slider-fullscreen-image >
               .container-slide > .image_wrapper > .mbr-overlay + img + .carousel-caption
════════════════════════════════════════════════════════════════════ */

/* Conteneur plein écran */
.full-screen {
    height: 100vh;
    min-height: 500px;
}

/* Le slider hérite de la hauteur */
.mbr-slider,
.mbr-slider .carousel-inner,
.mbr-slider .carousel-item {
    height: 100%;
}

/* Chaque slide — image en background */
.slider-fullscreen-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* container-slide : positionnement absolu plein écran */
.slider-fullscreen-image .container-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* image_wrapper : couvre toute la slide, centre le caption */
.slider-fullscreen-image .image_wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Bootstrap 4 override — forcer width:100% sur toute la chaîne */
.mbr-slider .carousel-item,
.mbr-slider .carousel-inner {
    width: 100%;
}

/* Voile sombre */
.slider-fullscreen-image .mbr-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background-color: #000;
}

/* Caption centré par-dessus le voile */
.slider-fullscreen-image .carousel-caption {
    position: relative;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider-fullscreen-image .carousel-caption .col-10 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

/* Typographie slides */
.slider-fullscreen-image h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: .8rem;
    line-height: 1.2;
}

.slider-fullscreen-image p.lead {
    color: rgba(255,255,255,.88);
    font-size: clamp(.9rem, 2vw, 1.15rem);
    margin-bottom: 1.8rem;
}

/* Badge orange */
.mbr-hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .8rem;
    border-radius: 3px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

/* Contrôles prev/next */
#macwin-hero-slider .carousel-control {
    opacity: .65;
    transition: opacity .2s;
}
#macwin-hero-slider .carousel-control:hover { opacity: 1; }

@media (max-width: 767px) {
    .full-screen { height: 80vh; min-height: 420px; }
}

/* ════════════════════════════════════════════════════════════════════
   PAGES CONTENU — sections alternées (informatique, admin, digital…)
   Structure : .page-section (fond alternant) + .page-section-hero (titre)
════════════════════════════════════════════════════════════════════ */

/* Section titre hero page */
.page-hero {
    /* background-image défini directement en style inline sur chaque .page-hero */
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem 3rem;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--page-hero-overlay-color, rgba(0,30,60,1));
    opacity: var(--page-hero-overlay-opacity, 0.45);
    z-index: 1;
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
}
.page-hero-inner h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: .5rem;
    color: #fff;
}
.page-hero-inner .mbr-label {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--secondary);
    color: #fff;
    opacity: 1;
    margin-bottom: .8rem;
    display: inline-block;
    padding: .25rem .9rem;
    border-radius: 2px;
    font-weight: 600;
}
.page-hero-inner p {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    opacity: .9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections alternées sur les pages intérieures */
.page-section {
    padding: 60px 0;
}
.page-section:nth-of-type(even) {
    background: var(--bg-light);
}
.page-section:nth-of-type(odd) {
    background: var(--bg);
}
body.dark-mode .page-section:nth-of-type(even) {
    background: #585757;
}
body.dark-mode .page-section:nth-of-type(odd) {
    background: #3b3b3b;
}

/* Responsive page sections */
@media (max-width: 767px) {
    .page-hero { min-height: 160px; padding: 3rem 1rem 2rem; }
    .page-section { padding: 40px 0; }
    .page-hero-inner h1 { font-size: 1.5rem; }
    /* Réduction titres pages intérieures */
    .ntraitement h1, .ntraitement h2 { font-size: clamp(1.2rem, 5vw, 1.8rem) !important; }
    .ntraitement h3 { font-size: clamp(1rem, 4vw, 1.3rem) !important; }
    .ntraitement p, .ntraitement li { font-size: .92rem; line-height: 1.65; }
}

/* ════ BANDEAU OS — Systèmes pris en charge ════ */
/* ── Bandeau OS : sobre, neutre, lisible clair ET sombre ─────── */
.mbr-os-banner {
    background: rgba(0,0,0,.06);        /* gris très léger en mode clair */
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 1.6rem 2rem 1.3rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    max-width: 860px;
}
body.dark-mode .mbr-os-banner {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}
.mbr-os-banner-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #888;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}
body.dark-mode .mbr-os-banner-label { color: rgba(255,255,255,.45); }
.mbr-os-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .2rem 2.8rem;
}
.mbr-os-icons span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: .65;
    transition: opacity .2s, transform .18s;
    cursor: default;
}
.mbr-os-icons span:hover { opacity: 1; transform: translateY(-2px); }
.mbr-os-icons span i {
    font-size: 2rem;
    color: #555;                         /* gris neutre en mode clair */
}
body.dark-mode .mbr-os-icons span i { color: rgba(255,255,255,.7); }
.mbr-os-icons span small {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #777;
    text-transform: uppercase;
}
body.dark-mode .mbr-os-icons span small { color: rgba(255,255,255,.5); }
@media (max-width: 576px) {
    .mbr-os-icons { gap: .2rem 1.2rem; }
    .mbr-os-icons span i { font-size: 1.5rem; }
    .mbr-os-banner { padding: 1.2rem 1rem 1rem; }
}



/* ════ BANDEAU OS PLEINE LARGEUR (page formations) ════ */
.mbr-os-fullband {
    background: rgba(0,0,0,.04);
    border-top: 1px solid rgba(0,0,0,.07);
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding: 1.8rem 0 1.4rem;
    text-align: center;
}
body.dark-mode .mbr-os-fullband {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
}
.mbr-os-fullband .mbr-os-banner-label { color: #999; }
body.dark-mode .mbr-os-fullband .mbr-os-banner-label { color: rgba(255,255,255,.4); }
.mbr-os-fullband .mbr-os-icons span i { color: #555; }
body.dark-mode .mbr-os-fullband .mbr-os-icons span i { color: rgba(255,255,255,.65); }
.mbr-os-fullband .mbr-os-icons span small { color: #777; }
body.dark-mode .mbr-os-fullband .mbr-os-icons span small { color: rgba(255,255,255,.45); }
/* ════ CARTES 4 COLONNES (page formations) ════ */


/* ════ SOUS-TITRE après bandeau OS ════ */
.mbr-os-subtitle {
    text-align: center;
    font-size: .9rem;
    color: var(--text-muted, #666);
    margin: .8rem auto 0;
    max-width: 760px;
    padding: 0 1rem;
    line-height: 1.6;
}
body.dark-mode .mbr-os-subtitle { color: rgba(255,255,255,.55); }

.mbr-os-subtitle-block {
    text-align: center;
    padding: 1.2rem 1rem .4rem;
    max-width: 760px;
    margin: 0 auto;
}
.mbr-os-subtitle-block h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    color: var(--primary);
    margin: .4rem 0 .5rem;
}
.mbr-os-subtitle-block p {
    font-size: .9rem;
    color: var(--text-muted, #555);
    margin: 0;
    line-height: 1.6;
}
body.dark-mode .mbr-os-subtitle-block h2 { color: #fff; }
body.dark-mode .mbr-os-subtitle-block p  { color: rgba(255,255,255,.6); }
/* ════ GRILLES STANDARDISÉES ════
   Règle : 6 cartes = 2×3 | 4 cartes = 2×2 | 3 cartes = 1×3
   Jamais pleine largeur sans contrainte max-width
   Toujours responsive clair/sombre
═══════════════════════════════════════════════════════════════ */

/* 6 cartes = 2 rangées × 3 colonnes */
.mbr-cards-3x2 {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 100%;
}
@media (max-width: 900px) {
    .mbr-cards-3x2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .mbr-cards-3x2 { grid-template-columns: 1fr !important; }
}
/* 4 cartes = 2 rangées × 2 colonnes */
.mbr-cards-4col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 576px) {
    .mbr-cards-4col { grid-template-columns: 1fr; }
}
/* ════ ZONE CARDS — 3 boutons contextuels (Informatique / Administratif / Formations) ════ */
.mbr-zone-service-btns {
    display: flex;
    width: 100%;
}
.mbr-zone-svc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .4rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .2s, filter .2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.mbr-zone-svc-btn:hover {
    opacity: .85;
    filter: brightness(1.1);
    text-decoration: none !important;
}
.mbr-zone-svc-btn i {
    font-size: .85rem;
}
/* Variante bleue (Landes) */
.mbr-zone-svc-btn--blue {
    background: var(--primary);
    color: #fff !important;
}
.mbr-zone-svc-btn--blue:hover { color: #fff !important; }
.mbr-zone-svc-btn--blue + .mbr-zone-svc-btn--blue {
    border-left: 1px solid rgba(255,255,255,.2);
}
/* Variante orange (Pays Basque) */
.mbr-zone-svc-btn--orange {
    background: var(--secondary);
    color: #fff !important;
}
.mbr-zone-svc-btn--orange:hover { color: #fff !important; }
.mbr-zone-svc-btn--orange + .mbr-zone-svc-btn--orange {
    border-left: 1px solid rgba(255,255,255,.2);
}

@media (max-width: 480px) {
    .mbr-zone-svc-btn { font-size: .74rem; padding: .55rem .3rem; gap: .25rem; }
    .mbr-zone-svc-btn i { display: none; }
}

/* ════ SECTION DIGITALE — grille 3×2 cartes blanches ════ */
/* Section digitale accueil — 6 cartes = 2 rangées × 3 colonnes */
.mbr-digital-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;                          /* au-dessus de l'overlay de section */
}
.mbr-digital-card {
    background: #ffffff !important;      /* blanc opaque — jamais transparent */
    border-radius: 10px;
    padding: 1.5rem 1.3rem;
    text-decoration: none !important;
    display: block;
    transition: transform .18s, box-shadow .18s;
    color: #333 !important;
    position: relative;
    z-index: 3;
}
.mbr-digital-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    text-decoration: none !important;
}
.mbr-digital-card-icon {
    font-size: 1.5rem;
    color: var(--secondary) !important;
    margin-bottom: .75rem;
    display: block;
}
.mbr-digital-card h4 {
    font-size: .93rem;
    font-weight: 700;
    color: var(--primary) !important;
    margin: 0 0 .45rem;
    line-height: 1.3;
}
.mbr-digital-card p {
    font-size: .82rem;
    color: #444 !important;
    margin: 0;
    line-height: 1.55;
}
/* Dark mode : fond blanc conservé — les cartes restent lisibles sur fond sombre de section */
body.dark-mode .mbr-digital-card { background: #ffffff !important; }
body.dark-mode .mbr-digital-card h4 { color: var(--primary) !important; }
body.dark-mode .mbr-digital-card p  { color: #444 !important; }
@media (max-width: 900px) {
    .mbr-digital-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mbr-digital-grid { grid-template-columns: 1fr; }
}
/* Dark mode — fond sombre légèrement plus clair que le fond de section */
body.dark-mode .mbr-digital-card {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
}
body.dark-mode .mbr-digital-card h4 { color: #fff; }
body.dark-mode .mbr-digital-card p  { color: rgba(255,255,255,.75); }
@media (max-width: 900px) {
    .mbr-digital-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mbr-digital-grid { grid-template-columns: 1fr; }
}

/* 8 cartes = 2 rangées × 4 colonnes */
.mbr-cards-4x2 {
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1024px) {
    .mbr-cards-4x2 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 767px) {
    .mbr-cards-4x2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .mbr-cards-4x2 { grid-template-columns: 1fr !important; }
}
/* ═══════════════════════════════════════════════════════════════
   MACWIN V4 — Section background : overlay + vidéo de fond
   À ajouter à la fin de macwin.css
   @version 1.0.0 — 2026-07-06
═══════════════════════════════════════════════════════════════ */

/* Overlay configurable via custom properties */
section[style*="--section-overlay"] {
    position: relative;
}
section[style*="--section-overlay"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--section-overlay, rgba(0,0,0,0));
    opacity: var(--section-overlay-op, 0);
    z-index: 0;
    pointer-events: none;
}
section[style*="--section-overlay"] > * {
    position: relative;
    z-index: 1;
}

/* Vidéo de fond */
.section-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}
section[data-bg-video]:not([data-bg-video=""]) {
    position: relative;
    overflow: hidden;
}

/* ── Chronologie dark mode — style encarts ── */
body.dark-mode .mbr-timeline-item {
    display: flex;
    gap: 1rem;
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: .5rem;
}
body.dark-mode .mbr-timeline-year {
    min-width: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fcb119;
    flex-shrink: 0;
}
body.dark-mode .apropos-timeline-item {
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: .5rem;
}
body.dark-mode .apropos-timeline-annee { color: #fcb119; font-size: 1.1rem; font-weight: 700; }


/* ═══════════════════════════════════════════════════════════════
   AJOUTS — Grille 2x2 domaines, timeline encarts, espacement
═══════════════════════════════════════════════════════════════ */

/* Grille 2x2 domaines d'intervention */
.mbr-features-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .mbr-features-2x2 { grid-template-columns: 1fr; }
}

/* Espacement entre sections */
.page-section {
    padding: 3.5rem 0;
}

/* Timeline — encarts mode clair avec fond distinct */
.mbr-timeline {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    gap: .6rem;
}
.mbr-timeline-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}
.mbr-timeline-year {
    min-width: 70px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    flex-shrink: 0;
    padding-top: .1rem;
}
.mbr-timeline-content { flex: 1; }
.mbr-timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .4rem;
}
.mbr-timeline-content p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: .6rem;
}

/* Timeline dark-mode — override */
body.dark-mode .mbr-timeline-item {
    background: #2e2e2e !important;
    border-color: #3a3a3a !important;
}
body.dark-mode .mbr-timeline-year { color: #fcb119 !important; }
body.dark-mode .mbr-timeline-content h4 { color: #ffffff !important; }
body.dark-mode .mbr-timeline-content p { color: #a0a0a0 !important; }

.page-hero { background-repeat: no-repeat; }
