/* Page d'accueil — préfixe hv- (classes propres à cette page) */

.hv-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hv-container--narrow { max-width: 820px; }

.hv-section { padding: 72px 0; }
.hv-section--tint { background: #f1f6f3; }

.hv-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-green);
    text-align: center;
}
.hv-eyebrow--light { color: var(--c-gold); text-align: left; }

.hv-title {
    margin: 0 auto 40px;
    max-width: 680px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.2;
    color: var(--c-text);
    text-align: center;
}

/* ── Boutons ── */
.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.hv-btn i { display: inline-flex; font-size: 0.9em; }
.hv-btn:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }
.hv-btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.hv-btn--gold { background: var(--c-gold); color: #1a1a1a; }
.hv-btn--gold:hover { background: var(--c-gold-hover); color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 185, 59, 0.35); }
.hv-btn--green { background: var(--c-green); color: #fff; }
.hv-btn--green:hover { background: #03614a; color: #fff; transform: translateY(-2px); }

/* ── 1. Hero ── */
.hv-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 85% 30%, rgba(225, 185, 59, 0.14) 0%, transparent 55%), var(--c-green);
    color: #fff;
    padding: 56px 0 64px;
}
.hv-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 48px;
    align-items: center;
}
.hv-hero__title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1.05;
}
.hv-hero__title em { color: var(--c-gold); font-style: italic; }
.hv-hero__sub {
    margin: 0 0 28px;
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.hv-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hv-reassure {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}
.hv-reassure li { display: inline-flex; align-items: center; gap: 6px; }
.hv-reassure i { color: var(--c-gold); display: inline-flex; }
.hv-hero__login { margin: 16px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.hv-hero__login a { color: #fff; font-weight: 600; }

/* Aperçu de liste (illustration) */
.hv-mock { position: relative; max-width: 420px; width: 100%; margin: 0 auto; padding: 26px 0; }
.hv-mock__card {
    background: #fff;
    color: var(--c-text);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: rotate(-1.5deg);
}
.hv-mock__head { padding: 20px 22px 16px; border-bottom: 1px solid #eef0ee; display: flex; flex-direction: column; gap: 6px; }
.hv-mock__badge {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: #fdf3d7; /* illustration : pas la couleur d'une vraie occasion (gérées dans l'admin) */
    color: #7a5b00;
    font-size: 0.72rem;
    font-weight: 600;
}
.hv-mock__title { font-family: var(--font-display); font-size: 1.3rem; }
.hv-mock__meta { font-size: 0.8rem; color: var(--c-muted); }
.hv-mock__items { list-style: none; margin: 0; padding: 8px 14px 14px; }
.hv-mock__item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.hv-mock__item + .hv-mock__item { border-top: 1px dashed #eceeec; }
.hv-mock__thumb {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 12px;
    background: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.hv-mock__name { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; display: flex; flex-direction: column; }
.hv-mock__name small { font-weight: 400; color: var(--c-muted); font-size: 0.8rem; }
.hv-tag { flex-shrink: 0; padding: 4px 9px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.hv-tag--free { background: var(--c-green-light); color: var(--c-green); }
.hv-tag--taken { background: #fdecea; color: #b42318; }
.hv-tag--group { background: #e0ecff; color: #1d4ed8; }

/* Preuve chiffrée (affichée seulement au-delà de PUBLIC_STATS_MIN) */
.hv-proof {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 48px;
    padding: 22px 20px;
    background: #fff;
    border-bottom: 1px solid #eceae4;
    color: var(--c-muted);
}
.hv-proof strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-green); margin-right: 6px; }

/* ── 5. Comparatif ── */
.hv-compare { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.hv-compare__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 14px 18px;
    border-top: 1px solid #eef0ee;
    font-size: 0.92rem;
}
.hv-compare__row--head { display: none; }
.hv-compare__label { grid-column: 1 / -1; font-weight: 600; }
.hv-compare__them { color: var(--c-muted); }
.hv-compare__us { color: var(--c-green); font-weight: 600; display: flex; gap: 6px; }
.hv-compare__us i { display: inline-flex; margin-top: 3px; }

/* ── 6. Occasions ── */
.hv-occasions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hv-occasion {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.hv-occasion__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hv-occasion::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 55%);
    pointer-events: none;
}
.hv-occasion__label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.hv-occasion__label i { display: inline-flex; }
.hv-occasion:hover .hv-occasion__img { transform: scale(1.05); }
.hv-occasion:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }

/* ── 9. FAQ ── */
.hv-faq { display: flex; flex-direction: column; gap: 10px; }
.hv-faq__item { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.hv-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 48px 18px 20px;
    font-weight: 600;
    position: relative;
}
.hv-faq__item summary::-webkit-details-marker { display: none; }
.hv-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--c-green);
}
.hv-faq__item[open] summary::after { content: '−'; }
.hv-faq__item summary:focus-visible { outline: 2px solid var(--c-green); outline-offset: -2px; border-radius: var(--radius-md); }
.hv-faq__item p { margin: 0; padding: 0 20px 18px; color: var(--c-muted); line-height: 1.6; }

/* ── 10. Dernier appel ── */
.hv-final { background: var(--c-green); color: #fff; text-align: center; padding: 72px 0 80px; }
.hv-final__title { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hv-final__sub { margin: 0 0 28px; color: rgba(255, 255, 255, 0.75); }

/* Bouton fixe (mobile uniquement) */
.hv-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(calc(100% + 80px)); /* masqué : sous l'écran, même posé au-dessus de la barre du bas */
    transition: transform 0.25s ease, bottom 0.3s ease;
}
.hv-sticky.is-visible { transform: translateY(0); }
.hv-sticky .hv-btn {
    display: flex;
    width: 100%;
    max-width: 480px;           /* tablette : pas un bouton de toute la largeur */
    margin: 0 auto;
    box-sizing: border-box;     /* marges intérieures comprises : ne déborde plus à droite */
}
/* Barre de navigation du bas affichée (header.js la masque au défilement vers le bas) : le bouton se pose
   au-dessus d'elle au lieu de passer dessous */
@media (max-width: 1024px) {
    .header__menu--mobile:not(.header__menu--hidden) ~ .hv-sticky {
        bottom: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: 12px;
    }
}

/* ── Tablette ── */
@media (min-width: 640px) {
    .hv-occasions { grid-template-columns: repeat(3, 1fr); }
    .hv-compare__row { grid-template-columns: 1.1fr 1fr 1.2fr; align-items: center; }
    .hv-compare__row--head { display: grid; background: #f7f8f7; font-size: 0.8rem; font-weight: 600; color: var(--c-muted); border-top: 0; }
    .hv-compare__row--head .hv-compare__us { color: var(--c-green); }
    .hv-compare__label { grid-column: auto; }
}

/* ── Ordinateur ── */
@media (min-width: 960px) {
    .hv-hero { padding: 80px 0 88px; }
    .hv-hero__inner { grid-template-columns: 1.15fr 0.85fr; }
    .hv-occasions { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .hv-section { padding: 96px 0; }
    .hv-sticky { display: none; }
}

@media (max-width: 959px) {
    /* Laisse la place au bouton fixe en bas de page */
    .hv-final { padding-bottom: 110px; }
}

@media (max-width: 420px) {
    .hv-hero__cta .hv-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hv-btn, .hv-occasion__img, .hv-sticky { transition: none; }
    .hv-btn:hover { transform: none; }
    .hv-occasion:hover .hv-occasion__img { transform: none; }
}

/* ══ Démo du mode surprise et démonstrations « En pratique » ═══════════════ */
.hvc-hero .hv-hero__title { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.hvc-demo { max-width: 440px; width: 100%; margin: 0 auto; }
.hvc-demo__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
}
.hvc-demo__tab {
    flex: 1;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.hvc-demo__tab[aria-pressed="true"] { background: #fff; color: var(--c-green); }
.hvc-demo__tab:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.hvc-demo__card { transform: none; }
.hvc-demo__notice { margin: 0; padding: 10px 22px; font-size: 0.8rem; font-weight: 600; background: var(--c-green-light); color: var(--c-green); }
.hvc-demo[data-view="owner"] .hvc-demo__notice { background: #fdf3d7; color: #7a5b00; }
.hvc-demo[data-view="guest"] .hvc-demo__notice-owner,
.hvc-demo[data-view="owner"] .hvc-demo__notice-guest,
.hvc-demo[data-view="guest"] .hvc-demo__owner-only,
.hvc-demo[data-view="owner"] .hvc-demo__guest-only { display: none; }
.hvc-demo[data-view="guest"] .hvc-demo__taken .hv-mock__thumb,
.hvc-demo[data-view="guest"] .hvc-demo__taken .hv-mock__name { opacity: 0.55; }
.hvc-demo__owner-only { background: #f1f1ef; color: var(--c-muted); }

.hvc-row { display: grid; gap: 24px; align-items: center; padding: 28px 0; }
.hvc-row + .hvc-row { border-top: 1px solid #ebe8e1; }
.hvc-row__text h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.5rem; }
.hvc-row__text p { margin: 0; color: var(--c-muted); line-height: 1.65; max-width: 460px; }
.hvc-row__visual { display: flex; justify-content: center; }
.hvc-paste, .hvc-group, .hvc-share {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 18px;
    box-sizing: border-box;
}
.hvc-paste { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.hvc-paste__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--c-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hvc-paste__input i { display: inline-flex; color: var(--c-green); }
.hvc-paste__arrow { text-align: center; color: var(--c-gold); font-weight: 700; }
.hvc-paste__result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-md); background: var(--c-green-light); }
.hvc-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hvc-group__people { display: inline-flex; }
.hvc-group__people span {
    width: 32px;
    height: 32px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--c-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
}
.hvc-group__people span:first-child { margin-left: 0; }
.hvc-group__people span:nth-child(2) { background: var(--c-gold); color: #1a1a1a; }
.hvc-group__people span:nth-child(3) { background: #3a5fb8; }
.hvc-share { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hvc-share span { padding: 8px 14px; border-radius: var(--radius-pill); background: #f1f6f3; font-size: 0.85rem; font-weight: 600; }

/* Démonstrations : texte et visuel côte à côte sur ordinateur */
@media (min-width: 960px) {
    .hvc-row { grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0; }
    .hvc-row--reverse .hvc-row__text { order: 2; }
}

/* ══ Les événements à venir (repris de l'accueil actuel) ══════════════════ */
.hv-center { text-align: center; margin-top: 32px; }
.hv-title--tight { margin-bottom: 10px; }
.hv-upcoming__sub { margin: 0 auto 32px; max-width: 520px; text-align: center; color: var(--c-muted); line-height: 1.6; }
.hv-upcoming__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.hv-event {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--c-text);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hv-event--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-gold); color: var(--c-text); }
.hv-event--link:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.hv-event__date {
    flex-shrink: 0;
    width: 48px;
    height: 52px;
    border-radius: 10px;
    background: #faf8f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hv-event__day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.hv-event__month { margin-top: 2px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.hv-event__emoji { flex-shrink: 0; font-size: 1.6rem; }
.hv-event__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-event__name, .hv-event__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-event__name { font-size: 0.92rem; font-weight: 600; }
.hv-event__sub { font-size: 0.78rem; color: var(--c-muted); }
.hv-event__countdown { font-size: 0.78rem; font-weight: 600; color: #8a6a0c; }
@media (prefers-reduced-motion: reduce) {
    .hv-event { transition: none; }
    .hv-event--link:hover { transform: none; }
}
