/* === VIANORIA — Vos démarches accompagnées === */
/* Distinct from OSIAM: white base, terracotta-dominant, rounded, warmer */

:root {
  --forest: #1E3A2E;
  --forest-light: #2a4a3c;
  --terra: #C76B3E;
  --terra-light: #d4783f;
  --terra-soft: #F4E4D8;
  --sand: #EFE6D4;
  --sand-lt: #F7F1E0;
  --sage: #8FA38A;
  --ink: #0F0F0F;
  --white: #FFFFFF;
  --off-white: #FAFAF7;
  --grey-m: #5A5A5A;
  --grey-l: #8E8E8E;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --max-w: 1120px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--ink); background: var(--off-white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 11px; letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase; color: var(--terra); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--forest);
  line-height: 1.12;
  margin-top: 10px;
}

/* ===== NAV — terracotta accent, lighter feel ===== */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,250,247,0.94); border-bottom: 1px solid rgba(199,107,62,0.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 120px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-img { height: 105px; width: auto; flex-shrink: 0; }
.nav-logo span { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13px; color: var(--forest); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--terra); }
.nav-links a.active { color: var(--terra); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--terra); border-radius: 1px; }
.nav-cta { background: var(--terra); color: var(--white); padding: 10px 22px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); transition: background 0.2s; }
.nav-cta:hover { background: var(--terra-light); }
.nav-burger { display: none; background: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--forest); transition: 0.3s; border-radius: 1px; }

.nav-overlay { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--off-white); z-index: 99; padding: 32px var(--gutter); flex-direction: column; }
.nav-overlay.open { display: flex; }
.nav-overlay a { font-size: 22px; color: var(--forest); padding: 18px 0; border-bottom: 1px solid var(--terra-soft); font-family: var(--font-display); font-weight: 400; }
.nav-overlay .btn-mobile { display: block; margin-top: 28px; background: var(--terra); color: var(--white); padding: 18px; text-align: center; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); }

/* ===== BUTTONS — rounded ===== */
.btn-primary { display: inline-block; background: var(--terra); color: var(--white); padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); transition: background 0.2s; }
.btn-primary:hover { background: var(--terra-light); }
.btn-forest { display: inline-block; background: var(--forest); color: var(--white); padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); transition: background 0.2s; }
.btn-forest:hover { background: var(--forest-light); }
.btn-outline { display: inline-block; border: 1.5px solid var(--terra); color: var(--terra); padding: 13px 26px; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s; }
.btn-outline:hover { background: var(--terra); color: var(--white); }

/* ===== PAGE HERO — centered, emotional ===== */
.page-hero { padding: 80px 0 56px; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; color: var(--forest); letter-spacing: -0.02em; max-width: 800px; margin: 0 auto; }
.page-hero .lead { font-size: 17px; color: var(--grey-m); line-height: 1.7; max-width: 560px; margin: 20px auto 0; }
.page-hero .kicker { margin-bottom: 16px; }

/* ===== STATS BAND ===== */
.stats { background: var(--forest); padding: 48px 0; border-radius: var(--radius); margin: 0 var(--gutter); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 400; font-size: 48px; color: var(--terra); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--sage); margin-top: 10px; letter-spacing: 0.1em; font-weight: 500; }

/* ===== CTA BAND ===== */
.cta-band { background: var(--terra); padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 32px); color: var(--white); line-height: 1.2; max-width: 640px; }
.cta-band .btn-cta { background: var(--forest); color: var(--white); padding: 16px 28px; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: var(--radius-sm); transition: background 0.2s; flex-shrink: 0; }
.cta-band .btn-cta:hover { background: var(--forest-light); }

/* ===== FOOTER ===== */
.footer { background: var(--forest); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 0.5px solid rgba(143,163,138,0.3); }
.footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--terra); margin-bottom: 6px; }
.footer-sub { font-size: 12px; color: var(--sage); line-height: 1.6; }
.footer-col-title { color: var(--terra); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 12px; }
.footer-link { display: block; color: rgba(239,230,212,0.85); font-size: 13px; line-height: 2; transition: color 0.2s; }
.footer-link:hover { color: var(--terra); }
.footer-copy { font-size: 11px; color: var(--sage); margin-top: 20px; text-align: center; letter-spacing: 0.06em; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroWord { from { opacity: 0; transform: translateY(40px) rotateX(40deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(199,107,62,0); } 50% { box-shadow: 0 0 0 8px rgba(199,107,62,0.12); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }

/* Hero text animation */
.hero-word { display: inline-block; opacity: 0; transform: translateY(40px); }
.hero-word.show { animation: heroWord 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* Nav shrink on scroll */
.nav { transition: height 0.3s, box-shadow 0.3s; }
.nav.scrolled { height: auto; box-shadow: 0 2px 20px rgba(30,58,46,0.06); }
.nav.scrolled .wrap { height: 84px; }
.nav.scrolled .nav-logo-img { height: 72px; }

/* CTA pulse */
.btn-primary { animation: pulseGlow 3s ease-in-out infinite; animation-delay: 2s; }

/* Stat counter */
.stat-num { font-variant-numeric: tabular-nums; }

/* Smooth card hovers enhanced */
.cas-card, .forfait-card, .f-card, .confiance-item, .accomp-card, .step, .wizard-option { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s; }

/* Guillemet animation */
.guillemet { opacity: 0; transform: scale(0.5); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.guillemet.visible { opacity: 1; transform: scale(1); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats { margin: 0; border-radius: 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-band .wrap { flex-direction: column; text-align: center; }
  .page-hero { padding: 56px 0 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .page-hero { padding: 40px 0 28px; }
  .stat-num { font-size: 34px; }
  .stats { padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.lang-switch a { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--forest); opacity: 0.4; transition: opacity 0.2s; }
.lang-switch a:hover { opacity: 0.8; }
.lang-switch a.active { opacity: 1; color: var(--terra); }
.lang-switch .sep { color: var(--forest); opacity: 0.2; font-size: 10px; }
