/*======================================
  SOUTH CONCIERGERIE - MOBILE RESPONSIVE
  Version mobile optimisée avec hamburger clean
======================================*/

/* ===================================
   HAMBURGER MENU - DESIGN CLEAN
=================================== */

/* Container du bouton hamburger */
.navbar-toggler {
  display: none;
  width: 45px;
  height: 45px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

/* Les 3 barres du hamburger */
.navbar-toggler .hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fff;
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation du hamburger vers X */
.navbar-toggler.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.navbar-toggler.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   RESPONSIVE - TABLETTE (max 991px)
=================================== */

@media (max-width: 991px) {
  /* Afficher le hamburger */
  .navbar-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Cacher les dots existants */
  .navbar-toggler .dot {
    display: none;
  }

  /* Menu mobile - slide depuis la droite */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    right: 0;
  }

  /* Overlay sombre derrière le menu */
  .navbar-collapse::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .navbar-collapse.show::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* Navigation items */
  .navbar-nav {
    flex-direction: column;
    margin-top: 20px;
  }

  .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 18px 0 !important;
    font-size: 16px !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #dac390 !important;
    padding-left: 10px !important;
  }

  /* Bouton fermer (croix) */
  .close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
  }

  .close-menu:hover {
    color: #dac390;
    transform: rotate(90deg);
  }

  /* Logo dans la navbar */
  .navbar .SC.logo {
    height: 60px;
    margin-left: 10px;
  }

  /* Navbar container */
  .navbar-container {
    padding: 0 15px;
  }
}

/* ===================================
   RESPONSIVE - MOBILE (max 768px)
=================================== */

@media (max-width: 768px) {
  /* Body - empêcher scroll horizontal */
  body {
    overflow-x: hidden;
  }

  /* Container général */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* ===== HERO SECTION ===== */
  .intro {
    height: 100vh;
    min-height: 500px;
  }

  .intro-title {
    font-size: 2rem !important;
    line-height: 1.2;
    padding: 0 10px;
  }

  .intro-subtitle {
    font-size: 1rem !important;
    padding: 0 15px;
  }

  .intro .btn-primary {
    padding: 12px 25px;
    font-size: 14px;
  }

  /* ===== BUBULE SECTION ===== */
  .bubule {
    margin-top: -3rem;
    padding: 20px 15px;
    border-radius: 15px;
  }

  .bubule .row {
    margin: 0;
  }

  .bubule .col-md-3 {
    padding: 8px;
  }

  .bubule-col {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .bubule-col h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .bubule-col p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* ===== ABOUT SECTION ===== */
  .about-section {
    padding: 40px 0;
  }

  .about-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .about-image {
    order: -1;
    padding: 10px;
  }

  .about-subtitle {
    font-size: 0.8rem;
  }

  .about-title {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }

  .about-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .feature-item {
    margin-bottom: 20px;
  }

  .feature-item i {
    font-size: 1.5rem;
  }

  .feature-text h4 {
    font-size: 1rem;
  }

  .feature-text p {
    font-size: 0.85rem;
  }

  .about-cta {
    flex-direction: column;
    gap: 10px;
  }

  .about-cta .btn-primary,
  .about-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* ===== LOCATIONS SECTION ===== */
  #locations {
    padding: 40px 0;
  }

  #locations .title-box {
    margin-bottom: 30px;
  }

  #locations .title-box h2 {
    font-size: 1.6rem;
  }

  #locations .row {
    gap: 15px;
  }

  #locations .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 10px;
  }

  #locations .location-frame {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
  }

  .location-title {
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .location-desc {
    font-size: 0.9rem;
    padding: 0 10px;
    margin-bottom: 25px;
  }

  /* ===== ARROW SEPARATOR ===== */
  .arrow-separator {
    height: 40px;
    padding: 10px 0;
  }

  /* ===== SERVICES SECTION ===== */
  .services-section {
    padding: 40px 0;
  }

  .services-header h2 {
    font-size: 1.5rem !important;
  }

  .services-header p {
    font-size: 1rem;
  }

  .airbnb-logo {
    width: 80px;
  }

  .services-list {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
  }

  .service-item {
    padding: 15px;
    margin-bottom: 0;
  }

  .service-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-right: 15px;
  }

  .service-content h3 {
    font-size: 1rem;
  }

  .service-content li {
    font-size: 0.9rem;
    padding: 4px 0 4px 15px;
  }

  /* ===== PRICING SECTION ===== */
  .pricing-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 15px;
  }

  .pricing-card {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .card-header h3 {
    font-size: 1.4rem;
  }

  .price {
    font-size: 1.8rem;
  }

  .card-features {
    margin: 20px 0;
  }

  .feature {
    margin: 12px 0;
    font-size: 0.95rem;
  }

  .pricing-button {
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* ===== CONTACT SECTION ===== */
  #contact-section {
    padding: 50px 0;
  }

  .contact-columns {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .contact-info-column h1,
  .contact-form-column h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .contact-method {
    margin-bottom: 20px;
  }

  .icon-circle {
    width: 45px;
    height: 45px;
  }

  .icon-circle i {
    font-size: 1.3rem;
  }

  .contact-details h3 {
    font-size: 1rem;
  }

  .contact-details p {
    font-size: 0.95rem;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  input, select, textarea {
    padding: 12px;
    font-size: 16px; /* Évite le zoom sur iOS */
  }

  .submit-btn {
    padding: 14px 25px;
    font-size: 1rem;
  }

  /* ===== FOOTER ===== */
  .modern-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
    text-align: center;
  }

  .footer-logo {
    width: 150px;
    margin: 0 auto 15px;
  }

  .brand-description {
    font-size: 0.9rem;
  }

  .modern-footer h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .modern-footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .modern-footer ul li {
    margin-bottom: 8px;
  }

  .footer-contact p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-top: 20px;
  }

  .legal-links {
    margin-bottom: 0;
  }

  .legal-links a {
    margin: 0 10px;
    font-size: 0.85rem;
  }

  .copyright {
    font-size: 0.85rem;
  }

  /* ===== BACK TO TOP ===== */
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 15px;
  }

  .back-to-top i {
    padding-top: 10px;
    font-size: 14px;
  }
}

/* ===================================
   RESPONSIVE - PETIT MOBILE (max 480px)
=================================== */

@media (max-width: 480px) {
  /* Hero */
  .intro-title {
    font-size: 1.7rem !important;
  }

  .intro-subtitle {
    font-size: 0.9rem !important;
  }

  /* Bubule */
  .bubule {
    margin-top: -2rem;
    padding: 15px 10px;
  }

  .bubule-col {
    padding: 12px;
  }

  .bubule-col h3 {
    font-size: 1rem;
  }

  .bubule-col p {
    font-size: 0.8rem;
  }

  /* About */
  .about-title {
    font-size: 1.4rem !important;
  }

  /* Pricing */
  .section-title {
    font-size: 1.5rem !important;
  }

  .pricing-card {
    padding: 20px 15px;
  }

  .card-header h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1.6rem;
  }

  /* Contact */
  .contact-info-column h1,
  .contact-form-column h1 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-logo {
    width: 120px;
  }
}

/* ===================================
   RESPONSIVE - TRÈS PETIT ÉCRAN (max 360px)
=================================== */

@media (max-width: 360px) {
  .intro-title {
    font-size: 1.5rem !important;
  }

  .navbar .SC.logo {
    height: 50px;
  }

  .bubule-col h3 {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.3rem !important;
  }

  .pricing-card {
    padding: 15px 12px;
  }
}

/* ===================================
   ORIENTATION PAYSAGE MOBILE
=================================== */

@media (max-width: 991px) and (orientation: landscape) {
  .intro {
    min-height: 100vh;
    height: auto;
    padding: 80px 0 40px;
  }

  .intro-title {
    font-size: 1.8rem !important;
  }

  .navbar-collapse {
    width: 250px;
    padding-top: 60px;
  }

  .nav-link {
    padding: 12px 0 !important;
  }
}

/* ===================================
   FIXES iOS
=================================== */

/* Éviter le zoom sur focus input iOS */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Fix pour le 100vh sur iOS */
@supports (-webkit-touch-callout: none) {
  .intro {
    min-height: -webkit-fill-available;
  }
}

/* ===================================
   ANIMATIONS RÉDUITES
=================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   PRINT STYLES
=================================== */

@media print {
  .navbar,
  .back-to-top,
  .arrow-separator {
    display: none !important;
  }

  .intro {
    height: auto;
    min-height: auto;
    padding: 20px;
  }

  section {
    page-break-inside: avoid;
  }
}
