/* =============================================
   Mapharma France - Complete Responsive Styles
   v2.0.4 - Mobile-First Approach
   ============================================= */

/* ==========================================
   TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
  /* Layout grids */
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* General */
  .site-main { flex-direction: column; }
  .widget-area { width: 100%; }
  .hero-title { font-size: 42px; }
}

/* ==========================================
   MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
  
  /* ----- Top Bar ----- */
  .top-bar {
    font-size: 11px;
    padding: 6px 0;
  }
  .top-bar .container {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-bar-item:nth-child(3),
  .top-bar-item:nth-child(4) { display: none; }
  .top-bar-item svg {
    width: 12px;
    height: 12px;
  }
  
  /* ----- Header ----- */
  .header-inner {
    height: 56px;
    gap: 8px;
    padding: 0 12px;
  }
  .logo-link { gap: 6px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon svg { width: 18px; height: 18px; }
  .logo-title { font-size: 15px; }
  .logo-tagline { display: none; }
  .header-search { display: none; }
  .header-actions { gap: 6px; }
  .header-action svg { width: 20px; height: 20px; }
  .header-action .action-label { display: none; }
  .header-cart .cart-count { 
    width: 16px; height: 16px; 
    font-size: 9px; 
    top: -4px; right: -6px; 
  }
  .menu-toggle { 
    display: flex; 
    padding: 6px; 
    margin-left: 4px;
  }
  .site-branding { 
    flex: 0 1 auto; 
    min-width: 0;
    overflow: hidden;
  }
  
  /* ----- Mobile Navigation ----- */
  .main-navigation { display: none; }
  .main-navigation.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--primary);
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-navigation.mobile-open .nav-menu { flex-direction: column; }
  .main-navigation.mobile-open .nav-menu > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-navigation.mobile-open .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--primary-dark);
  }
  .main-navigation.mobile-open .nav-menu li.menu-item-has-children > a::after {
    content: '+';
    float: right;
    font-size: 18px;
  }
  .main-navigation.mobile-open .nav-menu li.submenu-open > .sub-menu { display: block; }
  
  /* ----- Promo Banner ----- */
  .promo-banner {
    font-size: 12px;
    padding: 8px 10px;
    line-height: 1.5;
  }
  .promo-banner .promo-code {
    padding: 1px 6px;
    font-size: 11px;
  }
  .promo-banner .promo-separator { display: none; }
  .promo-timer {
    display: block;
    margin-top: 2px;
  }
  
  /* ----- Hero Section ----- */
  .hero-section {
    padding: 40px 0 50px;
    text-align: center;
  }
  .hero-section .container {
    padding: 0 16px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  /* Countdown in hero */
  .countdown-timer {
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
  }
  .countdown-item {
    padding: 8px 12px;
    min-width: 52px;
    border-radius: 8px;
  }
  .countdown-number {
    font-size: 22px;
  }
  .countdown-label {
    font-size: 10px;
  }
  
  /* Hero image */
  .hero-image-wrapper {
    margin-top: 24px;
  }
  .hero-image-wrapper img {
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
  }
  
  /* ----- Section Headers ----- */
  .section-title {
    font-size: 22px;
  }
  .section-subtitle {
    font-size: 14px;
  }
  
  /* ----- Trust Section ----- */
  .trust-section {
    padding: 30px 0;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trust-item {
    padding: 12px;
  }
  .trust-icon {
    width: 40px;
    height: 40px;
  }
  .trust-icon svg {
    width: 20px;
    height: 20px;
  }
  .trust-item h3 {
    font-size: 13px;
  }
  .trust-item p {
    font-size: 12px;
  }
  
  /* ----- Categories ----- */
  .categories-section {
    padding: 40px 0;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    padding: 20px 10px;
  }
  .cat-icon {
    width: 48px;
    height: 48px;
  }
  .cat-icon svg {
    width: 24px;
    height: 24px;
  }
  .cat-name {
    font-size: 13px;
  }
  
  /* ----- Products ----- */
  .products-section {
    padding: 40px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    border-radius: 10px;
  }
  .product-image {
    height: 160px;
  }
  .product-title {
    font-size: 13px;
  }
  .product-title a {
    font-size: 13px;
  }
  .product-price {
    font-size: 14px;
  }
  .btn-add-cart {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  /* Free shipping progress */
  .progress-bar-container {
    padding: 12px 16px;
    margin-bottom: 24px;
  }
  .progress-bar-label {
    font-size: 12px;
  }
  
  /* Promo image section */
  .promo-image-section {
    padding: 0 0 30px;
  }
  .promo-image-section img {
    border-radius: 10px;
  }
  
  /* ----- Stats Section ----- */
  .stats-section {
    padding: 40px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-label {
    font-size: 13px;
  }
  
  /* ----- Why Choose Us ----- */
  .why-section {
    padding: 40px 0;
  }
  .why-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-image-col {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .why-image-col img {
    border-radius: 12px;
  }
  .why-grid-stacked {
    gap: 12px;
  }
  .why-item-card {
    padding: 16px;
    border-radius: 10px;
  }
  .why-item-card h3 {
    font-size: 15px;
  }
  .why-item-card p {
    font-size: 13px;
  }
  
  /* ----- Reviews ----- */
  .reviews-section {
    padding: 40px 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card {
    padding: 20px;
  }
  .review-text {
    font-size: 14px;
  }
  
  /* ----- Newsletter ----- */
  .newsletter-section {
    padding: 40px 0;
  }
  .newsletter-title {
    font-size: 22px;
  }
  .newsletter-subtitle {
    font-size: 14px;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
    border-radius: var(--radius-md);
  }
  
  /* ----- Social Proof Toast ----- */
  #social-toast {
    max-width: calc(100vw - 32px);
    left: 16px;
    bottom: 16px;
    padding: 12px 16px;
    gap: 10px;
  }
  #toast-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  #toast-content {
    font-size: 12px;
  }
  
  /* ----- Footer ----- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* ----- Page Titles ----- */
  .page-title,
  .single-post .post-title {
    font-size: 24px;
  }
  
  /* ----- 404 ----- */
  .error-404 .error-title {
    font-size: 60px;
  }
}

/* ==========================================
   SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  /* Top bar */
  .top-bar {
    font-size: 10px;
    padding: 4px 0;
  }
  .top-bar-item span {
    display: none;
  }
  
  /* Header */
  .header-inner {
    padding: 0 8px;
    height: 52px;
  }
  .logo-title {
    font-size: 14px;
  }
  
  /* Hero */
  .hero-section {
    padding: 32px 0 40px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-badge {
    font-size: 11px;
  }
  
  /* Countdown */
  .countdown-item {
    padding: 6px 10px;
    min-width: 46px;
  }
  .countdown-number {
    font-size: 20px;
  }
  .countdown-label {
    font-size: 9px;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-label {
    font-size: 12px;
  }
  
  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-image {
    height: 130px;
  }
  .product-title a {
    font-size: 12px;
  }
  
  /* Trust */
  .trust-grid {
    gap: 10px;
  }
  .trust-item {
    padding: 10px 8px;
  }
  
  /* Categories */
  .categories-grid {
    gap: 10px;
  }
  .category-card {
    padding: 16px 8px;
  }
  .cat-name {
    font-size: 12px;
  }
  
  /* Promo banner */
  .promo-banner {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  /* Toast */
  #social-toast {
    max-width: calc(100vw - 20px);
    left: 10px;
    bottom: 10px;
    padding: 10px 14px;
  }
}

/* ==========================================
   EXTRA SMALL (max-width: 360px)
   ========================================== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 20px;
  }
  .stat-number {
    font-size: 22px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LANDSCAPE MOBILE (max-height: 500px)
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 30px 0 40px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-image-wrapper img {
    max-height: 200px;
  }
}

/* =============================================
   INTERNAL PAGES RESPONSIVE
   About / FAQ / Livraison / Legal / Generic
   ============================================= */

/* =============================================
   TABLET ADJUSTMENTS (max-width: 1024px)
   Internal Pages
   ============================================= */
@media (max-width: 1024px) {

  /* ----- About Page ----- */
  .about-title {
    font-size: 42px;
  }
  .about-subtitle {
    font-size: 16px;
  }
  .history-layout {
    gap: 32px;
  }
  .history-image img {
    border-radius: 12px;
  }
  .values-grid {
    gap: 20px;
  }
  .value-card {
    padding: 24px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .quality-layout {
    gap: 32px;
  }

  /* ----- FAQ Page ----- */
  .faq-title {
    font-size: 38px;
  }
  .faq-question {
    padding: 16px 20px;
    font-size: 15px;
  }
  .faq-answer-inner {
    padding: 0 20px 20px;
  }
  .contact-options {
    gap: 12px;
  }
  .faq-cta-grid {
    gap: 20px;
  }

  /* ----- Livraison Page ----- */
  .livraison-title {
    font-size: 38px;
  }
  .delivery-cards {
    gap: 20px;
  }
  .pricing-table {
    font-size: 14px;
  }
  .tracking-steps {
    gap: 16px;
  }
  .returns-layout {
    gap: 32px;
  }

  /* ----- Legal Pages ----- */
  .legal-title {
    font-size: 32px;
  }
  .legal-heading {
    font-size: 22px;
  }
}

/* =============================================
   MOBILE (max-width: 768px)
   Internal Pages
   ============================================= */
@media (max-width: 768px) {

  /* ====== LAYOUT GENERAL ====== */
  .container {
    padding: 0 16px;
  }
  section {
    padding: 40px 0;
  }
  .page-content {
    padding: 20px 0 40px;
  }

  /* ====== ABOUT PAGE ====== */
  .about-header {
    padding: 30px 0 20px;
    text-align: center;
  }
  .about-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .about-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  /* History section - stack columns, image first */
  .about-history {
    padding: 40px 0;
  }
  .history-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .history-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .history-image img {
    border-radius: 12px;
  }
  .history-content {
    text-align: center;
  }
  .history-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .history-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Mission section */
  .about-mission {
    padding: 40px 0;
  }
  .mission-box {
    padding: 24px 20px;
    border-radius: 12px;
  }
  .mission-box h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .mission-box p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Values grid - single column */
  .about-values {
    padding: 40px 0;
  }
  .about-values .section-title {
    font-size: 22px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .value-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }
  .value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
  }
  .value-icon svg {
    width: 24px;
    height: 24px;
  }
  .value-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .value-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Team grid - single column */
  .about-team {
    padding: 40px 0;
  }
  .about-team .section-title {
    font-size: 22px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }
  .team-member {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
  }
  .member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
  }
  .member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .team-member h4 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .team-member .member-role {
    font-size: 13px;
  }

  /* About stats - reuse stats-grid */
  .about-stats {
    padding: 40px 0;
  }
  .about-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .about-stats .stat-number {
    font-size: 32px;
  }
  .about-stats .stat-label {
    font-size: 13px;
  }

  /* Quality section */
  .about-quality {
    padding: 40px 0;
  }
  .quality-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .quality-layout h2 {
    font-size: 22px;
    text-align: center;
  }
  .quality-list {
    padding-left: 0;
    list-style: none;
  }
  .quality-list li {
    font-size: 14px;
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .quality-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
  }

  /* Trust section */
  .about-trust {
    padding: 40px 0;
  }

  /* CTA box */
  .about-cta {
    padding: 40px 0;
  }
  .cta-box {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
  }
  .cta-box h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .cta-box p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .cta-box .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* ====== FAQ PAGE ====== */
  .faq-header {
    padding: 30px 0 20px;
    text-align: center;
  }
  .faq-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .faq-intro {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
  }
  .faq-content {
    padding: 0 0 40px;
  }

  /* FAQ Accordion */
  .faq-accordion {
    gap: 10px;
  }
  .faq-item {
    border-radius: 10px;
  }
  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
    gap: 10px;
  }
  .faq-q-icon {
    font-size: 13px;
    min-width: 24px;
    height: 24px;
  }
  .faq-q-text {
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .faq-toggle-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
  }
  .faq-answer {
    font-size: 14px;
    line-height: 1.7;
  }
  .faq-answer-inner {
    padding: 0 16px 16px;
    gap: 10px;
  }
  .faq-a-icon {
    font-size: 13px;
    min-width: 24px;
    height: 24px;
  }

  /* FAQ Contact Section */
  .faq-contact-section {
    padding: 40px 0;
  }
  .faq-contact-box {
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
  }
  .faq-contact-box h2 {
    font-size: 22px;
  }
  .faq-contact-box p {
    font-size: 14px;
  }
  .contact-options {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* FAQ CTA Section */
  .faq-cta-section {
    padding: 40px 0;
  }
  .faq-cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faq-cta-card {
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
  }
  .faq-cta-card h3 {
    font-size: 18px;
  }
  .faq-cta-card p {
    font-size: 14px;
  }
  .faq-cta-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* ====== LIVRAISON PAGE ====== */
  .livraison-header {
    padding: 30px 0 20px;
    text-align: center;
  }
  .livraison-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .livraison-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Delivery cards */
  .delivery-options {
    padding: 40px 0;
  }
  .delivery-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .delivery-card {
    padding: 24px 20px;
    border-radius: 12px;
  }
  .delivery-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .delivery-icon svg {
    width: 24px;
    height: 24px;
  }
  .delivery-name {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .delivery-details {
    gap: 8px;
  }
  .delivery-detail {
    font-size: 13px;
    padding: 6px 0;
  }

  /* Pricing table */
  .pricing-grid-section {
    padding: 40px 0;
  }
  .pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .pricing-table {
    font-size: 13px;
    min-width: 500px;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 10px 12px;
  }
  .pricing-table th {
    font-size: 12px;
  }

  /* Shipping zones */
  .shipping-zones {
    padding: 40px 0;
  }
  .zones-list {
    font-size: 14px;
  }
  .zones-list li {
    padding: 10px 0;
  }

  /* Tracking steps */
  .tracking-section {
    padding: 40px 0;
  }
  .tracking-section .section-title {
    font-size: 22px;
  }
  .tracking-steps {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .tracking-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    background: var(--gray-50);
  }
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .step-icon svg {
    width: 20px;
    height: 20px;
  }
  .step-title {
    font-size: 14px;
    margin: 0;
  }
  .tracking-step p {
    display: none;
  }

  /* Returns policy */
  .returns-policy {
    padding: 40px 0;
  }
  .returns-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .returns-content {
    order: 1;
  }
  .returns-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .returns-image img {
    border-radius: 12px;
  }
  .returns-content h2 {
    font-size: 22px;
    text-align: center;
  }
  .returns-content p {
    font-size: 14px;
    line-height: 1.7;
  }
  .returns-conditions {
    margin-top: 24px;
  }
  .returns-conditions h3 {
    font-size: 18px;
  }
  .returns-conditions ul {
    font-size: 14px;
  }
  .returns-conditions li {
    padding: 8px 0;
    padding-left: 24px;
  }
  .returns-process {
    margin-top: 24px;
  }
  .returns-process h3 {
    font-size: 18px;
  }
  .returns-process ol {
    font-size: 14px;
  }
  .returns-process li {
    padding: 8px 0;
  }

  /* FAQ livraison reuse */
  .faq-livraison {
    padding: 40px 0;
  }

  /* Livraison CTA */
  .livraison-cta {
    padding: 40px 0;
  }
  .livraison-cta .cta-box {
    padding: 30px 20px;
  }

  /* ====== LEGAL PAGES ====== */
  .legal-page {
    padding: 20px 0 40px;
  }
  .legal-section {
    margin-bottom: 32px;
  }
  .legal-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .legal-date {
    font-size: 13px;
    margin-bottom: 24px;
    color: var(--gray-500);
  }
  .legal-heading {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
  }
  .legal-page p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .legal-list {
    font-size: 14px;
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 16px;
  }
  .legal-list li {
    margin-bottom: 8px;
  }

  /* Legal table responsive */
  .legal-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .legal-table {
    font-size: 13px;
    min-width: 500px;
    width: 100%;
  }
  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
    line-height: 1.5;
  }
  .legal-table th {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* =============================================
   SMALL MOBILE (max-width: 480px)
   Internal Pages
   ============================================= */
@media (max-width: 480px) {

  /* ====== ABOUT PAGE ====== */
  .about-title {
    font-size: 24px;
  }
  .about-subtitle {
    font-size: 13px;
  }
  .about-header {
    padding: 24px 0 16px;
  }
  .history-layout {
    gap: 20px;
  }
  .history-image {
    max-width: 220px;
  }
  .history-content h2 {
    font-size: 20px;
  }
  .history-content p {
    font-size: 13px;
  }
  .mission-box {
    padding: 20px 16px;
  }
  .mission-box h2 {
    font-size: 20px;
  }
  .mission-box p {
    font-size: 13px;
  }
  .value-card {
    padding: 16px;
  }
  .value-icon {
    width: 40px;
    height: 40px;
  }
  .value-icon svg {
    width: 20px;
    height: 20px;
  }
  .value-card h3 {
    font-size: 15px;
  }
  .value-card p {
    font-size: 12px;
  }
  .team-member {
    padding: 20px;
  }
  .member-avatar {
    width: 64px;
    height: 64px;
  }
  .about-stats .stats-grid {
    gap: 16px;
  }
  .about-stats .stat-number {
    font-size: 26px;
  }
  .about-stats .stat-label {
    font-size: 12px;
  }
  .quality-layout h2 {
    font-size: 20px;
  }
  .quality-list li {
    font-size: 13px;
  }
  .cta-box {
    padding: 24px 16px;
  }
  .cta-box h2 {
    font-size: 20px;
  }
  .cta-box p {
    font-size: 13px;
  }

  /* ====== FAQ PAGE ====== */
  .faq-title {
    font-size: 22px;
  }
  .faq-intro {
    font-size: 13px;
  }
  .faq-header {
    padding: 24px 0 16px;
  }
  .faq-question {
    padding: 12px 14px;
    font-size: 13px;
    gap: 8px;
  }
  .faq-q-icon {
    font-size: 11px;
    min-width: 20px;
    height: 20px;
  }
  .faq-toggle-icon {
    font-size: 16px;
  }
  .faq-answer {
    font-size: 13px;
  }
  .faq-answer-inner {
    padding: 0 14px 14px;
  }
  .faq-a-icon {
    font-size: 11px;
    min-width: 20px;
    height: 20px;
  }
  .faq-contact-box {
    padding: 20px 16px;
  }
  .faq-contact-box h2 {
    font-size: 20px;
  }
  .faq-contact-box p {
    font-size: 13px;
  }
  .contact-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  .faq-cta-card {
    padding: 20px 16px;
  }
  .faq-cta-card h3 {
    font-size: 16px;
  }
  .faq-cta-card p {
    font-size: 13px;
  }

  /* ====== LIVRAISON PAGE ====== */
  .livraison-title {
    font-size: 24px;
  }
  .livraison-intro {
    font-size: 13px;
  }
  .livraison-header {
    padding: 24px 0 16px;
  }
  .delivery-card {
    padding: 20px 16px;
  }
  .delivery-icon {
    width: 40px;
    height: 40px;
  }
  .delivery-name {
    font-size: 15px;
  }
  .delivery-detail {
    font-size: 12px;
  }
  .pricing-table {
    font-size: 12px;
    min-width: 420px;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 8px 10px;
  }
  .tracking-step {
    padding: 12px;
    gap: 12px;
  }
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .step-icon {
    width: 36px;
    height: 36px;
  }
  .step-title {
    font-size: 13px;
  }
  .returns-content h2 {
    font-size: 20px;
  }
  .returns-content p {
    font-size: 13px;
  }
  .returns-conditions h3,
  .returns-process h3 {
    font-size: 16px;
  }
  .returns-conditions ul,
  .returns-process ol {
    font-size: 13px;
  }
  .returns-image {
    max-width: 220px;
  }

  /* ====== LEGAL PAGES ====== */
  .legal-page {
    padding: 16px 0 32px;
  }
  .legal-title {
    font-size: 22px;
  }
  .legal-heading {
    font-size: 18px;
  }
  .legal-page p {
    font-size: 13px;
  }
  .legal-list {
    font-size: 13px;
    padding-left: 18px;
  }
  .legal-table {
    font-size: 12px;
    min-width: 400px;
  }
  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}

/* =============================================
   EXTRA SMALL (max-width: 360px)
   Internal Pages
   ============================================= */
@media (max-width: 360px) {

  /* About */
  .about-title {
    font-size: 22px;
  }
  .history-image {
    max-width: 180px;
  }
  .about-stats .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .about-stats .stat-number {
    font-size: 22px;
  }

  /* FAQ */
  .faq-title {
    font-size: 20px;
  }
  .faq-question {
    font-size: 12px;
    padding: 10px 12px;
  }
  .faq-q-text {
    -webkit-line-clamp: 3;
  }

  /* Livraison */
  .livraison-title {
    font-size: 22px;
  }
  .delivery-card {
    padding: 16px 12px;
  }
  .pricing-table {
    min-width: 360px;
  }
  .tracking-step {
    gap: 10px;
  }
  .step-icon {
    display: none;
  }

  /* Legal */
  .legal-title {
    font-size: 20px;
  }
  .legal-heading {
    font-size: 16px;
  }
  .legal-table {
    min-width: 320px;
    font-size: 11px;
  }
}
