/* ================================================
   Demotek — Landing page
   Association vaudoise à but non lucratif
   Palette: noir · blanc · bleu pétrole
   ================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  /* Couleurs — palette stricte */
  --petrole: #1B5A6B;
  --petrole-deep: #134450;
  --petrole-soft: #2F7388;
  --black: #000000;
  --white: #FFFFFF;

  /* Greys dérivés du noir (tonalités, pas couleurs) */
  --ink: #0A0A0A;
  --ink-soft: #4A4A4A;
  --ink-mute: #7A7A7A;
  --line: #E5E5E5;
  --line-strong: #CFCFCF;

  /* Typographie */
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Mise en page */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Animation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
}

::selection { background: var(--petrole); color: var(--white); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}
.brand__mark {
  color: var(--petrole);
  display: inline-flex;
  align-items: center;
}
.brand__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrole);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--petrole);
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__title em {
  font-style: italic;
  font-weight: 800;
  color: var(--petrole);
}
.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  animation: rise 0.9s 0.1s var(--ease) both;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: rise 0.9s 0.2s var(--ease) both;
}
.hero__meta-sep { color: var(--line-strong); }
.hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

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

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 880px) {
  .section__grid {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: clamp(2rem, 6vw, 5rem);
  }
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.section__num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--petrole);
  font-feature-settings: "tnum" 1;
}
.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.section__body {
  max-width: 62ch;
}
.section__body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.section__body p + p {
  margin-top: 1.1rem;
}
.section__body .lede {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.section__body em {
  font-style: italic;
  color: var(--petrole-deep);
  font-weight: 500;
}

/* ---------- Sections sur fond gris clair ---------- */
.section--grey {
  background: #F3F4F5;
}

/* ---------- Personnes ---------- */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 720px) {
  .people {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.person:hover {
  transform: translateY(-3px);
  border-color: var(--petrole);
}
.person__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.person__role {
  font-size: 0.85rem;
  color: var(--petrole);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.person__bio {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.person__bio li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  position: relative;
  padding-left: 1rem;
}
.person__bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 1px;
  background: var(--petrole);
}

/* ---------- Héritage ---------- */
.heritage {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.heritage__item {
  padding: 1.5rem 1.75rem;
  background: var(--petrole);
  color: var(--white);
  transition: background 0.3s var(--ease);
}
.heritage__item:hover {
  background: var(--petrole-deep);
}
.heritage__term {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.heritage__term a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.heritage__term a:hover {
  border-color: var(--white);
}
.heritage__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer__brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.footer__tag {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 30ch;
}
.footer__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--petrole-soft);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.footer__col a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__col a:hover {
  border-color: var(--petrole-soft);
  color: var(--petrole-soft);
}
.footer__col p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.footer__bottom {
  padding-top: 1.5rem;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
