/* =========================================================================
   responsive.css — Points de rupture
   -------------------------------------------------------------------------
   Grand écran : >= 1600px
   Desktop     : >= 1100px  (styles de base dans main.css)
   Tablette    : 768px – 1099px
   Mobile      : <= 767px
   ========================================================================= */

/* ============================ Grand écran ============================= */
@media (min-width: 1600px) {
    :root {
        --container-gutter: 96px;
    }
}

/* Le site reste fluide et centré jusqu'à 1920px via --container-max. */

/* ======================= Tablette & en dessous ======================= */
@media (max-width: 1099px) {
    :root {
        --container-gutter: 48px;
        --header-h: 92px;
        --header-h-scrolled: 76px;
    }
    .container {
        width: min(100% - (2 * var(--container-gutter)), 1200px);
    }

    /* Navigation desktop masquée, burger visible */
    .site-nav { display: none; }
    .burger { display: inline-flex; }

    /* Avantages : 3 colonnes sur 2 lignes */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .feature-card:nth-child(3n + 1)::before { display: none; }
    .feature-card:nth-child(n + 4) {
        border-top: 1px solid var(--color-border);
    }

    /* Expériences : 2 par ligne */
    .experiences-grid { grid-template-columns: repeat(2, 1fr); }

    /* Bloc de présentation empilé */
    .intro-split { grid-template-columns: 1fr; }
    .intro-split__media { min-height: 320px; }

    /* Formulaire de réservation empilé */
    .booking-layout { grid-template-columns: 1fr; }
}

/* 514 : sous 700 px — une branche max (final-cta SE + pied SE) */
@media (max-width: 700px) {
    .final-cta__botanical--nw { display: none; }
    .final-cta__botanical--se {
        width: 200px;
        height: 320px;
        right: -36px;
        bottom: -60px;
        opacity: 0.12;
        transform: none;
    }
    .site-footer__botanical--nw { display: none; }
    .site-footer__botanical--se {
        width: 200px;
        height: 260px;
        right: -40px;
        bottom: -50px;
        opacity: 0.10;
    }
}

/* ============================== Tablette ============================== */
@media (min-width: 768px) and (max-width: 1099px) {
    .hero__content { max-width: 560px; }
}

/* =============================== Mobile ============================== */
@media (max-width: 767px) {
    :root {
        --container-gutter: 16px;
        --header-h: 76px;
        --header-h-scrolled: 68px;
        --section-y: clamp(3rem, 9vw, 4rem);
    }
    .container {
        width: calc(100% - 32px);
    }

    .site-header__logo { width: clamp(180px, 52vw, 220px); }
    .site-header.is-scrolled .site-header__logo { width: clamp(160px, 46vw, 200px); }

    /*
     * Hero mobile — 030 : photo mieux visible en portrait.
     * Hauteur réduite (720 → 560 px) : cover zoome moins, on voit plus
     * large ; point focal center 35% ; voile ancré vers le bas
     * (haut transparent, teinté seulement derrière le texte).
     */
    .hero {
        min-height: 560px;
        align-items: flex-end;
        background-position: center 35%;
    }
    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(245, 238, 229, 0) 0%,
            rgba(245, 238, 229, 0.12) 16%,
            rgba(245, 238, 229, 0.55) 34%,
            rgba(245, 238, 229, 0.72) 62%,
            rgba(245, 238, 229, 0.9) 100%
        );
    }
    .hero__content {
        max-width: 100%;
        padding-block: var(--space-lg) var(--space-xl);
    }
    /* 030 : texte plus compact, laisse respirer la photo */
    .hero__title {
        font-size: clamp(2.1rem, 8.5vw, 2.6rem);
        margin-bottom: var(--space-md);
    }
    .hero__text { margin-bottom: var(--space-md); }
    .hero__cta { width: 100%; }

    /* Avantages : 2 colonnes */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { padding: 1.75rem 1rem; }
    .feature-card::before { display: none !important; }
    .feature-card:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }
    .feature-card:nth-child(n + 3) {
        border-top: 1px solid var(--color-border);
    }

    /* Expériences : 1 par ligne */
    .experiences-grid { grid-template-columns: 1fr; }

    /* Contenu éditorial empilé */
    .content-split,
    .content-split--reverse .content-split__media {
        grid-template-columns: 1fr;
        order: initial;
    }
    .content-split { gap: var(--space-lg); }

    /* Bandeau final empilé */
    .final-cta__inner { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
    .final-cta__quote { justify-content: center; }
    .final-cta__action { align-items: center; text-align: center; }
    .final-cta__note { text-align: center; }
    .final-cta .btn { width: 100%; }

    /* Pied de page en colonnes verticales */
    .site-footer__grid { grid-template-columns: 1fr; text-align: left; }
    .site-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }

    /* Formulaire : une colonne */
    .form__grid { grid-template-columns: 1fr; }

    /* Titres de section un peu plus resserrés */
    .section-head { margin-bottom: 2.25rem; }
}

/* Très petits écrans : éviter tout débordement des avantages */
@media (max-width: 380px) {
    .feature-card__text { font-size: 0.78rem; }
    /* 030 : aligné sur le titre mobile compact (était 2.6rem) */
    .hero__title { font-size: 2.1rem; }
}
