/* ============================================
   GLOBAL.CSS — Belle Pour Son Mariage
   Maquette 4 : Chaleureux & Intime
   ============================================ */

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

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

body {
  font-family: 'Nunito Sans', Arial, sans-serif;
  color: var(--brun);
  background-color: var(--blanc-creme);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- CSS Variables --- */
:root {
  /* Colors */
  --terracotta: #B8705A;
  --terracotta-light: #c9876e;
  --terracotta-dark: #9a5c48;
  --beige-dore: #D4B896;
  --beige-dore-light: #e2ccae;
  --blanc-creme: #FBF7F2;
  --blanc-creme-alt: #F5EDE3;
  --vert-olive: #8A9A6D;
  --vert-olive-light: #a3b389;
  --brun: #4A3728;
  --brun-light: #6b5645;
  --peche: #F0D5C4;
  --peche-light: #f7e6da;
  --blanc: #FFFFFF;
  --gris-chaud: #9B8E82;

  /* Typography */
  --font-titre: 'Libre Baskerville', Georgia, serif;
  --font-corps: 'Nunito Sans', Arial, sans-serif;
  --font-accent: 'Dancing Script', cursive;

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

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(74, 55, 40, 0.08);
  --shadow-warm: 0 8px 32px rgba(184, 112, 90, 0.12);
  --shadow-card: 0 2px 12px rgba(74, 55, 40, 0.06);
  --shadow-hover: 0 12px 40px rgba(184, 112, 90, 0.18);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
}

/* --- Paper/Linen texture background --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  color: var(--brun);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.font-accent {
  font-family: var(--font-accent);
}

.text-terracotta {
  color: var(--terracotta);
}

.text-brun {
  color: var(--brun);
}

.text-vert {
  color: var(--vert-olive);
}

.text-gris {
  color: var(--gris-chaud);
}

.text-center {
  text-align: center;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

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

.section--alt {
  background-color: var(--blanc-creme-alt);
}

.section--terracotta {
  background-color: var(--terracotta);
  color: var(--blanc-creme);
}

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

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header__eyebrow {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--terracotta);
  margin-bottom: var(--space-xs);
  display: block;
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  color: var(--gris-chaud);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- Decorative Line --- */
.deco-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-md) auto;
  max-width: 200px;
}

.deco-line::before,
.deco-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige-dore), transparent);
}

.deco-line__icon {
  width: 20px;
  height: 20px;
  color: var(--terracotta);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-corps);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--terracotta);
  color: var(--blanc);
  border-color: var(--terracotta);
}

.btn--primary:hover {
  background-color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  box-shadow: var(--shadow-warm);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

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

.btn--white {
  background-color: var(--blanc);
  color: var(--terracotta);
  border-color: var(--blanc);
}

.btn--white:hover {
  background-color: var(--blanc-creme);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn--ghost {
  background-color: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}

.btn--ghost:hover {
  background-color: var(--blanc);
  color: var(--terracotta);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

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

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--blanc);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--gris-chaud);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brun);
  font-size: 0.9rem;
}

.form-label--required::after {
  content: ' *';
  color: var(--terracotta);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--blanc);
  border: 2px solid var(--beige-dore-light);
  border-radius: var(--radius-sm);
  color: var(--brun);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 112, 90, 0.15);
}

.form-input::placeholder {
  color: var(--gris-chaud);
  opacity: 0.6;
}

.form-input--error {
  border-color: #d44;
}

.form-error {
  color: #d44;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%234A3728'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--terracotta {
  background-color: rgba(184, 112, 90, 0.12);
  color: var(--terracotta);
}

.badge--vert {
  background-color: rgba(138, 154, 109, 0.12);
  color: var(--vert-olive);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  border-bottom-color: var(--beige-dore-light);
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blanc-creme);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 999;
}

.nav__menu.is-open {
  display: flex;
}

.nav__link {
  font-family: var(--font-corps);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brun);
  transition: color var(--transition-fast);
  padding: 0.5rem;
}

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

.nav__cta {
  margin-top: var(--space-sm);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brun);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Footer --- */
.footer {
  background-color: var(--brun);
  color: var(--beige-dore-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

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

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer__title {
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--blanc);
  margin-bottom: var(--space-sm);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
  color: var(--peche);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--terracotta);
  transform: scale(1.1);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--blanc);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Decorative elements --- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--beige-dore);
  margin: var(--space-sm) 0;
}

.ornament svg {
  width: 16px;
  height: 16px;
}

/* Hand-drawn border style */
.hand-border {
  border: 2px solid var(--beige-dore-light);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

/* Decorative quote mark */
.quote-mark {
  font-family: var(--font-titre);
  font-size: 4rem;
  color: var(--terracotta);
  opacity: 0.2;
  line-height: 1;
  position: absolute;
  top: -0.5rem;
  left: 0;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

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

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 900;
  transition: all var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}
