/* ============================================
   BELLE POUR SON MARIAGE - Global CSS
   Reset, Variables, Typography, Utilities
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-black: #0A0A0A;
  --color-black-soft: #1A1A1A;
  --color-black-lighter: #2A2A2A;
  --color-gold: #C9A84C;
  --color-gold-bright: #D4AF37;
  --color-gold-light: #E8D5A0;
  --color-gold-dark: #A68A3E;
  --color-white-warm: #FAF7F0;
  --color-cream: #F5F0E8;
  --color-cream-dark: #EDE5D8;
  --color-white: #FFFFFF;
  --color-gray: #888888;
  --color-gray-light: #CCCCCC;
  --color-error: #D32F2F;
  --color-success: #2E7D32;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #D4AF37 50%, #E8D5A0 100%);
  --gradient-gold-subtle: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(212,175,55,0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-accent: 'Playfair Display', serif;

  /* Font Sizes - Mobile */
  --fs-hero: clamp(2.5rem, 8vw, 5rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 4vw, 3rem);
  --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 2.5vw, 1.35rem);
  --fs-body-lg: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-overline: 0.7rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Section Padding */
  --section-py: var(--space-2xl);
  --section-px: var(--space-md);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-index scale */
  --z-behind: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-black);
  background-color: var(--color-white-warm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-black);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-black-lighter);
}

.text-lg {
  font-size: var(--fs-body-lg);
}

.text-sm {
  font-size: var(--fs-body-sm);
}

.text-caption {
  font-size: var(--fs-caption);
}

/* --- Overline / Label --- */
.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.overline--dark {
  color: var(--color-gold-dark);
}

/* --- Gold Separator --- */
.separator {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  border: none;
  margin: var(--space-sm) 0;
}

.separator--center {
  margin-left: auto;
  margin-right: auto;
}

.separator--wide {
  width: 100px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-black);
  border: 1px solid var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn--secondary:hover {
  background: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-gold);
  border: 1px solid var(--color-black);
}

.btn--dark:hover {
  background: var(--color-black-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
}

.btn--white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: var(--fs-caption);
}

.btn--lg {
  padding: 1.2rem 2.5rem;
  font-size: var(--fs-body);
}

.btn--full {
  width: 100%;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* --- Section --- */
.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-white-warm);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white-warm);
}

.section--dark p {
  color: var(--color-gray-light);
}

.section--cream {
  background-color: var(--color-cream);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-input::placeholder {
  color: var(--color-gray);
  font-style: italic;
}

.form-input--error {
  border-color: var(--color-error);
}

.form-error {
  font-size: var(--fs-caption);
  color: var(--color-error);
  margin-top: 0.25rem;
  display: none;
}

.form-input--error + .form-error,
.form-group.has-error .form-error {
  display: block;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-px);
  max-width: 1400px;
  margin: 0 auto;
}

.nav__logo img {
  height: 40px;
  width: auto;
  transition: height var(--transition-base);
}

.nav--scrolled .nav__logo img {
  height: 32px;
}

.nav__links {
  display: none;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  cursor: pointer;
  z-index: var(--z-modal);
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__burger--active span:nth-child(2) {
  opacity: 0;
}

.nav__burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  z-index: var(--z-overlay);
}

.nav__mobile--open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.nav__mobile--open a {
  transform: translateY(0);
  opacity: 1;
}

.nav__mobile--open a:nth-child(1) { transition-delay: 0.1s; }
.nav__mobile--open a:nth-child(2) { transition-delay: 0.15s; }
.nav__mobile--open a:nth-child(3) { transition-delay: 0.2s; }
.nav__mobile--open a:nth-child(4) { transition-delay: 0.25s; }
.nav__mobile--open a:nth-child(5) { transition-delay: 0.3s; }
.nav__mobile--open a:nth-child(6) { transition-delay: 0.35s; }
.nav__mobile--open a:nth-child(7) { transition-delay: 0.4s; }

.nav__mobile a:hover {
  color: var(--color-gold);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.reveal--visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.reveal--visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.reveal--visible {
  transform: scale(1);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: var(--color-white-warm);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.footer__logo img {
  height: 50px;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-gray);
  font-style: italic;
  max-width: 300px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-gray-light);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--color-white-warm);
  transition: all var(--transition-base);
  font-size: 0.9rem;
}

.footer__social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}

.footer__bottom p {
  font-size: var(--fs-caption);
  color: var(--color-gray);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-cream { color: var(--color-cream); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-bright);
}

/* --- Selection --- */
::selection {
  background: var(--color-gold);
  color: var(--color-black);
}
