/* polish-mobile.css - Baseline defensive pour rendu mobile propre */

html, body { overflow-x: clip; max-width: 100%; }
img, video, iframe, svg { max-width: 100%; height: auto; }

h1 { font-size: clamp(1.75rem, 5vw + 1rem, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw + 1rem, 2.25rem); line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw + 1rem, 1.5rem); }
p, li, a, button { font-size: clamp(1rem, 1vw + 0.85rem, 1.05rem); line-height: 1.6; }

@media (max-width: 768px) {
 a.button, .cta-button, button, input[type="submit"] {
  min-height: 44px; min-width: 44px; padding: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center;
 }
 nav a, .menu-item a { padding: 12px 16px; display: block !important; }
}

@media (max-width: 640px) {
 .services-grid, .gallery-grid, .testimonials-grid, .features-grid {
  grid-template-columns: 1fr !important; gap: 16px;
 }
 .card, .service-card { width: 100%; }
}

@media (max-width: 768px) {
 section { padding: 48px 20px; }
 input, select, textarea { width: 100%; font-size: 16px; padding: 12px; box-sizing: border-box; }
 
 /* FIX hero overlay trop sombre sur mobile */
 .acs-hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.70) 100%) !important;
 }
}


/* FIX logo mobile — évite casse "une lettre par ligne" (Safari iOS) */
@media (max-width: 768px) {
 .acs-logo {
  font-size: clamp(14px, 4.2vw, 22px);
  letter-spacing: 0.5px;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
 }
}

/* FIX menu mobile — les liens <a> en display:flex sur Safari iOS
   forcent parfois une lettre par ligne (bug WebKit). Le passage en block
   + nowrap résout le problème sans changer le rendu visuel. */
@media (max-width: 768px) {
 .acs-nav-links > a {
  display: block !important;
  width: auto;
  white-space: nowrap;
 }
}

/* FIX contraste titres — les pages vitrine utilisent des balises h2/h3
   sans classe, dans .acs-wrapper, .apf-wrapper, etc. La regle Kadence
   h2/h3{color:var(--global-palette3)} (#1A202C) peut l'emporter si la
   specificite est insuffisante ou selon l'ordre de chargement CSS.
   On cible tous les h2/h3 dans les wrappers vitrine avec un selecteur
   suffisamment specifique. */
.acs-wrapper h2,
.acs-wrapper h3,
.rct-page h2,
.rct-page h3,
.apf-wrapper h2,
.apf-wrapper h3,
.ppl-page h2,
.ppl-page h3,
.bas-page h2,
.bas-page h3 {
    color: #F5F1E8 !important;
}

/* FIX CONTRASTE TITRES — pages vitrine */
.acs-wrapper h2,
.acs-wrapper h3,
.rct-page h2,
.rct-page h3,
.apf-wrapper h2,
.apf-wrapper h3,
.ppl-page h2,
.ppl-page h3,
.bas-page h2,
.bas-page h3 {
    color: #F5F1E8 !important;
}

/* FIX GALERIE — reserve l'espace avant chargement */
.acs-gallery-item img,
.apf-gallery-item img,
.ppl-gallery-item img,
.rct-gallery-item img,
.bas-gallery-item img {
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
}

/* FIX header sticky — largeur 100% + box-sizing */
.acs-header {
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* FIX overflow menu — contraint le header dans l ecran */
.acs-header {
    max-width: 100vw;
    overflow-x: hidden;
}
.acs-nav {
    max-width: 100%;
}

/* FIX galerie — espacement reduit + ratio force */
.acs-gallery-grid,
.apf-gallery-grid,
.ppl-gallery-grid,
.rct-gallery-grid,
.bas-gallery-grid {
    gap: 4px !important;
}
.acs-gallery-item img,
.apf-gallery-item img,
.ppl-gallery-item img,
.rct-gallery-item img,
.bas-gallery-item img {
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}
@media (max-width: 768px) {
    .acs-gallery-grid,
    .apf-gallery-grid,
    .ppl-gallery-grid,
    .rct-gallery-grid,
    .bas-gallery-grid {
        gap: 2px !important;
    }
    .acs-gallery-grid img,
    .apf-gallery-grid img,
    .ppl-gallery-grid img,
    .rct-gallery-grid img,
    .bas-gallery-grid img {
        height: auto !important;
    }
}

/* FIX contraste temoignages et contenu des cartes */
.acs-testimonial-card,
.acs-testimonial-card p,
.acs-testimonial-card strong,
.acs-testimonial-card .acs-quote {
    color: #E8E4DC !important;
}

/* FIX texte sur hero - meilleure visibilite */
.acs-hero-content h1,
.acs-hero-content p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* FIX HERO — bandeau noir, lisibilite titres, halo lumineux */
.acs-hero {
    min-height: 90vh !important;
}

/* Overlay plus opaque pour masquer les halos lumineux */
.acs-hero-overlay {
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.70) 40%,
        rgba(0,0,0,0.90) 100%
    ) !important;
}

/* Texte hero — ombre portee lourde pour lisibilite */
.acs-hero-content h1 {
    color: #F5F1E8 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 4px 12px rgba(0,0,0,0.4) !important;
}
.acs-hero-content p.acs-sub {
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    color: #E8E4DC !important;
}
.acs-hero-content p.acs-eyebrow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* Hero buttons — espace sous le CTA flottant */
.acs-hero-btns {
    padding-bottom: 80px !important;
}
@media (max-width: 768px) {
    .acs-hero-btns {
        padding-bottom: 100px !important;
    }
    .acs-hero {
        min-height: 85vh !important;
    }
}

/* FIX titre em (mot dore) — couleur uniforme */
.acs-hero-content h1 em {
    color: #b8a269 !important;
}

/* ════════════════════════════════════════════
   UNIVERSAL MOBILE MENU — Pages 22-25
   Floating burger when acsBurger is absent
   ════════════════════════════════════════════ */
/* Floating burger button */
.dcn-universal-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid rgba(184, 162, 105, 0.25);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.dcn-universal-burger:hover {
  background: rgba(20, 20, 22, 0.95);
  border-color: rgba(184, 162, 105, 0.5);
}
.dcn-universal-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #b8a269;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.dcn-universal-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dcn-universal-burger.active span:nth-child(2) {
  opacity: 0;
}
.dcn-universal-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay fullscreen */
.dcn-universal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dcn-universal-overlay.dcn-show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav container */
.dcn-universal-nav {
  text-align: center;
  padding: 40px 30px;
  max-width: 360px;
  width: 100%;
}
.dcn-universal-close {
  background: none;
  border: none;
  color: #8A8577;
  font-size: 36px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 4px 8px;
  line-height: 1;
}
.dcn-universal-close:hover {
  color: #F5F1E8;
}
.dcn-universal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dcn-universal-links a {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #D4D0C8;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.dcn-universal-links a:hover {
  background: rgba(184, 162, 105, 0.12);
  color: #b8a269;
}

/* Hide Kadence native burger on small screens when our universal burger is present */
@media (min-width: 769px) {
  .dcn-universal-burger {
    display: none;
  }
}

/* Hide Kadence native menu-toggle when universal burger is active */
body:not(.theme-coiffeur) .menu-toggle-open {
  display: none !important;
}
body:not(.theme-coiffeur) #mobile-drawer.popup-drawer-layout-sidepanel {
  display: none !important;
}

/* Hide Kadence mobile toggle & drawer — replaced by universal burger */
@media (max-width: 768px) {
  .menu-toggle-open {
    display: none !important;
  }
}
