/* ============================================
   THIS IS THE WAY - DESIGN SYSTEM
   Palette sable / lie de vin / ocre
   Typographie : Cormorant Garamond + Inter Tight
   ============================================ */

:root {
  /* Couleurs */
  --sable: #E8D9B8;
  --sable-clair: #F2E8D2;
  --sable-tres-clair: #F8F1E0;
  --sable-fonce: #D4BE93;
  --ocre: #C9A86A;
  --ocre-fonce: #A8884F;
  --ocre-clair: #DFC68C;
  --terre: #B5704A;
  --terre-fonce: #944F2A;
  --lie: #6B2C2C;
  --lie-fonce: #4A1F1F;
  --lie-clair: #8B3C3C;
  --brun: #2B1F14;
  --brun-clair: #4A3B22;
  --brun-tres-clair: #6B5A3F;
  --or: #B89968;
  
  /* Typographie */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Tailles */
  --max-width: 1400px;
  --content-width: 1200px;
  
  /* Effets */
  --shadow-soft: 0 4px 24px rgba(43, 31, 20, 0.06);
  --shadow-medium: 0 8px 40px rgba(43, 31, 20, 0.12);
  --shadow-strong: 0 16px 60px rgba(43, 31, 20, 0.18);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--brun);
  background: var(--sable);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grain overlay subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.08 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================
   NAVIGATION
   ============================================ */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(232, 217, 184, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 44, 44, 0.08);
  transition: padding 0.3s ease;
}

nav.main-nav.scrolled {
  padding: 1rem 3rem;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brun);
}

.nav-brand .dot {
  width: 6px;
  height: 6px;
  background: var(--lie);
  border-radius: 50%;
  display: inline-block;
}

.nav-brand-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--brun-clair);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--brun);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}

.nav-links a.active {
  color: var(--lie);
  font-weight: 500;
}

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

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

.nav-cta {
  background: var(--lie);
  color: var(--sable) !important;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--lie);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--brun);
  border-color: var(--brun);
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brun);
}

/* ============================================
   COMPOSANTS COMMUNS
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lie);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--lie);
}

.eyebrow.ocre {
  color: var(--ocre-fonce);
}

.eyebrow.ocre::before {
  background: var(--ocre);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--brun);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }

em { font-style: italic; color: var(--lie); }

p.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--brun-clair);
  line-height: 1.5;
}

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--brun);
  background: transparent;
  color: var(--brun);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lie);
  transform: translateX(-101%);
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--sable);
  border-color: var(--lie);
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--lie);
  color: var(--sable);
  border-color: var(--lie);
}

.btn-primary::before { background: var(--brun); }

.btn-primary:hover {
  border-color: var(--brun);
}

.btn-light {
  background: var(--sable);
  color: var(--lie);
  border-color: var(--sable);
}

.btn-light::before { background: var(--ocre); }

.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* SECTIONS */
section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ocre-fonce);
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--brun);
  opacity: 0.15;
  margin-left: 1.5rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 8rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero h1 .word {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.25s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.55s; }

.hero h1 .way {
  display: block;
  font-size: 0.82em;
  font-style: italic;
  color: var(--ocre-fonce);
  margin-top: -0.05em;
  font-weight: 300;
}

.hero-lead {
  margin: 2rem 0 2.5rem;
  max-width: 480px;
  font-size: 1.35rem;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.hero-meta {
  margin-top: 4rem;
  display: flex;
  gap: 3rem;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.hero-meta-item {
  border-top: 1px solid var(--brun);
  padding-top: 0.75rem;
  flex: 1;
  max-width: 200px;
}

.hero-meta-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--lie);
  display: block;
  line-height: 1;
}

.hero-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brun-clair);
  margin-top: 0.5rem;
  display: block;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

.hero-circle {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid var(--ocre);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 80s linear infinite;
}

.hero-circle::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--lie);
  border-radius: 50%;
}

.hero-circle.inner {
  width: 380px;
  height: 380px;
  border-color: var(--terre);
  opacity: 0.2;
  animation-duration: 120s;
  animation-direction: reverse;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 4px 20px rgba(43, 31, 20, 0.1));
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--brun);
  color: var(--sable);
  padding: 5rem 3rem 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--ocre);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer-brand h3 {
  font-size: 2rem;
  color: var(--sable);
  margin-bottom: 0.5rem;
}

.footer-brand h3 em {
  color: var(--ocre);
}

.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(232, 217, 184, 0.7);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.footer-brand small {
  font-size: 0.75rem;
  color: rgba(232, 217, 184, 0.5);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 217, 184, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(232, 217, 184, 0.7);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--ocre);
  border-color: var(--ocre);
  color: var(--brun);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul li {
  padding: 0.35rem 0;
}

.footer-col a {
  color: rgba(232, 217, 184, 0.75);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--ocre);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 217, 184, 0.1);
  font-size: 0.75rem;
  color: rgba(232, 217, 184, 0.5);
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom em {
  font-style: italic;
  color: var(--ocre);
}

/* ============================================
   PUBLIC TARGETING (Particulier vs Pro)
   ============================================ */
.audiences {
  background: var(--sable-clair);
}

.audiences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.audience-card {
  position: relative;
  background: var(--sable);
  padding: 3.5rem 3rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(43, 31, 20, 0.08);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--ocre);
}

.audience-card.pro {
  background: var(--brun);
  color: var(--sable);
}

.audience-card.pro:hover {
  background: var(--lie-fonce);
}

.audience-card.pro h2 {
  color: var(--sable);
}

.audience-card.pro h2 em {
  color: var(--ocre);
}

.audience-card.pro p {
  color: rgba(232, 217, 184, 0.85);
}

.audience-icon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ocre-fonce);
  margin-bottom: 1rem;
}

.audience-card.pro .audience-icon {
  color: var(--ocre);
}

.audience-card h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.audience-card p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--brun-clair);
}

.audience-features {
  margin-bottom: 2.5rem;
}

.audience-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px dashed rgba(43, 31, 20, 0.12);
}

.audience-card.pro .audience-features li {
  border-bottom-color: rgba(232, 217, 184, 0.15);
}

.audience-features li::before {
  content: '✦';
  color: var(--ocre);
  flex-shrink: 0;
  margin-top: 2px;
}

.audience-card .arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--ocre-fonce);
  transition: transform 0.3s;
}

.audience-card:hover .arrow {
  transform: translateX(8px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  nav.main-nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sable);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(107, 44, 44, 0.1);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
  }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; flex-wrap: wrap; }
  .hero-circle { display: none; }
  .hero-visual { min-height: 300px; }
  
  section { padding: 4.5rem 0; }
  .container { padding: 0 1.5rem; }
  
  .audiences-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
