@media (max-width: 1120px) {
  /* Le top-nav devient le point d'ancrage du dropdown */
  .top-nav {
    position: relative;
    flex-wrap: nowrap;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
    align-items: center;
  }

  /* Masquer les liens nav */
  .nav-links {
    display: none;
  }

  /* Brand prend l'espace disponible */
  .brand {
    flex: 1;
    min-width: 0;
    order: 1;
  }

  /* Garder nav-cta visible pour l'icône panier uniquement */
  .nav-cta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    order: 2;
  }

  .nav-cta .btn {
    display: none;
  }

  /* Afficher le bouton hamburger */
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    order: 3;
  }

  /* ====================================
     DROPDOWN ABSOLU — toujours par-dessus
     ==================================== */
  .top-nav.open .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0.25rem;
    /* Position absolue : apparait PAR-DESSUS le contenu sur TOUTES les pages */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(74, 55, 40, 0.98), rgba(50, 36, 25, 0.98));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .top-nav.open .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: background 0.15s ease;
  }

  .top-nav.open .nav-links a:hover,
  .top-nav.open .nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  /* nav-cta reste inchangé quand ouvert (garde juste l'icône panier) */
}

/* Tablette / téléphone en mode paysage : dropdown en grille 3 colonnes */
@media (max-width: 1120px) and (orientation: landscape) {
  .top-nav.open .nav-links {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
  }

  .top-nav.open .nav-links a {
    text-align: center;
  }

  /* Navbar plus compacte en paysage */
  .site-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

@media (max-width: 900px) {
  .top-nav {
    position: relative; /* Garder relative pour que le dropdown absolu fonctionne */
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .site-header.internal {
    padding-bottom: 3rem;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-copy .kicker {
    font-size: 0.75rem;
  }

  .hero-service-cards {
    text-align: left;
    margin: 1rem 0 1.25rem;
  }

  .hsc-card {
    padding: 0.7rem 0.9rem;
    gap: 0.75rem;
  }

  .hsc-icon {
    width: 34px;
    height: 34px;
  }

  .hsc-text strong {
    font-size: 0.85rem;
  }

  .hsc-text small {
    font-size: 0.72rem;
  }

  .hsc-card:hover {
    transform: none;
  }

  .hero-stats {
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero-stats strong {
    font-size: 1.2rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
  }

  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .hero-photo-grid {
    grid-template-rows: 180px 130px;
  }

  .hero-card img {
    max-height: 360px;
  }

  .follow-profile {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-info {
    align-items: center;
  }

  .subscriber-card {
    text-align: left;
  }

  .subscribe-btn {
    width: 100%;
    justify-content: center;
  }

  .feed-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 8rem;
  }

  main,
  .section,
  .page-shell {
    padding: 3rem 1.25rem;
  }

  .page-shell {
    padding-bottom: 5.5rem;
  }

  .section.tinted {
    padding: 3rem 1.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .section-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .contact-card {
    padding: 2.5rem;
  }

  .grid.two,
  .grid.three,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-tile {
    padding: 1.5rem;
  }

  .reservation-hero,
  .orders-hero {
    flex-direction: column;
  }

  .reservation-stats,
  .orders-highlights {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .reservation-grid,
  .orders-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .orders-table {
    padding: 1.5rem;
  }

  .table-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    order: 2;
  }

  .auth-form {
    order: 1;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .mobile-nav {
    display: grid;
  }

  .mobile-nav a {
    padding: 0.65rem 0.75rem;
  }

  .mobile-nav a span {
    display: none;
  }

  .mobile-nav a i {
    width: 22px;
    height: 22px;
  }

  .site-header {
    padding: 1.5rem 1.25rem 2.5rem;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .auth-panel {
    order: 2;
  }

  .auth-form {
    order: 1;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-form,
  .review-wall {
    padding: 1.8rem;
  }

  .feed-stream {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 1.5rem;
  }

  .admin-post-form {
    padding: 1.8rem;
  }

  .subscribe-btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.3rem;
  }
}

@media (max-width: 720px) {
  .social-hub__grid {
    grid-template-columns: 1fr;
  }

  .services-carousel {
    gap: 0.75rem;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .pay-timing-group {
    grid-template-columns: 1fr;
  }

  .pay-methods {
    flex-direction: column;
  }

  .pay-method-option {
    min-width: unset;
  }

  .pay-method-option > span {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 560px) {
  .hero-stats li {
    flex: 1 1 45%;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.7rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-photo-grid {
    display: none;
  }

  .aesthetics-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }

  .aesthetic-card:nth-child(1) {
    grid-column: span 1;
  }

  .aesthetic-card:nth-child(1),
  .aesthetic-card:nth-child(2),
  .aesthetic-card:nth-child(3) {
    min-height: 160px;
  }

  .btn {
    width: 100%;
  }

  .post-actions {
    flex-direction: column;
  }

  .post-actions button {
    width: 100%;
    text-align: center;
  }

  .subscriber-card {
    padding: 1.25rem;
  }

  .spotlight-video__meta {
    font-size: 0.9rem;
  }

  .review-card {
    padding: 1rem;
  }
}

/* ============================================
   IMMERSIVE MOBILE VIDEO HERO
   Full-viewport video with particles & text overlay
   Sits OUTSIDE the header, only visible ≤900px
   ============================================ */

.hero-video-mobile {
  display: none;
}

.hero-scroll-hint {
  display: none;
}

@media (max-width: 900px) {

  /* ── Video container: full viewport ── */
  .hero-video-mobile {
    display: block;
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 50;
  }

  .hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: auto;
  }

  .hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(26, 20, 16, 0.35) 0%,
      rgba(26, 20, 16, 0.55) 50%,
      rgba(26, 20, 16, 0.75) 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  #hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
  }

  /* ── Sound Toggle Button ── */
  .video-sound-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    pointer-events: auto;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .video-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .video-sound-toggle:active {
    transform: scale(0.95);
  }

  .video-sound-toggle svg,
  .video-sound-toggle i {
    width: 20px;
    height: 20px;
  }

  /* ── Clickable video area hint ── */
  .hero-video-container {
    cursor: pointer;
  }

  .hero-video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }

  .hero-video-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  /* Hide hint when video is playing with sound */
  .hero-video-container:has(video:not([muted]))::after {
    display: none;
  }

  /* Sound indicator animation */
  .sound-indicator {
    animation: soundIndicatorFade 0.3s ease;
  }

  @keyframes soundIndicatorFade {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  /* ── Text overlay ── */
  .hero-video-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    pointer-events: none;
  }

  /* Re-enable pointer events for interactive elements inside */
  .hero-video-content a,
  .hero-video-content button {
    pointer-events: auto;
  }

  .immersive-text-container {
    max-width: 420px;
    width: 100%;
  }

  .immersive-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.2rem;
    font-weight: 500;
  }

  .immersive-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    perspective: 1000px;
  }

  .immersive-title .word {
    display: inline-block;
    margin: 0 0.12em;
    transform-style: preserve-3d;
  }

  .immersive-title .word.highlight {
    color: #D4AF37;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E5A1 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .immersive-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
  }

  /* ── CTA Buttons ── */
  .immersive-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn-immersive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
  }

  .btn-immersive svg,
  .btn-immersive i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .btn-immersive.primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #1A1A1A;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  .btn-immersive.primary:hover,
  .btn-immersive.primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.55);
  }

  .btn-immersive.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .btn-immersive.secondary:hover,
  .btn-immersive.secondary:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
  }

  /* Secondary buttons: 2-column grid after the primary */
  .immersive-actions .btn-immersive.secondary {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }

  /* ── Scroll hint ── */
  .hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    animation: scrollBounce 2s ease-in-out infinite;
  }

  .hero-scroll-hint svg {
    width: 18px;
    height: 18px;
  }

  @keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
  }

  /* ── Navbar floats over video ── */
  body[data-page="home"] .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    box-shadow: none !important;
  }

  body[data-page="home"] .site-header .top-nav {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body[data-page="home"] .site-header .brand strong,
  body[data-page="home"] .site-header .brand small {
    color: #fff;
  }

  body[data-page="home"] .site-header .nav-toggle span {
    background: #fff;
  }

  /* ── Hide original hero content, show video hero ── */
  body[data-page="home"] .hero {
    display: none;
  }
}

/* ============================================
   CVISUAL FOOTER CREDIT
   ============================================ */

.footer-credit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a.cvisual-link {
  color: #D4AF37;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit a.cvisual-link:hover {
  color: #F4E5A1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-credit {
    border-top-color: rgba(255, 255, 255, 0.15);
  }
}
