/* HumanitaireHub — charte « Hub clarifié » (option A, 3.34.0)
 * S'applique aux pages du nouveau modèle (classe .hh-modele sur <body> : pages [hh_liste] et [hh_accueil],
 * ou tout le site avec le réglage hh_modele_global = oui).
 * Règles : un seul en-tête teal foncé ; une seule police (Inter) ; l'or des produits = couleur des boutons d'action ;
 * le rouge = urgence seulement ; « Nouveau » en menthe (couleur du logo) ; contrastes ≥ 4,5:1.
 */
body.hh-modele {
    --hh-entete: #0a4a5c;
    --hh-cta: #F5B83D;
    --hh-cta-text: #1f2937;
    --hh-menthe: #2DD4BF;
    --hh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hh-bg: #f4f8fa;
    background: #f4f8fa;
}

/* ── Une seule police ── */
body.hh-modele,
body.hh-modele button,
body.hh-modele input,
body.hh-modele select,
body.hh-modele textarea,
body.hh-modele .header-navigation a,
body.hh-modele .mobile-navigation a,
body.hh-modele h1, body.hh-modele h2, body.hh-modele h3, body.hh-modele h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ── En-tête unique (ordinateur et téléphone) ── */
body.hh-modele #masthead,
body.hh-modele #masthead .site-header-row-container-inner,
body.hh-modele #masthead .site-main-header-wrap,
body.hh-modele #masthead .site-mobile-header-wrap .site-header-row-container-inner {
    background: var(--hh-entete) !important;
}
body.hh-modele #masthead { box-shadow: 0 2px 14px rgba(5, 40, 52, .28); }

/* ── Menu : texte clair sur l'en-tête, sans boîtes sombres ── */
body.hh-modele .header-navigation .header-menu-container ul li.menu-item > a,
body.hh-modele .header-navigation ul li.menu-item > a {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    font-size: .98rem;
    padding: .6em .9em;
    border-radius: 8px;
    transition: background .15s ease;
}
body.hh-modele .header-navigation .header-menu-container ul li.menu-item > a:hover,
body.hh-modele .header-navigation ul li.menu-item.current-menu-item > a {
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}
body.hh-modele .header-navigation ul ul.sub-menu { background: #0b3b4a; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
body.hh-modele .header-navigation ul ul li.menu-item > a { border-radius: 0; }
body.hh-modele .menu-toggle-open, body.hh-modele .menu-toggle-open .menu-toggle-icon { color: #fff; }

/* ── Logo plus lisible ── */
body.hh-modele .site-branding img.custom-logo { height: 52px; width: auto; max-width: none; }
@media (max-width: 760px) { body.hh-modele .site-branding img.custom-logo { height: 44px; } }

/* ── Plus de bandeau gris avec le titre de page, ni de cadre blanc autour du contenu ── */
body.hh-modele .entry-hero.page-hero-section { display: none; }
body.hh-modele .content-wrap { margin-top: 0; }
body.hh-modele .content-container.site-container { max-width: 1280px; }
body.hh-modele .entry.content-bg,
body.hh-modele .entry.single-entry { background: transparent; box-shadow: none; border-radius: 0; }
body.hh-modele .entry-content-wrap { padding: 8px 0 0; }
body.hh-modele .content-area { margin-top: 0; margin-bottom: 0; }

/* ── Ruban « Nouveau » des cartes : menthe (le rouge est réservé à l'urgence) ── */
body.hh-modele .hh-card--new::before { background: var(--hh-menthe); color: #073b3a; }

/* ── Bandeau « Ils nous font confiance » : chaque logo sur une tuile blanche lisible ── */
body.hh-modele .hh-trust-logo {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px;
    display: flex; align-items: center; justify-content: center; min-width: 140px; height: 68px;
}
body.hh-modele .hh-trust-logo img { max-height: 46px; width: auto; max-width: 112px; object-fit: contain; }
body.hh-modele .hh-trust-block__sub { color: #64748B; }

/* ── Boutons d'action : or (texte sombre, contraste 9:1) ── */
body.hh-modele .hh-promo-card__btn, body.hh-modele .hh-card__cta-btn { font-family: inherit; }

/* ── Emplacements sponsorisés ── */
.hh-slot { position: relative; margin: 24px 0; }
.hh-slot__label { position: absolute; top: 9px; left: 11px; z-index: 2; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(15,23,42,.74); color: #fff; padding: 3px 9px; border-radius: 999px; }
.hh-slot--banniere .hh-slot__visuel { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--hh-border, #E2E8F0); }
.hh-slot--banniere .hh-slot__visuel img { display: block; width: 100%; height: auto; }
.hh-slot--libre { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border: 2px dashed #CBD5E1; border-radius: 14px; background: #fff; }
.hh-slot--libre strong { display: block; font-size: 1.02rem; color: var(--hh-text, #1E293B); }
.hh-slot--libre span { display: block; margin-top: 2px; font-size: .88rem; color: var(--hh-text-light, #64748B); }
.hh-slot--libre .hh-ac-bouton { flex: none; }
.hh-slot--partenaires { padding: 34px 18px 16px; border: 1px solid var(--hh-border, #E2E8F0); border-radius: 14px; background: #fff; }
.hh-slot__logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hh-slot__logos .hh-slot__visuel { display: flex; align-items: center; justify-content: center; width: 170px; height: 80px; padding: 8px 14px; border: 1px solid var(--hh-border, #E2E8F0); border-radius: 12px; background: #fff; }
.hh-slot__logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 620px) { .hh-slot--libre { flex-direction: column; align-items: flex-start; padding: 14px 16px; } }
.hh-slot .hh-ac-bouton { display: inline-block; flex: none; padding: 11px 20px; border-radius: 999px; background: var(--hh-cta); color: var(--hh-cta-text); font-weight: 700; font-size: .92rem; text-decoration: none; border: 0; }
.hh-slot .hh-ac-bouton:hover { filter: brightness(.95); color: var(--hh-cta-text); }

/* ── Page « Annoncer » ── */
.hh-annoncer { max-width: 1100px; margin: 0 auto; padding: 8px 0 40px; color: #1E293B; }
.hh-annoncer h2 { font-size: 1.5rem; margin: 36px 0 16px; }
.hh-an-hero { padding: 40px 36px; border-radius: 18px; color: #fff; background: linear-gradient(150deg, #0E7490 0%, #0a4a5c 100%); }
.hh-an-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; max-width: 760px; }
.hh-an-hero p { margin: 0 0 22px; max-width: 700px; font-size: 1.05rem; opacity: .95; }
.hh-an-btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--hh-cta, #F5B83D); color: var(--hh-cta-text, #1f2937) !important; font-weight: 700; text-decoration: none; }
.hh-an-btn:hover { filter: brightness(.95); }
.hh-an-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.hh-an-chiffres div { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px; text-align: center; }
.hh-an-chiffres strong { display: block; font-size: 1.7rem; color: #0E7490; }
.hh-an-chiffres span { font-size: .9rem; color: #64748B; }
.hh-an-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hh-an-carte { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.hh-an-carte h3 { margin: 0; font-size: 1.15rem; color: #0a4a5c; }
.hh-an-carte p { margin: 0; color: #334155; font-size: .96rem; flex: 1; }
.hh-an-pour { font-size: .82rem; color: #64748B; font-weight: 600; }
.hh-an-comment ol { padding-left: 22px; display: grid; gap: 8px; }
.hh-an-fin { margin-top: 32px; padding: 30px; border-radius: 16px; background: #fff; border: 2px dashed #CBD5E1; text-align: center; }
.hh-an-fin h2 { margin-top: 0; }
@media (max-width: 860px) { .hh-an-chiffres { grid-template-columns: repeat(2, 1fr); } .hh-an-grille { grid-template-columns: 1fr; } .hh-an-hero { padding: 28px 20px; } }

/* ── Pied de page : même famille de teintes que l'en-tête ── */
body.hh-modele .hh-footer, body.hh-modele .hh-footer-inject .hh-footer { background: #0a3140; margin-top: 48px; }
body.hh-modele .hh-footer__top { border-bottom-color: rgba(255,255,255,.1); }

/* ── Connexion / inscription / compte : boutons unis (plus de dégradé vers le bleu), case « se souvenir » alignée ── */
body.hh-modele .hh-auth__submit { background: #0E7490; box-shadow: none; }
body.hh-modele .hh-auth__submit:hover { background: #0B5D73; }
body.hh-modele .hh-auth__checkbox-single { display: flex; align-items: center; gap: 8px; margin: 0; }
body.hh-modele .hh-auth__checkbox-single input { margin: 0; }

/* ── Page « Offres en anglais » (récapitulatif hebdomadaire) ── */
body.hh-modele .hh-recap { max-width: 1000px; margin: 0 auto; padding: 8px 0 40px; color: #1E293B; }
body.hh-modele .hh-recap__tete { padding: 22px 0 6px; border-bottom: 3px solid #0a4a5c; margin-bottom: 18px; }
body.hh-modele .hh-recap__sur { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #0f7a8c; margin-bottom: 4px; }
body.hh-modele .hh-recap h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); color: #0a4a5c; }
body.hh-modele .hh-recap-anglais { max-width: none !important; }
body.hh-modele .hh-recap-anglais > p { font-size: 16px; line-height: 1.6; color: #475569; margin: 0 0 22px; }
body.hh-modele .hh-recap h2 { margin: 30px 0 12px; padding-bottom: 8px; font-size: 22px; color: #0a4a5c; border-bottom: 1px solid #e2e8f0; }
body.hh-modele .hh-recap ul { margin: 0; padding: 0; list-style: none; }
body.hh-modele .hh-recap li { padding: 12px 14px; margin: 0 0 8px !important; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #64748b; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
body.hh-modele .hh-recap li:hover { border-color: #0f7a8c; box-shadow: 0 2px 10px rgba(10, 74, 92, .08); }
body.hh-modele .hh-recap li a { display: block; font-size: 16px; font-weight: 600; color: #0a4a5c; text-decoration: none; margin-bottom: 2px; }
body.hh-modele .hh-recap li a:hover { color: #0f7a8c; text-decoration: underline; }
body.hh-modele .hh-recap li strong { color: #0f7a8c; }

/* ── Menu mobile (plugin Responsive Menu) : la flèche de dépliage du plugin fait 5 px et reste invisible,
      les sous-menus sont donc affichés directement, en retrait sous leur parent. ── */
#rmp-menu-738 .rmp-menu-subarrow { display: none !important; }
#rmp-menu-738 .rmp-submenu,
#rmp-menu-738 .rmp-submenu.rmp-submenu-open { display: block !important; position: static !important; max-height: none !important; height: auto !important; opacity: 1 !important; visibility: visible !important; }
#rmp-menu-738 .rmp-submenu .rmp-menu-item-link { padding-left: 38px !important; font-size: 15px; opacity: .92; position: relative; }
#rmp-menu-738 .rmp-submenu .rmp-menu-item-link::before { content: "↳"; position: absolute; left: 20px; opacity: .7; }

/* ── Fiches des organisations et annuaire ── */
.hh-org, .hh-orgs { max-width: 1000px; margin: 0 auto; padding: 8px 0 48px; color: #1E293B; }
.hh-org__fil { font-size: 13px; color: #64748b; margin: 6px 0 14px; }
.hh-org__fil a { color: #0f7a8c; text-decoration: none; }
.hh-org__fil a:hover { text-decoration: underline; }
.hh-org__tete { display: flex; gap: 22px; align-items: center; padding: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(10,74,92,.06); }
.hh-org__logo { flex: 0 0 auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.hh-org__logo img { max-width: 82%; max-height: 82%; object-fit: contain; }
.hh-org__logo--grand { width: 104px; height: 104px; border-radius: 16px; }
.hh-org__logo--initiale { background: #e6f2f4; color: #0a4a5c; font-weight: 700; font-size: 22px; }
.hh-org__logo--grand.hh-org__logo--initiale { font-size: 40px; }
.hh-org__id h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; color: #0a4a5c; }
.hh-org__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.hh-org__chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #eef2f6; font-size: 13px; color: #475569; }
.hh-org__chip--n { background: #e0f4ee; color: #0b6b55; font-weight: 600; }
.hh-org__site { margin: 0; font-size: 14px; }
.hh-org__site a { color: #0f7a8c; font-weight: 600; text-decoration: none; }
.hh-org__texte { margin: 22px 0 0; padding: 0 4px; }
.hh-org__texte h2, .hh-org__bloc h2 { margin: 0 0 10px; font-size: 21px; color: #0a4a5c; }
.hh-org__texte p { margin: 0; max-width: 72ch; font-size: 16px; line-height: 1.65; color: #334155; }
.hh-org__bloc { margin-top: 30px; }
.hh-org__vide { padding: 18px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; color: #475569; margin: 0; }
.hh-org__plus { margin: 16px 0 0; text-align: center; }
.hh-org__avis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hh-org__avis li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.hh-org__avis a { font-weight: 600; color: #0a4a5c; text-decoration: none; }
.hh-org__avis span { font-size: 13px; color: #64748b; }
.hh-org__cta { margin-top: 34px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 22px; background: #0a4a5c; color: #fff; border-radius: 14px; }
.hh-org__cta div { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.hh-org__cta strong { font-size: 17px; }
.hh-org__cta span { font-size: 14px; opacity: .9; }
.hh-orgs__tete h1 { margin: 10px 0 6px; font-size: clamp(26px, 3.6vw, 36px); color: #0a4a5c; }
.hh-orgs__tete p { margin: 0 0 16px; color: #475569; }
.hh-orgs__outils { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hh-orgs__outils input, .hh-orgs__outils select { padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; background: #fff; }
.hh-orgs__outils input { flex: 1 1 260px; }
.hh-orgs__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hh-orgs__carte { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 14px; text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hh-orgs__carte:hover { border-color: #0f7a8c; box-shadow: 0 4px 14px rgba(10,74,92,.1); transform: translateY(-1px); }
.hh-orgs__carte[hidden] { display: none; }
.hh-orgs__carte .hh-org__logo { width: 64px; height: 64px; }
.hh-orgs__nom { font-size: 14px; font-weight: 600; line-height: 1.3; color: #0a4a5c; }
.hh-orgs__n { font-size: 12.5px; color: #0b6b55; background: #e0f4ee; padding: 2px 9px; border-radius: 999px; }
.hh-orgs__aucune { padding: 20px; color: #64748b; }
@media (max-width: 640px) { .hh-org__tete { flex-direction: column; align-items: flex-start; padding: 18px; } .hh-org__logo--grand { width: 84px; height: 84px; } }

/* ── Page d'une offre / d'un avis : le titre est déjà dans l'en-tête coloré, on masque celui du thème ── */
.single-hh_job .entry-header, .single-hh_tender .entry-header { display: none; }
.hh-single--tender .hh-tender-facts { margin-top: 18px; }

/* ── Page des offres (largeur 1000 px) : les cinq filtres tiennent sur une seule ligne ── */
@media (min-width: 761px) { .hh-liste .hh-lf__facette select { max-width: 180px; padding-right: 30px; } }

/* ── Encadré « Offres en anglais » sous la liste principale ── */
.hh-lf__anglais { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0 0; padding: 18px 22px; background: #0a4a5c; color: #fff; border-radius: 14px; }
.hh-lf__anglais div { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.hh-lf__anglais strong { font-size: 17px; }
.hh-lf__anglais span { font-size: 14px; opacity: .92; }
.hh-lf__anglais a { display: inline-block; padding: 11px 20px; background: #f4b73f; color: #0f2a33; font-weight: 700; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hh-lf__anglais a:hover { background: #ffc85c; }

/* Pied d'offre (signature) */
.hh-signature { margin-top: 28px; padding-top: 16px; border-top: 1px solid #dfe5e8; font-size: 13.5px; line-height: 1.55; color: #5a6a72; }
.hh-signature p { margin: 0 0 6px; }
.hh-signature a { color: #0a4a5c; font-weight: 600; text-decoration: underline; }
.hh-signature__source { font-size: 12.5px; opacity: .9; }
