/* =============================================================
   AMINATA FATY — responsive.css
   Adaptations : Large / Laptop / Tablette / Mobile
   Aucun élément ne doit casser, aucun texte ne doit déborder.
   ------------------------------------------------------------- */


/* =============================================================
   ÉCRANS TRÈS LARGES (≥ 1600px) — on garde les proportions
   ============================================================= */
@media (min-width: 1600px){
    :root{
        --container: 1420px;
    }
    .hero-grid{
        gap: 72px;
    }
    .hero-title{
        font-size: 56px;
    }
    .hero-title-script{
        font-size: 66px;
    }
}


/* =============================================================
   LAPTOP (≤ 1280px)
   ============================================================= */
@media (max-width: 1280px){
    :root{
        --gutter: 32px;
    }

    /* Header */
    .logo-name{ font-size: 40px; }
    .nav-list{ gap: 38px; }
    .main-nav{ margin-right: 40px; }
    .nav-link{ font-size: 11.5px; }

    /* Hero */
    .hero{ padding: 50px 0 118px; }
    .hero-title{ font-size: 45px; }
    .hero-title-script{ font-size: 54px; }
    .hero-content{ flex-basis: 400px; max-width: 430px; }
    .hero-grid{ gap: 42px; }
    .torn-paper svg{ height: 78px; }

    /* Section projet */
    .section-title{ font-size: 29px; }
    .section-script{ font-size: 25px; }
    .card{ min-height: 452px; }
    .card-body{ padding: 28px 26px 32px; }
    .card-icon{ width: 76px; height: 76px; }
    .card-icon svg{ width: 40px; height: 40px; }
    .card-title{ font-size: 42px; }
    .card-text{ font-size: 12.5px; }
    .btn--solid{ padding: 15px 22px; font-size: 11px; }

    /* Notre histoire */
    .story-title{ font-size: 23px; }
    .story-script{ font-size: 21px; }
    .story-photo{ height: 400px; }

    /* Footer */
    .footer-script{ font-size: 25px; }
    .footer-col--social,
    .footer-col--news{ padding-left: 34px; }
    .footer-links{ gap: 26px; }
}


/* =============================================================
   PETIT LAPTOP / GRANDE TABLETTE (≤ 1080px)
   Le menu passe en panneau latéral.
   ============================================================= */
@media (max-width: 1080px){

    /* ---- Header : burger + panneau ---- */
    .nav-toggle{
        display: flex;
        order: 3;
    }

    .header-social{
        order: 2;
        gap: 13px;
    }

    .main-nav{
        position: fixed;
        top: 0;
        right: 0;
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(330px, 84vw);
        height: 100vh;
        margin: 0;
        padding: 40px 30px;
        background-color: var(--background);
        box-shadow: -12px 0 40px rgba(44, 33, 26, .14);
        transform: translateX(100%);
        transition: transform .45s var(--ease);
        visibility: hidden;
    }

    .main-nav.is-open{
        transform: translateX(0);
        visibility: visible;
    }

    .nav-list{
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .nav-link{
        font-size: 14px;
        letter-spacing: 1.6px;
    }

    /* Voile sombre derrière le panneau */
    .nav-overlay{
        position: fixed;
        inset: 0;
        z-index: 110;
        background-color: rgba(44, 33, 26, .42);
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s var(--ease), visibility .4s var(--ease);
    }

    .nav-overlay.is-open{
        opacity: 1;
        visibility: visible;
    }

    /* Croix du burger quand le menu est ouvert */
    .nav-toggle.is-open .nav-toggle-bar:nth-child(1){
        transform: translateY(6.6px) rotate(45deg);
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(2){
        opacity: 0;
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(3){
        transform: translateY(-6.6px) rotate(-45deg);
    }

    /* ---- Hero ---- */
    .hero{ padding: 42px 0 100px; }
    .hero-title{ font-size: 39px; }
    .hero-title-script{ font-size: 47px; }
    .hero-content{ flex-basis: 340px; max-width: 370px; }
    .hero-text{ max-width: 300px; margin-top: 20px; font-size: 12.5px; }
    .hero-grid{ gap: 30px; }
    .torn-paper svg{ height: 62px; }

    /* ---- Cartes projet : UNE SEULE CARTE PAR LIGNE ----
       Correctif de lisibilité : au-delà de ce point, les deux cartes
       côte à côte devenaient trop étroites (texte tassé, image écrasée).
       Elles sont désormais empilées verticalement, image au-dessus. */
    .project-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .card--left,
    .card--right{
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .card-media{
        height: 220px;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }

    /* Sur mobile, l'image reste toujours en haut de la carte */
    .card--right .card-media{ order: -1; }

    .card-title{ font-size: 40px; }

    .project-heart{ display: none; }

    /* ---- Notre histoire ---- */
    .story-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .story-title{ font-size: 25px; }
    .story-photo{ height: 380px; }

    /* ---- Footer ---- */
    .footer-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 30px;
        align-items: start;
    }

    .footer-col--intro{
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-heart{
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col--social{ padding-left: 0; }
    .footer-col--social::before{ display: none; }
}


/* =============================================================
   TABLETTE (≤ 860px) — le hero passe en une colonne
   ============================================================= */
@media (max-width: 860px){

    .hero{
        padding: 34px 0 90px;
    }

    .hero-grid{
        flex-direction: column;
        gap: 0;
    }

    .hero-content{
        max-width: 100%;
        flex-basis: auto;
        order: 1;
    }

    /* La photo repasse dans le flux, sous le texte, dans un cadre net */
    .hero-media{
        order: 2;
        width: 100%;
        flex: none;
        margin-top: 38px;
    }

    .hero-media-frame{
        aspect-ratio: 1040 / 746;
    }

    .hero-media-shape{
        top: 16px;
        right: -14px;
        bottom: -14px;
        left: 14px;
    }

    .hero-media-tag{
        left: 22px;
        bottom: -16px;
        padding: 8px 20px;
        font-size: 18px;
    }

    .hero-text{
        max-width: 460px;
    }

    .torn-paper svg{ height: 48px; }

    .story-photo{ height: 300px; }


    /* Section projet — les 2 cartes passent en 1 colonne (sinon illisible) */
    .section-title{ font-size: 24px; letter-spacing: 1.2px; }
    .section-script{ font-size: 22px; }
    .section--project{ padding: 10px 0 30px; }
    .project-grid{ grid-template-columns: minmax(0, 1fr); gap: 30px; }

    /* Blog */
    .post-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Pages intérieures */
    .page-title{ font-size: 32px; }

    /* Page Séjourner */
    .card--stay .card-body{ padding: 34px 32px 38px; }
    .section--stay{ padding-bottom: 66px; }
    .section--reset{ padding: 62px 0 92px; }
    .reset-panel{ padding: 38px 34px 42px; }
    .reset-lead{ font-size: 26px; }
    .reset-highlight{ padding: 22px 24px; font-size: 14px; }
    .steps-grid{ grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 420px; margin-left: auto; margin-right: auto; }
}


/* =============================================================
   MOBILE (≤ 600px)
   ============================================================= */
@media (max-width: 600px){
    :root{
        --gutter: 20px;
        --radius: 10px;
    }

    /* ---- Header ---- */
    .site-header{ padding: 14px 0 10px; }
    .site-header.is-stuck{ padding: 9px 0; }
    .logo-name{ font-size: 31px; }
    .logo-baseline{
        margin-top: 5px;
        font-size: 8px;
        letter-spacing: .9px;
    }
    .social-link{ width: 22px; height: 22px; }
    .social-link svg{ width: 19px; height: 19px; }
    .nav-toggle{ margin-left: 12px; }

    /* ---- Hero ---- */
    .hero{ padding: 26px 0 68px; }
    .hero-overline{ font-size: 10px; letter-spacing: 1.3px; }
    .hero-title{
        margin-top: 16px;
        font-size: 31px;
        line-height: 1.16;
    }
    .hero-title-script{ font-size: 38px; }
    .hero-text{
        margin-top: 18px;
        font-size: 12.5px;
        line-height: 1.85;
    }
    .hero-rule{ margin-top: 20px; }
    .hero-media{
        margin-top: 30px;
    }
    .hero-media-frame{
        aspect-ratio: 900 / 645;
    }
    .hero-media-shape{
        top: 12px;
        right: -10px;
        bottom: -10px;
        left: 10px;
    }
    .hero-media-tag{
        left: 18px;
        bottom: -14px;
        padding: 7px 16px;
        font-size: 16px;
    }
    .torn-paper svg{ height: 34px; }

    /* ---- Section projet ---- */
    .section--project{ padding: 8px 0 26px; }
    .section-script{ font-size: 19px; }
    .section-title{ font-size: 19px; letter-spacing: .8px; }
    .section-rule{ width: 58px; margin-top: 12px; }
    .project-grid{ margin-top: 24px; gap: 22px; }
    .card-media{ height: 190px; }
    .card-body{ padding: 24px 22px 28px; }
    .card-icon{ width: 68px; height: 68px; }
    .card-icon svg{ width: 36px; height: 36px; }
    .card-title{ font-size: 34px; }
    .card-text{ font-size: 12.5px; line-height: 1.9; }
    .card-body .btn{ margin-top: 22px; }
    .btn{ font-size: 10.5px; letter-spacing: 1.1px; }
    .btn--solid{ padding: 14px 20px; }
    .btn--outline{ padding: 13px 18px; }

    /* Les retours à la ligne forcés sont neutralisés sur mobile */
    .card-text br,
    .story-text br,
    .hero-text br{
        display: none;
    }

    /* ---- Notre histoire ---- */
    .section--story{ padding: 30px 0 30px; }
    .story-title{ font-size: 21px; line-height: 1.4; }
    .story-text{ font-size: 12.5px; }
    .story-script{ font-size: 19px; }
    .story-photos{ margin-top: 26px; }
    .story-photo{ height: 210px; }
    .story-photos-divider{ margin: 10px 12px; }

    /* ---- Footer ---- */
    .footer-torn svg{ height: 22px; }
    .footer-main{ padding: 32px 0 30px; }

    .footer-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        text-align: center;
    }

    .footer-col--news{
        padding-left: 0;
    }

    .footer-col--news::before{
        display: none;
    }

    .footer-script{ font-size: 22px; line-height: 1.6; }
    .footer-script br{ display: none; }
    .footer-text br{ display: none; }
    .footer-title{ font-size: 10.5px; letter-spacing: 1.4px; }

    .footer-bottom{ padding: 16px 0; }

    .footer-bottom-inner{
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 10.5px;
    }

    .footer-links{
        flex-direction: column;
        gap: 7px;
    }

    /* ---- Pages intérieures ---- */
    .page-hero{ padding: 40px 0 34px; }
    .page-title{ font-size: 26px; }
    .page-body{ padding: 34px 0 44px; }
    .post-grid{ grid-template-columns: minmax(0, 1fr); }

    /* ---- Page Séjourner ---- */
    .section--stay{ padding: 6px 0 54px; }
    .card--stay .card-body{ padding: 28px 22px 32px; }
    .stay-subtitle{ font-size: 14px; }
    .amenity-list{ gap: 7px 16px; }
    .section--reset{ padding: 50px 0 72px; }
    .reset-panel{ padding: 30px 22px 34px; }
    .reset-lead{ font-size: 23px; }
    .reset-text{ font-size: 12.5px; }
    .reset-highlight{ padding: 18px 18px; font-size: 13.5px; }

    /* ---- Articles de blog ---- */
    .article-cover{ margin-bottom: 26px; }
    .article-content h2{ font-size: 17px; margin-top: 30px; }

    /* ---- Pourquoi venir / Étapes ---- */
    .section--why{ padding: 10px 0 46px; }
    .why-lead{ font-size: 14.5px; }
    .section--steps{ padding: 10px 0 56px; }
    .steps-grid{ margin-top: 34px; gap: 26px; }
}


/* =============================================================
   TRÈS PETITS ÉCRANS (≤ 380px)
   ============================================================= */
@media (max-width: 380px){
    .logo-name{ font-size: 27px; }
    .logo-baseline{ font-size: 7px; }
    .hero-title{ font-size: 27px; }
    .hero-title-script{ font-size: 33px; }
    .card-title{ font-size: 30px; }
    .section-title{ font-size: 17px; }
}


/* =============================================================
   IMPRESSION
   ============================================================= */
@media print{
    .site-header,
    .nav-toggle,
    .site-footer,
    .torn-paper{
        display: none !important;
    }
    body{
        color: #000;
        background: #fff;
    }
    [data-animate]{
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =============================================================
   RESPONSIVE DES COMPOSANTS DE LA REFONTE 2026
   -------------------------------------------------------------
   Bloc ajouté à la fin du fichier : ne concerne que les nouveaux
   sélecteurs, aucun risque de conflit avec les règles ci-dessus.
   Ordre décroissant de largeur.
   ============================================================= */


/* ---------- LAPTOP (≤ 1280px) ---------- */
@media (max-width: 1280px){

    .intro-hero{ padding: 54px 0 62px; }
    .intro-hero-grid{ gap: 42px; }
    .intro-hero-title{ font-size: 38px; }
    .intro-hero-text{ font-size: 13.5px; }
    .intro-hero-media img{ height: 460px; }

    .prose-lead{ font-size: 20px !important; }
    .prose-close{ font-size: 23px !important; }

    .gallery-grid{ gap: 15px; }
    .gallery-cell img{ height: 200px; }

    .universe-grid{ gap: 22px; }
    .universe-media{ height: 186px; }
    .universe-body{ padding: 22px 24px 26px; }
    .universe-title{ font-size: 32px; }

    .testimonial-grid{ gap: 22px; }
    .testimonial{ padding: 26px 26px 24px; }

    .cta-band{ padding: 62px 0 70px; }
    .cta-band-title{ font-size: 30px; }
    .cta-band-script{ font-size: 24px; }

    .stat-grid{ gap: 20px; }
    .stat-figure{ font-size: 33px; }

    .stay-title{ font-size: 36px; }

    .program-grid{ gap: 18px; }
    .program{ padding: 26px 18px 26px; }
    .program-icon{ width: 58px; height: 58px; }
    .program-icon svg{ width: 30px; height: 30px; }
    .program-title{ font-size: 19px; }

    .duo-media{ height: 270px; }
    .duo-name{ font-size: 31px; }

    .match-row{ padding: 20px 24px; }
    .match-question{ font-size: 13.5px; }

    .card-title--long{ font-size: 33px; }
}


/* ---------- GRANDE TABLETTE (≤ 1080px) ---------- */
@media (max-width: 1080px){

    /* Accroche : la photo passe sous le texte */
    .intro-hero-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .intro-hero-title{ font-size: 34px; }
    .intro-hero-text{ max-width: 100%; }
    .intro-hero-media img{ height: 400px; }

    /* Galerie : 2 colonnes, les cellules larges occupent la ligne entière */
    .gallery-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-cell--wide{ grid-column: span 2; }
    .gallery-cell img{ height: 210px; }

    /* Programmes : 2 colonnes */
    .program-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .cta-band-title{ font-size: 27px; }
}


/* ---------- TABLETTE (≤ 860px) ---------- */
@media (max-width: 860px){

    .section--prose,
    .section--gallery,
    .section--universe,
    .section--testimonials,
    .section--programs,
    .section--duo,
    .section--match{
        padding-bottom: 62px;
    }

    /* Univers : une carte par ligne, largeur maîtrisée */
    .universe-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .universe-media{ height: 210px; }

    /* Témoignages : une carte par ligne */
    .testimonial-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Liste cochée : une colonne */
    .check-list{
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 520px;
    }

    /* Le couple : une carte par ligne */
    .duo-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 460px;
    }

    .duo-media{ height: 300px; }

    /* Blocs d'expérience : espacement resserré */
    .card--stay + .card--stay{ margin-top: 34px; }

    .stay-title{ font-size: 33px; }

    .cta-band{ padding: 52px 0 58px; }
    .cta-band-title{ font-size: 25px; }
    .cta-band-script{ font-size: 21px; }
    .cta-band-text{ font-size: 13.5px; }

    .note-panel{ padding: 28px 26px 30px; }

    /* Aiguillage : question au-dessus, réponse en dessous */
    .match-row{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 22px;
    }

    .match-row:hover .match-answer{ transform: none; }
}


/* ---------- MOBILE (≤ 600px) ---------- */
@media (max-width: 600px){

    /* Accroche */
    .intro-hero{ padding: 32px 0 40px; }
    .intro-hero-title{ font-size: 27px; }
    .intro-hero-text{ font-size: 13px; margin-top: 18px; }
    .intro-hero-media img{ height: 280px; }

    /* Texte narratif */
    .section--prose{ padding: 14px 0 46px; }
    .prose-block p{ font-size: 13.5px; line-height: 1.95; }
    .prose-lead{ font-size: 18px !important; }
    .prose-close{ font-size: 20px !important; }

    /* Galerie : une image par ligne, légende toujours visible */
    .section--gallery{ padding: 14px 0 46px; }

    .gallery-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 26px;
    }

    .gallery-cell--wide{ grid-column: span 1; }
    .gallery-cell img{ height: 210px; }
    .gallery-cell figcaption{ padding: 22px 14px 12px; font-size: 11.5px; }

    /* Univers */
    .section--universe{ padding: 14px 0 46px; }
    .universe-grid{ margin-top: 26px; }
    .universe-media{ height: 180px; }
    .universe-body{ padding: 22px 22px 26px; }
    .universe-title{ font-size: 30px; }
    .universe-text{ font-size: 13px; }

    /* Témoignages */
    .section--testimonials{ padding: 14px 0 46px; }
    .testimonial-grid{ margin-top: 26px; }
    .testimonial{ padding: 24px 22px 22px; }
    .testimonial-text{ font-size: 13px; }

    /* Bandeau CTA : boutons pleine largeur, empilés */
    .cta-band{ padding: 40px 0 46px; }
    .cta-band-script{ font-size: 19px; }
    .cta-band-title{ font-size: 22px; }
    .cta-band-text{ font-size: 13px; margin-top: 14px; }

    .cta-band-actions{
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .cta-band-actions .btn{
        width: 100%;
        justify-content: center;
    }

    /* En-têtes de page enrichis */
    .page-hero-text,
    .page-hero-lead p{ font-size: 13px; }
    .page-hero-lead{ margin-top: 20px; }

    /* Chiffres clés : 2 colonnes pour rester lisible avec 4 chiffres */
    .stat-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 30px;
    }

    .stat{ padding: 20px 12px 18px; }
    .stat-figure{ font-size: 26px; }
    .stat-label{ font-size: 10.5px; margin-top: 7px; }

    /* Bloc secondaire */
    .section--note{ padding: 4px 0 44px; }
    .note-panel{ padding: 24px 20px 26px; }
    .note-panel-title{ font-size: 18px; }
    .note-panel-text{ font-size: 13px; }

    /* Blocs d'expérience */
    .card--stay + .card--stay{ margin-top: 26px; }
    .stay-eyebrow{ font-size: 10.5px; letter-spacing: 1.3px; }
    .stay-title{ font-size: 28px; margin-top: 9px; }

    /* Programmes : une carte par ligne */
    .section--programs{ padding: 14px 0 46px; }

    .program-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 26px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .program-grid--two{ grid-template-columns: minmax(0, 1fr); max-width: 420px; }

    .program{ padding: 26px 22px 26px; }
    .program-title{ font-size: 20px; }
    .program-text{ font-size: 12.5px; }

    /* Liste cochée */
    .check-list{ margin-top: 24px; }
    .check-list li{ font-size: 13px; padding-left: 26px; }

    /* Le couple */
    .section--duo{ padding: 14px 0 46px; }
    .duo-grid{ margin-top: 26px; }
    .duo-media{ height: 250px; }
    .duo-name{ font-size: 29px; }
    .duo-text{ font-size: 13px; }

    /* Aiguillage */
    .section--match{ padding: 14px 0 46px; }
    .match-list{ margin-top: 26px; }
    .match-row{ padding: 18px 18px; }
    .match-question{ font-size: 13px; }
    .match-answer{ font-size: 12px; }

    /* Titre de carte long */
    .card-title--long{ font-size: 27px; }
}


/* ---------- TRÈS PETITS ÉCRANS (≤ 380px) ---------- */
@media (max-width: 380px){

    .intro-hero-title{ font-size: 24px; }
    .cta-band-title{ font-size: 20px; }
    .stay-title{ font-size: 25px; }
    .universe-title{ font-size: 27px; }
    .card-title--long{ font-size: 24px; }

    /* Les chiffres clés passent en colonne pour rester lisibles */
    .stat-grid{ grid-template-columns: minmax(0, 1fr); }
}
