@charset "utf-8";

/* =============================================================
   NausicaMedia — feuille de style de la page d'accueil
   Registres alternés inspirés des amphores attiques :
   vernis noir / bleu craie, accent terre cuite.
   ============================================================= */

:root {
  --slip: #0a2233;        /* bleu de marque assombri : le fond */
  --slip-deep: #071a27;   /* encore plus profond : rail et pied de page */
  --slip-card: #102d42;   /* cartes posées sur le fond */
  --slip-card-2: #16394f; /* la même au survol */
  --linen: #f4f1ec;
  --aegean: #c5d9e8;
  --aegean-card: #d9e7f1;
  --terracotta: #ee6a25;
  --terracotta-lit: #ffa059;
  --terracotta-deep: #a8460b;
  --ochre: #f2b21a;
  --straw: #f2e7cb;        /* paille : le jaune de marque désaturé, en fond */
  --straw-card: #f9f2e0;   /* cartes posées sur le paille */
  --straw-line: rgba(168, 134, 44, 0.28);
  --on-straw: #3a3121;
  --on-straw-mute: #5d5340;
  --blue: #1e6e9c;
  --blue-lit: #79b2d4;
  --ink-dark: #25100a;
  --on-slip: #d5e3ec;
  --on-slip-mute: #a3adb2;
  --on-aegean: #1f3340;
  --on-aegean-mute: #3d5464;

  --display: "Spectral", "Iowan Old Style", "Palatino", Georgia, serif;
  --ui: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --rail: 40px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --measure: 1180px;
  --register-y: clamp(6rem, 11vw, 9rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slip);
  color: var(--linen);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--terracotta); color: #1c0c04; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.4rem;
  background: var(--terracotta);
  color: #1c0c04;
  font-family: var(--ui);
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Signature : le rail à méandre ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--rail);
  background: var(--slip-deep);
  border-right: 1px solid rgba(244, 241, 236, 0.1);
  pointer-events: none;
}
.rail__band,
.rail__fill {
  position: absolute;
  inset: 0;
  background-repeat: repeat-y;
  background-position: center top;
}
.rail__band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Cpath d='M12 0 V12 H30 V36 H12 V48' fill='none' stroke='%231f4a63' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}
.rail__clip {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  overflow: hidden;
}
.rail__fill {
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Cpath d='M12 0 V12 H30 V36 H12 V48' fill='none' stroke='%23ee6a25' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}
.rail__glow {
  position: absolute;
  inset-inline: 0;
  height: 64px;
  top: 0;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(238, 106, 37, 0.2), transparent);
}
@media (max-width: 1023px) { .rail { display: none; } }

/* ---------- Barre de navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 34, 51, 0.92);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(244, 241, 236, 0.09);
}
@media (min-width: 1024px) { .nav { left: var(--rail); } }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.95rem var(--gutter);
}
.wordmark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--terracotta-lit); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__links a {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #b9c2c6;
  text-decoration: none;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--linen); }
.nav__toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--linen);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__drawer { display: none; }
@media (max-width: 879px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__drawer[data-open="true"] {
    display: grid;
    background: var(--slip);
    padding: 0.4rem var(--gutter) 1.6rem;
    border-top: 1px solid rgba(244, 241, 236, 0.09);
  }
  .nav__drawer a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(244, 241, 236, 0.07);
    font-size: 19px;
    text-decoration: none;
  }
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn--sm { padding: 0.65rem 1.25rem; font-size: 14px; }
.btn--hot { background: var(--terracotta); color: #1c0c04; }
.btn--hot:hover { background: #ff8544; }
.btn--ink { background: var(--slip); color: var(--linen); }
.btn--ink:hover { background: var(--terracotta-deep); }
.btn--ghost { border-color: rgba(244, 241, 236, 0.22); color: var(--linen); }
.btn--ghost:hover { border-color: var(--linen); background: rgba(244, 241, 236, 0.07); }
.btn--ghost-dark { border-color: rgba(10, 34, 51, 0.28); color: var(--slip); }
.btn--ghost-dark:hover { border-color: var(--slip); background: rgba(10, 34, 51, 0.06); }

/* ---------- Registres ---------- */

.register {
  position: relative;
  padding: var(--register-y) var(--gutter);
}
@media (min-width: 1024px) {
  .register { padding-left: calc(var(--rail) + var(--gutter)); }
}
.register > .wrap { max-width: var(--measure); margin: 0 auto; }
.r--slip { background: var(--slip); color: var(--linen); }
.r--deep { background: var(--slip-deep); color: var(--linen); }
.r--aegean { background: var(--aegean); color: var(--slip); }
.r--straw { background: var(--straw); color: var(--on-straw); }
.r--hot { background: var(--terracotta); color: var(--ink-dark); }

.mark {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.mark i { font-style: normal; }
.mark .rule {
  flex: 0 0 auto;
  width: 2rem;
  height: 1px;
  transform: translateY(-0.3em);
}
.r--slip .mark i, .r--deep .mark i { color: var(--ochre); }
.r--slip .mark span, .r--deep .mark span { color: var(--on-slip-mute); }
.r--slip .mark .rule, .r--deep .mark .rule { background: rgba(244, 241, 236, 0.2); }
.r--aegean .mark i { color: var(--terracotta-deep); }
.r--aegean .mark span { color: #33454f; }
.r--aegean .mark .rule { background: rgba(10, 34, 51, 0.15); }
.r--straw .mark i { color: #9a6c06; }
.r--straw .mark span { color: var(--on-straw-mute); }
.r--straw .mark .rule { background: var(--straw-line); }
.r--hot .mark i { color: var(--ink-dark); }
.r--hot .mark span { color: rgba(37, 16, 10, 0.72); }
.r--hot .mark .rule { background: rgba(37, 16, 10, 0.25); }

.h2 { margin-top: 2.5rem; font-size: clamp(2.05rem, 4.6vw, 3.9rem); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.64; }
.body { font-size: 1.125rem; line-height: 1.68; }
.thin { font-weight: 300; font-style: italic; }
.flow > * + * { margin-top: 1.6rem; }
.measure { max-width: 34rem; }
.duo {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 3.5rem;
}
@media (min-width: 880px) {
  .duo { grid-template-columns: 1.05fr 1fr; }
  .duo--tight { grid-template-columns: 1.15fr 1fr; }
  .duo--end { align-items: end; }
}

/* ---------- Registre 0 : le titre ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 14vw, 11rem) var(--gutter) var(--register-y);
  background: var(--slip);
}
@media (min-width: 1024px) {
  .hero { padding-left: calc(var(--rail) + var(--gutter)); }
}
.hero__wrap { position: relative; max-width: var(--measure); margin: 0 auto; }
.hero__kicker {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c1cbcf;
}
.hero h1 {
  margin-top: 2.5rem;
  font-size: clamp(2.4rem, 8.6vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero h1 .alt {
  padding-left: 0.06em;
  font-weight: 300;
  font-style: italic;
  color: var(--aegean);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(244, 241, 236, 0.12);
}
@media (min-width: 880px) { .hero__grid { grid-template-columns: 1.15fr 1fr; } }
.hero__grid p { color: var(--on-slip); }
.hero__grid strong { font-weight: 400; color: var(--linen); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }

/* La houle : cinq sinusoïdes qui défilent en boucle */
.swell {
  position: absolute;
  inset: auto 0 -6% 0;
  height: 54%;
  overflow: hidden;
  pointer-events: none;
}
.swell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 18% 100%, #124260 0%, transparent 62%);
}
.swell::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  background: linear-gradient(to bottom, var(--slip), rgba(10, 34, 51, 0.9) 45%, transparent);
}
.swell svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Registre II : les métiers ---------- */

.grid-hair {
  display: grid;
  gap: 1px;
  margin-top: 4rem;
  background: rgba(244, 241, 236, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 640px) { .grid-hair { grid-template-columns: 1fr 1fr; } }
.craft {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(2rem, 3.2vw, 3rem);
  background: var(--slip-card);
  text-decoration: none;
  transition: background-color 0.5s;
}
.craft:hover { background: var(--slip-card-2); }
.craft__kicker {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta-lit);
}
.craft h3 {
  margin-top: 1.2rem;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}
.craft p { margin-top: 1.5rem; max-width: 28rem; color: #b3c8d6; font-size: 1.125rem; line-height: 1.62; }
.craft ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: var(--ui);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #9aa1a5;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aegean);
  transition: color 0.4s;
}
.more::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  transition: width 0.5s;
}
.craft:hover .more, a:hover > .more { color: var(--terracotta-lit); }
.craft:hover .more::after, a:hover > .more::after { width: 3.5rem; }

/* ---------- Citations ---------- */

.quote-card {
  height: 100%;
  padding: clamp(2.25rem, 3.4vw, 3rem);
  border-radius: 4px;
  background: var(--slip);
  color: var(--linen);
}
.quote-card span {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
}
.quote-card blockquote {
  margin: 1.75rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.28;
}
.quote-card figcaption {
  margin-top: 2rem;
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--on-slip-mute);
}
.pull {
  max-width: 48rem;
  margin: 6rem auto 0;
  font-size: clamp(1.45rem, 2.9vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  color: #1b2830;
}

/* ---------- Registre III : le cadre (démonstration) ---------- */

.frame {
  margin-top: 5rem;
  border-radius: 4px;
  background: var(--aegean-card);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem clamp(1.5rem, 2.6vw, 2.5rem);
  border-bottom: 1px solid rgba(10, 34, 51, 0.12);
}
.frame__bar p { max-width: 32rem; font-size: 1.125rem; color: var(--on-aegean); }
.switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(10, 34, 51, 0.08);
}
.switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  background: none;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4e626f;
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s;
}
.switch button:hover { color: var(--slip); }
.switch button[aria-pressed="true"] { background: var(--slip); color: var(--linen); }
.frame__body {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding: clamp(1.75rem, 2.8vw, 2.5rem);
}
@media (min-width: 880px) { .frame__body { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.frame__body h3 { font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.frame__body > div > p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.62; color: #3a4a54; }
.frame__list { display: grid; gap: 0.75rem; margin-top: 2rem; font-family: var(--ui); font-size: 16px; color: var(--on-aegean); }
.frame__list li { display: flex; gap: 1rem; }
.frame__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--slip);
}
[data-mode="sans"] .frame__list li::before { background: var(--terracotta-deep); }
.frame__text, .frame__aside-lead { transition: opacity 0.3s; }

/* Le croquis : deux états superposés, on fait varier l'opacité */
.sketch { margin: 0; }
.sketch__stage {
  display: grid;
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  background: var(--slip);
  border-bottom: 1px solid rgba(10, 34, 51, 0.12);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.sketch__svg {
  grid-area: 1 / 1;          /* les deux états occupent la même case */
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
  transition: opacity 0.5s ease;
}
[data-mode="sans"] .sketch__svg[data-for="avec"],
[data-mode="avec"] .sketch__svg[data-for="sans"] { opacity: 0; pointer-events: none; }
[data-mode="sans"] .sketch__svg[data-for="sans"],
[data-mode="avec"] .sketch__svg[data-for="avec"] { opacity: 1; }

.sketch__hint { display: none; }
@media (max-width: 960px) {
  .sketch__stage { position: relative; }
  .sketch__stage::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 3rem;
    background: linear-gradient(to right, transparent, var(--slip));
    pointer-events: none;
  }
  .sketch__hint {
    display: block;
    padding: 0.9rem clamp(1.5rem, 2.6vw, 2.5rem);
    background: var(--slip);
    border-top: 1px solid rgba(244, 241, 236, 0.09);
    font-family: var(--ui);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8aa2b4;
  }
  .sketch__hint::after { content: " \2192"; }
}

.sketch__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 1.1rem clamp(1.5rem, 2.6vw, 2.5rem);
  background: var(--aegean-card);
  border-bottom: 1px solid rgba(10, 34, 51, 0.12);
  font-family: var(--ui);
  font-size: 14px;
  color: var(--on-aegean-mute);
}
.sketch__legend span { display: inline-flex; align-items: center; gap: 0.6rem; }
.k { width: 12px; height: 12px; border-radius: 2px; }
.k--blue { background: var(--blue); }
.k--orange { background: var(--terracotta); }
.k--yellow { background: var(--ochre); }

.frame__aside {
  padding-left: clamp(0rem, 2vw, 2rem);
  border-left: 1px solid rgba(10, 34, 51, 0.15);
}
@media (max-width: 879px) {
  .frame__aside { padding-left: 0; border-left: 0; border-top: 1px solid rgba(10, 34, 51, 0.15); padding-top: 1.75rem; }
}
.frame__aside-lead {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.34;
  color: var(--on-aegean);
}

.pieces {
  display: grid;
  gap: 3rem 4rem;
  margin-top: 6rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(10, 34, 51, 0.15);
}
@media (min-width: 640px) { .pieces { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pieces { grid-template-columns: repeat(3, 1fr); } }
.pieces h3 { font-size: 23px; font-weight: 600; }
.pieces p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--on-aegean-mute); }

/* ---------- Registre IV : capacités ---------- */

.kicker-hot {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta-lit);
}
.caps {
  margin-top: 5rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid rgba(244, 241, 236, 0.12);
  border-radius: 4px;
}
.caps > p:first-child {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--aegean);
}
.caps > p + p { margin-top: 1.25rem; font-size: 1.125rem; color: #a6bcc9; }
.caps ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 241, 236, 0.09);
  font-family: var(--ui);
  font-size: 16px;
  color: var(--on-slip-mute);
}
.caps li { display: flex; align-items: center; gap: 0.75rem; }
.caps li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ochre);
}

/* ---------- Registre IV : les deux piliers ---------- */

.pillar > * + * { margin-top: 1.5rem; }
.pillar__name {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.pillar__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 241, 236, 0.12);
  font-family: var(--ui);
  font-size: 16px;
  color: var(--on-slip-mute);
}
.pillar__list li { display: flex; gap: 1rem; }
.pillar__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: var(--ochre);
}

/* ---------- Registre VII : le blogue (WordPress) ---------- */

.blog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(10, 34, 51, 0.15);
}
.blog__bar .switch { flex-wrap: wrap; }
.blog__all { text-decoration: none; }
.blog__all .more { margin-top: 0; color: var(--terracotta-deep); }

.posts {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: #22394a;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s;
}
@media (min-width: 720px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.posts[data-loading="true"] { opacity: 0.45; }

.post {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
  background: var(--slip-card);
  color: var(--linen);
  text-decoration: none;
  transition: background-color 0.45s;
}
.post:hover { background: var(--slip-card-2); }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa1a5;
}
.post__cat { color: var(--ochre); }
.post__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.post h3 {
  margin-top: 1.1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.post p {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #b3c8d6;
}
.post .more { margin-top: auto; padding-top: 1.75rem; font-size: 13px; }
.post--skel span {
  display: block;
  height: 14px;
  border-radius: 3px;
  background: rgba(244, 241, 236, 0.09);
  animation: pulse 1.6s ease-in-out infinite;
}
.post--skel span:nth-child(1) { width: 35%; }
.post--skel span:nth-child(2) { width: 90%; height: 26px; margin-top: 1.25rem; animation-delay: 0.15s; }
.post--skel span:nth-child(3) { width: 70%; margin-top: 1rem; animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.posts__msg {
  grid-column: 1 / -1;
  padding: 2.5rem clamp(1.6rem, 2.4vw, 2.25rem);
  background: var(--slip-card);
  color: #b3c8d6;
  font-size: 1.125rem;
}
.posts__msg a { color: var(--aegean); }

/* ---------- Registre V : les étapes de l'intégration ---------- */

/* Les numéros sont ici légitimes : les étapes se suivent dans cet ordre. */
.steps { counter-reset: none; }
.steps > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(10, 34, 51, 0.18);
}
.steps > li:last-child { border-bottom: 1px solid rgba(10, 34, 51, 0.18); }
.steps__n {
  grid-row: 1 / span 2;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--terracotta-deep);
  padding-top: 0.35rem;
}
.steps h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.steps p { font-size: 1.0625rem; line-height: 1.58; color: var(--on-aegean-mute); }
@media (max-width: 480px) {
  .steps > li { grid-template-columns: 2.25rem 1fr; gap: 0.35rem 1rem; }
}

/* ---------- Registre V : cartes en pile ---------- */

.stack {
  display: grid;
  gap: 1px;
  border-radius: 4px;
  background: rgba(10, 34, 51, 0.12);
  overflow: hidden;
}
.stack > li { padding: 1.75rem 2rem; background: var(--aegean-card); }
.stack span {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.stack p { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.55; color: #1b2830; }

/* ---------- Registre VI : le mur de clients ---------- */

.clients {
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem;
  border-top: 1px solid rgba(37, 16, 10, 0.24);
}
@media (min-width: 620px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(3, 1fr); } }
.clients li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(37, 16, 10, 0.24);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.clients__more {
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: rgba(37, 16, 10, 0.62);
}

/* ---------- Registre VII : chronologie ---------- *//* ---------- Registre VII : chronologie ---------- */

.timeline {
  display: grid;
  gap: 1px;
  border-radius: 4px;
  background: rgba(244, 241, 236, 0.12);
  overflow: hidden;
}
.timeline li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 2rem;
  background: var(--slip-card);
}
@media (min-width: 640px) {
  .timeline li { flex-direction: row; align-items: baseline; gap: 2rem; }
  .timeline dt { flex: 0 0 8rem; }
}
.timeline dt {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
}
.timeline dd { font-size: 1.125rem; line-height: 1.55; color: var(--on-slip); }
.jobs {
  margin-top: 2.5rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--terracotta);
}
.jobs blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
}
.jobs figcaption {
  margin-top: 1rem;
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-slip-mute);
}
.inline-link {
  color: var(--linen);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.3s;
}
.inline-link:hover { color: var(--terracotta-lit); }

/* ---------- Registre VIII : contact ---------- */

.contact h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); letter-spacing: -0.035em; line-height: 1; }
form { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 560px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3a4a54;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(10, 34, 51, 0.22);
  border-radius: 3px;
  background: rgba(244, 241, 236, 0.55);
  font-family: var(--display);
  font-size: 17px;
  color: var(--slip);
  transition: border-color 0.3s, background-color 0.3s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--slip); background: var(--linen); outline: none; }
.form__note { font-family: var(--ui); font-size: 14px; color: #4e626f; }
.card-ink {
  padding: clamp(2.25rem, 3.4vw, 3rem);
  border-radius: 4px;
  background: var(--slip);
  color: var(--linen);
}
.card-ink > span {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
}
.card-ink address {
  margin-top: 1.5rem;
  font-size: 27px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card-ink dl {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 241, 236, 0.12);
  font-size: 1.125rem;
  color: var(--on-slip-mute);
}
.card-ink dt { color: var(--linen); }
.card-ink a { color: var(--aegean); text-decoration: none; border-bottom: 1px solid rgba(194, 211, 221, 0.35); }
.card-ink a:hover { color: var(--terracotta-lit); }

/* ---------- Registre IX : le film ---------- */

.film__head {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (min-width: 880px) {
  .film__head { grid-template-columns: 1fr auto; align-items: end; gap: 4rem; }
  .film__meta { text-align: right; }
}
.film__head h2 { max-width: 36rem; font-size: clamp(2rem, 4.2vw, 3.5rem); }
.film__head > div > p { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.64; color: #c6d8e4; }
.film__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 3rem; font-family: var(--ui); }
.film__meta dt { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: #a5bac7; }
.film__meta dd { margin-top: 0.5rem; font-family: var(--display); font-size: 1.25rem; color: var(--linen); }

.film {
  display: block;
  margin-top: 3.5rem;
  border: 1px solid rgba(244, 241, 236, 0.12);
  border-radius: 4px;
  background: var(--slip);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.4s;
}
.film:hover { border-color: rgba(238, 106, 37, 0.5); }
.film__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slip);
  overflow: hidden;
}
.film__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease-out;
}
.film:hover .film__stage img { transform: scale(1.03); }
.film__stage video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.film__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, transparent 0%, rgba(7, 26, 39, 0.72) 100%);
}
.film__flicker {
  position: absolute;
  inset: 0;
  background: var(--linen);
  opacity: 0.02;
  animation: flicker 5.5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.02; }
  30% { opacity: 0.05; }
  60% { opacity: 0.015; }
}
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.play i {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--terracotta);
  transition: transform 0.5s;
}
.film:hover .play i { transform: scale(1.1); }
.play i::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  animation: halo 2.6s ease-out infinite;
}
@keyframes halo {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.7); opacity: 0; }
}
.play svg { width: 32px; height: 32px; margin-left: 4px; fill: var(--ink-dark); }
.film__fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 2rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c6d8e4;
}
.film__fallback a { color: var(--aegean); }

.film__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem clamp(1.5rem, 2.4vw, 2.25rem);
  border-top: 1px solid rgba(244, 241, 236, 0.12);
}
.film__foot p { font-size: 1.125rem; color: #c6d8e4; }
@media (max-width: 520px) { .play i { width: 72px; height: 72px; } .play svg { width: 26px; height: 26px; } }

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

footer {
  padding: 3.5rem var(--gutter);
  background: var(--slip-deep);
  color: #b8cbd8;
}
@media (min-width: 1024px) { footer { padding-left: calc(var(--rail) + var(--gutter)); } }
footer .wrap { max-width: var(--measure); margin: 0 auto; }
.foot__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 241, 236, 0.09);
}
@media (min-width: 880px) { .foot__top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.foot__top .wordmark { font-size: 30px; }
.foot__top p { margin-top: 0.75rem; max-width: 30rem; font-size: 1.125rem; line-height: 1.55; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-family: var(--ui); font-size: 16px; }
.foot__nav a { text-decoration: none; transition: color 0.3s; }
.foot__nav a:hover { color: var(--linen); }
.foot__legal { margin-top: 2rem; font-family: var(--ui); font-size: 14px; letter-spacing: 0.05em; }

/* ---------- Apparition au défilement ---------- */

.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.16, 0.8, 0.28, 1), transform 0.85s cubic-bezier(0.16, 0.8, 0.28, 1);
}
.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post--skel span { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .swell svg, .film__flicker, .play i::before { animation: none; }
  .diagram b { transition: none; }
}


/* ---------- Fonds paille : déclinaisons des composants ---------- */

.r--straw .lede,
.r--straw .frame__bar p,
.r--straw .frame__aside-lead { color: var(--on-straw); }
.r--straw .body,
.r--straw .pieces p,
.r--straw .frame__body > div > p,
.r--straw .form__note { color: var(--on-straw-mute); }

.r--straw .frame { background: var(--straw-card); }
.r--straw .frame__bar,
.r--straw .sketch__stage,
.r--straw .sketch__legend { border-color: var(--straw-line); }
.r--straw .sketch__legend { background: var(--straw-card); color: var(--on-straw-mute); }
.r--straw .switch { background: rgba(168, 134, 44, 0.16); }
.r--straw .switch button { color: var(--on-straw-mute); }
.r--straw .switch button:hover { color: var(--on-straw); }
.r--straw .frame__list { color: var(--on-straw); }
.r--straw .frame__list li::before { background: var(--on-straw); }
.r--straw[data-scope] { --x: 0; }
.r--straw .frame__aside { border-left-color: var(--straw-line); }
@media (max-width: 879px) {
  .r--straw .frame__aside { border-top-color: var(--straw-line); }
}
.r--straw .pull { color: #4a3e27; }
.r--straw .pieces,
.r--straw .blog__bar { border-color: var(--straw-line); }
.r--straw .stack { background: var(--straw-line); }
.r--straw .stack > li { background: var(--straw-card); }
.r--straw .stack span { color: #9a6c06; }
.r--straw .stack p { color: var(--on-straw); }
.r--straw .steps > li,
.r--straw .steps > li:last-child { border-color: var(--straw-line); }
.r--straw .steps__n { color: #9a6c06; }
.r--straw .steps p { color: var(--on-straw-mute); }
.r--straw .btn--ghost-dark { border-color: rgba(58, 49, 33, 0.3); color: var(--on-straw); }
.r--straw .btn--ghost-dark:hover { border-color: var(--on-straw); background: rgba(58, 49, 33, 0.07); }
.r--straw .field label { color: var(--on-straw-mute); }
.r--straw .field input,
.r--straw .field textarea {
  border-color: rgba(58, 49, 33, 0.25);
  background: rgba(255, 253, 247, 0.6);
  color: var(--on-straw);
}
.r--straw .field input:focus,
.r--straw .field textarea:focus { border-color: var(--on-straw); background: #fffdf7; }
.r--straw .inline-link { color: var(--on-straw); }
.r--straw .blog__all .more { color: #9a6c06; }

/* Le paille sert aussi de nuance sur les fonds sombres : filets et
   liserés tirent vers le chaud plutôt que vers le gris. */
.r--slip .caps,
.r--deep .film { border-color: rgba(242, 231, 203, 0.16); }
.r--slip .pillar__list,
.caps ul,
.film__foot,
.timeline { border-top-color: rgba(242, 231, 203, 0.14); }

/* Mise en avant du registre principal (ClickUp) */
.lead-h {
  margin-top: 2.5rem;
  max-width: 46rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
}
.lead-duo {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--straw-line);
}
@media (min-width: 880px) { .lead-duo { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.lead-lede {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.46;
  color: var(--on-straw);
}
