/*
Theme Name: KavaDerma
Theme URI: https://kavaderma.ca
Author: KavaDerma
Author URI: https://kavaderma.ca
Description: Thème premium noir et or pour KavaDerma — Studio de tatouage haut de gamme (Fine Line, Walk-in, Cover-up). Inclut un modèle Walk-in dédié.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: kavaderma
*/

/* ============ TOKENS ============ */
:root {
  --bg: #0a0806;
  --ink: #0f0d0a;
  --card: #14110d;
  --border: rgba(200,160,80,0.14);
  --foreground: #f2ead9;
  --muted: #8a7f6d;
  --gold: #c8a050;
  --gold-bright: #e6c477;
  --gold-soft: rgba(200,160,80,0.85);
  --primary-foreground: #0a0806;
  --shadow-gold: 0 0 30px rgba(200,160,80,0.25);
  --shadow-elegant: 0 20px 60px -20px rgba(0,0,0,0.7);
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--gold-bright); }
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.italic { font-style: italic; }
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--gold-soft);
}
.divider-gold {
  display: block;
  width: 96px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.text-gold-gradient {
  background: linear-gradient(135deg, #e6c477 0%, #c8a050 50%, #a17d3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bg-noise {
  background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 3px 3px;
}
.shadow-gold { box-shadow: var(--shadow-gold); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-radius: 2px;
  transition: all .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { filter: brightness(1.1); color: var(--primary-foreground); }
.btn-outline {
  border-color: rgba(200,160,80,0.5);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(200,160,80,0.1); color: var(--gold); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,8,6,0.7);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}
.site-header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}
.site-header ul.menu {
  display: none;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.site-header ul.menu a { color: var(--muted); }
.site-header ul.menu a:hover,
.site-header ul.menu .current-menu-item > a { color: var(--gold); }
.site-header .cta {
  display: none;
  border: 1px solid rgba(200,160,80,0.6);
  color: var(--gold);
  padding: 8px 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 2px;
}
.site-header .cta:hover { background: var(--gold); color: var(--primary-foreground); }
@media (min-width: 768px) {
  .site-header ul.menu, .site-header .cta { display: inline-flex; }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--ink);
  padding: 64px 0;
  margin-top: 0;
}
.site-footer .grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .site-footer .grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--muted); font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer .bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .site-footer .bottom { flex-direction: row; }
}

/* ============ SECTIONS ============ */
section { position: relative; padding: 96px 0; }
@media (min-width: 768px) { section { padding: 128px 0; } }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-top: 16px; font-size: clamp(2rem, 5vw, 3rem); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 128px 24px;
  text-align: center;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(10,8,6,0.7), rgba(10,8,6,0.5), rgba(10,8,6,1));
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
}
.hero p.lead {
  margin: 32px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero .rule {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero .rule .bar { height: 1px; width: 40px; background: rgba(200,160,80,0.6); }
.hero-badges {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.hero-badges li {
  border: 1px solid rgba(200,160,80,0.4);
  background: rgba(10,8,6,0.4);
  padding: 6px 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(200,160,80,0.9);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.contact-buttons {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 40px;
}

/* ============ CARDS ============ */
.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards.cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(20,17,13,0.6);
  padding: 40px;
  border-radius: 2px;
  transition: all .5s ease;
}
.card:hover {
  border-color: rgba(200,160,80,0.6);
  background: var(--card);
  transform: translateY(-4px);
}
.card .step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
}
.card h3 {
  margin: 16px 0;
  font-size: 1.5rem;
  color: var(--foreground);
}
.card p { color: var(--muted); }

/* ============ RULES BOX ============ */
.rules-box {
  border: 1px solid rgba(200,160,80,0.4);
  background: rgba(20,17,13,0.6);
  padding: 40px;
  border-radius: 2px;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .rules-box { padding: 48px; } }
.rules-box ul { list-style: none; padding: 0; margin: 0; }
.rules-box li {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
  color: rgba(242,234,217,0.9);
}
.rules-box li:last-child { margin-bottom: 0; }
.rules-box li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow-gold);
}

/* ============ TABLE ============ */
.schedule-table {
  border: 1px solid var(--border);
  background: rgba(20,17,13,0.5);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  padding: 16px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.schedule-table th.right { text-align: right; }
.schedule-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(200,160,80,0.06);
}
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td.day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--foreground);
}
.schedule-table td.hours { text-align: right; color: var(--muted); }

/* ============ MAP ============ */
.location-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200,160,80,0.3);
  aspect-ratio: 4/3;
  border-radius: 2px;
  box-shadow: var(--shadow-elegant);
}
.map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.9;
  border: 0;
}
.map-frame::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(200,160,80,0.2);
  pointer-events: none;
}

/* ============ GALLERY ============ */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200,160,80,0.1);
  aspect-ratio: 4/5;
  border-radius: 2px;
  margin: 0;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s ease-out;
}
.gallery figure:hover img { transform: scale(1.1); }
.gallery figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,1), rgba(10,8,6,0.2), transparent);
  opacity: 0.6;
  transition: opacity .3s ease;
}
.gallery figure:hover::after { opacity: 0.3; }

/* ============ PAGE CONTENT (Gutenberg) ============ */
.page-content {
  padding-top: 160px;
  padding-bottom: 96px;
}
.page-content .entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--foreground);
}
.page-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 32px;
  text-align: center;
}
.page-content h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-content h2 { font-size: 2rem; margin: 48px 0 16px; }
.page-content h3 { font-size: 1.5rem; margin: 32px 0 12px; }
.page-content p, .page-content ul, .page-content ol { margin: 0 0 20px; color: rgba(242,234,217,0.9); }
.page-content a { text-decoration: underline; text-decoration-color: rgba(200,160,80,0.4); }
.page-content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--foreground);
}
.page-content img { border-radius: 2px; }
.page-content .wp-block-button__link {
  background: var(--gold);
  color: var(--primary-foreground);
  padding: 14px 28px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}

.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }

/* ============ CTA FINAL ============ */
.cta-final {
  text-align: center;
  background: rgba(15,13,10,0.6);
}
.cta-final h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta-final p { max-width: 560px; margin: 32px auto 0; color: var(--muted); }

/* ============ ANIMATIONS ============ */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-float-in { animation: floatIn .8s ease-out both; }
