/* ================================================
   MDD AIR CARGO — main.css v1.0.0
   ================================================
   SECTION 01 — VARIABLES & RESET
   SECTION 02 — TYPOGRAPHIE
   SECTION 03 — LAYOUT
   SECTION 04 — BOUTONS
   SECTION 05 — TOPBAR
   SECTION 06 — HEADER
   SECTION 07 — NAVIGATION DESKTOP
   SECTION 08 — MENU MOBILE
   SECTION 09 — FOOTER
   SECTION 10 — BOUTON WHATSAPP
   SECTION 11 — PAGE GÉNÉRIQUE
   SECTION 12 — 404
   SECTION 13 — UTILITAIRES
   SECTION 14 — RESPONSIVE
================================================ */

/* ─── 01 VARIABLES & RESET ──────────────────────────────────────────────── */

:root {
    /* Palette principale */
    --bleu-marine:  #1B3A6B;
    --bleu-fonce:   #0F2444;
    --bleu-clair:   #2A5298;
    --orange:       #F7941E;
    --orange-fonce: #D47D10;
    --orange-light: #FFF4E6;

    /* Neutres */
    --blanc:        #FFFFFF;
    --fond-clair:   #F7F8FA;
    --texte:        #222222;
    --gris:         #6B7280;
    --gris-clair:   #E5E7EB;
    --gris-moyen:   #9CA3AF;

    /* Typographie */
    --font-titre: 'Poppins', system-ui, sans-serif;
    --font-corps:  'Inter', system-ui, sans-serif;

    /* Espacement */
    --container:   1240px;
    --gap:         1.5rem;
    --section-pad: 5rem;

    /* Forme */
    --radius:      8px;
    --radius-lg:   16px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm:   0 2px 8px rgba(27,58,107,.08);
    --shadow:      0 4px 24px rgba(27,58,107,.12);
    --shadow-lg:   0 8px 40px rgba(27,58,107,.18);

    /* Transition */
    --ease:        0.3s ease;

    /* Header */
    --topbar-h:    40px;
    --header-h:    76px;
    --header-total: calc(var(--topbar-h) + var(--header-h));
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-corps);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--texte);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-total);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── 02 TYPOGRAPHIE ─────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titre);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bleu-marine);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ─── 03 LAYOUT ──────────────────────────────────────────────────────────── */

.mdd-container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.mdd-section {
    padding-block: var(--section-pad);
}

.mdd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.mdd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.mdd-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.mdd-flex   { display: flex; gap: var(--gap); }
.mdd-flex-center { display: flex; align-items: center; justify-content: center; gap: var(--gap); }

/* ─── 04 BOUTONS ─────────────────────────────────────────────────────────── */

.mdd-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-titre);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
    transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.mdd-btn--primary {
    background: var(--orange);
    color: var(--blanc);
    border-color: var(--orange);
}
.mdd-btn--primary:hover {
    background: var(--orange-fonce);
    border-color: var(--orange-fonce);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247,148,30,.35);
}

.mdd-btn--outline {
    background: transparent;
    color: var(--bleu-marine);
    border-color: var(--bleu-marine);
}
.mdd-btn--outline:hover {
    background: var(--bleu-marine);
    color: var(--blanc);
    transform: translateY(-1px);
}

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

.mdd-btn--sm {
    padding: .55rem 1.25rem;
    font-size: .82rem;
}

/* ─── 05 TOPBAR ──────────────────────────────────────────────────────────── */

.mdd-topbar {
    background: var(--bleu-marine);
    color: rgba(255,255,255,.85);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}

.mdd-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.mdd-topbar__contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mdd-topbar__item {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: rgba(255,255,255,.85);
    transition: color var(--ease);
}
.mdd-topbar__item:hover { color: var(--orange); }
.mdd-topbar__item svg { flex-shrink: 0; fill: rgba(255,255,255,.6); }

.mdd-topbar__right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ─── 06 HEADER ──────────────────────────────────────────────────────────── */

.mdd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--blanc);
}

.mdd-header__main {
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gris-clair);
    transition: box-shadow var(--ease);
}

.mdd-header.is-scrolled .mdd-header__main {
    box-shadow: var(--shadow);
    border-bottom-color: transparent;
}

.mdd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

/* Le header peut s'étendre plus large que le contenu (1240) pour loger
   logo + nav 8 items + switcher + CTA sans déborder sur les grands écrans.
   width:100% est requis car .mdd-header__main est un flex container :
   sans ça, le .mdd-container (item flex) se rétrécit à la largeur de son
   contenu (logo+hamburger) et se centre au lieu de remplir la barre. */
.mdd-header__main > .mdd-container,
.mdd-topbar > .mdd-container {
    max-width: 1400px;
    width: 100%;
}

/* Logo */
.mdd-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mdd-header__logo img {
    height: 50px;
    width: auto;
}

.mdd-header__logo-text {
    font-family: var(--font-titre);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu-marine);
    letter-spacing: -.01em;
}
.mdd-header__logo-text strong {
    color: var(--orange);
}

/* Actions */
.mdd-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mdd-header__cta { display: inline-flex; }

/* Hamburger */
.mdd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--ease);
}
.mdd-hamburger:hover { background: var(--fond-clair); }

.mdd-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bleu-marine);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

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

/* Switcher de langue */
.mdd-lang-switcher {
    display: flex;
    align-items: center;
}
.mdd-lang-switcher__link {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bleu-marine);
    text-decoration: none;
    padding: 4px 6px;
    line-height: 1;
    transition: color var(--ease);
}
.mdd-lang-switcher__link + .mdd-lang-switcher__link::before {
    content: '|';
    display: inline-block;
    margin-right: 6px;
    color: var(--gris-moyen);
    font-weight: 300;
}
.mdd-lang-switcher__link.is-current {
    color: var(--orange);
    font-weight: 700;
}
.mdd-lang-switcher__link:hover:not(.is-current) {
    color: var(--bleu-clair);
}

/* ─── 07 NAVIGATION DESKTOP ──────────────────────────────────────────────── */

.mdd-nav { flex: 1; }

.mdd-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .12rem;
}

.mdd-nav__item { position: relative; }

.mdd-nav__link {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .5rem .55rem;
    font-size: .85rem;
    white-space: nowrap;
    font-weight: 500;
    color: var(--texte);
    border-radius: var(--radius);
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
}
.mdd-nav__link:hover,
.mdd-nav__item.is-active > .mdd-nav__link {
    color: var(--bleu-marine);
    background: var(--fond-clair);
}
.mdd-nav__item.is-active > .mdd-nav__link {
    color: var(--orange);
    font-weight: 600;
}

.mdd-nav__chevron {
    display: flex;
    align-items: center;
    transition: transform var(--ease);
    color: var(--gris-moyen);
}
.mdd-nav__item--has-dropdown:hover .mdd-nav__chevron,
.mdd-nav__item--has-dropdown.is-open .mdd-nav__chevron {
    transform: rotate(180deg);
    color: var(--orange);
}

/* Dropdown */
.mdd-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: var(--bleu-marine);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 100;
    border-top: 3px solid var(--orange);
}

.mdd-nav__item--has-dropdown:hover > .mdd-dropdown,
.mdd-nav__item--has-dropdown:focus-within > .mdd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mdd-dropdown__item { width: 100%; }

.mdd-dropdown__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    border-radius: 5px;
    transition: background var(--ease), color var(--ease), padding-left var(--ease);
}
.mdd-dropdown__link::before {
    content: '›';
    font-size: 1rem;
    color: var(--orange);
    transition: transform var(--ease);
}
.mdd-dropdown__link:hover {
    background: rgba(255,255,255,.1);
    color: var(--blanc);
    padding-left: 1.25rem;
}

/* ─── 08 MENU MOBILE ─────────────────────────────────────────────────────── */

.mdd-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 100vw);
    height: 100vh;
    background: var(--bleu-fonce);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mdd-mobile-menu.is-open {
    transform: translateX(0);
}

.mdd-mobile-menu__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

.mdd-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1.25rem;
}

.mdd-mobile-menu__logo img { height: 38px; width: auto; }
.mdd-mobile-menu__logo .mdd-header__logo-text { color: #fff; font-size: 1rem; }
.mdd-mobile-menu__logo .mdd-header__logo-text strong { color: var(--orange); }

.mdd-mobile-menu__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    border-radius: 50%;
    transition: background var(--ease), color var(--ease);
}
.mdd-mobile-menu__close:hover {
    background: rgba(255,255,255,.1);
    color: var(--blanc);
}
.mdd-mobile-menu__close svg { pointer-events: none; }

.mdd-mobile-nav { flex: 1; }

.mdd-mobile-nav__list { display: flex; flex-direction: column; }

.mdd-mobile-nav__list .menu-item > a {
    display: block;
    padding: .8rem 1rem;
    font-size: .95rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    border-radius: var(--radius);
    transition: background var(--ease), color var(--ease);
}
.mdd-mobile-nav__list .menu-item > a:hover,
.mdd-mobile-nav__list .current-menu-item > a {
    background: rgba(255,255,255,.08);
    color: var(--orange);
}
.mdd-mobile-nav__list .sub-menu {
    padding-left: 1rem;
    border-left: 2px solid rgba(247,148,30,.4);
    margin-left: 1rem;
    margin-bottom: .5rem;
}
.mdd-mobile-nav__list .sub-menu .menu-item > a {
    font-size: .88rem;
    padding: .6rem .75rem;
    color: rgba(255,255,255,.65);
}
.mdd-mobile-nav__list .sub-menu .menu-item > a:hover {
    color: var(--orange);
    background: rgba(255,255,255,.05);
}

.mdd-mobile-menu__footer {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mdd-mobile-menu__footer .mdd-lang-switcher {
    justify-content: center;
}
.mdd-mobile-menu__footer .mdd-lang-switcher__link {
    color: rgba(255,255,255,.75);
}
.mdd-mobile-menu__footer .mdd-lang-switcher__link.is-current {
    color: var(--orange);
}
.mdd-mobile-menu__footer .mdd-lang-switcher__link + .mdd-lang-switcher__link::before {
    color: rgba(255,255,255,.3);
}

/* Overlay */
.mdd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    backdrop-filter: blur(2px);
}
.mdd-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ─── 09 FOOTER ──────────────────────────────────────────────────────────── */

.mdd-footer {
    background: var(--bleu-fonce);
    color: rgba(255,255,255,.75);
    margin-top: auto;
}

.mdd-footer__main {
    padding: 5rem 0 3rem;
}

.mdd-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 3rem;
}

.mdd-footer__col-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--orange);
    margin-bottom: 1.25rem;
    font-family: var(--font-titre);
}

/* Col marque */
.mdd-footer__logo { display: inline-flex; margin-bottom: 1rem; }
.mdd-footer__logo img { height: 44px; width: auto; }
.mdd-footer__logo-text {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}
.mdd-footer__logo-text strong { color: var(--orange); }

.mdd-footer__tagline {
    font-style: italic;
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    margin-bottom: .75rem;
}

.mdd-footer__desc {
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
}

.mdd-footer__email {
    font-size: .85rem;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: opacity var(--ease);
}
.mdd-footer__email:hover { opacity: .75; }

/* Liens */
.mdd-footer__links { display: flex; flex-direction: column; gap: .55rem; }
.mdd-footer__links a {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    transition: color var(--ease), padding-left var(--ease);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.mdd-footer__links a::before {
    content: '›';
    color: var(--orange);
    font-size: 1rem;
}
.mdd-footer__links a:hover {
    color: var(--blanc);
    padding-left: .4rem;
}

/* Implantations */
.mdd-footer__offices { display: flex; flex-direction: column; gap: 1.25rem; }

.mdd-footer__office {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.mdd-footer__office-flag {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.mdd-footer__office-info strong {
    display: block;
    color: var(--blanc);
    font-size: .88rem;
    margin-bottom: .25rem;
}
.mdd-footer__office-info p {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    margin-bottom: .3rem;
    line-height: 1.5;
}
.mdd-footer__office-info a {
    display: block;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    transition: color var(--ease);
    line-height: 1.6;
}
.mdd-footer__office-info a:hover { color: var(--orange); }

/* Bottom bar */
.mdd-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
}

.mdd-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mdd-footer__bottom p {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    margin: 0;
}

.mdd-footer__credit {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
}
.mdd-footer__credit a {
    color: var(--orange);
    transition: opacity var(--ease);
}
.mdd-footer__credit a:hover { opacity: .75; }

/* ─── 10 BOUTON WHATSAPP FLOTTANT ────────────────────────────────────────── */

.mdd-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease);
    animation: mdd-wa-pulse 2.5s ease-in-out infinite;
}

.mdd-wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
    animation: none;
}

.mdd-wa-btn:focus-visible {
    outline: 3px solid #25D366;
    outline-offset: 4px;
}

.mdd-wa-btn__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

@keyframes mdd-wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.12); }
}

/* Popup */
.mdd-wa-popup {
    position: fixed;
    bottom: 7.5rem;
    right: 2rem;
    z-index: 901;
    width: 280px;
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gris-clair);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.97);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    transform-origin: bottom right;
}

.mdd-wa-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mdd-wa-popup__inner {
    padding: 1.25rem;
}

.mdd-wa-popup__title {
    font-family: var(--font-titre);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gris);
    margin-bottom: .9rem;
}

.mdd-wa-popup__list { display: flex; flex-direction: column; gap: .5rem; }

.mdd-wa-popup__office {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    background: var(--fond-clair);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.mdd-wa-popup__office:hover {
    border-color: #25D366;
    background: #f0fff5;
    transform: translateX(3px);
}

.mdd-wa-popup__flag { font-size: 1.5rem; flex-shrink: 0; }

.mdd-wa-popup__office-info { flex: 1; }
.mdd-wa-popup__office-info strong {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--texte);
    font-family: var(--font-titre);
}
.mdd-wa-popup__office-info small {
    font-size: .75rem;
    color: var(--gris);
}

.mdd-wa-popup__arrow { color: #25D366; flex-shrink: 0; }

/* ─── 11A HERO PAGES INTÉRIEURES (base partagée) ─────────────────────────── */

.mdd-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bleu-fonce);
}

.mdd-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mdd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,27,51,.88) 0%, rgba(27,58,107,.75) 60%, rgba(11,27,51,.82) 100%);
}

.mdd-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6rem 0;
    text-align: center;
}

.mdd-hero__eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.25rem;
}

.mdd-hero__h1 {
    font-family: var(--font-titre);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--blanc);
    margin: 0 auto 1.25rem;
    max-width: 820px;
}

.mdd-hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255,255,255,.72);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Modificateur pages intérieures (À propos, Import-Export, etc.) — hero plus court */
.mdd-hero--inner { min-height: 55vh; }
.mdd-hero--inner .mdd-hero__content { padding: 5rem 0 4rem; }

/* ─── 11B COMPOSANTS PARTAGÉS (titres de section, wysiwyg) ───────────────── */

.mdd-section-title {
    font-family: var(--font-titre);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--bleu-marine);
    margin-bottom: .75rem;
}
.mdd-section-title--light { color: var(--blanc); }
.mdd-section-title--left  { text-align: left; }

.mdd-section-line {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}
.mdd-section-line--left { display: block; margin-bottom: 1.5rem; }

.mdd-wysiwyg {
    font-size: .97rem;
    line-height: 1.78;
    color: var(--texte);
}
.mdd-wysiwyg p { margin-bottom: 1.1rem; }
.mdd-wysiwyg p:last-child { margin-bottom: 0; }
.mdd-wysiwyg strong { color: var(--bleu-marine); font-weight: 600; }
.mdd-wysiwyg ul, .mdd-wysiwyg ol { padding-left: 1.5rem; margin-bottom: 1.1rem; list-style: disc; }
.mdd-wysiwyg li { margin-bottom: .4rem; }
.mdd-wysiwyg a { color: var(--orange); text-decoration: underline; }
.mdd-wysiwyg h3 { font-size: 1.15rem; font-weight: 700; color: var(--bleu-marine); margin: 1.5rem 0 .6rem; }

.mdd-btn--lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* ─── 11 PAGE GÉNÉRIQUE ──────────────────────────────────────────────────── */

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

.mdd-page-content {
    padding-block: 4rem;
    max-width: 860px;
}

.mdd-page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--bleu-marine);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}

.mdd-entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3a3a3a;
}
.mdd-entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.mdd-entry-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.mdd-entry-content p  { margin-bottom: 1.25rem; }
.mdd-entry-content ul, .mdd-entry-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.mdd-entry-content li { margin-bottom: .5rem; }
.mdd-entry-content a  { color: var(--orange); text-decoration: underline; }

/* ─── 12 404 ──────────────────────────────────────────────────────────────── */

.mdd-404-section { background: var(--fond-clair); }

.mdd-404-number {
    font-family: var(--font-titre);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    color: var(--bleu-marine);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: .12;
    user-select: none;
}

.mdd-404-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.mdd-404-text {
    font-size: 1.05rem;
    color: var(--gris);
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-inline: auto;
}

/* ─── 13 UTILITAIRES ─────────────────────────────────────────────────────── */

.mdd-text-center  { text-align: center; }
.mdd-text-orange  { color: var(--orange); }
.mdd-text-bleu    { color: var(--bleu-marine); }
.mdd-text-blanc   { color: var(--blanc); }
.mdd-text-gris    { color: var(--gris); }

.mdd-bg-bleu      { background: var(--bleu-marine); }
.mdd-bg-fonce     { background: var(--bleu-fonce); }
.mdd-bg-clair     { background: var(--fond-clair); }
.mdd-bg-orange    { background: var(--orange); }

.mdd-mt-1 { margin-top: 1rem; }
.mdd-mt-2 { margin-top: 2rem; }
.mdd-mt-3 { margin-top: 3rem; }
.mdd-mb-1 { margin-bottom: 1rem; }
.mdd-mb-2 { margin-bottom: 2rem; }
.mdd-mb-3 { margin-bottom: 3rem; }

.mdd-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* Séparateur décoratif */
.mdd-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--bleu-marine));
    border-radius: 2px;
    margin: 1rem auto 2rem;
}
.mdd-divider--left { margin-left: 0; }

/* Chevron décoratif (marque graphique MDD) */
.mdd-chevron {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    margin-right: .5rem;
}
.mdd-chevron::before,
.mdd-chevron::after {
    content: '';
    display: block;
    width: 8px;
    height: 14px;
    clip-path: polygon(0 0, 60% 50%, 0 100%);
}
.mdd-chevron::before { background: var(--bleu-marine); }
.mdd-chevron::after  { background: var(--orange); }

/* ─── 14 RESPONSIVE ──────────────────────────────────────────────────────── */

/* Compactage progressif de la nav desktop pour garder le menu complet
   le plus longtemps possible (jusqu'à ~120% de zoom) avant le hamburger. */
@media (max-width: 1400px) {
    .mdd-header__inner { gap: .75rem; }
    .mdd-nav__link { padding: .45rem .42rem; font-size: .82rem; }
}
@media (max-width: 1240px) {
    .mdd-nav__link { padding: .4rem .34rem; font-size: .8rem; gap: .12rem; }
    .mdd-nav__list { gap: 0; }
    .mdd-nav__chevron svg { width: 12px; height: 12px; }
    .mdd-header__cta { padding: .55rem .9rem; font-size: .8rem; }
    .mdd-lang-switcher { font-size: .82rem; }
    .mdd-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Bascule menu hamburger → 1080px seulement
   (au-delà, la nav complète 8 items + logo + switcher + CTA tient). */
@media (max-width: 1080px) {
    :root { --header-h: 68px; }

    .mdd-nav { display: none; }
    .mdd-header__cta { display: none; }
    .mdd-header__actions .mdd-lang-switcher { display: none; }
    .mdd-hamburger { display: flex; }

    .mdd-topbar__contacts { display: none; }

    body { padding-top: calc(var(--topbar-h) + var(--header-h)); }
}

/* Mobile → 768px */
@media (max-width: 768px) {
    :root {
        --topbar-h: 0px;
        --header-h: 64px;
        --section-pad: 3.5rem;
    }

    .mdd-topbar { display: none; }

    body { padding-top: var(--header-h); }

    .mdd-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .mdd-footer__main { padding: 3rem 0 2rem; }

    .mdd-wa-btn   { bottom: 1.5rem; right: 1.5rem; }
    .mdd-wa-popup { right: 1.5rem; bottom: 6.5rem; width: calc(100vw - 3rem); }
}

/* Mobile petit → 480px */
@media (max-width: 480px) {
    :root { --header-h: 60px; }

    .mdd-container { padding-inline: 1rem; }

    .mdd-grid-2,
    .mdd-grid-3,
    .mdd-grid-4 { grid-template-columns: 1fr; }

    .mdd-btn { padding: .7rem 1.4rem; font-size: .85rem; }

    .mdd-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ── Formulaires génériques (.mdd-form) — Carrières, Contact ────────────── */
.mdd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mdd-form__field { display: block; margin-bottom: 1rem; }
.mdd-form__field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--bleu-marine); }
.mdd-car-form .mdd-form__field > span { color: rgba(255,255,255,.9); }
.mdd-form input, .mdd-form textarea, .mdd-form select {
    width: 100%; padding: .8rem 1rem;
    border: 1px solid var(--gris-clair); border-radius: var(--radius);
    font-family: var(--font-corps); font-size: .95rem; color: var(--texte);
    background: var(--blanc); transition: border-color var(--ease), box-shadow var(--ease);
}
.mdd-form input:focus, .mdd-form textarea:focus, .mdd-form select:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,148,30,.15);
}
.mdd-form textarea { resize: vertical; }
.mdd-form input[type="file"] { padding: .55rem; background: var(--fond-clair); cursor: pointer; }
.mdd-form button[type="submit"] { margin-top: .5rem; }
.mdd-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.mdd-alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.mdd-alert--ok  { background: #e7f6ec; color: #1a7f43; border: 1px solid #b7e4c7; }
.mdd-alert--err { background: #fdecec; color: #b02a2a; border: 1px solid #f5c2c2; }

@media (max-width: 600px) { .mdd-form__row { grid-template-columns: 1fr; } }
