/* =========================================================
   Vivre Megève — Styles spécifiques à la page d’accueil
   Palette: rouge / noir / gris / blanc
   Typo: Poppins (texte), Oswald (titres)
   ========================================================= */

:root {
    --vm-red: #C71F2D;
    --vm-red-2: #9f1720;
    --vm-dark: #0e1116;
    --vm-dark-2: #12161d;
    --vm-muted: #a7b0be;
    --vm-text: #0f0f0f;
    --vm-max: 1200px;
}

/* ---------- HERO pleine largeur (image + gradient) ---------- */
.vm-hero {
    position: relative;
    min-height: clamp(420px, 58vh, 720px);
    display: grid;
    place-items: center;
    color: #fff;
    isolation: isolate;
    overflow: clip;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .70) 100%),
        url('../images/placeduvillage.jpg') center/cover no-repeat fixed;
}

.vm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 18px 18px;
    mix-blend-mode: overlay;
    z-index: -1;
}

.vm-hero .vm-hero-inner {
    width: 100%;
    max-width: var(--vm-max);
    padding: 32px clamp(16px, 3vw, 32px);
    text-align: center;
}

.vm-kicker {
    font: 600 14px/1 Poppins, system-ui;
    display: inline-flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(3px);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vm-title {
    margin: 14px 0 6px;
    font-family: Oswald, system-ui, sans-serif;
    font-size: clamp(32px, 5.6vw, 64px);
    line-height: 1.05;
    letter-spacing: .01em;
}

.vm-sub {
    margin: 10px auto 24px;
    max-width: 850px;
    font-size: clamp(16px, 2.1vw, 20px);
    opacity: .95;
}

.vm-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons CTA */
.btn {
    --padX: clamp(16px, 2.4vw, 22px);
    --padY: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--padY) var(--padX);
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    will-change: transform;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--vm-red) 0%, #a31822 100%);
    border-color: rgba(255, 255, 255, .08);
}

.btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
}

/* ---------- Flash Info (customisé) ---------- */
.vm-flash {
    background: linear-gradient(90deg, var(--vm-red) 0%, #e23a3a 100%);
    color: #fff;
    text-align: center;
    /* ✅ centre tout */
    padding: 20px 16px;
}

.vm-flash-inner {
    max-width: var(--vm-max);
    margin: 0 auto;
}

.vm-flash h2 {
    margin: 0 0 12px;
    font: 900 clamp(22px, 4vw, 38px)/1.2 Oswald, system-ui, sans-serif;
    letter-spacing: .02em;
    animation: flash-blink 1s infinite;
    /* ✅ clignotement */
}

.vm-flash .content {
    line-height: 1.55;
    font-size: 1rem;
}

.vm-flash .date {
    font-weight: 700;
    opacity: .95;
}

/* Effet de clignotement */
@keyframes flash-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* ---------- Sections ---------- */
.vm-section {
    padding: clamp(36px, 6vw, 72px) clamp(16px, 3vw, 32px);
    background: #fff;
}

.vm-section.gray {
    background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
}

.vm-container {
    max-width: var(--vm-max);
    margin: 0 auto;
}

.vm-sec-title {
    text-align: center;
    margin: 0 0 26px;
}

.vm-sec-title h3 {
    margin: 0;
    font-family: Oswald, system-ui, sans-serif;
    font-size: clamp(24px, 3.6vw, 34px);
    letter-spacing: .02em;
}

.badge-pill {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f2f6;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.color {
    color: var(--vm-red);
}

/* ---------- Grille avantages ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .col-6 {
        grid-column: span 12;
    }
}

.card-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    background: #000;
}

.card-img img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease, filter .5s ease;
}

.card-img:hover img {
    transform: scale(1.06);
    filter: saturate(1.03) contrast(1.02);
}

.card-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* CTA Avantages */
.cta-advantages {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.btn-adv {
    background: #18a058;
    color: #fff;
    border: 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(24, 160, 88, .25);
}

.btn-adv:hover {
    filter: brightness(1.05);
}

/* ---------- Encart “Quand & comment” ---------- */
.vm-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #24262b;
}

.vm-info h4 {
    margin: .5rem 0 0;
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 600;
}

.vm-info p {
    margin: .35rem 0 0;
    opacity: .9;
}

/* ---------- Tarifs ---------- */
.vm-tarifs {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: clamp(16px, 2.6vw, 22px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}

.vm-tarifs h3 {
    margin: 0 0 10px;
    text-align: center;
    font-family: Oswald, system-ui;
    letter-spacing: .02em;
}

.tarifs-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
}

.tarif-card {
    background: linear-gradient(180deg, #fff, #fbfbfc);
    border: 1px dashed #f1c9c9;
    border-radius: 16px;
    text-align: center;
    padding: 16px 14px;
}

.tarif-card h4 {
    margin: .25rem 0 .4rem;
    font-weight: 700;
}

.tarif-amount {
    font-weight: 900;
    font-size: clamp(28px, 4.8vw, 40px);
    color: var(--vm-red-2);
    line-height: 1;
}

.tarif-note {
    text-align: center;
    margin: 8px 0 0;
    font-size: 14px;
    color: #7a1e1e;
}

/* ---------- Footer note ---------- */
.vm-madeby {
    text-align: center;
    font-size: 14px;
    color: #667085;
    padding: 16px;
}