/* ============================================================
   LEX TRIPALIUM — gravure bleue, fond blanc, filets fins
   Aucune animation.
   ============================================================ */

:root {
  --wine: #6b1223;
  --paper: #f4eee0;
  --ink: #0d0d12;
  --line: rgba(13, 13, 18, .22);
  --soft: #4a4a55;

  --f-serif: "Roboto Slab", Georgia, serif;
  --f-ui: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; font-weight: 300; color: var(--wine); }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

/* Petit texte « interface » */
.ui { font-family: var(--f-ui); font-weight: 400; font-size: .8rem; line-height: 1.5; letter-spacing: .01em; }

/* Liens et boutons : texte souligné */
.btn, .link {
  font-family: var(--f-ui); font-weight: 500; font-size: .8rem; letter-spacing: .04em;
  color: var(--wine); background: none; border: 0; padding: .2rem 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
}
.link { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; }

/* Titres de section */
.big {
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase;
  text-wrap: balance;
}
.big em { text-transform: none; font-weight: 300; }
.big--light { color: var(--paper); }
.big--light em { color: #f2c6cd; }
.big--center { text-align: center; }
.arrow { font-family: var(--f-ui); font-size: .38em; vertical-align: .9em; margin-left: .15em; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head__note { max-width: 24rem; color: var(--soft); font-style: normal; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1.1rem var(--gutter) 1.6rem;
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 55%, rgba(244,238,224,0) 100%); color: var(--ink);
}
.nav.is-solid { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: .8rem; }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 1.8rem); }
.nav__links a, .nav__cta, .nav__burger {
  font-family: var(--f-ui); font-weight: 400; font-size: .8rem; letter-spacing: .01em; text-decoration: none;
}
.nav__join { display: none; }
.nav__cta { justify-self: end; color: var(--wine); font-weight: 500; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.nav__logo {
  font-family: var(--f-serif); font-weight: 400; font-size: .95rem; line-height: 1.05;
  letter-spacing: .06em; text-transform: uppercase; text-align: center; text-decoration: none;
}
.nav__burger { display: none; background: none; border: 0; color: inherit; padding: .3rem 0; cursor: pointer; justify-self: end; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: max(100vh, calc(30px + 56.25vw)); height: max(100svh, calc(30px + 56.25vw)); min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 5.5rem var(--gutter) 3rem;
  overflow: hidden;
}
.hero__art {
  position: absolute; z-index: 0; left: 0; bottom: 0;
  width: 100%; height: auto; max-width: none;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px); mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.hero__title {
  position: relative; z-index: 1;
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.9rem, min(4.2vw, 8.5vh), 4.2rem);
  line-height: 1.1; letter-spacing: -.015em;
  max-width: 12ch; text-wrap: balance;
}
.hero__title em { text-transform: none; }
.hero__down { position: relative; z-index: 1; margin-top: 1.75rem; font-family: var(--f-ui); font-size: 1.4rem; text-decoration: none; color: var(--ink); }

/* ---------- Manifeste ---------- */

.manifeste { background: var(--wine); color: var(--paper); padding: clamp(5rem, 10vw, 9rem) 0 0; overflow: hidden; }
.manifeste__art { position: relative; width: 100%; height: auto; margin-top: clamp(1rem, 3vw, 3rem); pointer-events: none; }
.manifeste__title {
  font-weight: 300; font-size: clamp(1.7rem, 3.7vw, 3.3rem);
  line-height: 1.2; letter-spacing: -.01em;
  max-width: 22ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); text-wrap: balance;
}
.manifeste__title em { color: #f2c6cd; }
.manifeste__cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: 1.5rem; border-top: 1px solid rgba(244,238,224,.5); }
.manifeste__text p + p { margin-top: 1rem; }
.dico { border: 1px solid rgba(244,238,224,.7); padding: 1.25rem 1.4rem; }
.dico .ui { color: #f2c6cd; margin-bottom: .6rem; }
.dico em { color: #f2c6cd; }
.dico__def { font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(244,238,224,.5); padding-top: 1.25rem; }
.stats b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; color: #f2c6cd; margin-bottom: .3rem; }

/* ---------- Listes à filets (métiers, agenda) ---------- */

.metiers, .agenda { padding: clamp(4rem, 8vw, 7rem) 0; }
.metiers__frise { width: 100%; height: auto; margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.agenda { background: #e6dbc2; overflow: hidden; }
.agenda__bg { position: absolute; left: 0; bottom: 0; width: min(100%, 1500px); height: auto; opacity: .14; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%), linear-gradient(to right, transparent 0, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 35%), linear-gradient(to right, transparent 0, #000 30%); mask-composite: intersect; }
.agenda .row, .agenda .rows { border-color: rgba(13,13,18,.3); }
.agenda .row__body p:not(.meta) { color: #3f3d36; }
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2rem; gap: 1.5rem; align-items: start;
  padding: 1.5rem 0 1.6rem; border-top: 1px solid var(--line);
}
.row__n { font-family: var(--f-serif); font-weight: 300; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.row__n--date { font-family: var(--f-ui); font-size: .8rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; padding-top: .35rem; }
.row h3 { font-weight: 400; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -.005em; }
.row__body p:not(.meta) { margin-top: .5rem; max-width: 46rem; color: var(--soft); }
.meta { display: flex; align-items: center; gap: .75rem; margin-top: .8rem; font-family: var(--f-ui); font-size: .72rem; color: var(--wine); }
.meta i { display: block; width: 2.2rem; height: 1px; background: currentColor; }
.row__arrow { font-family: var(--f-ui); font-size: 1.1rem; justify-self: end; }

/* ---------- Piliers (aplat bordeaux) ---------- */

.piliers { background: var(--wine); color: var(--paper); padding: clamp(4.5rem, 8vw, 7rem) 0; overflow: hidden; }
.piliers__layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.piliers .big em { color: #f2c6cd; }
.piliers .big { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 14ch; }
.piliers__list { border-top: 1px solid rgba(244,238,224,.55); }
.pilier { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(244,238,224,.4); }
.pilier__n { font-size: 2.4rem; line-height: 1; font-weight: 300; }
.pilier h3 { font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.1; text-transform: uppercase; margin-bottom: .5rem; }
.pilier p { max-width: 30rem; opacity: .92; }
.piliers__art { width: 100%; max-width: 520px; height: auto; justify-self: center; }

/* ---------- Équipe ---------- */

.equipe { padding: clamp(4rem, 8vw, 7rem) 0; }
.equipe .big { max-width: 16ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.equipe__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; border-top: 1px solid var(--line); padding-top: 2rem; }
.cartouche { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.cartouche img { position: relative; width: 100%; height: auto; }
.cartouche__photo {
  position: absolute; left: 30.8%; top: 21.5%; width: 38.4%; height: 46.5%; border-radius: 50%;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(107,18,35,.1) 0 7px, transparent 7px 14px);
}
.cartouche__photo .ui { background: var(--paper); padding: .15rem .5rem; color: var(--wine); }
.equipe__txt h3 { font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; text-transform: uppercase; }
.equipe__txt .role { color: var(--wine); margin: .6rem 0 1rem; }
.equipe__join { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--soft); }

/* ---------- Rejoindre : aplat bordeaux + gravure crème ---------- */

.rejoindre { background: var(--wine); color: var(--paper); padding: clamp(5rem, 9vw, 8rem) 0 0; overflow: hidden; }
.rejoindre .wrap { z-index: 2; }
.rejoindre__lead { text-align: center; max-width: 34rem; margin: 1.5rem auto 2rem; opacity: .92; }
.rejoindre__art { position: relative; z-index: 1; width: 100%; height: auto; margin-top: -12vw; pointer-events: none; }
.form { max-width: 28rem; margin: 0 auto; padding: 1rem 0 .6rem; }
.form label { display: block; margin-bottom: .4rem; opacity: .9; }
.form__row { display: flex; align-items: baseline; gap: 1.25rem; border-bottom: 1px solid rgba(244,238,224,.8); }
.form input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--f-serif); font-size: 1.05rem; font-weight: 400;
  background: transparent; color: var(--paper); border: 0; padding: .5rem 0; border-radius: 0;
}
.form input::placeholder { color: rgba(244,238,224,.65); }
.form input:focus { outline: 0; }
.form__row:focus-within { border-bottom-width: 2px; }
.form .btn { color: var(--paper); flex: none; }
.form__msg { min-height: 1.5em; margin-top: .6rem; }
.form__msg.is-error { color: #ffd0d0; }

/* ---------- Pied de page ---------- */

.footer { background: var(--wine); color: var(--paper); padding: 0 0 2rem; position: relative; z-index: 2; margin-top: -1px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 2.5rem; align-items: start; }
.footer__logo { font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.footer__nav, .footer__soc { display: flex; flex-direction: column; gap: .35rem; padding-top: .4rem; }
.footer__soc p { opacity: .7; margin-bottom: .3rem; }
.footer a { text-decoration: none; }
.footer__legal { grid-column: 1 / -1; opacity: .75; margin-top: 1.5rem; border-top: 1px solid rgba(244,238,224,.35); padding-top: 1rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .manifeste__cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .piliers__layout { grid-template-columns: 1fr; }
  .piliers__art { max-width: 380px; }
  .equipe__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__logo { grid-row: 1; grid-column: 1; text-align: left; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    display: none; grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 0;
    margin: .9rem calc(var(--gutter) * -1) -1.1rem; background: var(--paper); border-top: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .95rem var(--gutter); border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav__join { display: block; color: var(--wine); }
  .nav:has(.nav__links.is-open) { background: var(--paper); }
}

@media (max-width: 640px) {
  .hero__down { display: none; }
  .hero { justify-content: flex-start; padding-top: 7rem; }
  .hero { height: 100svh; }
  .hero__art { bottom: 0; width: 230%; max-height: 62%; object-fit: contain; object-position: left bottom; -webkit-mask-image: none; mask-image: none; }
  .row { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
  .row__arrow { display: none; }
  .row__n--date br { display: none; }
  .row__n--date { text-transform: uppercase; }
  .metiers__frise { width: 220%; max-width: none; }
  .metiers .wrap { overflow: hidden; }
  .pilier { grid-template-columns: 3rem 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
