/* responsive.css - mobile rules */

/* --- seules surcharges et règles mobile, pas de :root --- */
@media (max-width: 768px) {

  .desktop-only{ display:none; }
  .mobile-only{ display:flex; }

  html, body {
    overflow-x: hidden; /* prevent horizontal scroll */
  }

  .header-top .wrap{ 
    padding:12px 0; 
  }
  .logo img{ height:44px; }

  /* Hamburger */
  .menu-btn{ background:none; border:0; padding:8px; }
  .burger span{
    display:block;
    width:22px;
    height:2px;
    background:var(--text);
    margin:4px 0;
    transition: transform 0.25s, opacity 0.25s;
  }
  .menu-btn.open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .menu-btn.open .burger span:nth-child(2){ opacity: 0; }
  .menu-btn.open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* ===============================
   MOBILE MENU OVERLAY
================================ */
.mobile-menu {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 1500;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8%);
  transition: opacity .3s ease, transform .3s ease;

  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-panel {
  width: 100%;
  max-width: var(--container);
  padding: 20px;
  position: relative;
  font-size: 1.5rem;
}

.mobile-close {
  position: absolute;
  top: 5px;
  right: 10px;
  margin-right: 10px;
  border: 0;
  background: none;
  font-size: 25px;
  cursor: pointer;
}

/* ===============================
   TOP BUTTONS (CTA) – MOBILE
================================ */
/* reset lien navigateur */

.mobile-toplinks a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: auto;
  max-width: 85%;
  padding: 14px 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;           
  color: var(--text);
  position: relative;
}

/* ===== BOUTON SPÉCIAL (transport-box) ===== */
.mobile-toplinks a.transport-box {
  color: #fff;
}

/* parallélogramme */
.mobile-toplinks a.transport-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-blue);
  transform: skew(-18deg);
  z-index: -1;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* tactile */
.mobile-top {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}



/* ===============================
   MOBILE NAV LINKS
================================ */
.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  padding: 8px 12px;
}

/* ===============================
   LANG SWITCH (SUR UNE LIGNE)
================================ */
.mobile-lang {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.mobile-lang a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.mobile-lang a.active {
  text-decoration: underline;
}

/* ===============================
   MOBILE ERGONOMICS
================================ */
.mobile-top {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}



@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    align-items: center;
  }
  .footer-company { text-align: center; }
  .footer-col { width: 100%; max-width: 720px; }
  .footer-content { align-items: center; } /* centre les lignes, y compris les liens tel */
  .footer-line { text-align: center; }

}


/* ---------- Hero mobile (global, non-root) ---------- */
/* base */
@media (max-width: 768px) {

  .hero {
    min-height: 48vh;                 
    background-position: center;  
    display: flex;
    align-items: flex-start;          
  }

  .hero-wrap {
    padding: 2.8rem 1.4rem;    
  }

  .hero-content {
    gap: 0.8rem;
  }

  .hero-title {
    font-size: 2rem;               
    line-height: 1.08;
    font-weight: 800;
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.2rem;               
    line-height: 1.35;
    opacity: 0.95;
  }

  .hero-cta {
    margin: auto;
    margin-top: 1.1rem;
    align-self: center;
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.02rem;
    padding: 0.95rem 1.2rem;
  }

/* Animation helper (apparaît via JS) */
.fade-up { 
  opacity:0; 
  transform: translateY(14px); 
  transition: opacity .55s cubic-bezier(.2,.9,.2,1), 
  transform .55s cubic-bezier(.2,.9,.2,1); 
}

.in-view { opacity:1 !important; 
  transform: translateY(0) !important; 
}

/* ------------------ SECTION INFO (mobile) ------------------ */
@media (max-width: 768px) {
  .info-section { padding: 28px 0; }

  .info-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .info-image {
    width: 100%;
    flex: 0 0 auto;
  }

  .info-image img {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 6px;
  }

  .info-text {
    width: 100%;
    font-size: 0.98rem;
    text-align: justify;
    text-justify: inter-word;
  }
}

/* Sub section under info (mobile) */
@media (max-width: 768px) {
  .sub-info-section {
    padding: 50px 0;
  }

  .sub-info-title {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }

  .sub-info-text {
    font-size: 0.98rem;
    padding: 0 12px;
  }
  
    .sub-info-buttons {
    margin-top: 28px;
    gap: 12px;
  }

  .sub-info-btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
    padding: 13px 20px;
  }
}

/* WHY section - mobile */
@media (max-width: 900px) {
  .why-section { padding: 28px 0; }

  .why-subtitle { font-size: 0.98rem; padding: 0 12px; }

  .why-body {
    display: flex;
    flex-direction: column; /* image au-dessus */
    gap: 16px;
    align-items: stretch;
  }

  /* image en premier */
  .why-left.why-image-col {
    order: -1;
    max-width: 100%;
  }

  .why-left.why-image-col img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .why-right.why-checks-col {
    flex: none;
  }

  .why-item {
    padding: 10px 12px;
    /* disable translate hover on touch devices (no change needed) */
  }

  .why-badge { width:28px; height:28px; font-size:14px; }

  .why-outro {
    margin-top: 16px;
    padding: 12px;
  }
}

/* Parallax effect: only on desktop - background-attachment fixed (simple) */
@media (max-width: 900px) {
  .contact-band {
    min-height: 260px;
    background-position: center center;
  }

  .contact-band-wrap {
    padding: 60px 18px;
  }

  .contact-band-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

}


/* ---------- Spedycja section (mobile) ---------- */
@media (max-width: 900px) {
  .sp-cards-section { padding: 28px 0; }
  .cards-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 10px;
  }
  .cards-scroller::-webkit-scrollbar { display: none; }

  .sp-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    width: auto;
    border-radius: 10px;
    margin: 0 6px;
  }

  .sp-card-thumb img { aspect-ratio: 16/9; object-fit: cover; }
  .sp-card-body { padding: 12px; }
  .sp-card-title { font-size: 1rem; }
  .sp-card-text { font-size: 0.98rem; }
}

@media (max-width: 900px) {

  .douane-title {
    font-size: 2.2rem;
  }

  .douane-cta-group {
    flex-direction: column;
  }

  .douane-context-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .douane-services-grid {
    grid-template-columns: 1fr;
  }

  .douane-process-steps {
    flex-direction: column;
  }

  .douane-hero {
    padding: 80px 20px;
  }
}

/*------------------ Page TRANSPORT ------------------*/
@media (max-width:900px) {

  .page-hero {
    padding:80px 0 60px;
  }

  .page-hero h1 {
    font-size:1.9rem;
  }

  .page-section {
    padding:60px 0;
  }

}

@media (max-width: 900px) {

  .page-hero {
    padding: 90px 0 70px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .wrap.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-section.reverse .split-text,
  .split-section.reverse .split-image {
    order: unset;
  }

   .transport-cards {
    grid-template-columns: 1fr;
  }

  .cards-section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .map-wrapper {
    min-height: 260px;
  }

  .outro-text {
    font-size: 1.1rem;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

    .contact-grid {
    grid-template-columns: 1fr;
  }

}
}
}
/* ===========================
   LEGAL / PRIVACY PAGE
=========================== */
@media (min-width: 768px) {
  .legal-page {
    padding: 4rem 1rem;
  }

  .legal-header h1 {
    font-size: 2.1rem;
  }

  .legal-content p {
    font-size: 1rem;
  }
}
