/* =============================================
   CYRIL DUMONT — Thème Éditorial Épuré
   Polices : Playfair Display + Inter
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables (noms maintenus pour compatibilité) --- */
:root {
  --bg:        #fafaf8;
  --surface:   #ffffff;
  --surface2:  #f2f0ec;
  --border:    #e5e2dc;
  --blue:      #9b1c1c;              /* ancien bleu → bordeaux */
  --blue-dim:  rgba(155,28,28,0.08);
  --blue-glow: rgba(155,28,28,0.2);
  --red:       #dc2626;
  --text:      #111111;
  --muted:     #7a7a7a;
  --light:     #aaaaaa;
  --ink:       #111111;
  --accent:    #9b1c1c;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }

/* --- Surcharge globale des polices héritées --- */
.section-title,
.hero-name,
.stat-number,
.form-year,
.success-title,
.tl-title,
.form-title,
.cta-text h2,
footer .footer-logo {
  font-family: 'Playfair Display', serif !important;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding: 0 48px;
  height: 68px;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--ink);
  padding: 10px 24px;
  border-radius: 0;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent); }
.nav-cta::after { display: none !important; }

/* --- LAYOUT --- */
.page-wrap { position: relative; z-index: 1; padding-top: 68px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* --- ELEMENTS COMMUNS --- */
.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--blue-dim); }

.tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 0;
}

/* --- PAGE HERO (pages secondaires) --- */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
  max-width: 580px;
  line-height: 1.8;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--ink);
  color: rgba(255,255,255,0.45);
}

footer .footer-logo {
  font-size: 16px;
  font-style: italic;
  color: #fff;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
