/* ===================================================
   ATTESTATION-COLLECTION.FR — Design Tokens & Styles
   =================================================== */

/* --- Tokens --- */
:root {
  --vert: #0B3C2A;
  --vert-light: #14503A;
  --blanc: #F9F8F6;
  --dore: #D4AF37;
  --dore-pale: #E8D48B;
  --anthracite: #1A1A1A;
  --gris: #6B7280;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ===========================
   SPLASH SCREEN
   =========================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--vert);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash-logo {
  width: clamp(420px, 80vw, 900px);
  opacity: 0;
  transform: scale(0.85);
  animation: splashIn 1.2s 0.3s cubic-bezier(.16,1,.3,1) forwards;
  filter: drop-shadow(0 0 60px rgba(212,175,55,.25));
}
#splash-bar-track {
  width: clamp(200px, 45vw, 500px);
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  margin-top: 40px;
  overflow: hidden;
  opacity: 0;
  animation: splashIn 0.6s 0.8s ease forwards;
}
#splash-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dore), var(--dore-pale));
  border-radius: 3px;
  transition: width 0.1s linear;
}
#splash-tagline {
  margin-top: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  opacity: 0;
  animation: splashIn 0.6s 1.2s ease forwards;
}

@keyframes splashIn {
  to { opacity: 1; transform: scale(1); }
}

/* Block body scroll while splash is visible */
body.splash-active {
  overflow: hidden;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--anthracite);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography Scale --- */
.font-display { font-family: 'Playfair Display', 'Georgia', serif; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.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; }

/* --- Golden Underline Accent --- */
.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dore);
  border-radius: 2px;
  margin-top: 12px;
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--dore);
  color: var(--anthracite);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover {
  background: #c9a22e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--blanc);
  font-weight: 600;
  border: 2px solid var(--dore);
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  font-size: 1rem;
}
.btn-outline:hover {
  background: var(--dore);
  color: var(--anthracite);
  transform: translateY(-2px);
}

.btn-vert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--vert);
  color: var(--blanc);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-vert:hover {
  background: var(--vert-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,60,42,.3);
}

/* --- Form Inputs --- */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--dore);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.form-input::placeholder { color: #9ca3af; }

/* --- Card Hover --- */
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

/* --- Navbar --- */
.nav-link {
  position: relative;
  color: var(--blanc);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dore);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 600px;
}
.faq-chevron {
  transition: transform var(--transition);
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* --- Hero Gradient Overlay --- */
.hero-gradient {
  background: linear-gradient(135deg, rgba(11,60,42,.92) 0%, rgba(11,60,42,.7) 50%, rgba(26,26,26,.6) 100%);
}

/* --- Subtle pattern bg --- */
.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,.06) 1px, transparent 0);
  background-size: 32px 32px;
}

/* --- Leather texture (for vert sections) --- */
.bg-leather {
  background-image: url('../images/texture-green.webp');
  background-size: 600px;
}

/* --- Mobile menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* --- Step marker --- */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dore);
  color: var(--anthracite);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- Footer separator --- */
.footer-top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--dore), transparent);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
