/* ============================================================
   RITMS Consulting — Site vitrine
   ============================================================ */

:root {
  /* Brand palette (from logo) */
  --pink:   #e5007d;
  --blue:   #0071bc;
  --green:  #39b54a;
  --orange: #f7941e;
  --yellow: #ffc20e;
  --teal:   #00a99d;

  --ink:      #1a1c2b;
  --ink-soft: #4a4d63;
  --muted:    #6a6e83; /* contraste ≥ 4,5:1 sur fond blanc (WCAG AA) */
  --line:     #e9eaf1;
  --bg:       #ffffff;
  --bg-alt:   #f6f7fb;

  --grad: linear-gradient(120deg, var(--pink), #b0138f 45%, var(--blue));

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 50px -22px rgba(26,28,43,.28);
  --shadow-sm:0 8px 26px -14px rgba(26,28,43,.30);
  --container: 1160px;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- Lien d'évitement (accessibilité clavier) ---------- */
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 1000;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; padding: .8rem 1.3rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); text-decoration: none; transition: top .2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--pink); outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(229,0,125,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(229,0,125,.7); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand__logo { height: 40px; width: auto; }

.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background .2s; position: relative;
}
.nav__link:hover { color: var(--pink); }
.nav__link.is-active { color: var(--pink); }
.nav__link--cta { background: var(--ink); color: #fff !important; padding-inline: 1.2rem; }
.nav__link--cta:hover { background: var(--pink); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.blob--1 { width: 460px; height: 460px; background: var(--pink);  top: -120px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: var(--blue);  top: 120px; right: 180px; opacity: .28; }
.blob--3 { width: 380px; height: 380px; background: var(--teal);  bottom: -160px; left: -100px; opacity: .25; }

.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--pink);
  background: rgba(229,0,125,.08); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero__text { max-width: 620px; font-size: 1.12rem; color: var(--ink-soft); margin: 1.6rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.2rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.stat span { font-size: .9rem; color: var(--muted); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; display: grid; place-items: start center;
}
.hero__scroll span { width: 4px; height: 8px; background: var(--pink); border-radius: 4px; margin-top: 7px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 3.2rem; }
.section__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: .9rem;
}
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.015em; }
.section__lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
.about__text p { font-size: 1.05rem; color: var(--ink-soft); }
.about__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.about__list li { position: relative; padding-left: 1.9rem; font-weight: 500; }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; display: grid; place-items: center;
  background: var(--grad); color: #fff; border-radius: 50%; font-size: .7rem; font-weight: 700;
}
.about__cards { display: grid; gap: 1.1rem; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-card__ico { font-size: 1.7rem; margin-bottom: .6rem; }
.mini-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.mini-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--pink));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  margin-bottom: 1.2rem;
  background: var(--bg-alt); /* repli si color-mix() non supporté */
  background: color-mix(in srgb, var(--c, var(--pink)) 14%, #fff);
}
.card__title { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Projets timeline ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--pink), var(--blue)); }
.timeline__item { position: relative; padding: 0 0 2.2rem 3.2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pink); box-shadow: 0 0 0 4px rgba(229,0,125,.12);
}
.timeline__body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s; }
.timeline__body:hover { transform: translateX(4px); }
.timeline__body h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.timeline__body p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Clients logos ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.logos__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 110px; display: grid; place-items: center; padding: 1.4rem;
  transition: transform .25s, box-shadow .25s;
}
.logos__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.logos__item img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos__item:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Recrutement CTA band ---------- */
.cta-band {
  background: var(--grad); color: #fff; border-radius: 26px; padding: 3rem 3.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  box-shadow: 0 30px 60px -30px rgba(229,0,125,.65); position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.12); top: -140px; right: -60px; }
.cta-band__text { max-width: 640px; position: relative; z-index: 1; }
.cta-band__text .section__tag { color: rgba(255,255,255,.85); }
.cta-band__text .section__title, .cta-band__text p { color: #fff; }
.cta-band__text p { margin: 1rem 0 0; opacity: .94; }
.cta-band__action { position: relative; z-index: 1; }
.cta-band__action .btn--primary { background: #fff; color: var(--pink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.cta-band__action .btn--primary:hover { background: var(--ink); color: #fff; }

/* ---------- Recrutement : annonces ---------- */
.jobs-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.7rem; }
.jobs-count { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.jobs-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.jobs-filter {
  font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--ink-soft);
  background: #fff; border: 1.5px solid var(--line); padding: .4rem 1rem; border-radius: 999px;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.jobs-filter:hover { border-color: var(--pink); color: var(--pink); }
.jobs-filter.is-active { background: var(--ink); color: #fff; border-color: transparent; }
.jobs-sort-group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.jobs-toolbar__label { font-size: .9rem; color: var(--muted); margin-right: .1rem; }
.jobs-sort {
  font-family: var(--font-head); font-weight: 500; font-size: .88rem; color: var(--ink-soft);
  background: #fff; border: 1.5px solid var(--line); padding: .45rem 1.05rem; border-radius: 999px;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.jobs-sort:hover { border-color: var(--pink); color: var(--pink); }
.jobs-sort.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 2.5rem; }
.job {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.job__title { font-size: 1.2rem; }
.job__badge {
  flex: none; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--grad); padding: .3rem .7rem; border-radius: 999px;
}
.job__meta { margin: 0 0 .8rem; font-size: .86rem; color: var(--muted); }
.job__desc { margin: 0 0 1.3rem; color: var(--ink-soft); font-size: .97rem; }
.job__desc--excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden;
}
.job__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: auto; }
.job__cta { padding: .58rem 1.3rem; font-size: .9rem; }
.jobs__empty { text-align: center; color: var(--muted); font-size: 1.02rem; margin: 0 0 2.5rem; }

/* ---------- Compétences ---------- */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.skills__title { font-size: 1rem; margin-bottom: .9rem; }
.skills__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.skills__tags li {
  font-size: .9rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .8rem; line-height: 1.35;
}
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Recrutement : page de détail d'une offre ---------- */
.offer-section { padding-top: 116px; }
.offer { max-width: 1060px; }
.offer__loading { color: var(--muted); }

.offer__crumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.offer__crumb a { color: var(--ink-soft); }
.offer__crumb a:hover { color: var(--pink); }
.offer__crumb-cur { color: var(--ink); }

.offer__hero { margin-bottom: 2.2rem; }
.offer__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; }
.offer__pills { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.offer__pill { font-size: .86rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .9rem; }

.offer__grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.6rem; align-items: start; }
.offer__main { min-width: 0; }
.offer__h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--pink); margin: 0 0 1rem; }
.offer__desc { white-space: pre-wrap; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; margin: 0; }
.offer__expired { background: #fdecf2; color: #c1004a; border: 1px solid #f3c9dc; border-radius: 12px;
  padding: .85rem 1.1rem; font-weight: 500; margin: 0 0 1.5rem; }

.offer-apply { max-width: 560px; margin: 3rem 0 0; scroll-margin-top: 100px; }
.offer-apply .offer__h2 { margin-bottom: 1.2rem; }

.offer__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1rem; }
.offer__card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.7rem; box-shadow: var(--shadow); }
.offer__card-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 1.2rem; }
.offer__facts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.offer__facts li { display: flex; gap: .8rem; align-items: flex-start; }
.offer__fact-ico { font-size: 1.05rem; flex: none; width: 1.5rem; text-align: center; margin-top: .1rem; }
.offer__fact-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); }
.offer__fact-value { display: block; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: #fff; }
.offer__apply { width: 100%; }
.offer__all { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--pink); text-align: center; }
.offer__all:hover { text-decoration: underline; }

.offer__empty { text-align: center; padding: 2rem 0 1rem; }
.offer__empty .offer__title { margin-bottom: .6rem; }
.offer__empty p { color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 40ch; }

@media (max-width: 860px) {
  .offer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .offer__aside { position: static; }
}

@media (max-width: 720px) { .jobs { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico { font-size: 1.3rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact__list a { color: var(--pink); font-weight: 500; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 240px; border: 0; display: block; }
.map-consent {
  height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center; padding: 1.5rem; background: var(--bg-alt);
}
.map-consent__txt { margin: 0; font-size: .88rem; color: var(--ink-soft); max-width: 360px; line-height: 1.5; }
.map-consent__btn { padding: .65rem 1.4rem; font-size: .92rem; }
.map-consent__link { font-size: .84rem; color: var(--pink); font-weight: 500; }
.map-consent__link:hover { text-decoration: underline; }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: .4rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 0, 125, .18); /* anneau de focus visible, en plus de la couleur de bordure */
}
.field textarea { resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.form__note { margin: 1rem 0 0; font-size: .92rem; font-weight: 500; min-height: 1.2rem; }
.form__note.is-ok { color: var(--green); }
.form__note.is-err { color: var(--pink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #c7c9d9; padding-top: 4rem; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { height: 42px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 1rem; }
.footer__brand p { color: #9a9db4; font-size: .95rem; max-width: 320px; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: #c7c9d9; font-size: .95rem; transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: #fff; }
.footer__legal p { margin: 0 0 .35rem; font-size: .9rem; color: #9a9db4; }
.footer__legal strong { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; }
.footer__bottom p { margin: 0; font-size: .88rem; color: #7c7f96; text-align: center; }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-hero {
  padding: 140px 0 60px; position: relative; overflow: hidden;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.legal-hero .blob { opacity: .22; }
.legal-hero__inner { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.legal-hero p { margin: 1rem 0 0; color: var(--ink-soft); max-width: 640px; }
.legal-hero .breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.legal-hero .breadcrumb a { color: var(--pink); }

.legal { padding: 64px 0 96px; }
.legal__grid { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
.legal__toc {
  position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; background: #fff; box-shadow: var(--shadow-sm);
}
.legal__toc h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: .9rem; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .55rem; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { font-size: .92rem; color: var(--ink-soft); display: flex; gap: .55rem; transition: color .2s; }
.legal__toc a::before { content: counter(toc) "."; color: var(--pink); font-weight: 600; font-family: var(--font-head); }
.legal__toc a:hover { color: var(--pink); }

.legal__body { max-width: 760px; }
.legal__section { scroll-margin-top: 100px; margin-bottom: 3rem; }
.legal__section:last-child { margin-bottom: 0; }
.legal__section h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--line); display: flex; align-items: baseline; gap: .6rem;
}
.legal__section h2 .num { color: var(--pink); font-size: 1.05rem; }
.legal__section h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.legal__section p, .legal__section li { color: var(--ink-soft); font-size: 1rem; }
.legal__section ul { padding-left: 1.2rem; margin: .5rem 0 1rem; display: grid; gap: .4rem; }
.legal__section a { color: var(--pink); font-weight: 500; }
.legal__section a:hover { text-decoration: underline; }

.info-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.info-table th, .info-table td { text-align: left; padding: .8rem 1rem; font-size: .96rem; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 42%; font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--bg-alt); }
.info-table td { color: var(--ink-soft); }

.callout {
  background: #fdf2f8; /* repli si color-mix() non supporté */
  background: color-mix(in srgb, var(--pink) 6%, #fff);
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--pink) 25%, var(--line));
  border-left: 4px solid var(--pink); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; gap: 2rem; }
  .legal__toc { position: static; }
}

/* ============================================================
   Reveal animation
   ============================================================ */
/* Masqué uniquement si le JS est actif (classe .js posée par un script inline).
   Sans JS, le contenu reste visible au lieu d'une page blanche. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 200; max-width: 380px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
  transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie__ico { font-size: 1.5rem; margin-bottom: .5rem; }
.cookie__title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin-bottom: .35rem; }
.cookie p { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.cookie p a { color: var(--pink); font-weight: 500; }
.cookie__actions { display: flex; gap: .6rem; align-items: center; }
.cookie__btn {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: .6rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.cookie__btn--accept { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(229,0,125,.6); }
.cookie__btn--accept:hover { transform: translateY(-2px); }
.cookie__btn--more { background: none; color: var(--ink-soft); border-color: var(--line); }
.cookie__btn--more:hover { border-color: var(--pink); color: var(--pink); }

@media (max-width: 520px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.2rem 1.4rem; }
  .nav__link { padding: .9rem 1rem; border-radius: 12px; }
  .nav__link--cta { text-align: center; margin-top: .5rem; }
  .nav__toggle { display: flex; }

  .hero { padding: 120px 0 70px; }
  .hero__stats { gap: 1.6rem; }
  .stat strong { font-size: 1.5rem; }
  .section { padding: 70px 0; }
  .grid--services { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 2.2rem 1.8rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .js [data-reveal] { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
