/* =========================================================
   IDONIS — Feuille de style principale
   Direction artistique : Éditorial premium + Architecture
   ========================================================= */

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.5; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* -------- VARIABLES -------- */
:root {
  /* Couleurs */
  --black: #0A0A0A;
  --stone-900: #141412;
  --stone-800: #1E1C18;
  --stone-700: #2A2824;
  --stone-200: #E8DFC7;
  --stone-100: #F5F1E8;
  --ivory: #F5F1E8;
  --gold: #C8903F;
  --gold-light: #E0B070;
  --gold-dark: #9A6D2F;

  /* Typographie */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Transitions */
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Containers */
  --max-width: 1440px;
  --side-padding: clamp(1.5rem, 5vw, 5rem);
}

/* -------- TYPO BASE -------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ivory);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-style: normal;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* -------- LAYOUT GLOBAL -------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.section {
  min-height: 100vh;
  padding: var(--space-2xl) 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* -------- HEADER / NAV -------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding: 1.25rem var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  padding: 0.75rem var(--side-padding);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 144, 63, 0.12);
}

.logo-idonis {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.3s;
}
.logo-idonis img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.3s var(--ease);
}
.logo-idonis:hover { opacity: 0.85; }

.site-header.scrolled .logo-idonis img { height: 48px; }

.site-footer .logo-idonis img { height: 64px; }

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

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

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

/* Burger mobile */
.burger {
  display: none;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(200, 144, 63, 0.3);
  border-radius: 4px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.burger span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; }
.burger.open { background: var(--stone-800); }
.burger.open span { background: var(--ivory); }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* -------- PROGRESS BAR -------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 200;
  transition: width 0.1s linear;
}

/* -------- NAVIGATION DOTS (latérale droite) -------- */
.section-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-dots a {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(245, 241, 232, 0.3);
  position: relative;
  transition: all 0.4s var(--ease);
}
.section-dots a:hover,
.section-dots a.active {
  width: 48px;
  background: var(--gold);
}
.section-dots a .label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ivory);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.section-dots a:hover .label,
.section-dots a.active .label { opacity: 0.9; }

/* =========================================================
   SECTION 1 — HERO (vidéo pyramide)
   ========================================================= */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.75) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.3) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}
.hero__eyebrow::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.hero__eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--ivory);
  margin-bottom: 2rem;
  max-width: 18ch;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out) 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 52ch;
  color: rgba(245, 241, 232, 0.85);
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out) 0.8s forwards;
}

.hero__ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out) 1s forwards;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn__arrow {
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease);
}
.btn__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 28px; }

.btn--primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(245, 241, 232, 0.3);
}
.btn--ghost:hover {
  border-color: var(--ivory);
  background: rgba(245, 241, 232, 0.05);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.hero__scroll .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =========================================================
   SECTION — MANIFESTE
   ========================================================= */
.manifesto {
  background: var(--stone-900);
  color: var(--ivory);
  padding: var(--space-2xl) 0;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.section-number::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.manifesto__headline {
  position: sticky;
  top: 10vh;
}
.manifesto__headline .section-number {
  margin-bottom: 2rem;
}

.manifesto h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0;
}
.manifesto h2 em {
  color: var(--gold);
  font-style: italic;
}

.manifesto__body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.85);
}
.manifesto__body p + p { margin-top: 1.5rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
}

.pillar {
  padding: 2rem 0;
  border-top: 1px solid rgba(200, 144, 63, 0.3);
  position: relative;
}
.pillar__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--ivory);
}
.pillar p {
  font-size: 0.95rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
}

/* =========================================================
   SECTION — EXPERTISES
   ========================================================= */
.expertise {
  background: var(--black);
  color: var(--ivory);
  padding: var(--space-2xl) 0;
}

.expertise__header {
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
}
.expertise__header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}
.expertise__header p {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
  max-width: 40ch;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(200, 144, 63, 0.2);
  border: 1px solid rgba(200, 144, 63, 0.2);
}

.expertise-card {
  background: var(--black);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 144, 63, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.expertise-card:hover {
  background: var(--stone-900);
}
.expertise-card:hover::before { opacity: 1; }

.expertise-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.4s;
}
.expertise-card:hover .expertise-card__number {
  opacity: 1;
  transform: translateX(8px);
}

.expertise-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.expertise-card p {
  font-size: 0.95rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.7;
  max-width: 50ch;
}

.expertise-card__link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================
   SECTION — MÉTHODE
   ========================================================= */
.method {
  background: var(--stone-900);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.method__header {
  text-align: left;
  margin-bottom: var(--space-lg);
}
.method__header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 1.5rem 0;
}
.method__header h2 em { color: var(--gold); font-style: italic; }
.method__header p {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.7);
  max-width: 60ch;
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.method__steps::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}

.method-step {
  position: relative;
  padding-top: 5rem;
}
.method-step__marker {
  position: absolute;
  top: 3rem;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  background: var(--stone-900);
  transform: rotate(45deg);
}
.method-step__marker::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}
.method-step.active .method-step__marker::after { opacity: 1; }

.method-step__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.method-step h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.method-step p {
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
}

/* =========================================================
   SECTION — CHIFFRES / TERRAIN
   ========================================================= */
.ground {
  background: var(--black);
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(200, 144, 63, 0.15);
  border-bottom: 1px solid rgba(200, 144, 63, 0.15);
}

.ground__header {
  max-width: 65ch;
  margin-bottom: var(--space-lg);
}
.ground__header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 1.5rem 0 2rem;
}
.ground__header h2 em { color: var(--gold); font-style: italic; }
.ground__header p {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(200, 144, 63, 0.2);
}
.stats--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 900px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
}

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}
.sector-tag {
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(200, 144, 63, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: all 0.3s;
}
.sector-tag:hover {
  border-color: var(--gold);
  background: rgba(200, 144, 63, 0.1);
  color: var(--gold);
}

/* =========================================================
   SECTION — CONTACT
   ========================================================= */
.contact {
  background: var(--stone-900);
  padding: var(--space-2xl) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact__center .section-number {
  display: inline-flex;
  justify-content: center;
}
.contact__center h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 1.5rem 0;
}
.contact__center h2 em { color: var(--gold); font-style: italic; }
.contact__lead {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto var(--space-md);
}
.contact__info--center {
  margin: var(--space-md) auto;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(200, 144, 63, 0.2);
  border-bottom: 1px solid rgba(200, 144, 63, 0.2);
  max-width: 520px;
}
.contact__info--center dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 2rem;
  text-align: left;
}
.contact__cta {
  margin-top: var(--space-md);
}

.contact__header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 1.5rem 0;
}
.contact__header h2 em { color: var(--gold); font-style: italic; }
.contact__header p {
  font-size: 1.1rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.6;
  max-width: 45ch;
  margin-bottom: var(--space-md);
}

.contact__info {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(200, 144, 63, 0.2);
}
.contact__info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 2rem;
}
.contact__info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
}
.contact__info dd {
  font-size: 1rem;
  color: var(--ivory);
}
.contact__info a:hover { color: var(--gold); }

/* Form */
.form {
  background: var(--stone-800);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(200, 144, 63, 0.2);
}
.form__group {
  margin-bottom: 1.75rem;
  position: relative;
}
.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  color: var(--ivory);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
  outline: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-bottom-color: var(--gold);
}
.form__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8903F' stroke-width='1'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px;
  padding-right: 2rem;
}
.form__select option { background: var(--stone-800); color: var(--ivory); }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.5;
}
.form__check input {
  margin-top: 0.25rem;
  accent-color: var(--gold);
}
.form__check a { color: var(--gold); text-decoration: underline; }

.form__submit {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   GROUP ENCART
   ========================================================= */
.group-box {
  margin-top: var(--space-lg);
  padding: 2rem 2.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(200, 144, 63, 0.04);
}
.group-box__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.group-box p {
  font-size: 0.95rem;
  color: rgba(245, 241, 232, 0.8);
  line-height: 1.7;
}
.group-box strong { color: var(--ivory); font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(200, 144, 63, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.footer__grid--slim {
  grid-template-columns: 2fr 1fr 1fr;
}

.footer__brand .logo-idonis { margin-bottom: 1rem; display: inline-block; }
.footer__brand p {
  color: rgba(245, 241, 232, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer__col ul li {
  margin-bottom: 0.6rem;
}
.footer__col a {
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.45);
}
.footer__bottom a { color: rgba(245, 241, 232, 0.7); }
.footer__bottom a:hover { color: var(--gold); }

/* =========================================================
   PAGES INTÉRIEURES (expertises.html / contact.html / legal)
   ========================================================= */
.page-hero {
  padding: 12rem 0 6rem;
  background: var(--stone-900);
  border-bottom: 1px solid rgba(200, 144, 63, 0.15);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin: 1.5rem 0;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p {
  font-size: 1.15rem;
  color: rgba(245, 241, 232, 0.7);
  max-width: 65ch;
  line-height: 1.6;
}

/* Contenu éditorial (pages légales) */
.editorial {
  padding: var(--space-lg) 0 var(--space-2xl);
}
.editorial .container { max-width: 780px; }
.editorial h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 400;
}
.editorial h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ivory);
}
.editorial p {
  color: rgba(245, 241, 232, 0.8);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.editorial ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}
.editorial ul li {
  list-style: disc;
  color: rgba(245, 241, 232, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.editorial strong { color: var(--ivory); font-weight: 600; }
.editorial a { color: var(--gold); text-decoration: underline; }

/* Expertise détaillée */
.expertise-detail {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(200, 144, 63, 0.15);
}
.expertise-detail:nth-child(even) { background: var(--stone-900); }
.expertise-detail__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}
.expertise-detail__meta {
  position: sticky;
  top: 8rem;
}
.expertise-detail__roman {
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.expertise-detail__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.expertise-detail h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}
.expertise-detail__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(245, 241, 232, 0.85);
}
.expertise-detail__body p + p { margin-top: 1rem; }
.expertise-detail__body h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.expertise-detail__body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.expertise-detail__body ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: rgba(245, 241, 232, 0.8);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }

/* Counter animation */
.counter {
  display: inline-block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .manifesto__grid,
  .expertise__header,
  .contact__grid,
  .expertise-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .manifesto__headline { position: static; }
  .pillars,
  .method__steps,
  .stats { grid-template-columns: repeat(2, 1fr); }
  .expertise__grid { grid-template-columns: 1fr; }
  .method__steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid--slim { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 6rem; --space-xl: 4rem; }

  /* Header mobile : toujours opaque pour garantir l'accès au menu */
  .site-header {
    background: var(--black);
    border-bottom: 1px solid rgba(200, 144, 63, 0.12);
    padding: 0.75rem 1.25rem;
  }
  .site-header.scrolled {
    padding: 0.75rem 1.25rem;
  }
  .logo-idonis img { height: 44px; }
  .site-header.scrolled .logo-idonis img { height: 40px; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100dvh; /* hauteur réelle mobile, exclut la barre navigateur */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--black);
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 99; /* inférieur au header pour que logo + burger restent visibles */
    padding: 5rem 2rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    font-size: 1.75rem;
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--ivory);
    letter-spacing: -0.01em;
  }
  .site-nav a::after { display: none; } /* retirer le soulignement animé sur mobile */
  .burger { display: block; }
  /* Header reste au-dessus de l'overlay pour que le logo et le X soient visibles */
  .site-header { z-index: 110; }

  .section-dots { display: none; }

  .pillars,
  .method__steps,
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer__grid,
  .footer__grid--slim { grid-template-columns: 1fr; }

  .hero { padding-bottom: 4rem; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .form { padding: 2rem 1.5rem; }
}

/* Accessibility — reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
