/* ═══════════════════════════════════════════
   L'ATELIER DES NOMBRES — Shared Styles
   ═══════════════════════════════════════════ */

:root {
  --violet: #8B5CF6;
  --violet-deep: #A78BFA;
  --violet-light: rgba(139,92,246,0.12);
  --violet-wash: rgba(139,92,246,0.06);
  --cream: #0A0A0F;
  --ink: #F1F1F4;
  --gray: #9CA3AF;
  --gray-light: rgba(255,255,255,0.08);
  --white: #121218;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; }
section { padding: 100px 2rem; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--violet);
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
}
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--violet);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--violet); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: #7C3AED !important;
  color: #F1F1F4 !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #6D28D9 !important;
  transform: translateY(-1px);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ─── SHARED ELEMENTS ─── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--gray);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: #7C3AED;
  color: #F1F1F4;
}
.btn-primary:hover {
  background: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--violet);
  border: 2px solid rgba(139,92,246,0.25);
}
.btn-outline:hover {
  border-color: var(--violet);
  background: rgba(139,92,246,0.1);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.infinity-divider {
  text-align: center;
  color: var(--violet);
  font-size: 1.5rem;
  opacity: 0.2;
  letter-spacing: 1rem;
  padding: 1rem 0;
}

/* ─── PAGE HEADER (non-home pages) ─── */
.page-header {
  padding: 140px 2rem 60px;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-header h1 em { color: var(--violet); font-style: italic; }
.page-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  background: #050508;
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  border-top: 1px solid var(--gray-light);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F1F1F4;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #F1F1F4; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: forceReveal 0.8s ease 2s both;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes forceReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .page-header { padding: 120px 2rem 50px; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    border-top: 1px solid var(--gray-light);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  section { padding: 60px 1.5rem; }
  .page-header { padding: 110px 1.5rem 40px; }
}
