/* =========================================================
   Arcus Partners - Piste 3 · Immersive
   Inspiration Apple : fond sombre, l'arche comme motif, sauge en accent
   Couleurs issues de la charte (palette definitive, v4)
   ========================================================= */

:root {
  /* Les 5 couleurs de la charte */
  --night: #333932;       /* vert foncé */
  --indigo: #4E5759;      /* gris */
  --beige: #DBD9D0;
  --grey-light: #DDE1E1;  /* gris clair */
  --sage-deep: #798270;   /* vert clair */

  /* Rôles */
  --night-2: var(--indigo);
  --sage: var(--beige);   /* accent en petit corps sur fond sombre : le vert clair n'y est pas lisible */
  --text: #FFFFFF;
  --text-muted: var(--grey-light);
  --light: var(--grey-light);
  --ink: var(--night);
  --ink-muted: var(--indigo);
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: var(--beige);

  --font: "Arimo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --section-y: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 10px 16px; background: var(--sage); color: var(--night); z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.h2 {
  margin-top: 16px; margin-bottom: clamp(40px, 5vw, 72px);
  font-size: clamp(36px, 4.8vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em;
  max-width: 16ch;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: background-color .2s, color .2s, border-color .2s;
}
/* Blanc sur vert clair = 4,0:1 : conforme AA seulement en grand corps gras (≥ 18,66 px) */
.btn-sage { background: var(--sage-deep); color: #fff; font-size: 19px; font-weight: 700; }
.btn-sage:hover { background: var(--beige); color: var(--night); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-outline { min-height: 44px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: var(--text); color: var(--night); }
.btn-light { background: var(--text); color: var(--night); }
.btn-light:hover { background: var(--beige); }
.link { color: var(--sage); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.section--light .link { color: var(--ink); }

.placeholder { display: flex; align-items: center; justify-content: center; background: var(--beige); }
.placeholder span { font-size: 12px; letter-spacing: .08em; color: var(--indigo); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: border-color .3s; border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(51, 57, 50, .85); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled { border-color: var(--line-dark); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .3em; font-size: 38px; color: var(--text); }
.logo-mark { width: .775em; height: 1em; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: .1em; line-height: .76; letter-spacing: 0; }
.logo-text b { font-size: .66em; font-weight: 700; }
.logo-text span { font-size: .56em; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: 80px;
}
.hero-arch {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1400px, 130vw); height: auto; pointer-events: none;
}
.hero-arch path {
  fill: none; stroke: var(--sage-deep); stroke-width: 1.2; opacity: .55;
  stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s ease-out .2s forwards;
}
.hero-arch path + path { stroke: var(--indigo); stroke-width: 1; opacity: .9; animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-arch path { animation: none; stroke-dashoffset: 0; } }

.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 8vh; }
.hero-title {
  font-size: clamp(44px, 8vw, 124px); line-height: .98; font-weight: 700; letter-spacing: -.045em;
}
.hero-title span { color: var(--beige); }
.hero-lead { max-width: 600px; color: var(--text-muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 44px; height: 44px; display: flex; justify-content: center;
}
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--text-muted), transparent); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 48px 32px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat-value { font-size: clamp(48px, 5.6vw, 84px); font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); color: var(--ink); }
.section--light .h2 { color: var(--ink); }
.section--light .eyebrow { color: var(--indigo); }
.section--light :focus-visible { outline-color: var(--ink); }
.section--deep { background: var(--night-2); }

/* Onglets expertises */
.tab-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  min-height: 48px; padding: 12px 24px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-muted); border: 1px solid var(--line-dark);
  font: inherit; font-size: 15px; font-weight: 600; transition: all .2s;
}
.tab:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.tab[aria-selected="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
.tab-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  background: var(--night-2); border-radius: 28px; padding: clamp(28px, 4vw, 56px); min-height: 420px;
  animation: fade .4s ease;
}
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-text { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.panel-num { font-size: 15px; color: var(--sage); font-weight: 600; }
.panel-text h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.panel-text p { color: var(--text-muted); max-width: 440px; }
.panel-media { border-radius: 20px; min-height: 280px; }

/* Modèle - colonne collante */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.model-sticky { position: sticky; top: 120px; }
.model-intro { color: var(--ink-muted); max-width: 460px; }
.model-cards { display: flex; flex-direction: column; gap: 20px; }
.mcard { background: #fff; border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.mcard-icon { width: 36px; height: 36px; color: var(--sage-deep); }
.mcard h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mcard p { color: var(--ink-muted); }
.mcard--mission { background: var(--indigo); }
.mcard--mission .eyebrow { color: var(--sage); }
.mission { color: var(--text) !important; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.values li {
  min-height: 150px; padding: 24px; border-radius: 20px; border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.values li span { font-size: 13px; font-weight: 600; color: var(--sage); }
.values li:not(.values-tagline):hover { background: var(--beige); color: var(--night); border-color: var(--beige); }
.values li:not(.values-tagline):hover span { color: var(--night); }
.values-tagline { background: var(--indigo); border-color: var(--indigo) !important; justify-content: flex-end !important; font-weight: 400 !important; font-style: italic; color: var(--sage); font-size: 20px !important; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member-photo { aspect-ratio: 4 / 5; border-radius: 24px; }
.member figcaption { padding-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.member strong { font-size: 21px; font-weight: 600; }
.member figcaption span { color: var(--text-muted); font-size: 15px; }

/* Contact - l'arche */
.contact { padding-block: var(--section-y) 0; }
.contact-arch {
  background: var(--sage-deep); color: #fff; text-align: center;
  border-radius: 50vw 50vw 0 0 / 38vw 38vw 0 0;
  padding: clamp(96px, 14vw, 200px) 24px clamp(64px, 8vw, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.contact-title { font-size: clamp(40px, 6vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.contact-arch p { max-width: 560px; color: #fff; font-size: 24px; line-height: 1.35; }
.contact-arch :focus-visible { outline-color: #fff; }

/* ---------- Page contact ---------- */
.section--contact-intro { padding-bottom: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label span { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--indigo);
  border-radius: 12px; background: #fff; color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 1px; border-color: var(--sage-deep); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 14px; color: var(--indigo); }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-title { font-size: 22px; font-weight: 600; color: var(--ink); }
.contact-info address { font-style: normal; line-height: 1.8; color: var(--ink-muted); }
.map-frame { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.placeholder-label--static { font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--night); color: var(--text-muted); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-block: 56px 32px; flex-wrap: wrap; }
address { font-style: normal; line-height: 1.8; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-block: 20px 32px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* Apparition */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Badge pistes */
.version-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--night); font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { height: 68px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle i { width: 22px; height: 1.8px; background: var(--text); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(4.4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-4.4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 68px 0 0; background: var(--night);
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter);
    font-size: 24px; font-weight: 600;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { color: var(--text); min-height: 64px; display: flex; align-items: center; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 28px; min-height: 56px; }
  .site-header.menu-open { background: var(--night); }
  body.nav-open { overflow: hidden; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 28px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }

  .tab-list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tab { white-space: nowrap; }
  .tab-panel { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .panel-media { min-height: 200px; }

  .model { grid-template-columns: 1fr; gap: 40px; }
  .model-sticky { position: static; }
  .mcard { padding: 28px; }

  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values li { min-height: 120px; padding: 18px; font-size: 18px; overflow-wrap: anywhere; }
  .values-tagline { font-size: 16px !important; }

  .team { grid-template-columns: 1fr; }
  .contact-arch { border-radius: 50vw 50vw 0 0 / 30vw 30vw 0 0; }
}
