/* ============================================================
   KEYBYXOS — sober / corporate one-pager
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #131722;          /* headings */
  --body: #4c5260;         /* paragraph text */
  --muted: #868d9b;
  --line: #e7e9ef;
  --line-2: #d9dce4;

  --brand: #ef4f2c;        /* primary accent (orange-red) */
  --brand-d: #d83f1f;
  --brand-2: #ff7a2f;
  --grad: linear-gradient(120deg, #ff3b47, #ff7a2f 60%, #ffa63d);

  --navy: #101a2b;         /* corporate anchor (CTA + footer) */
  --navy-2: #18253b;

  --shadow-sm: 0 1px 2px rgba(19, 23, 34, 0.05), 0 1px 1px rgba(19, 23, 34, 0.04);
  --shadow: 0 4px 14px -6px rgba(19, 23, 34, 0.12);
  --shadow-lg: 0 24px 60px -28px rgba(19, 23, 34, 0.32);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__name, .stat strong, .panel__figure, .step__num {
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }

.eyebrow {
  display: inline-block; font-family: "Manrope", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em; border-radius: 10px;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(239, 79, 44, 0.6); }
.btn--primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(239, 79, 44, 0.7); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 1.1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { display: grid; place-items: center; }
.brand__name { font-size: 1.18rem; letter-spacing: 0.02em; font-weight: 800; }
.brand__logo { height: 40px; width: auto; display: block; }
.site-header .brand { margin-inline-end: auto; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { font-family: "Manrope", sans-serif; font-size: 0.94rem; color: var(--body); font-weight: 600; position: relative; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn)::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); border-radius: 2px; transition: width 0.3s var(--ease); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 25px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switcher ---------- */
.lang { position: relative; flex: 0 0 auto; }
.lang__btn { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.45em 0.7em; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-family: "Manrope", sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.lang__btn:hover { border-color: var(--brand); }
.lang__globe { color: var(--muted); }
.lang__chev { color: var(--muted); transition: transform 0.25s var(--ease); }
.lang.open .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 156px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s; z-index: 120; }
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu li { margin: 0; }
.lang__menu button { width: 100%; text-align: start; padding: 0.6em 0.8em; border: 0; background: none; border-radius: 8px; cursor: pointer; font-family: "Manrope", sans-serif; font-weight: 500; font-size: 0.92rem; color: var(--body); }
.lang__menu button:hover { background: var(--bg-alt); color: var(--ink); }
.lang__menu button[aria-current="true"] { color: var(--brand); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(120px, 16vh, 180px) clamp(60px, 9vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; column-gap: clamp(2.4rem, 6vw, 5rem); row-gap: 2.2rem; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--body); max-width: 540px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero__tags {
  grid-column: 1 / -1; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; margin-top: 0.3rem;
}
.hero__tags li {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: "Manrope", sans-serif; font-size: 0.95rem; font-weight: 700; text-align: center;
  padding: 0.95em 1em; border-radius: 14px;
  border: 1.5px solid var(--tag-bd, var(--line)); background: var(--tag-bg, #fff); color: var(--tag-fg, var(--ink));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hero__tags li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tag-ic, rgba(239, 79, 44, 0.12)); color: var(--tag-fg, var(--brand)); }
.tag__icon svg { width: 24px; height: 24px; }

.tag--1 { --tag-bg: #eef1fe; --tag-bd: #d7defb; --tag-ic: #e0e6fd; --tag-fg: #3f56c4; }
.tag--2 { --tag-bg: #e8f7f0; --tag-bd: #ccecdc; --tag-ic: #d7f2e6; --tag-fg: #0f7d55; }
.tag--3 { --tag-bg: #fdf3e2; --tag-bd: #f6e4c0; --tag-ic: #fbedd0; --tag-fg: #b3760c; }
.tag--4 { --tag-bg: #e4f6f8; --tag-bd: #c6ebee; --tag-ic: #d6f1f3; --tag-fg: #0c8794; }
.tag--5 { --tag-bg: #f1edfe; --tag-bd: #e0d7fb; --tag-ic: #e8e1fd; --tag-fg: #6446c8; }

/* Hero visual */
.hero__visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.hero__blob { position: absolute; inset: 0; margin: auto; width: 78%; height: 78%; border-radius: 50%; background: radial-gradient(circle at 60% 40%, rgba(255, 122, 47, 0.22), rgba(255, 59, 71, 0.08) 55%, transparent 72%); filter: blur(8px); }
.panel {
  position: relative; z-index: 2; width: min(360px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem 1.6rem 1.3rem;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.panel__label { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.panel__dot { width: 9px; height: 9px; border-radius: 50%; background: #16c784; box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.15); }
.panel__figure { font-size: 3rem; line-height: 1; }
.panel__figure span { font-size: 1.4rem; color: var(--brand); margin-inline-start: 2px; }
.panel__chart { width: 100%; height: 92px; margin-block: 0.6rem; display: block; }
.panel__legend { display: flex; gap: 1.2rem; }
.panel__legend span { font-family: "Manrope", sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--body); display: inline-flex; align-items: center; gap: 0.4em; }
.panel__legend span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); }
.panel__legend span:last-child::before { background: var(--brand-2); }

.chip {
  position: absolute; z-index: 3; inset-block-end: 6%; inset-inline-start: -4%;
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 0.75rem 1rem;
}
.chip__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(239, 79, 44, 0.1); color: var(--brand); }
.chip strong { display: block; font-family: "Manrope", sans-serif; font-size: 0.9rem; color: var(--ink); }
.chip small { color: var(--muted); font-size: 0.76rem; }

/* ---------- Stats band ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.6rem, 3vw, 2.2rem) 1.2rem; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 620px; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.section__sub { color: var(--body); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(239, 79, 44, 0.09); color: var(--brand); margin-bottom: 1.3rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p, .sector p, .perf__item p { color: var(--body); font-size: 0.97rem; }

/* ---------- Méthode ---------- */
.methode { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 4.6rem); align-items: center; }
.methode__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.methode__text > p { color: var(--body); margin-bottom: 1.1rem; font-size: 1.04rem; }
.methode__def { color: var(--ink) !important; font-weight: 500; padding: 1.1rem 1.3rem; border-inline-start: 3px solid var(--brand); background: #fff; border: 1px solid var(--line); border-inline-start-width: 3px; border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step__num { font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.step p { color: var(--body); font-size: 0.95rem; }

/* ---------- Secteurs ---------- */
.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.sector__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 122, 47, 0.1); color: var(--brand); margin-bottom: 1rem; }
.sector h3 { font-size: 1.04rem; margin-bottom: 0.45rem; line-height: 1.25; }
.sector p { font-size: 0.9rem; }

/* ---------- Performance ---------- */
.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.perf__item { padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.perf__item h3 { font-size: 1.16rem; margin-bottom: 0.6rem; }
.perf__item h3::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 0.8rem; }
.perf-wrap .section__head--center .section__sub { margin-inline: auto; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.4rem, 6vw, 4.6rem); align-items: center; }
.about__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.about__text > p { color: var(--body); margin-bottom: 1rem; font-size: 1.04rem; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 0.6rem 1.4rem; }
.about__list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.about__list li:last-child { border-bottom: 0; }
.about__check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(239, 79, 44, 0.1); color: var(--brand); margin-top: 2px; }
.about__list strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.15rem; }
.about__list span { color: var(--body); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--ink); font-size: 1.03rem; transition: color 0.2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__plus { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.faq__plus::before { inset-inline-start: 0; top: 8px; width: 18px; height: 2px; }
.faq__plus::after { inset-inline-start: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 1.4rem 1.3rem; }
.faq__a p { color: var(--body); font-size: 0.97rem; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(56px, 8vw, 90px); }
.cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--navy); background-image: radial-gradient(circle at 85% 20%, rgba(255, 122, 47, 0.25), transparent 45%);
  border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.8rem, 4vw, 3.2rem);
}
.cta__text { max-width: 540px; }
.cta__inner h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.6rem; }
.cta__inner p { color: rgba(255, 255, 255, 0.72); font-size: 1.06rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.4rem) 2.4rem; }
.brand--footer .brand__name { color: #fff; }
.footer__brand p { margin-top: 1rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a, .footer__contact a { color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; transition: color 0.2s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--brand-2); }
.footer__contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__label { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; color: rgba(255, 255, 255, 0.5); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Footer bottom links ---------- */
.footer__bottom-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__bottom-links a { color: rgba(255, 255, 255, 0.5); transition: color 0.2s; }
.footer__bottom-links a:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; inset-inline: 0; bottom: 0; z-index: 200; padding: clamp(12px, 3vw, 22px); display: flex; justify-content: center; animation: cookieUp 0.5s var(--ease) both; }
.cookie[hidden] { display: none; }
@keyframes cookieUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.cookie__inner { width: 100%; max-width: 920px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; }
.cookie__text { flex: 1 1 340px; font-size: 0.9rem; color: var(--body); margin: 0; line-height: 1.5; }
.cookie__text a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.cookie__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
@media (max-width: 540px) { .cookie__actions { width: 100%; } .cookie__actions .btn { flex: 1; } }

/* ---------- Legal / RGPD page ---------- */
.legal { padding-block: clamp(112px, 14vh, 160px) clamp(56px, 8vw, 90px); }
.legal__wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.5rem; }
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.4rem; }
.legal__wrap h2 { font-size: 1.28rem; margin: 2.2rem 0 0.7rem; }
.legal__wrap p { color: var(--body); margin-bottom: 0.9rem; }
.legal__wrap ul { list-style: none; margin: 0.4rem 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal__wrap li { color: var(--body); position: relative; padding-inline-start: 1.4rem; }
.legal__wrap li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.legal__wrap a { color: var(--brand); text-decoration: underline; }
.legal__note { background: var(--bg-alt); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: 0.94rem; color: var(--ink); }
.legal__back { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 2.4rem; font-family: "Manrope", sans-serif; font-weight: 600; color: var(--brand); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in:nth-child(2), .sectors .reveal.in:nth-child(2), .perf .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal.in:nth-child(3), .sectors .reveal.in:nth-child(3), .perf .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.sectors .reveal.in:nth-child(4) { transition-delay: 0.24s; }
.sectors .reveal.in:nth-child(5) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; margin-bottom: 0.5rem; }
  .cards, .perf { grid-template-columns: 1fr 1fr; }
  .methode, .about { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.8rem clamp(20px, 5vw, 44px) 1.4rem;
    transform: translateY(-130%); transition: transform 0.4s var(--ease); pointer-events: none;
  }
  .nav__links.open { transform: translateY(0); pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 0.9rem; text-align: center; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .cards, .perf { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .chip { inset-inline-start: 0; }
}

/* ---------- Secteurs — responsive (5 cartes) ---------- */
@media (max-width: 1080px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- Pastilles secteurs (hero) — responsive ---------- */
@media (max-width: 1140px) { .hero__tags { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hero__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .hero__tags { grid-template-columns: 1fr; } }

/* ---------- RTL (Hebrew) ---------- */
[dir="rtl"] .panel__chart { transform: scaleX(-1); }
[dir="rtl"] .nav__links a:not(.btn)::after { inset-inline-start: 0; }
[dir="rtl"] body { font-family: "Heebo", "Inter", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .brand__name, [dir="rtl"] .stat strong, [dir="rtl"] .step__num,
[dir="rtl"] .panel__figure, [dir="rtl"] .btn, [dir="rtl"] .eyebrow,
[dir="rtl"] .nav__links a, [dir="rtl"] .lang__btn, [dir="rtl"] .lang__menu button,
[dir="rtl"] .hero__tags li, [dir="rtl"] .faq__item summary {
  font-family: "Heebo", "Manrope", sans-serif;
}
[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: normal; }
