/*
Theme Name: Rachel Ylang Theme
Theme URI: https://rachelylang.com
Author: Antigravity AI
Description: Thème WordPress sur-mesure pour Rachel Ylang - Luxe & Flow. Thérapeute & Mentor.
Version: 1.0.0
Text Domain: rachel-ylang
*/

/* Reset & CSS Custom Properties */
:root {
  --bg-primary: #3D0F1E;
  --bg-secondary: #5C1A2E;
  --bg-bordeaux: #3D0F1E;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #FDF6E9;
}

body {
  background-color: #3D0F1E !important;
  color: #FDF6E9;
  font-family: 'Raleway', 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════
   CORRECTIF FORCE BOUTONS DORES (GOLD BUTTONS OVERRIDE)
   ══════════════════════════════════════════════════════════ */

/* 1. TOUS les boutons principaux dorés (Plein Doré #C9A84C, Texte Bordeaux #3D0F1E) */
.btn-gold-primary,
.bg-gold-btn {
  background-color: #C9A84C !important;
  color: #3D0F1E !important;
  font-weight: 700 !important;
  border-radius: 0px !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-gold-primary:hover,
.bg-gold-btn:hover {
  background-color: #E8C97A !important;
  color: #3D0F1E !important;
}

/* 2. BOUTON DANS LE HEADER (Bouton RÉSERVER en haut à droite) */
header a[href*="tidycal.com"] {
  background-color: #C9A84C !important;
  color: #3D0F1E !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 0px !important;
  padding: 10px 24px !important;
  display: inline-block !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

header a[href*="tidycal.com"]:hover {
  background-color: #E8C97A !important;
  color: #3D0F1E !important;
}

/* Grain texture & Glow Effects */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

.atmospheric-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, rgba(61, 15, 30, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(92, 26, 46, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.22);
}

/* Gold Dividers */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.4) 50%, transparent 100%);
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   CORRECTIFS RESPONSIVE MOBILE ET ANTI-DÉBORDEMENT GLOBAL
   ══════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

* {
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  /* Fix 1: Masquage strict du menu desktop et du bouton de réservation desktop dans l'en-tête */
  header nav,
  header .header-cta-desktop {
    display: none !important;
  }

  /* Fix 2: Conservation du logo sur une seule ligne et taille adaptée sur mobile */
  header a.font-serif {
    white-space: nowrap !important;
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }

  /* Fix 3: Bouton Burger mobile bien visible et calé à droite */
  #mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Fix 4: Prévention anti-débordement sur tous les conteneurs et textes */
  section, div, p, span, h1, h2, h3, a {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Fix 5: Ajustement des tailles de titres pour éviter qu'ils ne soient disproportionnés sur téléphone */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none !important;
  }
  #mobile-drawer {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
  header .header-cta-desktop {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════════════════════
   ANIMATION INDICATEUR DE DEFILEMENT (SCROLL ARROW ANIMATION)
   ══════════════════════════════════════════════════════════ */

@keyframes scrollPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(6px); }
}

.scroll-arrow-anim {
  animation: scrollPulse 1.8s ease-in-out infinite;
}


