/* ════════════════════════════════════════════════════
   Phanoob Créations — Charte graphique V2
   Palette : brun wengé + crème sable + or ambré
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,600&family=Lato:wght@300;400;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Couleurs */
  --bg-dark:    #1C1208;
  --bg-mid:     #2A1F0E;
  --bg-card:    #352810;
  --cream:      #F5EDD8;
  --cream-dark: #E8D9B8;
  --gold:       #C8963E;
  --gold-light: #E8C062;
  --gold-dim:   rgba(200,150,62,0.25);
  --gold-glow:  rgba(200,150,62,0.45);
  --wood:       #5C3A14;
  --text-dark:  #1C1208;
  --text-light: #F5EDD8;
  --text-muted: #A08060;
  --red-18:     #C0392B;

  /* Typos */
  --font-script:  'Dancing Script', cursive;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Misc */
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,0.45);
  --shadow-gold:0 0 32px rgba(200,150,62,0.3);
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.65;
}

/* ── Grain bois subtil ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── Nav principale ── */
.ph-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28,18,8,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.ph-nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .5px;
}
.ph-nav-links { display: flex; gap: 1.5rem; list-style: none; }
.ph-nav-links a {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.ph-nav-links a:hover { color: var(--gold-light); }
.ph-nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.ph-nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.ph-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: var(--transition); }

/* ── Séparateur doré ── */
.ph-divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gold); margin: 1.5rem 0;
}
.ph-divider::before, .ph-divider::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.ph-divider-icon { font-size: 1.1rem; }

/* ── Titres ── */
.ph-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1.15;
}
.ph-title-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  line-height: 1.1;
}
.ph-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Boutons ── */
.ph-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  border-radius: 50px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.ph-btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
}
.ph-btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.ph-btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.ph-btn-outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}
.ph-btn-cream {
  background: var(--cream);
  color: var(--bg-dark);
}
.ph-btn-cream:hover {
  background: var(--cream-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ── Cartes ── */
.ph-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.ph-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.ph-card-cream {
  background: var(--cream);
  color: var(--text-dark);
  border: 1.5px solid var(--gold-dim);
}
.ph-card-body { padding: 1.5rem; }

/* ── Sections ── */
.ph-section {
  padding: 5rem 2rem;
  position: relative;
}
.ph-section-light {
  background: var(--cream);
  color: var(--text-dark);
}
.ph-section-mid {
  background: var(--bg-mid);
}
.ph-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Hero LED glow ── */
.ph-glow-box {
  box-shadow: 0 0 60px rgba(200,150,62,0.25), 0 0 120px rgba(200,150,62,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ph-led-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(200,150,62,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badge prix ── */
.ph-price-badge {
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.ph-price-badge .currency { font-size: 1rem; }
.ph-price-badge .label { font-family: var(--font-body); font-size: .8rem; color: var(--text-muted); font-weight: 400; }

/* ── Badge 18+ ── */
.ph-badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--red-18);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ── Cookie banner RGPD ── */
#ph-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-mid);
  border-top: 1px solid var(--gold-dim);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
#ph-cookie-banner p { font-size: .9rem; color: var(--text-muted); max-width: 700px; }
#ph-cookie-banner a { color: var(--gold); }
#ph-cookie-banner .ph-cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── Footer ── */
.ph-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--gold-dim);
  padding: 3rem 2rem 2rem;
}
.ph-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px; margin: 0 auto 2rem;
}
.ph-footer-brand .ph-title-script { font-size: 1.8rem; }
.ph-footer-brand p { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; font-style: italic; }
.ph-footer-col h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.ph-footer-col ul { list-style: none; }
.ph-footer-col ul li { margin-bottom: .5rem; }
.ph-footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: .9rem; transition: color var(--transition); }
.ph-footer-col ul li a:hover { color: var(--gold-light); }
.ph-footer-bottom {
  border-top: 1px solid var(--gold-dim);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  max-width: 1200px; margin: 0 auto;
}

/* ── Grids ── */
.ph-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.ph-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── Age gate ── */
#ph-age-gate {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(28,18,8,.97);
  display: flex; align-items: center; justify-content: center;
}
.ph-age-gate-box {
  background: var(--bg-mid);
  border: 1.5px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
}
.ph-age-gate-box .ph-badge-18 { width: 60px; height: 60px; font-size: 1.3rem; margin: 0 auto 1.5rem; }
.ph-age-gate-box h2 { font-family: var(--font-serif); color: var(--gold-light); margin-bottom: 1rem; }
.ph-age-gate-box p { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; line-height: 1.6; }
.ph-age-gate-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Alertes ── */
.ph-alert {
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.ph-alert-gold { background: var(--gold-dim); border-left: 3px solid var(--gold); color: var(--cream); }
.ph-alert-err  { background: rgba(192,57,43,.15); border-left: 3px solid var(--red-18); color: #F5A89A; }

/* ── Formulaire ── */
.ph-form-group { margin-bottom: 1.25rem; }
.ph-form-group label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; letter-spacing: .5px; }
.ph-input, .ph-textarea, .ph-select {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.ph-input:focus, .ph-textarea:focus, .ph-select:focus { border-color: var(--gold); }
.ph-textarea { min-height: 140px; resize: vertical; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ph-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--gold-dim); padding: 1rem; }
  .ph-nav-links.open { display: flex; }
  .ph-nav-toggle { display: block; }
  .ph-section { padding: 3rem 1.25rem; }
  #ph-cookie-banner { flex-direction: column; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
