/*
  Lab Tattoo – Custom Overrides
  Load AFTER main.css and style.css
*/

/* =========================================================
   1) Theme variables (red accent)
   ========================================================= */
:root {
  --accent-dark: #7f0c1a; /* darker button (Prendre RDV) */
  --accent: #b11226; /* lighter button (Voir Instagram) */
  --accent-soft: rgba(177, 18, 38, 0.15);
  --accent-glow: rgba(177, 18, 38, 0.3);
}

/* =========================================================
   2) Global fixes / helpers
   ========================================================= */

/* main.css sets margin on all img; override where it breaks layouts */
#gallery img,
#about img,
#brand img {
  margin: 0 !important;
}

/* Remove any thin section dividers (borders) that may exist in template */
.section,
.section-title,
#main,
#about,
#appointment {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Remove hr lines if used anywhere */
hr {
  display: none !important;
}

/* Accent link hover (subtle) */
a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Focus ring (keyboard accessibility) */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.18);
}

/* =========================================================
   3) Header (height, background, logo)
   ========================================================= */

/* Height behavior: 75% desktop, 50% mobile */
#master-header.full-screen {
  height: 75vh !important;
  background: #000 !important;
}

@media (max-width: 768px) {
  #master-header.full-screen {
    height: 50vh !important;
  }
}

/* Remove overlay layer if you want pure black header */
#master-header .bg-overlay {
  display: none !important;
}

/* Desktop-only top padding on logo image */
@media (min-width: 769px) {
  #master-header #logo img {
    padding-top: 85px;
  }
}

/* Strong glow + slight pulse */
#master-header #logo img {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 38px rgba(255, 255, 255, 0.28))
    drop-shadow(0 0 90px rgba(255, 255, 255, 0.14));
  animation: logoPulse 3.2s 3 ease-in-out;
  transform-origin: center;
  will-change: transform, filter, opacity;
}

@media (min-width: 769px) {
  #master-header #logo img {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.6))
      drop-shadow(0 0 52px rgba(255, 255, 255, 0.32))
      drop-shadow(0 0 120px rgba(255, 255, 255, 0.16));
    animation-duration: 2.9s;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.98;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.46))
      drop-shadow(0 0 38px rgba(255, 255, 255, 0.24))
      drop-shadow(0 0 90px rgba(255, 255, 255, 0.12));
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.7))
      drop-shadow(0 0 70px rgba(255, 255, 255, 0.36))
      drop-shadow(0 0 150px rgba(255, 255, 255, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  #master-header #logo img {
    animation: none !important;
  }
}

/* =========================================================
   4) Accent buttons (always colored + small hover glow)
   ========================================================= */

.btn.btn-accent,
.btn.btn-accent-soft {
  background-image: none !important;
  border-radius: 999px !important;
  padding: 11px 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  border: 1px solid transparent !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1.2 !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease !important;
}

.btn.btn-accent {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  color: #fff !important;
}

.btn.btn-accent-soft {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

@media (hover: hover) {
  .btn.btn-accent:hover,
  .btn.btn-accent-soft:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--accent-glow) !important;
  }
}

.btn.btn-accent:focus,
.btn.btn-accent-soft:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.18) !important;
}

/* =========================================================
   5) Section title underline (DISABLED)
   ========================================================= */
/* You said you don't like it, so it's disabled.
.focus-title::after,
.section-title h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
  opacity: .85;
}
*/

/* =========================================================
   6) About section (LIGHT layout)
   ========================================================= */

#about {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.85);
}

#about .about-title {
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  color: #000;
}

#about .about-subtitle {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1.05rem;
}

#about .about-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
  margin: 16px 0 18px;
}

/* Stronger shadow for the About text box */
#about .about-card {
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px 18px;

  /* stronger depth */
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

#about .about-text {
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
}

/* Small feature blocks (no accent bar, since you removed it) */
#about .mini-feature {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 12px;
  height: 100%;
}

#about .mini-feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.9);
}

#about .mini-feature-text {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
}

/* About image: rounded, subtle shadow, no border, no hover pop */
#about .about-image-wrap {
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;

  border-radius: 12px !important;
  overflow: hidden !important;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
}

#about .about-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;

  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;

  transform: none !important;
  transition: none !important;
  filter: none !important;
}

@media (max-width: 991px) {
  #about .about-image {
    height: 360px;
  }
}

#about .about-image-wrap:hover .about-image {
  transform: none !important;
  filter: none !important;
}

/* =========================================================
   7) Gallery tiles (uniform boxes + hover zoom)
   ========================================================= */

#gallery .gallery-tile {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

#gallery .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  filter: saturate(1.02) contrast(1.02);
}

#gallery .gallery-tile:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.08);
}

/* =========================================================
   8) Lightbox (modal) – full-bleed, no white borders
   ========================================================= */

#lightbox .modal-dialog {
  max-width: 100vw;
  margin: 0;
}

#lightbox .modal-content {
  background: #000;
  border: 0;
  border-radius: 0;
  padding: 0;
}

#lightbox .modal-body {
  padding: 0;
}

#lightbox .carousel,
#lightbox .carousel-inner,
#lightbox .carousel-item {
  height: 100vh;
}

#lightbox .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 !important;
  background: #000;
}

#lightbox .close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1051;
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}

/* Disable carousel animation only while opening */
#indicators.no-transition .carousel-item {
  transition: none !important;
}
