/* ============================================
   GLOBAL.CSS — Reset, Variables, Typographies, Utilities
   Belle Pour Son Mariage — Maquette 3 (Editorial & Modern)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --white: #FFFFFF;
  --black: #1A1A1A;
  --grey: #E5E0DB;
  --accent: #C17F59;
  --accent-dark: #A66A47;
  --beige: #F2EDE8;
  --beige-light: #F8F5F2;
  --overlay: rgba(26, 26, 26, 0.6);

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 4rem;
  --fs-6xl: 5rem;
  --fs-7xl: 7rem;
  --fs-8xl: 9rem;

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

  /* Layout */
  --container-padding: 1.25rem;
  --max-width: 1400px;
  --header-height: 60px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

/* --- Typography --- */
.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.01em;
}

.t-display-md {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1.05;
}

.t-heading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.2;
}

.t-subheading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.t-body-lg {
  font-size: var(--fs-md);
  line-height: 1.7;
}

.t-body {
  font-size: var(--fs-base);
  line-height: 1.6;
}

.t-body-sm {
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.t-caption {
  font-size: var(--fs-xs);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

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

.btn--secondary:hover {
  background-color: var(--black);
  color: var(--white);
}

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

.btn--accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.btn--white:hover {
  background-color: transparent;
  color: var(--white);
}

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

.btn--ghost:hover {
  background-color: var(--white);
  color: var(--black);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

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

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

/* Button with arrow */
.btn .btn-arrow {
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Links --- */
.link-underline {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem var(--container-padding);
  transition: all var(--duration-normal) var(--ease-out);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header--scrolled .header__logo-white {
  opacity: 0;
  pointer-events: none;
}

.header--scrolled .header__logo-color {
  opacity: 1;
  pointer-events: auto;
}

.header--scrolled .header__nav-link {
  color: var(--black);
}

.header--scrolled .header__cta {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.header--scrolled .header__burger span {
  background-color: var(--black);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  position: relative;
  width: 120px;
  height: 40px;
  z-index: 1001;
}

.header__logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.header__logo-white {
  opacity: 1;
}

.header__logo-color {
  opacity: 0;
}

.header__nav {
  display: none;
}

.header__nav-link {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--duration-fast) ease;
}

.header__nav-link:hover {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: none;
}

/* Burger Menu */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu__link:hover {
  color: var(--accent);
}

.mobile-menu__cta {
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

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

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  width: 140px;
  margin-bottom: var(--space-lg);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.footer__col-link {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.625rem;
  transition: color var(--duration-fast) ease;
}

.footer__col-link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.footer__social-link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) ease;
}

.footer__social-link:hover {
  color: var(--accent);
}

.footer__legal {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.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; }

/* Text clip reveal */
.text-reveal {
  overflow: hidden;
}

.text-reveal__inner {
  display: block;
  transform: translateY(105%);
  transition: transform var(--duration-slower) var(--ease-out);
}

.text-reveal.is-visible .text-reveal__inner {
  transform: translateY(0);
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}

.marquee__track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  padding: 0 var(--space-xl);
  color: var(--grey);
}

.marquee__item--accent {
  color: var(--accent);
}

.marquee__separator {
  color: var(--accent);
  padding: 0 var(--space-md);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

.color-accent { color: var(--accent); }
.color-white { color: var(--white); }
.color-grey { color: var(--grey); }

.bg-black { background-color: var(--black); }
.bg-beige { background-color: var(--beige); }
.bg-white { background-color: var(--white); }

.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); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.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); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-section { padding-top: var(--space-4xl); }
.pb-section { padding-bottom: var(--space-4xl); }

/* --- Image hover zoom --- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform var(--duration-slow) var(--ease-out);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* --- Selection --- */
::selection {
  background-color: var(--accent);
  color: var(--white);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}
