/* ============================================================
   Connectify — feuille de style unique.
   Registre calé sur legora.com, relevé au navigateur :
   fond #FAFAF9, vert primaire #003D26, encre #0D1016,
   grotesque neutre en graisse 400, titres centrés,
   héros média plein écran, navigation à logo centré.
   ============================================================ */

:root {
  /* Surfaces */
  --paper:      #FAFAF9;
  --paper-2:    #F2F2F0;
  --white:      #FFFFFF;

  /* Encre */
  --ink:        #0D1016;
  --ink-2:      #5E6167;
  --ink-3:      #8B8E94;

  /* Vert primaire — bandeau, boutons, blocs d'appel. */
  --green:      #003D26;
  --green-2:    #005335;

  /* Filets */
  --rule:       #E2E2DF;
  --hair:       #EDEDEA;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --edge: clamp(20px, 4vw, 56px);
  --max:  1280px;
  --band: clamp(80px, 9vw, 150px);

  --nav-h: 74px;
  --ann-h: 42px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #FAFAF9; --paper-2: #F2F2F0; --white: #FFFFFF;
    --ink: #0D1016; --ink-2: #5E6167; --ink-3: #8B8E94;
    --rule: #E2E2DF; --hair: #EDEDEA;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Legora tient tout en graisse 400. Aucun titre n'est gras. */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--edge); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

.mark {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}

/* ---------- Bandeau d'annonce ---------- */

.announce { background: var(--green); color: #fff; font-size: 14px; }
.announce__in {
  min-height: var(--ann-h);
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center;
  padding: 9px var(--edge);
}
.announce .mark { color: rgba(255,255,255,.5); }
.announce a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.72); transition: color .2s;
}
.announce a:hover { color: #fff; }

/* ---------- Navigation : liens à gauche, logo au centre, actions à droite ---------- */

/* Bandeau et navigation forment un seul bloc fixe, comme sur le modèle :
   l'annonce reste visible à toute hauteur de défilement. */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }

.head {
  height: var(--nav-h);
  transition: background .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.head__in {
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px;
}

.logo {
  grid-column: 2;
  justify-self: center;
  font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 400; white-space: nowrap;
}

.nav-left { display: flex; align-items: center; gap: 30px; }
.nav-right { display: flex; align-items: center; gap: 20px; justify-self: end; }

.nav-left a, .nav-right a:not(.btn) {
  font-size: 15px; opacity: .82; transition: opacity .2s;
  white-space: nowrap;
}
.nav-left a:hover, .nav-right a:not(.btn):hover,
.nav-left a[aria-current="page"] { opacity: 1; }

.lang {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; opacity: .82;
}
.lang a[aria-current="true"] { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.lang span { opacity: .45; }

/* Sur le héros : transparent, texte blanc. Au défilement : plein, texte encre. */
.head[data-mode="over"] { color: #fff; }
.head[data-mode="solid"] {
  background: var(--paper);
  border-bottom-color: var(--rule);
  color: var(--ink);
}

/* ---------- Bouton pilule vert, flèche en pastille ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 400;
  padding: 7px 7px 7px 20px;
  border-radius: 999px; border: 1px solid var(--green);
  white-space: nowrap; flex-shrink: 0;
  transition: background .22s, border-color .22s, color .22s;
}
.btn i {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--green);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .22s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn:hover i { transform: translateX(2px); }

/* Variante claire, pour poser sur le vert ou sur une image */
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light i { background: var(--ink); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.86); border-color: rgba(255,255,255,.86); }

/* Variante contour, pour la seconde action */
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; padding: 10px 20px; }
.btn--ghost i { display: none; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hero .btn--ghost:hover, .call .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.burger {
  display: none; grid-column: 3; justify-self: end;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid currentColor; border-radius: 999px;
  color: inherit; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 14px; height: 1px; background: currentColor; position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 14px; height: 1px; background: currentColor; transition: transform .22s;
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   HÉROS — média plein écran, titre centré blanc par-dessus
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--ann-h) + 40px) var(--edge) 64px;
}

.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--green); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Voile : le titre blanc doit tenir AA sur toute photographie. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,8,.55) 0%, rgba(6,10,8,.34) 42%, rgba(6,10,8,.62) 100%);
}

.hero__in { position: relative; z-index: 1; max-width: 900px; }

.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(255,255,255,.86);
  max-width: 52ch; margin-inline: auto;
}
.hero__cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Séquence d'entrée : une seule, discrète. */
.rise { opacity: 0; transform: translateY(12px); }
.loaded .rise { animation: rise .9s cubic-bezier(.16,.84,.3,1) forwards; }
.loaded .rise:nth-child(1) { animation-delay: .08s; }
.loaded .rise:nth-child(2) { animation-delay: .2s; }
.loaded .rise:nth-child(3) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .loaded .rise { opacity: 1; transform: none; animation: none; }
}

/* ---------- Bande d'implantation ---------- */

.places { border-bottom: 1px solid var(--rule); overflow: hidden; padding: 16px 0; background: var(--paper); }
.places__track { display: flex; width: max-content; animation: drift 52s linear infinite; }
.places__track > * { flex-shrink: 0; }
.places__track:hover { animation-play-state: paused; }
.places span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); padding-inline: 28px; position: relative;
}
.places span::after { content: "·"; position: absolute; right: -3px; color: var(--rule); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .places__track { animation: none; } }

/* ---------- Bandes de section : tête centrée ---------- */

.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(60px, 7vw, 108px); }
.band--white { background: var(--white); }

.band__head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 5vw, 72px); }
.band__head .mark { display: block; margin-bottom: 18px; }
.band h2 {
  font-size: clamp(30px, 3.9vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.band__lede { margin-top: 18px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); }
.band__head .arrow { margin-top: 22px; }

.arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--green);
  border-bottom: 1px solid rgba(0,61,38,.25); padding-bottom: 2px;
  transition: border-color .2s, gap .2s;
}
.arrow:hover { border-color: var(--green); gap: 12px; }

/* ---------- Média intercalaire ---------- */

.plate { margin-block: clamp(36px, 5vw, 72px); }
.plate figure { margin: 0; }
.plate__img {
  position: relative; aspect-ratio: 16 / 7; overflow: hidden;
  border-radius: 6px; background: var(--green);
}
.plate__img picture { display: block; width: 100%; height: 100%; }
.plate__img img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption {
  margin-top: 14px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.plate figcaption p { color: var(--ink-2); font-size: 14.5px; max-width: 62ch; }

/* ============================================================
   LA PILE — élément signature, adapté au registre
   ============================================================ */

.pile { border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); background: var(--white); }

.stratum {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
  transition: background .4s cubic-bezier(.2,.7,.3,1);
}
.stratum:last-child { border-bottom: none; }

.stratum__gauge {
  border-right: 1px solid var(--rule);
  padding: 26px 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.stratum__tick { flex: 1; width: 1px; background: var(--hair); min-height: 22px; }

.stratum__body {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
}
.stratum__name { font-size: clamp(23px, 2.5vw, 34px); line-height: 1.1; transition: color .4s; }
.stratum__note { color: var(--ink-2); font-size: clamp(15px, 1.15vw, 16.5px); max-width: 46ch; }
.stratum__items { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.chip {
  display: inline-flex; align-items: baseline; gap: 9px;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; background: var(--paper);
  transition: border-color .3s, background .3s, color .3s;
}
.chip b { font-weight: 500; }
.chip .mark { font-size: 10px; }

.stratum.is-lit { background: var(--green); }
.stratum.is-lit .stratum__gauge { border-right-color: rgba(255,255,255,.2); }
.stratum.is-lit .stratum__tick { background: rgba(255,255,255,.2); }
.stratum.is-lit .mark { color: rgba(255,255,255,.55); }
.stratum.is-lit .stratum__name { color: #fff; }
.stratum.is-lit .stratum__note { color: rgba(255,255,255,.75); }
.stratum.is-lit .chip { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.stratum.is-lit .chip .mark { color: rgba(255,255,255,.5); }

.pile__legend { margin-top: 18px; color: var(--ink-2); font-size: 14.5px; text-align: center; }

@media (max-width: 860px) {
  .stratum { grid-template-columns: 54px minmax(0, 1fr); }
  .stratum__body { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Produits ---------- */

.grid-products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}
.product {
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(24px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 13px; min-height: 270px;
  transition: border-color .25s, transform .25s;
}
.product:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.product__top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.product h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.1; }
.product p { color: var(--ink-2); font-size: 15.5px; }
.product__foot { margin-top: auto; padding-top: 16px; }

.stage {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.stage[data-stage="live"] { color: var(--green); }
.stage[data-stage="live"]::before { background: var(--green); }
.stage[data-stage="dev"]::before { background: var(--green-2); opacity: .6; }
.stage[data-stage="scoping"]::before { opacity: .5; }

/* ---------- Onglets métier ---------- */

.tabs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.tabs__list { display: flex; flex-direction: column; }
.tabs__btn {
  appearance: none; background: none; border: none; border-bottom: 1px solid var(--rule);
  font: inherit; font-size: 16px; color: var(--ink-2); text-align: left;
  padding: 14px 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .2s, padding-left .25s;
}
.tabs__btn:hover { color: var(--ink); padding-left: 8px; }
.tabs__btn[aria-selected="true"] { color: var(--green); }
.tabs__btn[aria-selected="true"]::after { content: ""; width: 18px; height: 1px; background: var(--green); }

.tabs__panel { display: none; }
.tabs__panel.is-on { display: block; animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabs__panel.is-on { animation: none; } }

.tabs__panel h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; max-width: 20ch; margin-bottom: 14px; }
.tabs__panel p { color: var(--ink-2); max-width: 54ch; }
.tabs__panel ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.tabs__panel li {
  padding: 13px 2px; border-bottom: 1px solid var(--hair);
  font-size: 15.5px; display: flex; gap: 15px; align-items: baseline;
}
.tabs__panel li .tick {
  flex-shrink: 0; width: 16px; height: 1px; background: var(--green);
  display: block; transform: translateY(-4px); opacity: .55;
}

@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__btn { border-bottom: none; white-space: nowrap; padding: 12px 16px 12px 0; }
  .tabs__btn[aria-selected="true"]::after { display: none; }
}

/* ---------- Le récit — encre pleine, centré ---------- */

.recit { background: var(--ink); color: #fff; padding-block: clamp(80px, 10vw, 150px); }
.recit .band__head h2 { color: #fff; }
.recit .band__head .mark { color: rgba(255,255,255,.5); }
.recit__text { max-width: 720px; margin-inline: auto; display: grid; gap: 20px; }
.recit__text p { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.62; color: rgba(255,255,255,.8); }
.recit__text p:first-child { color: #fff; }

/* ---------- Engagements ---------- */

.pledges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pledge {
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px;
}
.pledge h3 { font-size: 17.5px; font-weight: 500; }
.pledge p { color: var(--ink-2); font-size: 15px; }

/* ---------- Appel — bloc vert plein ---------- */

.call { background: var(--green); color: #fff; }
.call__in { padding-block: clamp(80px, 9vw, 130px); text-align: center; }
.call .mark { color: rgba(255,255,255,.5); display: block; margin-bottom: 18px; }
.call h2 {
  font-size: clamp(30px, 4vw, 54px); line-height: 1.1;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.call__cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pages internes ---------- */

.page-head {
  padding-top: calc(var(--nav-h) + var(--ann-h) + clamp(56px, 7vw, 100px));
  /* le bloc fixe recouvre le haut du document : on le compense ici */
  padding-bottom: clamp(32px, 4vw, 52px);
  text-align: center;
}
.page-head .mark { display: block; margin-bottom: 18px; }
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.page-head__lede {
  margin-top: 20px; font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2); max-width: 56ch; margin-inline: auto;
}

.sheet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--rule); align-items: start;
}
.sheet:last-of-type { border-bottom: 1px solid var(--rule); }
.sheet__id { position: sticky; top: calc(var(--nav-h) + 24px); }
.sheet__id h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; margin-bottom: 12px; }
.sheet__body { display: grid; gap: 18px; }
.sheet__body p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 17.5px); max-width: 58ch; }
.sheet__body p.lead { color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; }
.sheet__facts { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sheet__facts li {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px;
}
.sheet__facts li > span:last-child { color: var(--ink-2); }
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet__id { position: static; }
  .sheet__facts li { grid-template-columns: 1fr; gap: 2px; }
}

.prose { max-width: 68ch; margin-inline: auto; display: grid; gap: 20px; }
.prose p { color: var(--ink-2); font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.62; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.contact-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(24px, 2.6vw, 34px); display: grid; gap: 10px; align-content: start;
}
.contact-card h3 { font-size: 17px; font-weight: 500; }
.contact-card p { color: var(--ink-2); font-size: 15.5px; }
.contact-card a.mailto {
  font-family: var(--mono); font-size: 14.5px; color: var(--green);
  border-bottom: 1px solid rgba(0,61,38,.25); padding-bottom: 2px;
  word-break: break-all; justify-self: start;
}
.contact-card a.mailto:hover { border-color: var(--green); }
.copy {
  appearance: none; background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); justify-self: start;
  transition: border-color .2s, color .2s;
}
.copy:hover { border-color: var(--green); color: var(--green); }

/* ---------- Pied ---------- */

.foot { background: var(--white); border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 76px); padding-bottom: 30px; }
.foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 54px); padding-bottom: clamp(40px, 5vw, 62px);
}
.foot__brand .logo { display: block; justify-self: start; margin-bottom: 14px; font-size: 19px; }
.foot__brand p { color: var(--ink-2); font-size: 15px; max-width: 36ch; }
.foot__col h4 { font-size: 11px; }
.foot__col ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot__col a { font-size: 15px; color: var(--ink-2); transition: color .18s; }
.foot__col a:hover { color: var(--ink); }
.foot__bar {
  border-top: 1px solid var(--rule); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
}
.foot__bar p, .foot__bar nav a { font-size: 13.5px; color: var(--ink-3); }
.foot__bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__bar nav a:hover { color: var(--ink); }

@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Menu mobile ---------- */

@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .nav-left, .nav-right { display: none; }
  .logo { grid-column: 1; justify-self: start; }

  /* Dans le flux de .topbar, qui est déjà fixe : le panneau se cale sous la
     navigation quelle que soit la hauteur réelle du bandeau — qui passe sur
     deux lignes en écran étroit, ce qu'une valeur fixe ne peut pas suivre. */
  .panel {
    background: var(--paper); color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 10px var(--edge) 28px;
    display: grid; gap: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
    max-height: 70dvh; overflow-y: auto;
  }
  .panel[data-open="false"] { display: none; }
  .panel[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .panel a:not(.btn) { font-size: 21px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .panel .lang { padding-top: 18px; opacity: 1; }
  .panel .btn { margin-top: 20px; justify-content: center; padding: 10px 10px 10px 22px; font-size: 16px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1041px) { .panel { display: none; } }

/* ---------- Révélation au défilement ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,.84,.3,1), transform .7s cubic-bezier(.16,.84,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.only-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
