/* ME2SH International — thème « Signal ».
   Parti pris : arrêter d'être sage. Plein écran, très grands caractères,
   chiffres surdimensionnés, défilement animé. Encre profonde, blanc os,
   un vert lumineux comme seule couleur vive. */

:root {
  --ink:        #0c0d0c;
  --ink-2:      #16181a;
  --bone:       #f4f1ea;
  --bone-2:     #e7e2d6;
  --muted:      #8c8880;
  --muted-dk:   #5e5b55;
  --glow:       #00d49a;   /* vert signal */
  --glow-dk:    #00a87b;
  --measure:    62ch;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700; line-height: .98;
  letter-spacing: -.035em; margin: 0; color: var(--ink);
}
h1 { font-size: clamp(3.2rem, 11vw, 10rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.7rem); letter-spacing: -.02em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--ink); }

.wrap { width: min(1320px, 90vw); margin-inline: auto; }
/* Le texte courant partage le bord gauche des titres : une colonne centrée
   de 820px dans une grille de 1320px donne un décalage disgracieux. */
.narrow { width: min(1320px, 90vw); margin-inline: auto; }
.narrow > * { max-width: 72ch; }
.narrow .callout { max-width: 72ch; }

/* ── Reveal on scroll (JS adds .in) ─────────────────────── */
/* Masquage uniquement si le script est actif (classe « js » sur <html>).
   Sans JavaScript, tout reste visible : le contenu prime sur l'effet. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none !important; }
}

/* ── Header: floats over the hero ───────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: transparent; border: 0; transition: background .3s, backdrop-filter .3s;
}
.site-header.stuck,
.site-header:has(.nav-toggle:checked) {
  background: rgba(12,13,12,.92); backdrop-filter: saturate(160%) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 86px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
/* Le logo a son propre fond coloré : l'inverser le transforme en carré blanc.
   On le laisse tel quel, simplement détouré par un léger contour. */
.brand img {
  height: 38px; width: auto; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.brand b {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: 1rem; color: #fff; letter-spacing: -.02em;
}
.brand span {
  display: block; font-size: .56rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 500;
}
nav.main { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
nav.main a {
  text-decoration: none; color: rgba(255,255,255,.76); font-size: .8rem;
  font-weight: 500; letter-spacing: .02em; padding: .5rem .85rem;
  border-radius: 99px; transition: .18s; white-space: nowrap;
}
nav.main a:hover { color: var(--ink); background: var(--glow); }
nav.main a[aria-current="page"] { color: #fff; }

.has-menu { position: relative; }
.has-menu > button {
  font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer;
  color: rgba(255,255,255,.76); background: none; border: 0;
  padding: .5rem .85rem; border-radius: 99px;
  display: flex; align-items: center; gap: .35rem; transition: .18s;
}
.has-menu > button:hover { color: var(--ink); background: var(--glow); }
.has-menu .menu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: .5rem; min-width: 330px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease);
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu .menu a { display: block; padding: .55rem .8rem; border-radius: 10px; color: rgba(255,255,255,.8); }
.has-menu .menu a:hover { background: var(--glow); color: var(--ink); }

/* on light pages the header needs dark text once scrolled past the head */
body:not(.has-hero) .site-header { background: rgba(12,13,12,.92); backdrop-filter: blur(14px); }

.cta {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--glow); color: var(--ink) !important; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: 99px; border: 1.5px solid var(--glow);
  font-weight: 600; font-size: .86rem; letter-spacing: .01em;
  transition: .2s var(--ease);
}
.cta:hover { background: transparent; color: var(--glow) !important; }
/* Par défaut le bouton fantôme est sombre : il vit sur fond clair.
   Il ne devient blanc que sur les fonds sombres — héros et en-tête de page. */
.cta.ghost { background: transparent; border-color: rgba(12,13,12,.28); color: var(--ink) !important; }
.cta.ghost:hover { background: var(--ink); color: var(--bone) !important; border-color: var(--ink); }
.hero.full .cta.ghost, .page-head .cta.ghost {
  border-color: rgba(255,255,255,.34); color: #fff !important;
}
.hero.full .cta.ghost:hover, .page-head .cta.ghost:hover {
  background: #fff; color: var(--ink) !important; border-color: #fff;
}

/* ── Hero: full viewport, duotone photograph ────────────── */
.hero.full {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 8rem 0 5rem; background: var(--ink); overflow: hidden;
}
.hero.full .bg { position: absolute; inset: 0; }
.hero.full .bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.45);
  transform: scale(1.06);
}
.hero.full .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 10% 100%, rgba(0,212,154,.22), transparent 60%),
    linear-gradient(180deg, rgba(12,13,12,.55), rgba(12,13,12,.9));
}
.hero.full .wrap { position: relative; z-index: 2; }
.hero.full .eyebrow {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--glow); font-weight: 600; margin-bottom: 1.6rem;
}
.hero.full h1 { color: #fff; max-width: 16ch; }
.hero.full h1.split span { display: block; }
.js .hero.full h1.split span {
  opacity: 0; transform: translateY(.3em);
  animation: rise .9s var(--ease) forwards;
}
.hero.full h1.split span:nth-child(1) { animation-delay: .05s; }
.hero.full h1.split span:nth-child(2) { animation-delay: .17s; }
.hero.full h1.split span:nth-child(3) { animation-delay: .29s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
  margin-top: 2.8rem; padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-row p.lead { color: rgba(255,255,255,.76); font-size: 1.08rem; margin: 0; }
.hero-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: start; }
.hero-meta li { display: grid; gap: .1rem; }
.hero-meta b {
  font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem;
  color: #fff; letter-spacing: -.02em;
}
.hero-meta span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero.full .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.6rem; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; align-items: center; gap: .6rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span {
  width: 1px; height: 26px; background: linear-gradient(var(--glow), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ── Inner page heads ───────────────────────────────────── */
.page-head {
  background: var(--ink); color: #fff;
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-head h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 6rem); max-width: 18ch; }
.page-head .eyebrow {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--glow); font-weight: 600; margin-bottom: 1.3rem;
}
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head p.lead { color: rgba(255,255,255,.72); font-size: 1.12rem; margin-top: 1.4rem; }

/* ── Bands ──────────────────────────────────────────────── */
section { padding: clamp(4rem, 9vw, 8rem) 0; }
section.shell { background: var(--bone-2); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* oversized figures */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 1.5rem; }
.facts div { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.facts b {
  display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .92;
  letter-spacing: -.045em; color: var(--ink); text-wrap: balance;
}
.facts span { display: block; margin-top: .7rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dk); }

/* services: full-width rows that light up */
.cards { display: block; margin-top: 3rem; counter-reset: idx; }
.card {
  position: relative; display: grid;
  grid-template-columns: 5rem minmax(14rem, 26rem) 1fr auto;
  align-items: center; gap: 2rem;
  text-decoration: none; color: inherit;
  padding: 2rem 1.5rem 2rem 0; border-top: 1px solid rgba(12,13,12,.16);
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.card:last-child { border-bottom: 1px solid rgba(12,13,12,.16); }
.card::before {
  counter-increment: idx; content: counter(idx, decimal-leading-zero);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--muted); transition: color .3s;
}
.card h3 { transition: transform .35s var(--ease); }
.card p { font-size: .95rem; color: var(--muted-dk); margin: 0; max-width: 46ch; }
.card .more {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(12,13,12,.2); display: grid; place-items: center;
  font-size: 0; transition: .35s var(--ease); position: relative;
}
.card .more::after {
  content: "→"; font-size: 1.05rem; color: var(--ink); transition: .35s var(--ease);
}
.card:hover { background: var(--ink); padding-left: 1.5rem; }
.card:hover::before { color: var(--glow); }
.card:hover h3 { color: #fff; transform: translateX(6px); }
.card:hover p { color: rgba(255,255,255,.6); }
.card:hover .more { background: var(--glow); border-color: var(--glow); }

/* ── Marquee ────────────────────────────────────────────── */
.marquee-band { padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.marquee { margin: 3rem 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee .track { display: flex; gap: 3.5rem; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee figure { margin: 0; flex: 0 0 auto; width: 148px; height: 76px; display: grid; place-items: center; }
.marquee img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .5; transition: .25s; }
.marquee figure:hover img { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Prose ──────────────────────────────────────────────── */
.prose h2 { margin: 3rem 0 1.1rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.prose h3 {
  margin: 2.6rem 0 .7rem; font-family: "Inter", sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--glow-dk);
}
.prose > :first-child { margin-top: 0; }
.prose p { font-size: 1.04rem; color: var(--muted-dk); }
.prose ul { padding-left: 0; list-style: none; max-width: var(--measure); }
.prose ul li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--muted-dk); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; background: var(--glow-dk);
}
.callout {
  background: var(--ink); color: var(--bone); padding: 2rem 2.2rem;
  border-radius: 20px; margin: 2.6rem 0; max-width: var(--measure);
}
.callout p { margin: 0; font-size: 1.05rem; color: rgba(244,241,234,.85); }

/* ── Timeline: giant years ──────────────────────────────── */
.timeline { border: 0; margin: 0; padding: 0; }
.timeline .item {
  display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 2.5rem;
  padding: 2rem 0; border-top: 1px solid rgba(12,13,12,.14);
  align-items: start;
}
.timeline .item::before { display: none; }
.timeline .item:last-child { border-bottom: 1px solid rgba(12,13,12,.14); }
.timeline .year {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: .9;
  letter-spacing: -.045em; color: var(--ink); margin: 0;
  transition: color .3s;
}
.timeline .item:hover .year { color: var(--glow-dk); }
.timeline p { margin: 0; color: var(--muted-dk); font-size: .98rem; }

/* ── Logos grid (inner pages) ───────────────────────────── */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(12,13,12,.14); }
.logos figure { margin: 0; background: var(--bone); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.6rem; }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .5; transition: .25s; }
.logos figure:hover img { filter: none; opacity: 1; }

/* ── Offices ────────────────────────────────────────────── */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.office { background: var(--ink); color: var(--bone); border-radius: 22px; padding: 2.4rem; }
.office h3 { color: #fff; font-size: 1.9rem; margin-bottom: .3rem; }
.office .co { font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem; }
.office address { font-style: normal; color: rgba(244,241,234,.78); font-size: .97rem; }
.office dl { margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.office dt { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--glow); font-weight: 600; }
.office dd { margin: 0; font-size: .97rem; }
.office a { color: #fff; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site { background: var(--ink); color: rgba(244,241,234,.6); padding: clamp(4rem, 7vw, 6rem) 0 2rem; }
footer.site a { color: rgba(244,241,234,.6); text-decoration: none; transition: color .2s; }
footer.site a:hover { color: var(--glow); }
footer.site .cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; }
footer.site h4 {
  color: #fff; font-family: "Inter", sans-serif; font-size: .64rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.3rem;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
footer.site .about { font-size: 1.05rem; max-width: 34ch; color: rgba(244,241,234,.75); line-height: 1.5; }
footer.site .bar {
  margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .78rem; color: var(--muted);
}

@media (max-width: 980px) {
  nav.main { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
  .hero-row { grid-template-columns: 1fr; gap: 2rem; }
  .card { grid-template-columns: 3rem 1fr auto; gap: 1rem; padding-right: 0; }
  .card p { display: none; }
  .timeline .item { grid-template-columns: 1fr; gap: .6rem; }
}

/* ── Navigation mobile (sans JavaScript) ─────────────────
   Une case à cocher masquée pilote le panneau. Pas de script :
   le menu fonctionne même si signal.js ne se charge pas. */
.nav-burger { display: none; }

@media (max-width: 980px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; cursor: pointer;
    align-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  }
  .nav-burger span {
    display: block; width: 18px; height: 1.5px; background: #fff;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  nav.main {
    display: flex; position: fixed; inset: 86px 0 auto;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--ink-2); padding: 1rem 1.2rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    max-height: calc(100svh - 86px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: .22s var(--ease);
  }
  .nav-toggle:checked ~ nav.main { transform: none; opacity: 1; visibility: visible; }
  nav.main a { font-size: 1rem; padding: .75rem .6rem; border-radius: 10px; }
  nav.main .cta { justify-content: center; margin-top: .8rem; }

  /* le sous-menu services est déplié en permanence sur mobile */
  .has-menu > button { width: 100%; justify-content: space-between; font-size: 1rem; padding: .75rem .6rem; }
  .has-menu > button svg { display: none; }
  .has-menu .menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 0 .8rem; min-width: 0; margin-top: .2rem;
    border-left: 1px solid rgba(255,255,255,.14);
  }
  .has-menu .menu a {
    font-size: .9rem; padding: .55rem .6rem;
    /* « Formation LinkedIn pour les professionnels de santé » doit revenir
       à la ligne, pas déborder de l'écran. */
    white-space: normal; line-height: 1.4;
  }

  /* en-tête toujours opaque quand le menu est ouvert */
  .nav-toggle:checked ~ nav.main ~ * { pointer-events: none; }
}
