/* ==========================================================================
   Henry Olmann — CSS global
   Base sobre en attendant la maquette : variables à ajuster ici uniquement.
   ========================================================================== */

:root {
  --ho-primary: #1f3a5f;
  --ho-primary-dark: #152a45;
  --ho-accent: #d9822b;
  --ho-text: #222;
  --ho-muted: #5f6670;
  --ho-bg: #fff;
  --ho-bg-alt: #f4f5f7;
  --ho-border: #e2e5e9;
  --ho-radius: 8px;
  --ho-container: 1180px;
  --ho-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ho-font); font-size: 17px; line-height: 1.6; color: var(--ho-text); background: var(--ho-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--ho-primary); }
a:hover { color: var(--ho-accent); }
:focus-visible { outline: 3px solid var(--ho-accent); outline-offset: 2px; }
address { font-style: normal; display: inline; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ho-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 12px; }
.ho-skip:focus { left: 8px; top: 8px; }

.ho-container { width: 100%; max-width: var(--ho-container); margin-inline: auto; padding-inline: 20px; }

/* Boutons */
.ho-btn { display: inline-block; padding: 10px 18px; border-radius: var(--ho-radius); background: var(--ho-accent); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.3; }
.ho-btn:hover { background: var(--ho-primary); color: #fff; }

/* Barre haute */
.ho-topbar { background: var(--ho-primary-dark); color: #fff; font-size: 14px; }
.ho-topbar__in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; padding-block: 6px; }
.ho-topbar a { color: #fff; text-decoration: none; }
.ho-topbar a:hover { text-decoration: underline; }

/* En-tête */
.ho-header { background: #fff; border-bottom: 1px solid var(--ho-border); position: sticky; top: 0; z-index: 50; }
.ho-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.ho-brand__name { font-size: 22px; font-weight: 700; color: var(--ho-primary); text-decoration: none; }
.ho-brand img { max-height: 60px; width: auto; display: block; }
.ho-nav { display: flex; align-items: center; gap: 24px; }
.ho-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.ho-nav__list a { color: var(--ho-text); text-decoration: none; font-weight: 500; }
.ho-nav__list a:hover, .ho-nav__list .current-menu-item > a { color: var(--ho-accent); }
.ho-nav__list .sub-menu { display: none; }

.ho-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.ho-burger__bar, .ho-burger__bar::before, .ho-burger__bar::after { display: block; width: 26px; height: 3px; background: var(--ho-primary); border-radius: 2px; position: relative; content: ""; }
.ho-burger__bar::before { position: absolute; top: -8px; }
.ho-burger__bar::after { position: absolute; top: 8px; }

/* Contenu */
.ho-main { min-height: 50vh; }
.ho-content { padding-block: 40px 60px; }
.ho-page-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--ho-primary); margin: 0 0 24px; }
.ho-entry + .ho-entry { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ho-border); }
.ho-entry__title { margin: 0 0 8px; }

/* Pied de page */
.ho-footer { background: var(--ho-primary-dark); color: #e6e9ee; font-size: 15px; }
.ho-footer a { color: #fff; }
.ho-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-block: 48px 32px; }
.ho-footer__name { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.ho-footer__title { font-weight: 700; color: #fff; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.ho-footer__contact, .ho-footer__links { list-style: none; margin: 0; padding: 0; }
.ho-footer__contact li, .ho-footer__links li { margin-bottom: 8px; }
.ho-footer__contact li { display: flex; gap: 8px; align-items: baseline; }
.ho-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding-block: 16px; font-size: 14px; }
.ho-footer__bottom p { margin: 0; }

/* Barre d'appel mobile */
.ho-callbar { display: none; }

@media (max-width: 860px) {
  .ho-burger { display: block; }
  .ho-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ho-border); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .ho-nav.is-open { display: flex; }
  .ho-nav__list { flex-direction: column; gap: 0; }
  .ho-nav__list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--ho-border); }
  .ho-nav__list .sub-menu { display: block; list-style: none; padding-left: 16px; }
  .ho-header__in { position: relative; }
  .ho-topbar__in { justify-content: center; }

  .ho-callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ho-accent); color: #fff; text-align: center; font-weight: 700; padding: 14px; text-decoration: none; }
  .ho-callbar:hover { color: #fff; }
  body { padding-bottom: 52px; }
}

/* Réseaux sociaux (pied de page, shortcode [olmann_reseaux]) */
.ho-reseaux { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ho-footer .ho-reseaux a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
