/* ============================================================
   home.css — pages d'accueil (modèle home).
   Autonome (ne charge ni ling-article.css ni stay.css) : toutes les
   classes sont préfixées hm-. Couleurs et rayons tirés des variables du
   site quand elles existent.
   ============================================================ */

.hm {
    --hm-accent: var(--color-primary, #2563eb);
    --hm-accent-dark: var(--color-primary-dark, #1d4ed8);
    --hm-ink: var(--color-text, #0f172a);
    --hm-muted: var(--color-text-light, #4b5563);
    --hm-line: var(--color-light-grey, #e5e7eb);
    --hm-soft: #eef4ff;
    --hm-bg: #f7f9fc;
    --hm-max: var(--ar-max, 1220px);
    color: var(--hm-ink);
}
.hm-wrap { max-width: var(--hm-max); margin: 0 auto; padding: 0 var(--padding-x, 1.25rem); }
.hm-section { padding: 84px 0; }
.hm-section + .hm-section { padding-top: 0; }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; margin-bottom: 34px; }
.hm-h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.2; }
.hm-intro { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.7; color: var(--hm-muted); }
.hm-center { text-align: center; }

/* --- boutons --- */
.hm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px; border-radius: 12px;
    font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .15s, box-shadow .15s, color .15s;
}
.hm-btn--primary { background: var(--hm-accent); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .25); }
.hm-btn--primary:hover { background: var(--hm-accent-dark); color: #fff; }
.hm-btn--ghost { background: #fff; color: var(--hm-ink); border: 1px solid var(--hm-line); }
.hm-btn--ghost:hover { border-color: var(--hm-accent); color: var(--hm-accent); }

/* --- 1. en-tête --- */
.hm-hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--hm-soft) 0%, #fff 100%); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hm-kicker {
    display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px;
    background: #fff; border: 1px solid #d7e3fb; color: var(--hm-accent);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hm-h1 { margin: 0 0 18px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.01em; }
.hm-lead { margin: 0 0 28px; max-width: 54ch; font-size: 17.5px; line-height: 1.7; color: var(--hm-muted); }
.hm-trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.hm-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.hm-trust svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.hm-hero-media { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 24px 60px rgba(15, 23, 42, .16); background: #e8eef7; }
.hm-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
    .hm-hero { padding: 28px 0 48px; }
    .hm-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hm-hero-media { order: -1; aspect-ratio: 16 / 10; }
}

/* --- 2. séjours --- */
.hm-stays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .hm-stays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .hm-stays { grid-template-columns: 1fr; } }
.hm-stay {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--hm-line); border-radius: 18px; overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.hm-stay:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); transform: translateY(-3px); }
.hm-stay-media { display: block; aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.hm-stay-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-stay-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.hm-stay-meta { margin: 0; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--hm-muted); }
.hm-stay-title { margin: 0; font-size: 17px; line-height: 1.35; flex: 1; }
.hm-stay-title a { color: inherit; text-decoration: none; }
.hm-stay-title a::after { content: ""; position: absolute; inset: 0; }
.hm-stay { position: relative; }
.hm-price { margin: 0; font-size: 13.5px; color: var(--hm-muted); }
.hm-price strong { font-size: 20px; color: var(--hm-accent); }
.hm-noprice { font-style: italic; }

.hm-youth {
    margin-top: 24px; display: grid; grid-template-columns: 420px minmax(0, 1fr); align-items: stretch;
    background: var(--hm-ink); color: #fff; border-radius: 20px; overflow: hidden; text-decoration: none;
    transition: box-shadow .15s;
}
.hm-youth:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, .25); }
.hm-youth-media { display: block; min-height: 220px; }
.hm-youth-media picture, .hm-youth-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-youth-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 34px; }
.hm-youth-title { font-size: 22px; font-weight: 700; }
.hm-youth-text { font-size: 15.5px; line-height: 1.6; color: #cbd5e1; max-width: 60ch; }
.hm-youth .hm-price { color: #cbd5e1; }
.hm-youth .hm-price strong { color: #fff; }
.hm-youth-cta { font-weight: 600; color: #93c5fd; }
@media (max-width: 760px) { .hm-youth { grid-template-columns: 1fr; } .hm-youth-media { aspect-ratio: 16 / 9; min-height: 0; } .hm-youth-body { padding: 22px; } }

.hm-chips { margin-top: 34px; }
.hm-chips-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.hm-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hm-chips a {
    display: inline-block; padding: 9px 15px; border-radius: 999px;
    background: #fff; border: 1px solid var(--hm-line);
    color: var(--hm-ink); font-size: 14.5px; text-decoration: none;
}
.hm-chips a:hover { border-color: var(--hm-accent); color: var(--hm-accent); }
.hm-chips a.is-main { background: var(--hm-accent); border-color: var(--hm-accent); color: #fff; font-weight: 600; }

/* --- 3. étapes --- */
.hm-steps-sec { background: var(--hm-bg); padding-top: 84px !important; }
.hm-steps { list-style: none; counter-reset: hm; margin: 36px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-steps li { counter-increment: hm; background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; padding: 26px 24px; }
.hm-steps li::before {
    content: counter(hm); display: grid; place-items: center;
    width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px;
    background: var(--hm-accent); color: #fff; font-weight: 700; font-size: 17px;
}
.hm-steps h3 { margin: 0 0 8px; font-size: 18px; }
.hm-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hm-muted); }
.hm-steps-sec + .hm-section { padding-top: 84px; }

/* --- 4. pourquoi Malte --- */
.hm-why { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .hm-why { grid-template-columns: 1fr; gap: 20px; } }
.hm-why article { padding-left: 18px; border-left: 3px solid var(--hm-accent); }
.hm-why h3 { margin: 0 0 8px; font-size: 18px; }
.hm-why p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--hm-muted); }
.hm-more { margin: 26px 0 0; }
.hm-more a { color: var(--hm-accent); font-weight: 600; text-decoration: none; }
.hm-more a:hover { text-decoration: underline; }

/* --- 5. catégories --- */
.hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.hm-cat {
    position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: 18px; overflow: hidden;
    color: #fff; text-decoration: none; background: #1e293b;
}
.hm-cat picture, .hm-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.hm-cat:hover img { transform: scale(1.05); }
.hm-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .82) 100%); }
.hm-cat-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.hm-cat-text strong { font-size: 18px; line-height: 1.25; }
.hm-cat-text span { font-size: 13.5px; color: #e2e8f0; line-height: 1.35; }
@media (max-width: 560px) { .hm-cat-text strong { font-size: 15.5px; } .hm-cat-text span { display: none; } }

/* --- 6. organiser son séjour --- */
.hm-plan-sec .hm-wrap { background: var(--hm-bg); border-radius: 24px; padding-top: 44px; padding-bottom: 44px; }
.hm-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .hm-plan { grid-template-columns: 1fr; gap: 22px; } }
.hm-plan-col h3 { margin: 0 0 12px; font-size: 17px; }
.hm-plan-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm-plan-col a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; border-radius: 10px; background: #fff;
    color: var(--hm-ink); font-size: 15px; text-decoration: none;
}
.hm-plan-col a::after { content: "→"; color: var(--hm-accent); }
.hm-plan-col a:hover { color: var(--hm-accent); box-shadow: 0 0 0 1px var(--hm-accent) inset; }
.hm-plan-col li + li { margin-top: 6px; }
@media (max-width: 640px) { .hm-plan-sec .hm-wrap { border-radius: 0; } }

/* --- 7. bandeau final --- */
.hm-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px;
    padding: 40px 44px; border-radius: 24px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6); color: #fff;
}
.hm-band .hm-h2 { color: #fff; }
.hm-band p { margin: 10px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.65; color: #dbeafe; }
.hm-band .hm-btn--primary { background: #fff; color: #1d4ed8; box-shadow: none; }
.hm-band .hm-btn--primary:hover { background: #eff6ff; color: #1d4ed8; }
.hm-band .hm-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hm-band .hm-btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 640px) { .hm-band { padding: 28px 22px; } .hm-section { padding: 60px 0; } }
