/* ONMB — page d'accueil (novembre 2026), d'après la maquette du Président.
   Tout est préfixé « onmb- » et limité à .onmb-home pour ne pas heurter le thème (style.css / Bootstrap).
   Jetons de couleurs : onmb-base.css. */

/* ---------------------------------------------------------------
   PHOTO DU HERO : public/assets/img/hero/medecins-onmb.webp (1672×941).
   Pour la changer, remplacer ce fichier (ou le chemin ci-dessous). Si la variable vaut « none »,
   l'illustration SVG (croix + pouls + silhouettes) s'affiche à la place.
   --------------------------------------------------------------- */
.onmb-home {
    --onmb-hero-photo: url('/assets/img/hero/medecins-onmb.webp');
    --onmb-teal-dark: #0c6b62;
    display: block;
    overflow-x: clip;
    font-family: var(--onmb-font);
    color: var(--onmb-text);
}
.onmb-home *, .onmb-home *::before, .onmb-home *::after { box-sizing: border-box; }

/* Remise à zéro locale des règles globales du thème (h1-h6, p, ul, a, img, svg) */
.onmb-home h1, .onmb-home h2, .onmb-home h3, .onmb-home p, .onmb-home ul {
    margin: 0; padding: 0; font-family: var(--onmb-font); text-transform: none;
}
.onmb-home h1, .onmb-home h2, .onmb-home h3 { color: var(--onmb-navy); font-weight: 800; text-wrap: balance; }
.onmb-home p { color: var(--onmb-text); line-height: 1.5; }
.onmb-home ul { list-style: none; }
.onmb-home img, .onmb-home svg { max-width: 100%; }
.onmb-home a { transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
.onmb-home a:focus-visible, .onmb-home button:focus-visible {
    outline: 3px solid rgba(19, 137, 125, .55); outline-offset: 2px;
}
.onmb-home .onmb-ico { width: 1em; height: 1em; flex: none; display: block; }
.onmb-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Boutons : tailles et variantes propres à l'accueil */
.onmb-home .onmb-btn { font-family: var(--onmb-font); }
.onmb-home .onmb-btn--lg { padding: 13px 22px; font-size: 16px; }
.onmb-home .onmb-btn--block { display: flex; width: 100%; padding: 11px 16px; font-size: 15.5px; }
.onmb-home .onmb-btn--solid-red, .onmb-home .onmb-btn--solid-red:hover, .onmb-home .onmb-btn--solid-red:focus { color: #fff; }
.onmb-home .onmb-btn--outline-navy { color: var(--onmb-navy); border-color: var(--onmb-navy); }
.onmb-home .onmb-btn--outline-navy:hover { background: var(--onmb-navy); color: #fff; }
.onmb-home .onmb-btn .onmb-ico { width: 18px; height: 18px; }

/* Lien avec flèche (« Payer ma cotisation → », « Toutes les actualités → ») */
.onmb-home .onmb-link-arrow {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    color: var(--onmb-navy); font-weight: 700; font-size: 16.5px; text-decoration: none;
}
.onmb-home .onmb-link-arrow .onmb-ico { width: 19px; height: 19px; transition: transform .2s ease; }
.onmb-home .onmb-link-arrow:hover { color: var(--onmb-red); }
.onmb-home .onmb-link-arrow:hover .onmb-ico { transform: translateX(3px); }
.onmb-home .onmb-link-arrow--sm { margin-top: 0; font-size: 15.5px; white-space: nowrap; }

/* ============================ 1) HERO ============================ */
.onmb-hero { position: relative; overflow: hidden; background: #fff; min-height: 380px; display: flex; align-items: center; }
.onmb-hero__media {
    position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
            mask-image: linear-gradient(to right, transparent 0, #000 26%);
}
.onmb-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; overflow: visible; }
.onmb-hero__photo { position: absolute; inset: 0; background-image: var(--onmb-hero-photo); background-size: cover; background-position: 65% center; background-repeat: no-repeat; filter: saturate(.88); }
/* Léger voile bleu nuit : adoucit les couleurs vives de la photo et la relie à l'identité du site */
.onmb-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 13, 68, .2), rgba(12, 107, 98, .15)); }
.onmb-hero__inner { position: relative; z-index: 1; padding-block: 36px 40px; }
.onmb-hero__copy { max-width: 560px; }
.onmb-pill {
    display: inline-block; padding: 8px 14px; border-radius: 8px;
    background: var(--onmb-mint); color: var(--onmb-teal-dark);
    font: 800 13px/1 var(--onmb-font); letter-spacing: .09em; text-transform: uppercase;
}
.onmb-home .onmb-hero__title {
    margin: 16px 0 14px; font-size: clamp(30px, 4.1vw, 54px); line-height: 1.07; letter-spacing: -.02em; color: var(--onmb-navy);
}
.onmb-home .onmb-hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; max-width: 470px; color: var(--onmb-text); }
.onmb-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ============================ corps ============================ */
.onmb-home__body { padding-top: 22px; padding-bottom: 56px; }
.onmb-home .onmb-card {
    background: #fff; border: 1px solid var(--onmb-line); border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 29, 104, .07);
}
.onmb-icobox {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
    background: var(--onmb-mint); color: var(--onmb-teal); font-size: 22px;
}
.onmb-icobox--lg { width: 56px; height: 56px; border-radius: 14px; font-size: 30px; }

/* ===================== 2) cartes-outils ===================== */
.onmb-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.onmb-tool { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.onmb-tool__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.onmb-home .onmb-tool__title { font-size: 18.5px; line-height: 1.2; font-weight: 800; color: var(--onmb-navy); margin: 0; }
.onmb-home .onmb-tool__title--lg { font-size: 21px; }
.onmb-tool__form { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.onmb-home .onmb-tool__text { font-size: 15px; line-height: 1.45; color: var(--onmb-text); margin-bottom: 4px; }

.onmb-home .onmb-field {
    display: block; width: 100%; height: 44px; padding: 0 14px; margin: 0;
    border: 1px solid #cdd6e2; border-radius: 8px; background-color: #fff;
    font: 500 15px/1.2 var(--onmb-font); color: var(--onmb-text); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.onmb-home .onmb-field::placeholder { color: #66748d; opacity: 1; }
.onmb-home .onmb-field:hover { border-color: #9fb0c6; }
.onmb-home .onmb-field:focus, .onmb-home .onmb-field:focus-visible {
    outline: 0; background-color: #fff; border-color: var(--onmb-teal); box-shadow: 0 0 0 3px rgba(19, 137, 125, .25);
}
.onmb-home .onmb-field--select {
    -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23132950' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px;
}
.onmb-home .onmb-field--select:invalid { color: #66748d; }
.onmb-home .onmb-field--select option { color: var(--onmb-text); }
.onmb-home input[type="search"].onmb-field::-webkit-search-cancel-button { cursor: pointer; }

/* ============ sections : titres (3 et 4) ============ */
.onmb-section { margin-top: 30px; }
.onmb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.onmb-home .onmb-section__title { font-size: clamp(25px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.015em; color: var(--onmb-night); margin: 0 0 14px; }

/* ================= 3) Un espace pour chacun ================= */
.onmb-audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.onmb-home a.onmb-aud {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--onmb-text); text-decoration: none;
}
.onmb-home a.onmb-aud:hover { color: var(--onmb-text); transform: translateY(-2px); border-color: #b9d9d4; box-shadow: var(--onmb-shadow); }
.onmb-aud__body { display: block; min-width: 0; }
.onmb-aud__title { display: block; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--onmb-navy); margin-bottom: 4px; }
.onmb-aud__text { display: block; font-size: 14.5px; line-height: 1.42; color: var(--onmb-text); }

/* ===================== 4) Actualités ===================== */
.onmb-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.onmb-news__card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.onmb-news__card:hover { transform: translateY(-2px); box-shadow: var(--onmb-shadow); }
.onmb-home a.onmb-news__link { display: block; height: 100%; color: var(--onmb-text); text-decoration: none; }
.onmb-news__img { display: block; position: relative; aspect-ratio: 2 / 1; background: var(--onmb-mint); overflow: hidden; }
.onmb-news__img img, .onmb-news__ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.onmb-news__body { display: block; padding: 14px 18px 16px; }
.onmb-news__title {
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 18.5px; line-height: 1.25; font-weight: 800; color: var(--onmb-night); text-wrap: balance; min-height: 2.5em;
}
.onmb-home a.onmb-news__link:hover .onmb-news__title { color: var(--onmb-red); }
.onmb-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 15px; color: var(--onmb-muted); font-weight: 500; }
.onmb-news__date { display: inline-flex; align-items: center; gap: 8px; }
.onmb-news__date .onmb-ico { width: 20px; height: 20px; color: var(--onmb-red); }
.onmb-news__cat { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--onmb-mint); color: var(--onmb-teal-dark); font-size: 12.5px; font-weight: 700; }
.onmb-home .onmb-empty { padding: 22px; border: 1px dashed var(--onmb-line); border-radius: 14px; color: var(--onmb-muted); text-align: center; }

/* ============ 5) Nos engagements, nos réalisations ============ */
.onmb-band {
    margin-top: 32px; padding: 22px 30px 24px; border-radius: 20px; border: 1px solid rgba(19, 137, 125, .12);
    background: linear-gradient(120deg, var(--onmb-mint) 0%, var(--onmb-mint-2) 100%);
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.75fr); gap: 24px; align-items: center;
}
.onmb-home .onmb-band__title { font-size: clamp(25px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.015em; color: var(--onmb-night); margin: 0 0 10px; }
.onmb-home .onmb-band__text { font-size: 16.5px; color: var(--onmb-night); }
.onmb-band__side { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-left: 24px; border-left: 1px solid rgba(19, 41, 80, .15); }
.onmb-pictos { display: flex; width: 100%; justify-content: space-between; }
.onmb-pictos li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 8px; text-align: center; color: var(--onmb-navy); font-size: 30px; }
.onmb-pictos li + li { border-left: 1px solid rgba(19, 41, 80, .18); }
.onmb-pictos li span { font-size: 15.5px; line-height: 1.15; font-weight: 800; color: var(--onmb-night); }
.onmb-home .onmb-band__cta { min-width: 300px; }

/* ================ 6) Déontologie et contacts ================ */
.onmb-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.onmb-duo__card { padding: 18px 24px 22px; display: flex; flex-direction: column; }
.onmb-duo__card .onmb-tool__head { margin-bottom: 12px; }
.onmb-links { padding: 0 8px 0 4px; }
.onmb-links li { border-bottom: 1px solid var(--onmb-line); }
.onmb-links li:last-child { border-bottom: 0; }
.onmb-home .onmb-links a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--onmb-navy); font-weight: 600; font-size: 16px; text-decoration: none; }
.onmb-home .onmb-links a:hover { color: var(--onmb-red); }
.onmb-home .onmb-links a .onmb-ico { width: 18px; height: 18px; color: var(--onmb-red); }
.onmb-duo__card--contact { align-items: flex-start; }
.onmb-duo__card--contact .onmb-tool__text { font-size: 16px; margin: 0 0 16px; max-width: 520px; }
.onmb-duo__card--contact .onmb-btn { align-self: center; margin-top: auto; min-width: 220px; }

/* =========================== Responsive =========================== */
@media (max-width: 1100px) {
    .onmb-hero__media { width: 62%; }
    .onmb-band { padding: 22px 22px 24px; }
    .onmb-band__side { padding-left: 18px; }
    .onmb-pictos li { padding-inline: 4px; font-size: 28px; }
    .onmb-pictos li span { font-size: 14px; }
    .onmb-news__title, .onmb-home .onmb-tool__title { font-size: 17px; }
}

@media (max-width: 991.98px) {
    /* Hero : texte puis visuel dessous */
    .onmb-hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
    .onmb-hero__media { position: relative; width: 100%; height: clamp(200px, 52vw, 380px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
    .onmb-hero__photo { background-position: 50% 22%; }
    .onmb-hero__inner { padding-block: 28px 8px; }
    .onmb-hero__copy { max-width: 640px; }

    .onmb-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onmb-tools > :last-child { grid-column: 1 / -1; }
    .onmb-audience { grid-template-columns: 1fr; gap: 14px; }

    .onmb-band { grid-template-columns: 1fr; gap: 18px; }
    .onmb-band__side { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid rgba(19, 41, 80, .15); }
}

@media (max-width: 767.98px) {
    .onmb-news { grid-template-columns: 1fr; gap: 16px; }
    .onmb-duo { grid-template-columns: 1fr; gap: 16px; }
    .onmb-news__title { min-height: 0; }
}

@media (max-width: 639.98px) {
    .onmb-tools { grid-template-columns: 1fr; gap: 14px; }
    .onmb-hero__actions { flex-direction: column; align-items: stretch; }
    .onmb-hero__actions .onmb-btn { white-space: normal; text-align: center; }
    .onmb-section__head { align-items: center; flex-wrap: wrap; row-gap: 0; }
    .onmb-home .onmb-link-arrow--sm { font-size: 14.5px; margin-bottom: 14px; }
    .onmb-band { padding: 20px 18px 22px; border-radius: 16px; }
    .onmb-pictos { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
    .onmb-pictos li { flex: 0 0 33.33%; }
    .onmb-pictos li + li { border-left: 0; }
    .onmb-home .onmb-band__cta { min-width: 0; width: 100%; white-space: normal; text-align: center; }
    .onmb-duo__card { padding: 16px 18px 20px; }
    .onmb-duo__card--contact .onmb-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .onmb-home *, .onmb-home *::before, .onmb-home *::after { transition: none !important; animation: none !important; }
}

/* Titre du hero : 3 lignes comme la maquette, plus compact pour faire remonter les cartes */
.onmb-home .onmb-hero__title { font-size: clamp(31px, 3.7vw, 50px); line-height: 1.1; margin: 14px 0 12px; }
.onmb-hero { min-height: 330px; }
.onmb-hero__inner { padding-block: 26px 30px; }
.onmb-home .onmb-hero__lead { font-size: clamp(15px, 1.25vw, 17px); }
.onmb-hero__actions { margin-top: 18px; }
@media (max-width: 575.98px) { .onmb-br { display: none; } }

/* Pastille « Plateforme officielle » : point animé (signal « en ligne ») */
.onmb-pill { display: inline-flex; align-items: center; gap: 9px; }
.onmb-pill__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--onmb-teal); flex: none; }
.onmb-pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--onmb-teal); animation: onmb-pulse 1.8s ease-out infinite; }
@keyframes onmb-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .onmb-pill__dot::after { animation: none; } }
