
/* ══════════════════════════════════════════
   §130 — COMPREHENSIVE MOBILE OVERHAUL
   Interface téléphone propre, moderne
   et agréable au toucher
══════════════════════════════════════════ */

/* ── A. Variables & nav height ── */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
}

/* ══════════════════════════════════════════
   NAV DROPDOWN — RESPONSIVE OVERRIDES
══════════════════════════════════════════ */

/* 900px-1100px : smaller logo text + compact links */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__logo { font-size: 0 !important; gap: 0 !important; }
  .nav__logo svg { width: 28px; height: 28px; }
  .nav__link { font-size: .58rem !important; padding: 7px 8px !important; }
  .nav__cta { padding: 8px 14px !important; font-size: .62rem !important; }
}

/* 1101-1350px : shorter logo */
@media (min-width: 1101px) and (max-width: 1350px) {
  .nav__logo { font-size: 1rem !important; }
  .nav__link { font-size: .61rem !important; padding: 8px 9px !important; }
  .nav__cta { padding: 9px 16px !important; font-size: .65rem !important; }
}

/* Burger + hide links under 900px */
@media (max-width: 900px) {
  .nav__links, .nav > .nav__inner > .nav__cta { display: none !important; }
  .nav__burger { display: flex !important; }
  .nav { top: 10px; }
  .nav__inner { padding: 10px 16px !important; border-radius: 16px !important; }
}

@media (max-width: 480px) {
  .nav { top: 8px; }
  .nav__inner { width: 96% !important; }
}

/* ── Mobile drawer ── */

/* ── C. Hero mobile ── */
@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero__content { padding: 0 22px; }
  .hero__badge { font-size: .67rem; padding: 7px 14px; margin-bottom: 22px; }
  .hero__divider { margin: 18px auto; }
  .hero__subtitle { margin-bottom: 28px; font-size: .96rem; line-height: 1.75; }
  .hero__actions { gap: 10px; }
  .hero__scroll { bottom: 20px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.5rem, 10.5vw, 4.2rem); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero__actions .btn { justify-content: center; width: 100%; }
}

/* ── D. Page hero mobile ── */
@media (max-width: 768px) {
  .page-hero { height: 36vh; min-height: 210px; padding-bottom: 32px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
}

/* ── E. Sections & container ── */
@media (max-width: 768px) {
  .section     { padding: 60px 0; }
  .section--sm { padding: 36px 0; }
  .container   { width: 92%; }
  .section-header { margin-bottom: 38px; }
  .section-header h2 { font-size: clamp(1.65rem, 7vw, 2.6rem); }
}
@media (max-width: 480px) {
  .section     { padding: 48px 0; }
  .container   { width: 94%; }
  .section-header { margin-bottom: 28px; }
}

/* ── F. Boutons — touch targets ── */
@media (max-width: 768px) {
  .btn { min-height: 48px; font-size: .77rem; padding: 13px 26px; }
  .btn-text { min-height: 44px; padding: 12px 0; }
}

/* ── G. Typographie mobile ── */
@media (max-width: 480px) {
  h2 { font-size: clamp(1.55rem, 7vw, 2.4rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.65rem); }
  .lead { font-size: 1.02rem; }
  blockquote { font-size: 1.25rem; }
  p { font-size: .95rem; }
}

/* ── H. Cards — why / stats ── */
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 22px 14px; }
  .why-icon { width: 54px; height: 54px; font-size: 1.6rem; margin-bottom: 12px; }
  .why-title { font-size: .97rem; }
  .why-desc  { font-size: .78rem; }
}
@media (max-width: 360px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats__num { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* ── I. Footer mobile ── */
@media (max-width: 768px) {
  .footer { padding: 48px 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__logo { font-size: 1.05rem; }
  .footer__tagline { font-size: .8rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; font-size: .76rem; }
  .footer__title { font-size: .72rem; letter-spacing: .1em; }
  .footer__link { font-size: .84rem; padding: 5px 0; display: block; }
  .footer__contact-item { font-size: .8rem; }
}

/* ── J. Formulaires — empêche zoom iOS & touch targets ── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 48px;
    padding: 13px 16px;
  }
  textarea { min-height: 120px; }
  .form-field label { font-size: .78rem; margin-bottom: 6px; }
}

/* ── K. Éléments flottants — pas de chevauchement ── */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 18px; right: 16px;
    width: 52px; height: 52px;
  }
  .floating-cta svg { width: 21px; height: 21px; }
  .scroll-top {
    bottom: 82px; right: 16px;
    width: 44px; height: 44px;
  }
  .scroll-top svg { width: 17px; height: 17px; }
  #bayo-chat { bottom: 80px; right: 14px; }
  .bayo-chat__fab { width: 50px; height: 50px; }
}

/* ── L. Cookie banner ── */
@media (max-width: 600px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 18px 20px;
    gap: 10px;
    flex-direction: column;
  }
  .cookie-banner p { font-size: .82rem; }
  .cookie-banner__actions { display: flex; flex-direction: row; gap: 8px; width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; font-size: .72rem; padding: 10px 10px; min-height: 42px; }
}

/* ── M. Tables ── */
@media (max-width: 600px) {
  .info-table th, .info-table td { padding: 9px 10px; font-size: .77rem; }
  .budget-table th, .budget-table td { padding: 8px 8px; font-size: .74rem; }
  .info-table, .budget-table { width: 100%; }
}

/* ── N. Témoignages mobile ── */
@media (max-width: 640px) {
  .temo-masonry { columns: 1; gap: 12px; }
  .temo-card { padding: 20px; break-inside: avoid; }
  .temo-summary-bar { grid-template-columns: 1fr 1fr; }
  .temo-sum-item { padding: 18px 12px; }
  .temo-sum-num { font-size: 1.8rem; }
}

/* ── O. Tip/article boxes ── */
@media (max-width: 600px) {
  .tip-box { padding: 16px 18px; }
  .tip-box p { font-size: .86rem; }
  .article-content h2 { font-size: clamp(1.4rem, 6vw, 2rem); margin-top: 44px; }
  .article-content h3 { font-size: clamp(1.1rem, 5vw, 1.4rem); margin-top: 32px; }
  .article-content p { font-size: .93rem; }
  .article-content ul { padding-left: 18px; }
}

/* ── P. Guarantee strip ── */
@media (max-width: 600px) {
  .guarantee-strip { flex-direction: column; gap: 14px; padding: 18px 20px; }
  .guarantee-item { min-width: 0; }
  .guarantee-icon { width: 38px; height: 38px; }
}

/* ── Q. Litter / suivi mobile ── */
@media (max-width: 600px) {
  .litter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 2px; }
  .litter-btn { flex-shrink: 0; padding: 9px 14px; font-size: .7rem; white-space: nowrap; }
  .week-pills { flex-wrap: nowrap; overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .week-pill { flex-shrink: 0; padding: 7px 12px; font-size: .68rem; }
}

/* ── R. Safe area support (notch / Dynamic Island) ── */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .nav__inner {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
  @media (max-width: 600px) {
    .nav__mobile {
      padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
    .cookie-banner {
      padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .floating-cta {
      bottom: max(18px, env(safe-area-inset-bottom));
    }
    .scroll-top {
      bottom: max(82px, calc(env(safe-area-inset-bottom) + 64px));
    }
    #bayo-chat {
      bottom: max(80px, calc(env(safe-area-inset-bottom) + 62px));
    }
  }
}

/* ── S. Overflow horizontal global ── */
body { overflow-x: hidden; }

/* ── T. Puppy cards — layout horizontal sur mobile ── */
@media (max-width: 600px) {
  .puppy-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    min-height: 0;
    overflow: hidden;
  }
  .puppy-card__img-wrap {
    width: 105px;
    min-height: 130px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
  }
  .puppy-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  .puppy-card__body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .puppy-card__name { font-size: 1.05rem; margin-bottom: 3px; }
  .puppy-card__breed { font-size: .72rem; margin-bottom: 6px; }
  .trait-pills { margin: 4px 0 8px; gap: 4px; }
  .trait-pill { padding: 3px 7px; font-size: .57rem; }
  .puppy-card__actions { flex-direction: column; gap: 5px; margin-top: 6px; }
  .puppy-card__actions .btn { font-size: .68rem; padding: 8px 12px; min-height: 36px; }
}

/* ── U. Blog cards mobile ── */
@media (max-width: 600px) {
  .blog-card { display: flex; flex-direction: column; }
  .blog-card__img { height: 175px; }
  .blog-card__body { padding: 18px; }
  .blog-card__title { font-size: 1.05rem; line-height: 1.3; }
  .blog-card__excerpt { font-size: .84rem; }
}

/* ── V. Hero social proof bar ── */
@media (max-width: 600px) {
  .social-proof__inner { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .social-proof__item { font-size: .78rem; }
}

/* ── W. Marquee / annonce bar ── */
@media (max-width: 600px) {
  .marquee-bar { font-size: .68rem; padding: 9px 0; }
}

/* ── X. Fade-in désactivé sur mobile (performances) ── */
@media (max-width: 768px) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] { transform: none !important; }
  .tilt-card { transform: none !important; transition: none !important; }
}
