/* ==========================================
   RESPONSIVE - DESKTOP (1024px+)
   ========================================== */

@media (min-width: 1024px) {
  body,
  html {
    padding: 20px;
  }

  /* Header */
  .header-logo img {
    height: 150px;
  }

  .header-carte {
    width: 120px;
    height: 170px;
  }

  .header-carte-titre {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    flex-direction: row-reverse;
    gap: 40px;
    margin-top: 60px;
    align-items: flex-start;
    max-width: none;
    justify-content: flex-end;
    padding: 0 20px;
  }

  .hero-left {
    flex: 0 0 auto;
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left h2 {
    text-align: center;
  }

  .hero-social {
    margin-top: 30px;
  }

  /* Panels Instagram et TikTok */
  .hero-right,
  .hero-tiktok {
    display: flex;
    position: fixed;
    left: -400px;
    top: 150px;
    width: 380px;
    min-height: 500px;
    max-height: calc(100vh - 200px);
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 0 20px 20px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 101;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hero-right.open,
  .hero-tiktok.open {
    left: 0;
    pointer-events: auto;
    z-index: 999;
  }

  .hero-right blockquote,
  .hero-tiktok blockquote,
  .hero-tiktok .tiktok-embed {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-tiktok h3 {
    color: rgb(238, 168, 255);
    font-family: "Great Vibes", cursive;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 20px 0;
  }

  .hero-tiktok p {
    text-align: center;
    padding: 20px;
    opacity: 0.8;
    margin: 0;
  }

  /* Scrollbar panels */
  .hero-right::-webkit-scrollbar,
  .hero-tiktok::-webkit-scrollbar {
    width: 8px;
  }

  .hero-right::-webkit-scrollbar-track,
  .hero-tiktok::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .hero-right::-webkit-scrollbar-thumb,
  .hero-tiktok::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 10px;
  }

  .hero-right::-webkit-scrollbar-thumb:hover,
  .hero-tiktok::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.8);
  }

  /* Social panel buttons */
  .social-panel-buttons {
    display: flex;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    pointer-events: auto;
  }

  .instagram-toggle,
  .tiktok-toggle {
    display: flex;
    width: 60px;
    height: 60px;
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0 50% 50% 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
  }

  .instagram-toggle {
    background: linear-gradient(
      135deg,
      rgba(225, 48, 108, 0.9),
      rgba(193, 53, 132, 0.9)
    );
  }

  .instagram-toggle:hover {
    width: 70px;
    background: linear-gradient(
      135deg,
      rgba(225, 48, 108, 1),
      rgba(193, 53, 132, 1)
    );
    box-shadow: 6px 0 20px rgba(225, 48, 108, 0.6);
  }

  .tiktok-toggle {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.9),
      rgba(37, 244, 238, 0.9)
    );
  }

  .tiktok-toggle:hover {
    width: 70px;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 1),
      rgba(37, 244, 238, 1)
    );
    box-shadow: 6px 0 20px rgba(37, 244, 238, 0.6);
  }

  .instagram-toggle svg,
  .tiktok-toggle svg {
    width: 32px;
    height: 32px;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .instagram-toggle.active svg,
  .tiktok-toggle.active svg {
    transform: scale(1.1);
  }

  /* Services */
  .services {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services h2 {
    margin-bottom: 140px;
  }

  .services .grid-services {
    display: inline-grid;
    grid-template-columns: repeat(3, 210px);
    grid-template-rows: 360px;
    grid-auto-rows: 0;
    grid-auto-flow: row;
    gap: 40px;
    width: auto;
    height: 360px;
    max-width: none;
    overflow: visible;
    scrollbar-width: none;
  }

  /* Annuler la règle tablette qui force la 3ème carte en 2ème rangée */
  .services .carte-container:nth-child(3) {
    grid-column: auto;
    justify-self: auto;
  }

  .services .reservation-notice {
    width: 710px;
    max-width: 710px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mise en garde */
  .mise-en-garde {
    margin-top: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Baguettes */
  .baguette-bg,
  .baguette-bg-right {
    background-size: 30%;
  }

  /* Touch optimizations */
  @media (hover: none) and (pointer: coarse) {
    .header-carte-btn,
    .social-btn,
    .carte {
      -webkit-tap-highlight-color: rgba(138, 43, 226, 0.3);
    }

    .social-btn {
      min-width: 65px;
      min-height: 65px;
    }

    .grid-services {
      touch-action: pan-x;
    }
  }
}
