/* ═══════════════════════════════════════════════
   BASE — Reset, Variables, Global Utilities
   ═══════════════════════════════════════════════ */

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

:root {
  /* ── Accent or doré ── */
  --gold:               #C9A84C;
  --gold-light:         #D9B862;
  --gold-pale:          #F5E6B8;
  --gold-dark:          #8B6B14;      /* plus foncé = meilleur contraste sur blanc */

  /* ── Arrière-plans clairs ── */
  --black:              #FFFFFF;
  --charcoal:           #F8F5EE;
  --dark:               #F2EDE3;
  --dark-mid:           #E8E1D3;

  /* ── Texte foncé — renforcé pour lisibilité maximale ── */
  --white:              #0E0E0C;       /* quasi noir — contraste WCAG AA+ */
  --white-dim:          rgba(14, 14, 12, 0.90);   /* paragraphes */
  --white-muted:        rgba(14, 14, 12, 0.70);   /* textes secondaires — plus foncé */

  /* ── Bordures or ── */
  --border-gold:        rgba(139, 107, 20, 0.28);
  --border-gold-bright: rgba(139, 107, 20, 0.60);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  /* Prevent font size inflation on orientation change (iOS/Android) */
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: default;
  -webkit-overflow-scrolling: touch;
  /* Render fonts sharply on all OS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Images always responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent image dragging on touch */
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #E8E3D8; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ─── Selection ─── */
::selection { background: var(--gold); color: #FFFFFF; }

/* ─── Section shell ─── */
section { position: relative; }

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 80px;
}

/* ─── Section typography ─── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.section-title .gold { color: var(--gold); }

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: var(--white-muted);
  margin-bottom: 44px;
  line-height: 1.65;
}

.gold-divider {
  width: 80px; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), transparent);
  margin-bottom: 50px;
}

/* ─── Buttons ─── */
.btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--gold-dark);
  padding: 16px 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-transition: background 0.3s, -webkit-transform 0.2s, box-shadow 0.3s;
          transition: background 0.3s,         transform 0.2s, box-shadow 0.3s;
  display: -webkit-inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px;
  /* Remove tap highlight on touch devices */
  -webkit-tap-highlight-color: transparent;
  /* Prevent double-tap zoom on iOS */
  touch-action: manipulation;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(155, 120, 32, 0.35);
}

.btn-outline {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  padding: 15px 40px;
  text-decoration: none;
  border: 1.5px solid var(--gold-dark);
  cursor: pointer;
  -webkit-transition: all 0.3s;
          transition: all 0.3s;
  display: -webkit-inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-outline:hover {
  background: var(--gold-dark);
  color: #FFFFFF;
  border-color: var(--gold-dark);
}

/* ─── Fade-up animation ─── */
.fade-up {
  opacity: 0;
  -webkit-transform: translateY(32px);
          transform: translateY(32px);
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
          transition: opacity 0.8s ease,         transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-up { -webkit-transition: none; transition: none; opacity: 1; -webkit-transform: none; transform: none; will-change: auto; }
  .scroll-line { -webkit-animation: none; animation: none; }
  * { -webkit-transition-duration: 0.01ms !important; transition-duration: 0.01ms !important; -webkit-animation-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
