/* Blocs « style accueil » sur les pages carrefour (balisage : lib/accueil-blocs.mjs). Mêmes règles que l'accueil, images fixes. */
.hb { --hb-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
/* Cartes de services */
.hb .svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hb .svc__grid--2 { grid-template-columns: repeat(2, 1fr); }
.hb .svc__grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hb .svc__grid--4 .card h3 { font-size: 1.25rem; }
.hb .card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.hb .card__media { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; border-radius: var(--r); overflow: hidden; background: #d9d3c6; }
.hb .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--hb-ease); }
.hb .card--link:hover .card__media img { transform: scale(1.04); }
.hb .card h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.hb .card p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.hb .card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; color: var(--vert-fonce); }
.hb .card__more .ic { width: 1em; height: 1em; transition: transform 0.3s var(--hb-ease); }
.hb .card--link:hover .card__more .ic { transform: translateX(3px); }
.hb .ai-tag { top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.55); color: rgba(31, 29, 30, 0.75); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* Cartes des situations et des guides, en grille */
.hb .sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hb .sit-grid--1 { grid-template-columns: 1fr; }
.hb .sit-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hb .sit-grid--2 .ring-card:nth-child(odd):last-child { grid-column: span 2; }
.hb .sit-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hb .ring-card--text { grid-template-rows: auto auto auto; row-gap: 6px; }
.hb .ring-card--text .ring-card__ic { grid-row: 1 / 4; }
.hb .ring-card__text { font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.hb .sit-grid--4 .ring-card--static { padding: 22px 20px; column-gap: 14px; min-height: 0; }
.hb .sit-grid--4 .ring-card__ic { width: 56px; height: 56px; } .hb .sit-grid--4 .ring-card__ic .ic { width: 28px; height: 28px; }
.hb .ring-card--static { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 20px; row-gap: 8px; padding: 26px 26px; min-height: 150px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 20px; box-shadow: 0 14px 40px rgba(20, 30, 24, 0.1); transition: transform 0.3s var(--hb-ease), box-shadow 0.3s, border-color 0.3s; }
.hb .ring-card--static:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(20, 30, 24, 0.14); border-color: rgba(63, 143, 39, 0.5); }
.hb .ring-card__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--vert-tint); }
.hb .ring-card__ic .ic { width: 36px; height: 36px; color: var(--vert); stroke-width: 1.5; }
.hb .ring-card--urgent .ring-card__ic { background: var(--warn-soft, #fff4e5); } .hb .ring-card--urgent .ring-card__ic .ic { color: var(--warn); }
.hb .ring-card__label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; text-wrap: balance; }
.hb .ring-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.86rem; color: var(--vert-fonce); }
.hb .ring-card__more .ic { width: 1em; height: 1em; }
/* Grille des réalisations : de simples liens (texte au survol), aucune vignette ne s'agrandit */
.hb .lgrid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 28vw, 340px); gap: 16px; }
.hb .lgrid__cell { position: relative; min-width: 0; }
.hb .lgrid__cell--wide { grid-column: span 2; }
.hb .lgrid__card { display: block; color: inherit; text-decoration: none; position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: var(--foret); cursor: pointer; outline: none; transform-origin: top left; }
.hb .lgrid__card:focus-visible { box-shadow: 0 0 0 3px var(--vert); }
.hb .lgrid__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--hb-ease); }
.hb .lgrid__card:hover img { transform: scale(1.04); }
.hb .lgrid__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 38, 28, 0) 35%, rgba(15, 28, 20, 0.88) 100%); opacity: 0; transition: opacity 0.4s; }
.hb .lgrid__card:hover::after { opacity: 1; }
.hb .lgrid__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(16px, 2.4vw, 26px); max-width: 60ch; opacity: 0; transform: translateY(14px); transition: opacity 0.35s, transform 0.45s var(--hb-ease); pointer-events: none; }
.hb .lgrid__card:hover .lgrid__body { opacity: 1; transform: none; } .hb .lgrid__card:hover .lgrid__body .link { opacity: 1; }
.hb .lgrid__body .label { color: var(--vert-vif); margin-bottom: 6px; } .hb .lgrid__body .label::before { background: var(--vert-vif); }
.hb .lgrid__body h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.15; transition: font-size 0.45s; }
.hb .lgrid__body p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.88); line-height: 1.55; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb .lgrid__body .link { opacity: 0; transition: opacity 0.3s; color: var(--vert-vif); }
/* Secteurs : liste et carte */
.hb .two--map { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.hb .map { height: clamp(280px, 28vw, 380px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); background: #e9ecee; box-shadow: 0 18px 50px rgba(20, 30, 24, 0.12); }
.hb .map .maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255, 255, 255, 0.7); }
.hb .map .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 6px 18px rgba(20, 30, 24, 0.14); }
.hb .mk { display: grid; justify-items: center; gap: 5px; cursor: default; }
.hb .mk__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--vert); border: 2.5px solid #fff; box-shadow: 0 4px 12px rgba(20, 30, 24, 0.35); transition: transform 0.25s var(--hb-ease); }
.hb .mk:hover .mk__dot { transform: scale(1.15); }
.hb .mk--hub .mk__dot { width: 24px; height: 24px; background: var(--vert-fonce); }
.hb .mk__label { font-family: var(--font); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: 0.01em; color: var(--ink); background: rgba(255, 255, 255, 0.88); padding: 4px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(20, 30, 24, 0.12); }
.hb .mk--hub .mk__label { color: var(--vert-fonce); font-size: 13px; }
@media (max-width: 900px) { .hb .svc__grid, .hb .svc__grid--2, .hb .svc__grid--4, .hb .sit-grid, .hb .sit-grid--4, .hb .sit-grid--2 { grid-template-columns: 1fr 1fr; } .hb .lgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(180px, 30vw, 260px); } .hb .two--map { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hb .svc__grid, .hb .svc__grid--2, .hb .svc__grid--4, .hb .sit-grid, .hb .sit-grid--4, .hb .sit-grid--2 { grid-template-columns: 1fr; } .hb .sit-grid--2 .ring-card:nth-child(odd):last-child { grid-column: auto; } .hb .lgrid { grid-template-columns: 1fr; grid-auto-rows: 200px; } .hb .lgrid__cell--wide { grid-column: auto; } }
