/* ============================================================
   PATTES & PRESTIGE — mobile.css
   Interface mobile complète et dédiée
   ============================================================ */

/* ══════════════════════════════════════════════════
   NAV MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .nav {
    height: 60px;
    padding: 0 16px;
  }

  .nav__logo img { height: 40px !important; }

  .nav__links {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background: rgba(245,238,230,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 0;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .nav__links.open {
    display: flex !important;
    animation: navSlideIn 0.25s ease both;
  }

  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav__links li {
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-bottom: 1px solid rgba(58,47,39,0.07);
    list-style: none;
  }
  .nav__links li:last-child { border: none; }

  .nav__links a {
    display: block;
    padding: 1.1rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__links a.active { color: var(--season-text-accent, #c4748a); }

  .nav__hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 4px;
  }

  .nav__hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .btn-cart { padding: 8px 12px; font-size: 0.8rem; }
  .btn-icon  { padding: 8px; }
}

@media (min-width: 769px) {
  .nav__hamburger { display: none !important; }
}

/* ══════════════════════════════════════════════════
   HOME HERO MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .hero {
    padding-top: 60px;
    min-height: auto;
  }

  .hero__layout {
    grid-template-columns: 1fr !important;
    padding: 2rem 5vw 3rem;
    gap: 2rem;
  }

  .hero__content { order: 1; text-align: center; }

  .hero__season-label { margin: 0 auto 1rem; }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero__sub { font-size: 0.9rem; }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .hero__cta .btn-primary,
  .hero__cta .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }

  .hero__visual {
    order: 2;
    height: 280px;
  }

  .hero__ring--outer { width: 240px !important; height: 240px !important; }
  .hero__ring--mid   { width: 180px !important; height: 180px !important; }
  .hero__card        { width: 180px !important; padding: 1.2rem !important; }
  .hero__animal      { font-size: 3rem !important; }

  .fc--1, .fc--2 { display: none !important; }

  .hero__scroll-hint { display: none; }
}

/* ══════════════════════════════════════════════════
   SECTIONS HOME MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Section header */
  .section-header { padding: 0 5vw; text-align: center; }
  .section-title  { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  /* Catégories */
  .categories { padding: 3rem 5vw; }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
  }
  .cat-card { padding: 1.2rem !important; }
  .cat-card__icon { font-size: 1.8rem !important; }
  .cat-card h3 { font-size: 0.9rem !important; }
  .cat-card p  { display: none; }

  /* Défilé saisons */
  .seasons { padding: 3rem 5vw; }
  .season-tabs {
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .season-tab {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .parade-track { gap: 1rem; padding: 0 !important; }
  .parade-item  { min-width: 200px !important; }
  .parade-item__img { height: 160px !important; }

  /* Artisanat */
  .artisanat { padding: 3rem 5vw; }
  .artisanat__split { grid-template-columns: 1fr !important; gap: 2rem; }
  .artisanat__img { height: 240px !important; }

  /* Formations home */
  .formations-preview { padding: 3rem 5vw; }
  .formations-grid { grid-template-columns: 1fr !important; gap: 1rem; }

  /* Témoignages */
  .testimonials { padding: 3rem 5vw; }
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 1rem; }

  /* Newsletter */
  .newsletter { padding: 3rem 5vw; }
  .newsletter__glass { padding: 2rem 1.5rem !important; }
  .newsletter__form  { flex-direction: column !important; gap: 0.8rem; }
  .newsletter__form input,
  .newsletter__form button { width: 100% !important; }

  /* Footer */
  .footer__top { flex-direction: column !important; gap: 2rem; padding: 2.5rem 5vw !important; }
  .footer__links { grid-template-columns: repeat(2,1fr) !important; gap: 1.5rem; }
  .footer__bottom { flex-direction: column !important; text-align: center; gap: 0.8rem; padding: 1.5rem 5vw !important; }
  .footer__contact-info { display: flex; flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 0.6rem; }
  .cat-card { padding: 0.8rem !important; }
  .cat-card__icon { font-size: 1.5rem !important; }
  .cat-card h3 { font-size: 0.75rem !important; }
  .footer__links { grid-template-columns: 1fr 1fr !important; }
}

/* ══════════════════════════════════════════════════
   BOUTIQUE MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .shop-layout { grid-template-columns: 1fr !important; }

  /* Filtres en horizontal scrollable */
  .shop-sidebar {
    position: static !important;
    width: 100% !important;
    top: auto !important;
  }

  .sidebar-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 0 0 12px 0 !important;
    scrollbar-width: none;
  }

  .sidebar-filters::-webkit-scrollbar { display: none; }

  .sidebar-section { min-width: auto !important; flex-shrink: 0; }

  .sidebar-section h4 {
    display: none !important;
  }

  /* Filtres pills */
  .sidebar-section ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .sidebar-section ul li {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Grille produits */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }

  .product-card__img   { height: 160px !important; }
  .product-card__emoji { font-size: 3rem !important; }
  .product-card__name  { font-size: 0.95rem !important; }
  .product-card__desc  { display: none !important; }
  .product-card__info  { padding: 0.8rem !important; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════
   FICHE PRODUIT MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .product-layout { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  .product-gallery__main { min-height: 300px !important; }

  .product-gallery__thumbs {
    gap: 6px !important;
  }

  .product-gallery__thumb {
    height: 64px !important;
  }

  .gallery-arrow { opacity: 0.7 !important; width: 36px !important; height: 36px !important; }

  .product-info { padding: 0 !important; }

  .product-info__name { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }

  .size-selector { flex-wrap: wrap !important; gap: 8px !important; }
  .size-btn      { min-width: 48px; min-height: 44px; }

  .product-info__cta { flex-direction: column !important; gap: 1rem !important; }
  .btn-add-to-cart   { width: 100% !important; justify-content: center !important; }

  .product-tabs__nav { flex-wrap: wrap !important; gap: 4px !important; }
  .product-tab-btn   { font-size: 0.8rem !important; padding: 8px 14px !important; }

  .related-grid { grid-template-columns: repeat(2,1fr) !important; gap: 0.8rem !important; }
}

/* ══════════════════════════════════════════════════
   PANIER MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .cart-layout { grid-template-columns: 1fr !important; }

  .cart-sidebar { position: static !important; order: -1; }

  .cart-item { gap: 0.8rem !important; }
  .cart-item__img { width: 64px !important; height: 64px !important; flex-shrink: 0; }

  .cart-item__name { font-size: 0.95rem !important; }

  .cart-item__actions { flex-wrap: wrap !important; gap: 8px !important; }

  .free-shipping-bar { margin: 0 0 1.5rem !important; }

  .cart-suggestions { display: none; }
}

/* ══════════════════════════════════════════════════
   CHECKOUT MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .checkout-layout { grid-template-columns: 1fr !important; }

  .checkout-sidebar { order: -1 !important; }

  .checkout-steps {
    gap: 0 !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .checkout-step { min-width: 80px; text-align: center; }

  .step-label { font-size: 0.65rem !important; }

  .form-row { grid-template-columns: 1fr !important; }

  .shipping-options { gap: 0.8rem !important; }

  .payment-methods { flex-direction: column !important; gap: 0.8rem !important; }
  .payment-method  { padding: 1rem !important; }
}

/* ══════════════════════════════════════════════════
   COMPTE CLIENT MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .auth-card { padding: 2rem 1.5rem !important; margin: 1rem !important; }

  .account-dashboard { padding: 1.5rem 4vw 4rem !important; }

  .account-header { flex-direction: column !important; gap: 1rem !important; }

  .account-nav {
    width: 100% !important;
    border-radius: 12px !important;
    overflow-x: auto;
    padding: 4px !important;
    scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav__tab { padding: 8px 12px !important; font-size: 0.75rem !important; white-space: nowrap; }

  .wishlist-grid    { grid-template-columns: repeat(2,1fr) !important; }
  .animals-grid     { grid-template-columns: repeat(2,1fr) !important; }
  .settings-sections { gap: 1rem !important; }

  .order-card__header { flex-direction: column !important; gap: 6px !important; }
  .order-card__items  { flex-wrap: wrap !important; }

  /* Modals plein écran sur mobile */
  .account-modal { padding: 0 !important; align-items: flex-end !important; }
  .account-modal__box {
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════
   BLOG MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .blog-filters { padding: 0 4vw 1.5rem !important; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .blog-filters::-webkit-scrollbar { display: none; }
  .blog-filter-btn { flex-shrink: 0; padding: 7px 14px !important; font-size: 0.78rem !important; }

  .blog-featured { padding: 0 4vw 2rem !important; }
  .featured-article { grid-template-columns: 1fr !important; }
  .featured-article__img { height: 200px !important; font-size: 6rem !important; }
  .featured-article__content { padding: 1.5rem !important; }

  .blog-grid-section { padding: 0 4vw 3rem !important; }
  .blog-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }

  .blog-newsletter { margin: 0 4vw 3rem !important; padding: 2rem 1.5rem !important; }
  .blog-newsletter__form { flex-direction: column !important; }

  .blog-modal { padding: 0 !important; align-items: flex-end !important; }
  .blog-modal__box { border-radius: 20px 20px 0 0 !important; max-height: 90vh !important; max-width: 100% !important; }
}

/* ══════════════════════════════════════════════════
   PAGES LÉGALES / ABOUT / CONTACT MOBILE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

  .page-hero { padding: calc(60px + 2rem) 5vw 2rem !important; flex-direction: column !important; }
  .page-hero__deco { display: none; }
  .page-hero__content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem) !important; }

  .contact-layout { grid-template-columns: 1fr !important; padding: 0 5vw 4rem !important; }
  .contact-form   { padding: 1.5rem !important; }
  .contact-info   { position: static !important; display: flex !important; flex-direction: column !important; }
  .contact-animal-row { grid-template-columns: 1fr !important; }
  .subject-options { gap: 6px !important; }

  .about-hero { grid-template-columns: 1fr !important; padding-top: calc(60px + 2rem) !important; gap: 1.5rem; }
  .about-hero__visual { height: 220px !important; }
  .about-hero__big { font-size: 5rem !important; }
  .story-chapter { grid-template-columns: 40px 1fr !important; gap: 0.8rem !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .about-atelier { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .about-atelier__visual { height: 200px !important; }
  .animals-intro-grid { grid-template-columns: 1fr !important; }
  .animal-intro-card { grid-template-columns: 60px 1fr !important; gap: 1rem !important; }
  .about-cta { padding: 2rem 1.2rem !important; margin: 0 4vw 3rem !important; }
  .about-cta__actions { flex-direction: column !important; align-items: center !important; }
  .atelier-stats { grid-template-columns: repeat(2,1fr) !important; }

  .formations-section { grid-template-columns: 1fr !important; padding: 0 5vw 3rem !important; }
  .why-grid { grid-template-columns: repeat(2,1fr) !important; }

  .sm-form-wrap { padding: 0 4vw 3rem !important; }
  .sm-form { padding: 1.2rem !important; }
  .sm-row { grid-template-columns: 1fr !important; }
  .sm-product-picker { gap: 6px !important; }

  .legal-page { padding: calc(60px + 2rem) 5vw 4rem !important; }
}

/* ══════════════════════════════════════════════════
   WIDGET SAISON — caché sur mobile
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  #pp-float-season { display: none !important; }
}

/* ══════════════════════════════════════════════════
   TOUCH — zones de clic élargies
   ══════════════════════════════════════════════════ */

@media (hover: none) {
  .size-btn, .qty-btn, .filter-pill,
  .season-tab, .auth-tab, .account-nav__tab,
  .blog-filter-btn, .subject-option span,
  .sm-product-option span, .sm-metal-option span,
  .sm-deco-option span, .animal-option span {
    min-height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Supprimer hover transform sur touch */
  .glass-card:hover,
  .product-card:hover,
  .blog-card:hover,
  .cat-card:hover,
  .formation-card:hover,
  .value-card:hover,
  .why-card:hover { transform: none !important; }
}

/* ══════════════════════════════════════════════════
   SCROLLBAR FINE
   ══════════════════════════════════════════════════ */

::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 40%, rgba(200,180,160,0.3));
  border-radius: 4px;
}
