/* ============================================================
   ELARYA — Design system v2
   Sombre, mystique, premium. Serif à fort contraste (Bodoni Moda)
   + sans neutre (Inter). Accent laiton restreint — la même
   identité que les dossiers/conventions déjà produits pour la
   holding, pour une vraie cohérence de marque.
   ============================================================ */

:root{
  --black: #08090b;
  --panel: #121419;
  --panel-2: #181b21;
  --hi: #edeff2;
  --muted: #868c99;
  --muted-2: #5f6572;
  --line: #232730;
  --line-soft: #191c22;

  --brass: #6d89b8;
  --brass-soft: #384863;
  --brass-glow: rgba(109,137,184,0.14);

  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'Roboto Mono', 'Courier New', monospace;

  --wrap: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 118px; }
body{
  margin: 0;
  background: var(--black);
  color: var(--hi);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px){
  .wrap{ padding: 0 24px; }
}

/* -------- Motion -------- */
.js-reveal-ready .reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible{
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js-reveal-ready .reveal{ opacity: 1; transform: none; transition: none; }
}

/* -------- Eyebrow / labels — tracked small caps, no monospace -------- */
.eyebrow{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,9,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-logo{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a{
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links a:hover{ color: var(--hi); }
.nav-cta{
  border: 1px solid var(--brass-soft) !important;
  padding: 11px 20px;
  color: var(--brass) !important;
  border-radius: 1px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta:hover{ background: var(--brass); border-color: var(--brass) !important; color: var(--black) !important; }

.nav-burger{
  display: none;
  width: 34px; height: 34px;
  border: none;
  background: none;
  position: relative;
}
.nav-burger span{
  position: absolute;
  left: 6px; right: 6px;
  height: 1px;
  background: var(--hi);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-burger span:nth-child(1){ top: 12px; }
.nav-burger span:nth-child(2){ top: 17px; }
.nav-burger span:nth-child(3){ top: 22px; }
.nav-burger.is-open span:nth-child(1){ top: 17px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2){ opacity: 0; }
.nav-burger.is-open span:nth-child(3){ top: 17px; transform: rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-burger{ display: block; }
}

/* -------- Stat ticker -------- */
.ticker{
  position: fixed;
  top: 84px; left: 0; right: 0;
  z-index: 99;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.ticker-inner{
  display: flex;
  gap: 36px;
  padding: 10px 40px;
  overflow-x: auto;
}
.ticker-inner span{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  padding-left: 20px;
}
.ticker-inner span:first-child{ padding-left: 0; }
.ticker-inner span::before{
  content: '';
  position: absolute;
  left: 8px; top: 3px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--brass);
}
.ticker-inner span:first-child::before{ display: none; }

/* -------- Mobile panel -------- */
.mobile-panel{
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--black);
  color: var(--hi);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  border-bottom: 1px solid var(--brass-soft);
}
.mobile-panel.is-open{ transform: translateY(0); }
.mobile-panel a{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-panel-close{
  position: absolute;
  top: 26px; right: 26px;
  width: 40px; height: 40px;
  border: 1px solid var(--brass-soft);
  border-radius: 50%;
  background: none;
  font-size: 16px;
  color: var(--hi);
}
.mobile-panel-foot{
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding: 234px 0 130px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.hero::before{
  content: '';
  position: absolute;
  top: 174px; left: 40px;
  width: 46px; height: 1px;
  background: var(--brass);
}
.hero h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 26px 0 28px;
  max-width: 720px;
}
.hero h1 em{
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.hero p{
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 44px;
  font-weight: 300;
}
.hero-ctas{
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.btn-primary{
  background: transparent;
  color: var(--hi);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid var(--hi);
  border-radius: 1px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary:hover{ background: var(--brass); border-color: var(--brass); color: var(--black); }
.btn-ghost{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover{ color: var(--brass); border-color: var(--brass-soft); }
.hero-micro{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* -------- Fact panel (hero) -------- */
.fact-panel{
  border: 1px solid var(--line);
  background: var(--panel);
  margin-top: 8px;
}
.fact-panel-head{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--brass);
  padding: 12px 20px;
}
.fact-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.fact-row span{
  color: var(--muted);
  font-weight: 300;
}
.fact-row strong{
  font-family: var(--mono);
  font-weight: 500;
  color: var(--hi);
  text-align: right;
}

/* -------- Data table (shared: recherche, approche, processus) -------- */
.data-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.data-table td, .data-table th{
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  vertical-align: top;
}
.data-table tbody tr:last-child td{ border-bottom: 1px solid var(--line-soft); }
.data-table td:first-child{
  font-family: var(--sans);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  width: 220px;
}
.data-table td:last-child{ color: var(--hi); }
.data-table th{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  border-top: none;
  border-bottom: 1px solid var(--brass-soft);
}
@media (max-width: 640px){
  .data-table td:first-child{ width: auto; }
  .data-table, .data-table tbody, .data-table tr, .data-table td{ display: block; width: 100%; }
  .data-table tr{ padding: 4px 0; }
  .data-table td{ border-top: none; padding: 4px 0; }
  .data-table tr:not(:first-child){ border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px; }
}

/* Comparison table variant */
.compare-table th:nth-child(2), .compare-table td:nth-child(2){ color: var(--muted); }
.compare-table .pos{ color: var(--brass) !important; }
.compare-table .neg{ color: var(--muted-2) !important; }
.compare-table td:first-child{ width: 160px; }

/* Process table variant */
.process-table .pnum{
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  width: 50px;
  text-transform: none;
  letter-spacing: 0;
}
.process-table .ptitle{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--hi);
  text-transform: none;
  letter-spacing: 0;
  width: 190px;
  white-space: normal;
}
.process-table td:last-child{ color: var(--muted); }

/* ============================================================
   À PROPOS
   ============================================================ */
.about{
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
}
.about-single{
  max-width: 820px;
}
.about-quote{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.44;
  margin: 20px 0 22px;
  color: var(--hi);
}
.about-byline{
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin: 0 0 50px;
}
.about-body p{
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 18px;
  font-weight: 300;
  font-size: 15.5px;
}
.about-note{
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 1px solid var(--brass-soft);
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted-2);
  max-width: 560px;
}

/* ============================================================
   NOTRE RECHERCHE — le chiffre clé mis en valeur
   ============================================================ */
.search-section{
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
}
.search-head h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 60px;
}
.search-hero{
  padding: 20px 0 56px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.search-hero-figure{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--hi);
}
.search-hero-figure span{
  color: var(--brass);
  font-style: italic;
  font-weight: 400;
  padding: 0 10px;
}
.search-hero-label{
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 300;
}
.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 40px;
}
.tag{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.tag-k{
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.tag-v{
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--hi);
}
@media (max-width: 640px){
  .tag{ width: 100%; }
}

.process-item{
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}
.process-list .process-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.process-item .num{
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--brass);
  padding-top: 2px;
}
.process-item h3{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
}
.process-item p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 300;
  max-width: 560px;
}

/* ============================================================
   NOTRE APPROCHE — manifeste
   ============================================================ */
.approach{
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
}
.approach-head h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 46px;
}
.manifesto{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 780px;
}
.manifesto::before{
  content: '';
  display: block;
  width: 46px; height: 1px;
  background: var(--brass);
  margin-bottom: 34px;
}

/* ============================================================
   PROCESSUS (styles partagés avec .clause-item, voir plus haut)
   ============================================================ */
.process{
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
}
.process h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 46px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq{
  padding: 130px 0;
  border-bottom: 1px solid var(--line-soft);
}
.faq h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 60px;
}
.faq-item{
  border-top: 1px solid var(--line-soft);
}
.faq-list .faq-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.faq-q{
  width: 100%;
  background: none;
  border: none;
  color: var(--hi);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16.5px;
  text-align: left;
  transition: color 0.25s ease;
}
.faq-q:hover{ color: var(--brass); }
.faq-q .icon{
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--brass);
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.is-open .faq-a{
  max-height: 240px;
  padding-bottom: 24px;
}
.faq-a p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 300;
  max-width: 600px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{
  padding: 130px 0;
}
.contact-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}
@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; gap: 44px; }
}
.contact h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 20px;
}
.contact-grid p{
  color: var(--muted);
  max-width: 400px;
  font-weight: 300;
  font-size: 15px;
}
.contact-confidential{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}
.contact-form{
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 44px;
}
.field{ margin-bottom: 24px; }
.field label{
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field label .opt{ text-transform: none; letter-spacing: 0; color: var(--muted-2); font-weight: 400; }
.field input,
.field textarea{
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--hi);
  padding: 14px 15px;
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 1px;
}
.field textarea{ min-height: 90px; resize: vertical; }
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--brass-soft);
}
.contact-submit{
  width: 100%;
  background: transparent;
  color: var(--hi);
  border: 1px solid var(--hi);
  padding: 17px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.contact-submit:hover{ background: var(--brass); border-color: var(--brass); color: var(--black); }
.contact-note{
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  border-top: 1px solid var(--brass-soft);
  padding: 64px 0 40px;
  background: var(--black);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
@media (max-width: 640px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}
.footer-logo{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  margin-bottom: 14px;
}
.footer-grid p{
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 300;
  max-width: 260px;
}
.footer-col h4{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.footer-col a, .footer-col span{
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}
.footer-col a:hover{ color: var(--hi); }
.footer-bottom{
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
