/* ============================================================
   MOBILE — famille tapissier-hub
   Pages : maquette-tapissier.html (hub),
           maquette-tapissier-lits.html, maquette-tapissier-rideaux.html
   Règles UNIQUEMENT en @media (max-width:900px ou moins) :
   le rendu desktop reste strictement identique.
   Chargé après le CSS inline + mobile-common.css.
   ============================================================ */

@media (max-width:900px){

  /* ---------- COMMUN AUX 3 PAGES ---------- */

  /* Carrousels : le snap alignait la 1re carte au bord de l'écran
     (padding ignoré) → on aligne le snap sur le padding de 22px */
  .ap-carousel, .reels-carousel, .seo-carousel, .gal-track{
    scroll-padding-left:22px; scroll-padding-right:22px;
  }

  /* Hero : bouton pleine largeur, confortable au pouce */
  .hero .btn-outline, .hero .btn{
    width:100%; max-width:360px; justify-content:center;
    min-height:52px; padding:16px 20px;
  }

  /* ---------- PAGE HUB (maquette-tapissier) ---------- */

  /* Trio de cartes : titres serif trop aérés (interligne hérité 1.65)
     et padding desktop trop large */
  .trio .tcard{ padding:34px 26px 32px; }
  .trio .tcard .tcard-ico{ margin-bottom:22px; }
  .trio .tcard h3{ font-size:26px; line-height:1.2; margin-bottom:10px; }
  .trio .tcard p{ font-size:15px; line-height:1.65; margin-bottom:20px; }

  /* Chiffres : un peu plus compacts */
  .stat{ padding:42px 16px; }

  /* Logos partenaires un peu plus lisibles */
  .partner img{ max-width:132px; max-height:52px; }
  .partners-note{ font-size:13.5px; padding:0 2px; }

  /* Texte SEO : le justifié crée des trous disgracieux sur colonne étroite */
  .seo-lead, .seo-block p{ text-align:left; }
  .seo-block{ flex-basis:min(86vw, 480px); }
  .seo-block h3{ line-height:1.2; }

  /* Conversion : boutons empilés pleine largeur, numéro sur une ligne */
  .cta-actions{ flex-direction:column; align-items:stretch; gap:14px; max-width:380px; margin:0 auto; }
  .cta-actions .btn-solid, .cta-actions .btn-outline{
    width:100%; justify-content:center; text-align:center;
    padding:17px 14px; font-size:11.5px; letter-spacing:.08em; min-height:52px;
  }
  .perks{ margin-top:46px; }
  .perks li{ padding:24px 12px 0; }

  /* Zones d'intervention (petit maillage sous le CTA) : + lisible */
  .cta + section p + p{ font-size:13.5px !important; line-height:2.1 !important; }
  .cta + section p + p a{ display:inline-block; padding:1px 0; }

  /* ---------- PAGES LITS & RIDEAUX (gabarit immersif) ---------- */

  /* Savoir-faire : colonne des numéros moins large, titres resserrés */
  .svc{ grid-template-columns:34px 1fr; gap:16px; padding:24px 0; }
  .svc h3{ font-size:22px; line-height:1.25; margin-bottom:8px; }
  .svc p{ font-size:15px; line-height:1.7; }

  /* Tarifs : cartes trop vastes, titres/prix trop aérés (interligne hérité) */
  .tarif-grid{ gap:18px; }
  .tarif-grid .tcard{ padding:30px 24px 32px; }
  .tarif-grid .tcard h3{ font-size:25px; line-height:1.25; margin:12px 0 8px; }
  .tarif-grid .tcard .price{ font-size:30px; line-height:1.2; }
  .tarif-grid .tcard p{ font-size:15px; margin-top:14px; }
  .tarifs .note{ font-size:13.5px; padding:0 6px; }

  /* FAQ : questions mieux rythmées, réponses un peu plus grandes */
  .faq-q{ font-size:21px; line-height:1.3; padding:22px 0; gap:16px; }
  .faq-a p{ font-size:15.5px; }

  /* CTA final : bouton pleine largeur */
  .cta .btn{ width:100%; max-width:360px; justify-content:center; min-height:52px; }

  /* Galerie : petit indice de glissement plus lisible */
  .gal-hint{ font-size:13px; }
}

@media (max-width:640px){
  /* Bandeau services offerts (hub) : lisibilité des puces */
  .offer-band li{ font-size:13px; }
}

@media (max-width:640px){
  /* Hero lits/rideaux : la contrainte max-width:12ch coupait le titre
     en « sur- / mesure » — on libère la largeur et on cale la taille
     pour que « Rideaux sur-mesure » tienne sur une seule ligne.
     (le hub garde son .hero-title géré par le CSS inline) */
  .hero h1:not(.hero-title){ max-width:none; font-size:clamp(38px,11.5vw,50px); }
}

/* Section « Toutes nos prestations » (cartes empilées du hub tapissier) :
   demande d'Owens — texte et bouton quasi centrés sur la photo,
   sur mobile uniquement, avec un voile qui garde le texte lisible. */
@media (max-width:900px){
  .stack-panel, .stack-card.right .stack-panel{
    top:0; bottom:0; justify-content:center;
    padding:30px 22px;
    background:linear-gradient(rgba(22,15,26,.32), rgba(22,15,26,.62) 40%, rgba(22,15,26,.85));
  }
}
