/* Page « Le rucher » — présentation moderne */
:root {
    --rh-honey: #f5a623;
    --rh-honey-dark: #d98a00;
    --rh-ink: #2a2118;
    --rh-muted: #6f655a;
    --rh-cream: #fbf6ec;
    --rh-radius: 16px;
}
body#page-top { padding-top: 0; }
.rh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Bandeau --- */
.rh-hero {
    position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 20px 70px; color: #fff; text-align: center;
    background: #2a2118 center / cover no-repeat;
}
.rh-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,14,6,.55) 0%, rgba(20,14,6,.55) 45%, rgba(20,14,6,.8) 100%);
}
.rh-hero-inner { position: relative; max-width: 820px; }
.rh-eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 13px; color: var(--rh-honey); margin: 0 0 14px; font-weight: 700; }
.rh-hero h1 {
    margin: 0 0 18px; font-family: "Roboto Condensed", sans-serif; font-weight: 700; color: #fff;
    font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; text-transform: none; text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.rh-lead { font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.5; margin: 0 auto 28px; max-width: 640px; color: rgba(255,255,255,.92); }
.rh-stats { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rh-stats li {
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 10px 20px; display: flex; align-items: baseline; gap: 8px;
}
.rh-stats strong { font-size: 1.4rem; color: var(--rh-honey); }
.rh-stats span { font-size: .9rem; }
.rh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rh-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.rh-btn-ghost:hover, .rh-btn-ghost:focus { background: #fff; color: var(--rh-ink); border-color: #fff; }

/* --- Sections --- */
.rh-section { padding: 70px 0; background: #fff; }
.rh-section-alt { background: var(--rh-cream); }
.rh-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.rh-section h2, .rh-cta h2 { margin: 0 0 6px; font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--rh-ink); text-transform: none; }
.rh-muted { color: var(--rh-muted); margin: 0; max-width: 620px; }

/* --- Filtres --- */
.rh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-chip {
    border: 1px solid #e3d8c4; background: #fff; color: var(--rh-ink); border-radius: 999px; padding: 8px 16px;
    font-weight: 600; cursor: pointer; transition: all .15s;
}
.rh-chip span { display: inline-block; margin-left: 4px; font-size: .8em; opacity: .65; }
.rh-chip:hover { border-color: var(--rh-honey); }
.rh-chip.is-active { background: var(--rh-ink); border-color: var(--rh-ink); color: #fff; }
.rh-chip:focus-visible, .rh-card a:focus-visible, .rh-masonry a:focus-visible { outline: 3px solid var(--rh-honey); outline-offset: 3px; }

/* --- Grille des ruches --- */
.rh-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rh-card[hidden] { display: none; }
.rh-card a { display: block; border-radius: var(--rh-radius); overflow: hidden; box-shadow: 0 2px 6px rgba(42,33,24,.08), 0 10px 30px rgba(42,33,24,.08); transition: transform .25s, box-shadow .25s; }
.rh-card a:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(42,33,24,.1), 0 18px 40px rgba(42,33,24,.16); }
.rh-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }
.rh-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rh-card a:hover img { transform: scale(1.06); }
.rh-card figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(20,14,6,.85)); display: flex; flex-direction: column; gap: 2px;
}
.rh-card figcaption strong { font-size: 1.1rem; line-height: 1.2; }
.rh-card figcaption span { font-size: .85rem; opacity: .85; }
.rh-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--rh-ink);
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* --- Mosaïque --- */
.rh-masonry { column-count: 3; column-gap: 14px; }
.rh-masonry a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; position: relative; background: #e9dfcc; }
.rh-masonry img { width: 100%; height: auto; display: block; transition: transform .5s ease, filter .3s; }
.rh-masonry a:hover img { transform: scale(1.04); filter: brightness(1.05); }
@media (max-width: 991px) { .rh-masonry { column-count: 2; } }
@media (max-width: 520px) { .rh-masonry { column-count: 1; } .rh-grid { grid-template-columns: 1fr; } .rh-section { padding: 48px 0; } }

/* --- Appel à l'action --- */
.rh-cta { padding: 70px 0; text-align: center; background: linear-gradient(135deg, #2a2118, #4a3520); color: #fff; }
.rh-cta h2 { color: #fff; }
.rh-cta p { max-width: 620px; margin: 0 auto 22px; font-size: 1.1rem; color: rgba(255,255,255,.9); }

/* --- Visionneuse --- */
.rh-lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12,8,3,.94); color: #fff; }
.rh-lightbox[open] { display: flex; align-items: center; justify-content: center; animation: rh-fade .2s ease; }
.rh-lightbox::backdrop { background: rgba(12,8,3,.94); }
@keyframes rh-fade { from { opacity: 0; } to { opacity: 1; } }
.rh-lb-figure { margin: 0; max-width: min(1200px, 100vw - 140px); text-align: center; }
.rh-lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rh-lb-figure figcaption { padding-top: 14px; font-size: 1.05rem; }
.rh-lb-figure small { opacity: .6; margin-left: 8px; }
.rh-lb-close, .rh-lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; cursor: pointer; line-height: 1; transition: background .15s; }
.rh-lb-close:hover, .rh-lb-nav:hover, .rh-lb-close:focus-visible, .rh-lb-nav:focus-visible { background: var(--rh-honey); color: var(--rh-ink); outline: none; }
.rh-lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; }
.rh-lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 40px; padding-bottom: 6px; }
.rh-lb-prev { left: 18px; } .rh-lb-next { right: 18px; }
@media (max-width: 640px) { .rh-lb-figure { max-width: 100vw; } .rh-lb-nav { top: auto; bottom: 18px; transform: none; } }
body.rh-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .rh-card a, .rh-card img, .rh-masonry img, .rh-lightbox[open] { transition: none; animation: none; }
}

/* Neutralise les ombres de titres héritées de l'ancien styles.css */
.rh-section h2, .rh-cta h2, .rh-hero h1 { text-shadow: none; }
.rh-hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,.4); }

/* Bootstrap 3 fixe html à 10px : on rétablit 16px pour que les rem de ces pages aient leur taille prévue */
html { font-size: 16px; }
.rh-section, .rh-cta, .rh-hero, .rh-band { font-size: 16px; line-height: 1.6; }
