/**
 * Responsive Styles
 * @package Karden_Avenir
 * @version 1.0.0
 */

/*  RESPONSIVE - LARGE TABLET (1100px)  */
@media (max-width: 1100px) {
  :root {
    --header-height: var(--header-height-tablet);
    --container-padding: var(--container-padding-tablet);
    --section-padding: var(--section-padding-tablet);
  }

  html {
    scroll-padding-top: var(--header-height-tablet);
  }

  .menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-header-contact {
    display: none;
  }

  /* Hero Tablet */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px var(--container-padding);
    justify-content: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .baseline {
    justify-content: center;
  }

  .baseline span::before {
    display: inline-block;
  }

  .hero-truck {
    top: 0;
    margin-top: 30px;
    width: 100%;
    justify-content: center;
  }

  .truck,
  .truck-reflection {
    width: 100%;
    max-width: 480px;
  }

  .scroll-indicator {
    right: 50%;
    bottom: 20px;
    transform: translateX(50%);
  }

  /* Split Layout Tablet */
  .split-layout,
  .avantages-container,
  #contact .two-cols {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .split-layout .split-visual {
    order: 2 !important;
  }

  .split-layout .split-text {
    order: 1 !important;
    max-width: 100%;
    text-align: center;
  }

  .apropos-content {
    max-width: 100%;
  }

  .list {
    text-align: left;
    display: inline-block;
  }

  /* Services Tablet */
  .services-carousel-wrapper {
    max-width: 300px;
  }

  .services-cta {
    text-align: center;
  }

  /* Procédé Tablet */
  .procede-header {
    text-align: center;
    max-width: 100%;
  }

  .procede-flow {
    flex-direction: column;
    gap: 12px;
  }

  .flow-line {
    width: 2px;
    height: 22px;
    transform: rotate(0deg);
  }

  .flow-line::after {
    right: 50%;
    bottom: -5px;
    top: auto;
    transform: translateX(50%) rotate(90deg);
  }

  .flow-step {
    width: 100%;
    max-width: 240px;
  }

  .flow-outputs {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Avantages Tablet */
  .avantages-content {
    order: 1;
    text-align: center;
  }

  .avantages-intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .avantages-visuals {
    order: 2;
    min-height: 300px;
    max-width: 440px;
    margin: 0 auto;
  }

  .photo-1 {
    width: 70%;
    height: 165px;
  }

  .photo-2 {
    width: 66%;
    height: 145px;
    top: auto;
    bottom: 0;
  }

  /* Contact Tablet */
  .contact-info {
    text-align: center;
  }

  .contact-form {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Footer Tablet */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .footer-links a:hover {
    transform: none;
  }
.footer-socials {
  justify-content: center;
}
.footer-socials {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.footer-brand {
  text-align: center;
}

}

/*  RESPONSIVE - TABLET (900px)  */
@media (max-width: 900px) {
  .logo {
    height: 40px;
  }

  .split-visual .floating-img {
    position: relative;
    width: 78%;
    left: auto;
    bottom: auto;
    margin: 14px auto 0;
    transform: none;
    display: block;
  }

  .split-visual:hover .floating-img,
  .split-layout:hover .floating-img {
    transform: translateY(-3px);
  }
}

/*  RESPONSIVE - SMALL TABLET (768px)  */
@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --container-padding: var(--container-padding-mobile);
    --section-padding: var(--section-padding-mobile);
  }

  html {
    scroll-padding-top: var(--header-height-mobile);
  }

  .logo {
    height: 36px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  /* Hero Mobile */
  .hero-container {
    padding: 24px var(--container-padding) 36px;
  }

  .hero-text h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    max-width: 240px;
    padding: 12px 26px;
  }

  .socials {
    justify-content: center;
  }

  .hero-truck {
    margin-top: 22px;
  }

  .truck,
  .truck-reflection {
    max-width: 86%;
  }

  /* Services Mobile */
  .services-carousel-wrapper {
    max-width: 250px;
  }

  .carousel-dots {
    margin-top: 20px;
    padding: 8px 16px;
    gap: 8px;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
  }

  /* Avantages Mobile */
  .avantages-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .avantages-visuals {
    min-height: 260px;
    max-width: 100%;
  }

  .photo-1 {
    width: 78%;
    height: 140px;
    left: 0;
  }

  .photo-2 {
    width: 74%;
    height: 125px;
    right: 0;
  }

  /* Footer Mobile */
  .footer {
    padding: 32px var(--container-padding) 16px;
  }

  /* Modal Mobile */
  .legal-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .legal-content {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }
}

/*  RESPONSIVE - MOBILE (600px)  */
@media (max-width: 600px) {
  .flow-outputs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .output-card {
    padding: 10px 8px;
  }

  .apropos-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .services-carousel-wrapper {
    max-width: 230px;
  }

  .carousel-dots {
    margin-top: 18px;
  }
}

/*  RESPONSIVE - SMALL MOBILE (480px)  */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .section-label {
    font-size: 8px;
    padding: 5px 12px;
    letter-spacing: 1px;
  }

  /* Avantages Photos - Stacked */
  .avantages-visuals {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .photo {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .avantages-visuals:hover .photo-1,
  .avantages-visuals:hover .photo-2 {
    transform: none;
  }

  .photo:hover {
    transform: translateY(-3px) !important;
  }

  .contact-info h2 {
    font-size: 20px;
  }

  .services-carousel-wrapper {
    max-width: 210px;
  }

  .carousel-dots {
    margin-top: 16px;
    padding: 7px 12px;
    gap: 7px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .flow-outputs {
    grid-template-columns: 1fr;
  }

  .output-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 12px 14px;
  }

  .output-card i {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .output-card h5,
  .output-card p {
    margin-bottom: 0;
  }

  .output-card h5 {
    margin-bottom: 2px;
  }

  .apropos-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px;
    text-align: left;
  }

  .stat-number {
    margin-bottom: 0;
    font-size: 18px;
  }

  .stat-label {
    text-align: left;
    font-size: 10px;
  }
}

/*  LANDSCAPE MOBILE  */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 30px;
  }

  .hero-container {
    min-height: auto;
    flex-direction: row;
    padding: 16px var(--container-padding);
  }

  .hero-text {
    text-align: left;
    max-width: 50%;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
  }

  .btn-primary {
    width: auto;
  }

  .baseline {
    justify-content: flex-start;
  }

  .baseline span::before {
    display: none;
  }

  .hero-truck {
    margin-top: 0;
    width: 45%;
    max-width: 45%;
  }

  .truck,
  .truck-reflection {
    max-width: 100%;
  }

  .mobile-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 70px;
    gap: 5px;
  }

  .mobile-nav a {
    font-size: 12px;
    padding: 7px 12px;
    width: auto;
    max-width: none;
  }
}

/*  PRINT STYLES  */
@media print {
  .header,
  .scroll-indicator,
  .mobile-nav,
  .cursor-glow {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .section {
    page-break-inside: avoid;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}