/* ============================================================
   HR-SHARED — styles partagés du thème "Soleil à Madzari"
   Variables, navbar, footer, boutons, countdown, flash, badges.
   Inclus par les pages qui utilisent .hr-scope (home, event/show…).
   ============================================================ */

.hr-scope {
    --gold: oklch(0.72 0.14 85);
    --gold-dim: oklch(0.58 0.12 85);
    --gold-bright: oklch(0.82 0.15 88);
    --bg: oklch(0.97 0.005 90);
    --bg-card: oklch(0.98 0.003 90);
    --bg-card-hover: oklch(0.95 0.005 90);
    --bg-soft: oklch(0.94 0.005 90);
    --border: oklch(0.88 0.005 265);
    --text: oklch(0.18 0.015 265);
    --text-muted: oklch(0.48 0.01 265);
    --green: oklch(0.55 0.15 145);
    --red: oklch(0.55 0.18 25);
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

.hr-scope *,
.hr-scope *::before,
.hr-scope *::after { box-sizing: border-box; }

.hr-scope h1,
.hr-scope h2,
.hr-scope h3 { font-family: 'Playfair Display', serif; margin: 0; }
.hr-scope p { margin: 0; }
.hr-scope a { color: inherit; }

body.hr-body { background: var(--bg, #f6f4ee); }
/* Layout par défaut : compense la hauteur de la navbar fixed (64px). */
.hr-page-main { padding-top: 96px !important; min-height: calc(100vh - 160px); }
body.hr-body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.35;
}

/* ── NAVBAR ─────────────────────────────────── */
.hr-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 1rem; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.hr-navbar.scrolled {
    background: oklch(0.97 0.005 90 / 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.hr-navbar.solid {
    background: oklch(0.97 0.005 90 / 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.hr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.hr-brand-logo { font-size: 28px; line-height: 1; }
.hr-brand-logo-img { display: block; height: auto; max-width: 50px; }
.hr-brand-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 900; line-height: 1; color: var(--text); }
.hr-brand-tag { display: none; font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.hr-nav-links {
    position: absolute; top: 64px; right: 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px; flex-direction: column; align-items: stretch; gap: 4px; min-width: 200px;
    display: none; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.hr-nav-links.open { display: flex; }
.hr-nav-link {
    color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500;
    padding: 0.5rem 0.9rem; border-radius: 8px; transition: background 0.2s, color 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
    justify-content: flex-start; width: 100%; min-height: 44px;
}
.hr-nav-link.active { color: var(--gold); background: oklch(0.72 0.14 85 / 0.12); }
.hr-nav-link:hover { background: oklch(0.72 0.14 85 / 0.15); color: var(--text); }
.hr-nav-link.active:hover { color: var(--gold); }
.hr-nav-cta {
    margin: 0; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); padding: 0.5rem 1rem; border-radius: 8px; font-size: 13px;
    font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color 0.2s;
    font-family: inherit;
    width: 100%; justify-content: flex-start;
    display: inline-flex; align-items: center; min-height: 44px;
}
.hr-nav-cta:hover { border-color: var(--gold-dim); }
.hr-nav-cta.primary { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); border: none; color: #1a1200; font-weight: 700; }
.hr-nav-cta.danger { background: oklch(0.65 0.18 25 / 0.1); border-color: oklch(0.65 0.18 25 / 0.3); color: oklch(0.5 0.18 25); }
.hr-nav-burger {
    display: inline-flex;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px; cursor: pointer;
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}

@media (min-width: 821px) {
    .hr-navbar { padding: 0 2rem; }
    .hr-nav-burger { display: none; }
    .hr-brand-tag { display: block; }
    .hr-nav-links {
        position: static;
        background: transparent; border: none; border-radius: 0; padding: 0;
        display: flex; flex-direction: row; align-items: center; gap: 4px;
        min-width: 0; box-shadow: none;
    }
    .hr-nav-link, .hr-nav-cta { width: auto; justify-content: center; }
    .hr-nav-cta { margin-left: 8px; }
}

/* ── BOUTONS ────────────────────────────────── */
.hr-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
    min-height: 44px;
    justify-content: center;
}
.hr-btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #1a1200; font-weight: 700;
    box-shadow: 0 4px 20px oklch(0.78 0.14 85 / 0.3);
}
.hr-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px oklch(0.78 0.14 85 / 0.4); }
.hr-btn--ghost {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
}
.hr-btn--ghost:hover { border-color: var(--gold-dim); }
.hr-btn--success {
    background: linear-gradient(135deg, oklch(0.62 0.16 145), oklch(0.7 0.16 145));
    color: #ffffff; font-weight: 700;
    box-shadow: 0 4px 20px oklch(0.55 0.15 145 / 0.3);
}
.hr-btn--success:hover { transform: translateY(-2px); box-shadow: 0 8px 30px oklch(0.55 0.15 145 / 0.4); }
.hr-btn--block { width: 100%; justify-content: center; padding: 13px 20px; }
.hr-btn[disabled],
.hr-btn.is-disabled {
    opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

/* ── EYEBROW / TITRES ──────────────────────── */
.hr-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: oklch(0.78 0.14 85 / 0.12);
    border: 1px solid oklch(0.78 0.14 85 / 0.3);
    border-radius: 99px; padding: 6px 18px; margin-bottom: 28px;
    font-size: 12px; color: var(--gold-dim); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
}
.hr-eyebrow-sm { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; font-weight: 600; }
.hr-section-title { font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 900; color: var(--text); }

/* ── BADGES ─────────────────────────────────── */
.hr-badge { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.hr-badge--available { background: oklch(0.72 0.15 145 / 0.15); color: oklch(0.42 0.15 145); border: 1px solid oklch(0.72 0.15 145 / 0.4); }
.hr-badge--warning { background: oklch(0.72 0.15 55 / 0.2); color: oklch(0.5 0.15 55); border: 1px solid oklch(0.72 0.15 55 / 0.4); }
.hr-badge--full { background: oklch(0.65 0.18 25 / 0.15); color: oklch(0.5 0.18 25); border: 1px solid oklch(0.65 0.18 25 / 0.4); }
.hr-badge--ended { background: oklch(0.85 0.005 265); color: oklch(0.45 0.01 265); }

/* ── COUNTDOWN ─────────────────────────────── */
.hr-countdown {
    display: inline-flex; gap: 8px; align-items: center;
    padding: 10px 14px; background: var(--bg-soft);
    border-radius: 10px; border: 1px solid var(--border);
}
.hr-countdown-box { text-align: center; min-width: 44px; }
.hr-countdown-val { font-size: 22px; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; line-height: 1; }
.hr-countdown-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.hr-countdown-sep { color: var(--gold-dim); font-size: 18px; font-weight: 300; margin-bottom: 8px; }

/* ── FOOTER ───────────────────────────────── */
.hr-footer {
    padding: 2rem; border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.hr-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.hr-footer-brand { display: flex; align-items: center; gap: 10px; }
.hr-footer-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; }
.hr-footer-copy { font-size: 11px; color: var(--text-muted); }
.hr-footer-nav { display: flex; gap: 24px; }
.hr-footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; min-height: 44px; display: inline-flex; align-items: center; }
.hr-footer-nav a:hover { color: var(--gold); }
.hr-footer-realise { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.hr-footer-realise:hover { color: var(--gold); }

/* ── FLASH ─────────────────────────────────── */
.hr-flash-row { max-width: 1100px; margin: 88px auto 0; padding: 0 1rem; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 4; }
.hr-flash {
    border-radius: 12px; padding: 12px 16px; font-size: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
}
.hr-flash.success { border-color: oklch(0.55 0.15 145 / 0.5); color: oklch(0.42 0.15 145); }
.hr-flash.error { border-color: oklch(0.65 0.18 25 / 0.5); color: oklch(0.5 0.18 25); }

@media (min-width: 821px) {
    .hr-flash-row { padding: 0 2rem; }
}

@media (max-width: 600px) {
    .hr-footer-nav { flex-wrap: wrap; gap: 12px; justify-content: center; }
}
