/* UMA RH & Paie — site vitrine
   Plan : la page d'accueil reprend la maquette à l'identique (mesures en « px maquette » × --s) ;
   les autres pages prolongent la même grille, la même palette et la même typographie. */
:root {
  /* Couleurs relevées sur la maquette (la charte indique #F2B705 pour la moutarde) */
  --bg: #F9F6F3;
  --bg-band: #F6F2EE;
  --bg-soft: #F2ECE5;
  --line: #E7DFD5;
  --surface: #FFFFFF;
  --panel: #FBFAF8;
  --ink: #121110;
  --brown: #231A12;
  --text: #67625D;
  --muted: #8F877F;
  --gold: #E39816;
  --gold-deep: #C98306;
  --on-gold: #1D1A16;
  --terra: #C9491F;
  --terra-line: #D9876B;
  --clay: #F3B28F;
  --ivory: #FFFAE3;
  --green: #2A7843;
  --green-action: #22C55E;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* 1 px de maquette (maquette dessinée sur 1 122 px de large) */
  --s: min(calc(100vw / 1122), 1.3px);
  /* échelle du premier écran : réduite sur les écrans peu hauts pour garder les boutons visibles */
  --sh: min(var(--s), calc((100vh - 24px) / 820));

  --t-body: max(15px, calc(var(--s) * 12.6));
  --t-small: max(13.5px, calc(var(--s) * 10.8));
  --t-xs: max(12px, calc(var(--s) * 9.4));
  --t-eyebrow: max(10.5px, calc(var(--s) * 9.4));
  --t-h1: max(40px, calc(var(--s) * 58));
  --t-h2: max(31px, calc(var(--s) * 42));
  --t-h3: max(21px, calc(var(--s) * 20.5));
  --gutter: calc(var(--s) * 52);
  --radius: calc(var(--s) * 14);
  --shadow: 0 1px 2px rgba(35, 26, 18, .05), 0 calc(var(--s) * 10) calc(var(--s) * 30) rgba(35, 26, 18, .07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--t-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(201, 73, 31, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--terra); }
/* Titres : Cormorant gras */
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brown); color: var(--ivory); padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 16px; }
.i { width: 1em; height: 1em; flex: none; }
.nums { font-variant-numeric: tabular-nums; }

.wrap { width: min(100%, calc(var(--s) * 1122)); margin-inline: auto; position: relative; }

/* ---------- Éléments communs ---------- */
.eyebrow { display: block; font-size: var(--t-eyebrow); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--terra); line-height: 1.8; }
.rule { display: block; width: calc(var(--s) * 25); height: 1.5px; background: var(--terra); }
.dot { color: var(--gold); }
.lead { color: var(--text); max-width: 62ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: max(46px, calc(var(--s) * 47)); padding: 0 max(18px, calc(var(--s) * 18)) 0 max(20px, calc(var(--s) * 22));
  font-size: max(11.5px, calc(var(--s) * 10)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .i { width: 1.45em; height: 1.45em; }
.btn-gold { background: #E19915; color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--terra-line); }
.btn-line .i { color: var(--terra); }
.btn-line:hover { border-color: var(--terra); }
.btn-ivory { background: transparent; color: var(--ivory); border-color: rgba(255, 250, 227, .45); }
.btn-ivory:hover { border-color: var(--ivory); }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; color: var(--ink); text-decoration: none; font-size: var(--t-xs); }
.link-arrow .i { color: var(--gold); width: 1.4em; height: 1.4em; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }
.icon-tile { display: grid; place-items: center; width: calc(var(--s) * 40); height: calc(var(--s) * 40); min-width: 40px; min-height: 40px; border-radius: calc(var(--s) * 10); background: #E79812; color: #fff; }
.icon-tile .i { width: 52%; height: 52%; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .2em .7em; border-radius: 99px; font-size: .78em; font-weight: 600; letter-spacing: .01em; background: var(--bg-soft); color: var(--brown); white-space: nowrap; }
.chip.ok { background: #E6F2EA; color: var(--green); }
.chip.warn { background: #FCEBD7; color: #9A4A07; }
.chip.soon { background: var(--brown); color: var(--ivory); }
.chip.gold { background: #FBE9C6; color: #7A4A00; }

/* ---------- En-tête, menu ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; pointer-events: none; }
.site-header .wrap { padding-left: calc(var(--s) * 55); }
.logo { display: inline-block; pointer-events: auto; margin-top: calc(var(--sh) * 21); width: calc(var(--sh) * 131); min-width: 92px; }
.logo img { width: 100%; height: auto; }
.burger {
  position: fixed; z-index: 60; top: calc(var(--sh) * 26); right: calc(var(--sh) * 43);
  width: max(44px, calc(var(--sh) * 44)); height: max(44px, calc(var(--sh) * 44)); border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #3B3836; border: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(35, 26, 18, .18);
}
.burger .i { width: 58%; height: 58%; stroke-width: 1.9; }
.burger .i-close { display: none; }
.menu-open .burger { background: var(--ivory); }
/* Bouton « Se connecter » en haut à droite */
.login-pill { position: fixed; z-index: 60; top: calc(var(--sh) * 26); right: calc(var(--sh) * 43 + max(44px, var(--sh) * 44) + 10px); height: max(44px, calc(var(--sh) * 44)); display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 1px 15px; border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; font-family: var(--font-serif); font-weight: 700; font-size: 17.5px; box-shadow: 0 2px 10px rgba(35, 26, 18, .18); transition: opacity .2s, background .2s; }
.login-pill .i { width: 18px; height: 18px; color: var(--gold); }
.login-pill:hover { background: var(--ivory); }
.login-pill[aria-current="page"] { background: var(--ink); color: var(--ivory); }
.menu-open .login-pill { opacity: 0; pointer-events: none; }
.menu-open .burger .i-open { display: none; }
.menu-open .burger .i-close { display: block; }
.menu {
  position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(520px, 100%);
  background: var(--brown); color: var(--ivory); padding: 96px 44px 40px; overflow-y: auto;
  transform: translateX(102%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); visibility: hidden;
  display: flex; flex-direction: column; gap: 28px;
}
.menu-open .menu { transform: none; visibility: visible; }
.menu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(18, 12, 8, .45); opacity: 0; visibility: hidden; transition: opacity .3s; }
.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.menu .eyebrow { color: var(--clay); }
.menu-links { display: grid; gap: 6px; counter-reset: m; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-serif); font-weight: 700; font-size: 32px; line-height: 1.2; color: var(--ivory); text-decoration: none; padding: 6px 0; }
.menu-links a::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 250, 227, .1); transform: translateY(-6px); }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--gold); }
.menu-links a[aria-current="page"]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-6px); }
.menu .btn { align-self: flex-start; }
.menu-contact { font-size: 14px; color: rgba(255, 250, 227, .72); display: grid; gap: 8px; margin-top: auto; }
.menu-contact a { color: var(--ivory); }
.menu .motif { height: 22px; opacity: .9; }
body.menu-open { overflow: hidden; }

/* ---------- Accueil : premier écran (maquette) ---------- */
.hero { position: relative; min-height: calc(var(--sh) * 922); }
.hero-visual {
  position: absolute; top: 0; right: 0; width: calc(var(--sh) * 822); height: calc(var(--sh) * 922);
  background: url(../img/hero-laterite.webp) right top / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--sh) * 26));
          mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--sh) * 26));
}
.hero-copy { position: relative; z-index: 2; padding: calc(var(--sh) * 196) 0 calc(var(--sh) * 60) calc(var(--s) * 52); }
.hero .eyebrow { font-size: max(10.5px, calc(var(--sh) * 11.9)); line-height: calc(var(--sh) * 22); letter-spacing: .14em; }
.hero .rule { margin-top: calc(var(--sh) * 22); width: calc(var(--sh) * 29); }
.hero h1 { margin-top: calc(var(--sh) * 24); font-size: calc(var(--sh) * 88); line-height: calc(var(--sh) * 86); letter-spacing: -.005em; font-weight: 700; color: var(--ink); }
.hero .tagline { margin-top: calc(var(--sh) * 24); font-family: var(--font-serif); font-size: max(16px, calc(var(--sh) * 18)); line-height: 1.4; color: var(--terra); letter-spacing: -.005em; }
.hero .intro { margin-top: calc(var(--sh) * 32); font-size: max(15px, calc(var(--sh) * 13.6)); line-height: max(26px, calc(var(--sh) * 26)); color: var(--text); letter-spacing: -.005em; }
.hero-actions { display: flex; gap: calc(var(--sh) * 19); margin-top: calc(var(--sh) * 40); flex-wrap: wrap; }
.hero-actions .btn { height: max(44px, calc(var(--sh) * 47)); font-size: max(11px, calc(var(--sh) * 10)); }
.hero-actions .btn-gold { width: max(200px, calc(var(--sh) * 189)); }
.hero-actions .btn-line { width: max(176px, calc(var(--sh) * 166)); }

/* Bandeau « Ils nous font confiance » */
.trust { background: var(--bg-band); border-top: 1px solid #fff; border-bottom: 1px solid #EEE7DF; }
.trust .wrap { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: start; min-height: calc(var(--s) * 171); padding: calc(var(--s) * 50) calc(var(--s) * 52) calc(var(--s) * 44) calc(var(--s) * 32); }
.trust-sep { display: block; width: 1px; height: calc(var(--s) * 50); background: #E2D9CE; }
.pillar { display: flex; gap: calc(var(--s) * 18); padding-left: calc(var(--s) * 28); padding-right: calc(var(--s) * 10); }
.pillar .i { width: calc(var(--s) * 40); height: calc(var(--s) * 44); min-width: 34px; min-height: 36px; color: #E39816; margin-top: 1px; }
.pillar.africa .i { color: var(--terra); }
.pillar h3 { font-size: max(19px, calc(var(--s) * 17.5)); font-weight: 700; color: #1E1B19; line-height: 1.15; }
.pillar p { margin-top: calc(var(--s) * 6); font-size: max(13px, calc(var(--s) * 10.2)); line-height: 1.65; color: #5F5A55; max-width: 32ch; }

/* Plateforme intégrée */
.platform { position: relative; overflow: clip; padding-bottom: calc(var(--s) * 90); }
.platform-brush { position: absolute; left: 0; top: 1px; width: calc(var(--s) * 205); height: auto; pointer-events: none; }
.platform-copy { position: relative; z-index: 2; padding: calc(var(--s) * 90) 0 0 calc(var(--s) * 79); width: calc(var(--s) * 500); }
.platform-copy .eyebrow { font-size: max(10px, calc(var(--s) * 9.2)); line-height: 1.6; }
.platform-copy .rule { margin-top: calc(var(--s) * 8); width: calc(var(--s) * 24); }
.platform-copy h2 { margin-top: calc(var(--s) * 23); font-size: max(31px, calc(var(--s) * 42)); line-height: 1.06; }
.platform-copy p { margin-top: calc(var(--s) * 18); font-size: max(14px, calc(var(--s) * 11.5)); line-height: 1.7; color: var(--text); }
.modules { margin-top: calc(var(--s) * 30); }
.modules .eyebrow { color: var(--muted); font-size: max(10px, calc(var(--s) * 8.6)); }
.module-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.module-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--brown); border-radius: 99px; padding: 5px 14px 6px; font-family: var(--font-serif); font-size: max(16px, calc(var(--s) * 12)); font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.module-tabs button:hover { border-color: var(--terra-line); }
.module-tabs button[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.showcase { position: absolute; top: calc(var(--s) * 45); right: 0; left: calc((100% - min(100%, calc(var(--s) * 1122))) / 2 + var(--s) * 589); display: flex; align-items: flex-start; }
.feature-card { position: relative; z-index: 3; width: calc(var(--s) * 170); min-width: 150px; margin-top: calc(var(--s) * 18); background: var(--surface); border-radius: calc(var(--s) * 16); box-shadow: 0 calc(var(--s) * 12) calc(var(--s) * 34) rgba(35, 26, 18, .09); padding: calc(var(--s) * 24) calc(var(--s) * 18) calc(var(--s) * 24) calc(var(--s) * 21); }
.feature-card h3 { margin-top: calc(var(--s) * 14); font-size: max(21px, calc(var(--s) * 20.5)); line-height: 1.12; }
.feature-card p { margin-top: calc(var(--s) * 13); font-size: max(11px, calc(var(--s) * 9.2)); line-height: 1.75; color: #6D6863; }
.feature-card .link-arrow { margin-top: calc(var(--s) * 24); font-size: max(12px, calc(var(--s) * 9.6)); }
.panel-frame { flex: 1; min-width: 0; background: #EEE9E3; border-radius: calc(var(--s) * 15) 0 0 calc(var(--s) * 15); padding: calc(var(--s) * 8) 0 calc(var(--s) * 8) calc(var(--s) * 9); }
.panel-frame .ui { border-radius: calc(var(--s) * 10) 0 0 calc(var(--s) * 10); border-right: 0; min-height: calc(var(--s) * 300); }
[hidden] { display: none !important; }
.module { display: flex; align-items: flex-start; width: 100%; }
ol.steps, ol.timeline, ol.next-steps { list-style: none; margin: 0; padding: 0; }
ol.steps { margin-top: calc(var(--s) * 44); }
ol.timeline { margin-top: calc(var(--s) * 36); }
ol.next-steps { margin-top: calc(var(--s) * 32); }

/* ---------- Mini-interfaces (illustrations HTML) ---------- */
.ui { position: relative; background: var(--panel); border: 1px solid #ECE6DF; border-radius: calc(var(--s) * 10); padding: calc(var(--s) * 18) calc(var(--s) * 16); font-size: max(10.5px, calc(var(--s) * 7.6)); color: #4A4541; line-height: 1.4; overflow: hidden; }
.ui-title { font-size: max(13px, calc(var(--s) * 10.6)); font-weight: 500; color: #1F1C1A; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui-tools { display: grid; grid-template-columns: 1fr calc(var(--s) * 140); gap: calc(var(--s) * 7); margin-top: calc(var(--s) * 18); max-width: calc(var(--s) * 330); }
.ui-input { display: flex; align-items: center; gap: 6px; height: max(24px, calc(var(--s) * 22)); padding: 0 8px; border: 1px solid #E6E0D8; border-radius: 4px; background: #fff; color: #9A938C; white-space: nowrap; overflow: hidden; }
.ui-input .i { width: 1.1em; height: 1.1em; }
.ui-input.select { justify-content: space-between; color: #3C3835; }
.ui-count { margin-top: calc(var(--s) * 13); color: #8A837C; }
.ui-table { margin-top: calc(var(--s) * 12); max-width: calc(var(--s) * 340); }
.ui-tr { display: grid; grid-template-columns: calc(var(--s) * 128) calc(var(--s) * 118) 1fr; align-items: center; min-height: max(30px, calc(var(--s) * 29)); border-bottom: 1px solid #EFEAE4; padding-left: calc(var(--s) * 6); }
.ui-tr.head { min-height: max(20px, calc(var(--s) * 17)); background: #F3EFEA; border: 0; border-radius: 3px; font-size: max(8.5px, calc(var(--s) * 6)); letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: #8E867E; }
.ui-person { display: flex; align-items: center; gap: calc(var(--s) * 9); font-weight: 500; color: #24201D; white-space: nowrap; }
.ui-person img, .ui-av { width: max(20px, calc(var(--s) * 19)); height: max(20px, calc(var(--s) * 19)); border-radius: 50%; flex: none; }
.ui-av { display: grid; place-items: center; background: #F3D9C9; color: #8A3A17; font-size: .8em; font-weight: 600; }
.ui-dim { color: #7D766F; white-space: nowrap; }
.ui-status { color: var(--green); display: inline-flex; align-items: center; gap: .45em; }
.ui-status::before { content: ''; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }
.ui-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(rgba(251, 250, 248, 0), var(--panel) 85%); pointer-events: none; }
.ui-steps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: calc(var(--s) * 14); }
.ui-step { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 99px; border: 1px solid #E3DCD3; background: #fff; color: #6E6761; white-space: nowrap; }
.ui-step b { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: #EEE9E3; font-size: .85em; }
.ui-step.done { background: #E9F3EC; border-color: #CFE5D6; color: var(--green); }
.ui-step.done b { background: var(--green); color: #fff; }
.ui-step.now { background: #FBE9C6; border-color: #F1CF8C; color: #6E4300; }
.ui-step.now b { background: var(--gold); color: #fff; }
.ui-grid4 { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; align-items: center; min-height: max(30px, calc(var(--s) * 28)); border-bottom: 1px solid #EFEAE4; padding: 0 calc(var(--s) * 6); gap: 6px; }
.ui-grid4.head { min-height: max(20px, calc(var(--s) * 17)); background: #F3EFEA; border: 0; border-radius: 3px; font-size: max(8.5px, calc(var(--s) * 6)); letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: #8E867E; }
.ui-grid4 > :not(:first-child) { text-align: right; }
.ui-flag { color: #9A4A07; background: #FCEBD7; border-radius: 99px; padding: 1px 6px; font-weight: 600; white-space: nowrap; justify-self: end; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--s) * 8); margin-top: calc(var(--s) * 14); }
.ui-kpi { background: #fff; border: 1px solid #EEE8E1; border-radius: 6px; padding: calc(var(--s) * 9) calc(var(--s) * 10); }
.ui-kpi small { display: block; color: #8A837C; }
.ui-kpi strong { display: block; margin-top: 3px; font-size: 1.55em; font-weight: 600; color: #1F1C1A; letter-spacing: -.02em; }
.ui-kpi em { font-style: normal; color: var(--green); font-size: .9em; }
.ui-list { margin-top: calc(var(--s) * 12); display: grid; gap: 6px; }
.ui-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #EEE8E1; border-radius: 6px; padding: 7px 9px; }
.ui-li .ui-dim { white-space: normal; }
.ui-progress { margin-top: calc(var(--s) * 12); height: 7px; border-radius: 99px; background: #EEE9E3; overflow: hidden; }
.ui-progress span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.ui-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: calc(var(--s) * 12); text-align: center; max-width: calc(var(--s) * 250); }
.ui-cal span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-variant-numeric: tabular-nums; }
.ui-cal .h { color: #9A938C; font-weight: 600; font-size: .85em; aspect-ratio: auto; }
.ui-cal .we { color: #A49D96; }
.ui-cal .ferie { background: #FBE1D3; color: #9C3A12; border-radius: 4px; }
.ui-cal .ech { background: var(--gold); color: #fff; font-weight: 700; }
.ui-cal .clo { box-shadow: inset 0 0 0 1.5px var(--green-action); color: var(--green); font-weight: 700; }
.ui-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: #6E6761; }
.ui-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ui-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ui-two { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--s) * 12); margin-top: calc(var(--s) * 12); }
.ui-box { background: #fff; border: 1px solid #EEE8E1; border-radius: 6px; padding: 10px; }
.ui-box small { color: #8A837C; display: block; }
.ui-box strong { display: block; font-size: 1.35em; color: #1F1C1A; margin-top: 2px; letter-spacing: -.01em; }
.ui-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ui-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #E3DCD3; background: #fff; border-radius: 5px; padding: 5px 8px; color: #3C3835; white-space: nowrap; }
.ui-btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.ui-btn .i { width: 1.15em; height: 1.15em; }
.ui-chart { margin-top: 10px; height: max(90px, calc(var(--s) * 84)); }
.ui-chart svg { width: 100%; height: 100%; }
.ui-months { display: flex; justify-content: space-between; color: #9A938C; font-size: .85em; margin-top: 4px; }
/* version lisible pour les pages intérieures */
.ui--lg { font-size: max(12.5px, calc(var(--s) * 9.2)); padding: calc(var(--s) * 22); box-shadow: var(--shadow); }
.ui--lg .ui-title { font-size: max(15px, calc(var(--s) * 12)); }
.ui--lg .ui-table, .ui--lg .ui-tools { max-width: none; }
.ui--lg .ui-tr { grid-template-columns: 1.3fr 1fr .8fr; }
.ui--lg .ui-cal { max-width: 320px; }

/* ---------- Sections génériques ---------- */
.section { padding: calc(var(--s) * 88) 0; position: relative; }
.section .wrap { padding-inline: calc(var(--s) * 79) calc(var(--s) * 52); }
.section-head { max-width: calc(var(--s) * 620); }
.section-head .rule { margin-top: calc(var(--s) * 8); }
.section-head h2 { margin-top: calc(var(--s) * 22); font-size: var(--t-h2); line-height: 1.06; }
.section-head .lead { margin-top: calc(var(--s) * 16); }
.section.tint { background: var(--bg-band); }
.section.soft { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--s) * 18); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--s) * 18); }
.card { background: var(--surface); border-radius: var(--radius); padding: calc(var(--s) * 24); box-shadow: var(--shadow); }
.card h3 { font-size: var(--t-h3); line-height: 1.15; }
.card p { margin-top: 10px; font-size: var(--t-small); }
.card .icon-tile { margin-bottom: calc(var(--s) * 16); }
.checks { display: grid; gap: 9px; margin-top: calc(var(--s) * 18); }
.checks li { position: relative; padding-left: 28px; font-size: var(--t-small); color: #514C47; }
.checks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: #E6F2EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A7843' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.note { font-size: var(--t-xs); color: var(--muted); margin-top: 14px; }

/* Pensée ici (fond brun) */
.here { background: var(--brown); color: rgba(255, 250, 227, .78); overflow: hidden; }
.here .motif-strip { position: absolute; left: 0; right: 0; height: calc(var(--s) * 30); min-height: 22px; background: url(../img/motif.png) left center / auto 100% repeat-x; opacity: .85; }
.here .motif-strip.top { top: calc(var(--s) * 26); }
.here .eyebrow { color: var(--gold); }
.here .rule { background: var(--gold); }
.here h2 { color: var(--ivory); font-family: var(--font-serif); font-weight: 700; font-size: max(36px, calc(var(--s) * 50)); line-height: 1.04; }
.here .lead { color: rgba(255, 250, 227, .75); }
.here-inner { padding-top: calc(var(--s) * 40); }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: calc(var(--s) * 44); background: rgba(255, 250, 227, .12); border: 1px solid rgba(255, 250, 227, .12); border-radius: var(--radius); overflow: hidden; }
.word { background: var(--brown); padding: calc(var(--s) * 26) calc(var(--s) * 24) calc(var(--s) * 24); display: grid; gap: 6px; align-content: start; position: relative; }
.word b { font-family: var(--font-serif); font-weight: 700; font-size: max(34px, calc(var(--s) * 44)); line-height: 1; color: var(--ivory); letter-spacing: .01em; }
.word span { color: var(--clay); font-size: var(--t-small); }
.word small { color: rgba(255, 250, 227, .6); font-size: var(--t-xs); }
.word .ok { position: absolute; top: calc(var(--s) * 22); right: calc(var(--s) * 22); width: 22px; height: 22px; border-radius: 50%; background: var(--green-action); color: #0E2A17; display: grid; place-items: center; }
.word .ok .i { width: 13px; height: 13px; stroke-width: 3; }
.here .note { color: rgba(255, 250, 227, .5); }

/* Étapes de paie */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--s) * 14); margin-top: calc(var(--s) * 44); counter-reset: st; position: relative; }
.steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: calc(max(34px, var(--s) * 34) / 2); height: 1px; background: repeating-linear-gradient(90deg, var(--terra-line) 0 6px, transparent 6px 12px); }
.step { position: relative; }
.step-n { display: grid; place-items: center; width: max(34px, calc(var(--s) * 34)); height: max(34px, calc(var(--s) * 34)); border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: var(--t-small); box-shadow: 0 0 0 6px var(--bg); position: relative; }
.step h3 { margin-top: calc(var(--s) * 16); font-size: var(--t-h3); }
.step p { margin-top: 6px; font-size: var(--t-small); }

/* Vidéo */
.video-wrap { display: grid; grid-template-columns: 1fr; gap: calc(var(--s) * 30); }
.video-wrap .video-frame { max-width: calc(var(--s) * 900); }
.video-frame { background: #EEE7DF; border-radius: calc(var(--s) * 16); padding: calc(var(--s) * 10); box-shadow: var(--shadow); }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: calc(var(--s) * 9); background: #F5EFE4; }

/* Calendrier */

/* Bandeau d'appel final */
.cta { position: relative; background: var(--brown); color: rgba(255, 250, 227, .8); overflow: hidden; }
.cta-art { position: absolute; right: 0; top: 0; width: min(64%, calc(var(--s) * 640)); aspect-ratio: 1008 / 243; background: url(../img/laterite-cut.webp) right top / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.cta .wrap { padding: calc(var(--s) * 96) calc(var(--s) * 52) calc(var(--s) * 88) calc(var(--s) * 79); }
.cta h2 { color: var(--ivory); font-size: max(36px, calc(var(--s) * 50)); line-height: 1.04; max-width: 15ch; position: relative; }
.cta p { margin-top: 14px; max-width: 46ch; position: relative; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: calc(var(--s) * 30); position: relative; }

/* Pied de page */
.footer { background: #1A130D; color: rgba(255, 250, 227, .62); font-size: var(--t-small); }
.footer .motif-strip { height: 24px; background: url(../img/motif.png) left center / auto 100% repeat-x; opacity: .55; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: calc(var(--s) * 60) calc(var(--s) * 52) calc(var(--s) * 36) calc(var(--s) * 79); }
.footer .flogo { width: 128px; }
.footer .ftag { margin-top: 14px; font-family: var(--font-serif); font-weight: 700; color: var(--clay); font-size: 19px; }
.footer h4 { color: var(--ivory); font-size: 21px; margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: rgba(255, 250, 227, .78); text-decoration: none; }
.footer ul a { font-family: var(--font-serif); font-weight: 700; font-size: 17.5px; }
.footer a:hover { color: var(--gold); }
.footer .footer-bottom { border-top: 1px solid rgba(255, 250, 227, .1); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding-block: 18px 26px; grid-template-columns: none; font-size: 12.5px; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: clip; }
.page-hero-art { position: absolute; top: 0; right: 0; width: calc(var(--s) * 620); height: calc(var(--s) * 220); background: url(../img/laterite-bandeau.webp) right top / cover no-repeat; -webkit-mask-image: radial-gradient(120% 100% at 100% 0, #000 45%, transparent 78%); mask-image: radial-gradient(120% 100% at 100% 0, #000 45%, transparent 78%); }
.page-hero .wrap { padding: calc(var(--sh) * 176 + var(--s) * 10) calc(var(--s) * 52) calc(var(--s) * 56) calc(var(--s) * 79); }
.page-hero h1 { margin-top: calc(var(--s) * 22); font-size: var(--t-h1); line-height: 1.02; max-width: 17ch; }
.page-hero .lead { margin-top: calc(var(--s) * 20); max-width: 60ch; font-size: max(16px, calc(var(--s) * 13)); }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(var(--s) * 28); }
.anchors a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 15px 6px; font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; color: var(--brown); text-decoration: none; transition: border-color .2s; }
.anchors a:hover { border-color: var(--terra-line); }
.anchors .i { color: var(--gold); }

/* Fonctionnalités */
.feature { display: grid; grid-template-columns: 1fr 1.08fr; gap: calc(var(--s) * 64); align-items: center; padding: calc(var(--s) * 56) 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.feature:first-of-type { border-top: 0; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h2 { margin-top: calc(var(--s) * 16); font-size: max(29px, calc(var(--s) * 34)); line-height: 1.06; }
.feature-copy > p { margin-top: 12px; }
.feature-copy .eyebrow { margin-top: calc(var(--s) * 18); }
.soon-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--terra-line); border-radius: var(--radius); padding: calc(var(--s) * 22); }
.table-scroll { overflow-x: auto; }

/* Conformité */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--s) * 18); margin-top: calc(var(--s) * 36); }
.ref { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--s) * 22) calc(var(--s) * 24); }
.ref h3 { font-size: 21px; color: var(--ink); }
.ref table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.ref th { text-align: right; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 0 8px 12px; }
.ref th:first-child { text-align: left; padding-left: 0; }
.ref td { padding: 7px 0 7px 12px; border-top: 1px solid #F0EBE5; text-align: right; color: var(--ink); white-space: nowrap; }
.ref td:first-child { text-align: left; padding-left: 0; color: #514C47; white-space: normal; }
.holidays { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-top: calc(var(--s) * 30); }
.holiday { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(35, 26, 18, .05); font-size: var(--t-small); color: var(--ink); }
.holiday .d { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: #FBE1D3; color: #8F3410; line-height: 1.05; text-align: center; font-weight: 600; font-size: 12px; }
.holiday .d b { display: block; font-size: 22px; font-family: var(--font-serif); font-weight: 700; color: #6E2709; }
.doc-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: var(--t-small); margin-top: calc(var(--s) * 30); }
.doc-table th, .doc-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #EFEAE4; }
.doc-table th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #FBF8F4; }
.doc-table td:first-child { color: var(--ink); font-weight: 500; }
.doc-table tr:last-child td { border-bottom: 0; }
.law { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--s) * 18); margin-top: calc(var(--s) * 30); }
.law .card h3 { font-size: max(21px, calc(var(--s) * 18)); }
.law .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }

/* FAQ */
.faq { margin-top: calc(var(--s) * 30); border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; color: var(--ink); font-weight: 500; font-size: max(16px, calc(var(--s) * 13)); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--terra); border-bottom: 1.5px solid var(--terra); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; font-size: var(--t-small); max-width: 70ch; }

/* Mise en place */
.timeline { display: grid; gap: 0; margin-top: calc(var(--s) * 36); position: relative; max-width: 900px; }
.tl { display: grid; grid-template-columns: max(44px, calc(var(--s) * 44)) 1fr; gap: calc(var(--s) * 22); position: relative; padding-bottom: calc(var(--s) * 30); }
.tl:not(:last-child)::before { content: ''; position: absolute; left: calc(max(44px, var(--s) * 44) / 2); top: max(44px, calc(var(--s) * 44)); bottom: 0; width: 1px; background: repeating-linear-gradient(var(--terra-line) 0 5px, transparent 5px 10px); }
.tl-n { display: grid; place-items: center; width: max(44px, calc(var(--s) * 44)); height: max(44px, calc(var(--s) * 44)); border-radius: 50%; background: var(--surface); border: 1.5px solid var(--gold); color: var(--brown); font-weight: 700; }
.tl h3 { font-size: var(--t-h3); padding-top: 8px; }
.tl p { margin-top: 6px; font-size: var(--t-small); }
.tl .chip { margin-top: 10px; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: calc(var(--s) * 22); align-items: start; background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: calc(var(--s) * 26); box-shadow: var(--shadow); }
.callout h3 { font-size: var(--t-h3); }
.callout p { margin-top: 8px; font-size: var(--t-small); }

/* Ressources */
.res-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: calc(var(--s) * 48); align-items: start; margin-top: calc(var(--s) * 36); }
.form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--s) * 28); display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--brown); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #DDD4C9; background: #FFFDFB; border-radius: 6px; padding: 11px 12px; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 152, 22, .2); }
.field .err { display: none; font-size: 12.5px; color: #B3261E; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .err { display: block; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: #5B5650; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); }
.consent.invalid { color: #B3261E; }
.form .btn { justify-self: start; }
.form-note { font-size: 12.5px; color: var(--muted); }
.success { display: grid; gap: 12px; background: #F1F7F2; border: 1px solid #CFE5D6; border-radius: var(--radius); padding: calc(var(--s) * 26); }
.success h3 { color: var(--green); font-size: var(--t-h3); display: flex; align-items: center; gap: 10px; }
.success p { font-size: var(--t-small); color: #3F4A42; }
.thumb-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.sim { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: calc(var(--s) * 36); }
.sim-in { padding: calc(var(--s) * 28); display: grid; gap: 16px; align-content: start; background: #FDFBF8; border-right: 1px solid #EFEAE4; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 8px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 9px 12px; border-radius: 6px; font-weight: 600; font-size: 13.5px; color: #6E6761; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 26, 18, .12); }
.money { position: relative; }
.money input { padding-right: 62px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.money span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sim-out { padding: calc(var(--s) * 28); }
.sim-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-big div { border-radius: 10px; padding: 14px 16px; background: var(--bg-band); }
.sim-big div.main { background: var(--brown); color: var(--ivory); }
.sim-big small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.sim-big strong { display: block; margin-top: 4px; font-size: max(22px, calc(var(--s) * 21)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: inherit; font-weight: 600; }
.sim-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sim-table td { padding: 7px 0; border-bottom: 1px solid #F0EBE5; }
.sim-table td:last-child { text-align: right; white-space: nowrap; color: var(--ink); }
.sim-table tr.sub td { color: var(--muted); font-size: 13px; padding-left: 12px; }
.sim-table tr.sub td:last-child { color: #6E6761; }
.sim-table tr.total td { font-weight: 600; color: var(--ink); border-bottom: 0; padding-top: 10px; }
.sim-table caption { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--terra); padding-top: 18px; }
.guides { display: grid; align-items: start; grid-template-columns: repeat(2, 1fr); gap: calc(var(--s) * 16); margin-top: calc(var(--s) * 34); }
.guide { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--s) * 22) calc(var(--s) * 24); }
.guide summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h3 { font-size: var(--t-h3); }
.guide summary h3 .sub { display: block; font-family: var(--font-sans); font-size: 13.5px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.guide summary::after { content: '+'; font-size: 22px; color: var(--terra); line-height: 1; }
.guide[open] summary::after { content: '–'; }
.guide .body { margin-top: 14px; padding-top: 14px; border-top: 1px solid #F0EBE5; }
.guide .body ul { display: grid; gap: 7px; }
.guide .body li { font-size: var(--t-small); padding-left: 16px; position: relative; color: #4D4741; }
.guide .body li::before { content: ''; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.guide .src { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
dialog.lightbox::backdrop { background: rgba(18, 12, 8, .78); }
dialog.lightbox img { width: 100%; height: auto; border-radius: 6px; }
dialog.lightbox .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
/* Téléphone et tablette : le calendrier s'ouvre en plein écran, en grand, et se parcourt du doigt */
@media (max-width: 879px) {
  dialog.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: auto; background: #FFFAE3; overscroll-behavior: contain; }
  dialog.lightbox img { width: 1500px; max-width: none; border-radius: 0; }
  dialog.lightbox .close { position: fixed; top: 12px; right: 12px; z-index: 2; box-shadow: 0 2px 12px rgba(0, 0, 0, .28); }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--brown); color: var(--ivory); padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; z-index: 90; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Démo / contact */
.contact-solo { max-width: calc(var(--s) * 780); }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--s) * 18); margin-top: calc(var(--s) * 32); }

/* ---------- Mobile et tablette ---------- */
@media (max-width: 879px) {
  :root { --s: .8px; --sh: .66px; }
  .wrap { width: 100%; }
  .site-header .wrap { padding-left: 20px; }
  .logo { margin-top: 18px; width: 104px; }
  .burger { top: 18px; right: 16px; }
  .br-d { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { padding: 158px 20px 8px; }
  .hero h1 { font-size: clamp(44px, 12.8vw, 66px); line-height: 1; }
  .hero .eyebrow { line-height: 1.8; }
  .hero-visual { position: relative; order: 2; width: 100%; height: auto; aspect-ratio: 822 / 922; margin-top: 10px; -webkit-mask-image: none; mask-image: none; }
  .hero-actions .btn { flex: 1 1 200px; width: auto !important; }
  .trust .wrap { grid-template-columns: 1fr; gap: 22px; padding: 30px 20px; }
  .trust-sep { display: none; }
  .pillar { padding: 0; }
  .platform-copy { width: auto; padding: 56px 20px 0; }
  .showcase { position: relative; left: auto; right: auto; top: auto; flex-direction: column; padding: 26px 20px 0; gap: 14px; }
  .module { flex-direction: column; gap: 14px; }
  .feature-card { width: 100%; margin: 0; }
  .panel-frame { width: 100%; border-radius: 14px; padding: 8px; }
  .panel-frame .ui { border-radius: 10px; border-right: 1px solid #ECE6DF; }
  .section .wrap, .cta .wrap, .page-hero .wrap { padding-left: 20px; padding-right: 20px; }
  .page-hero .wrap { padding-top: 150px; }
  .page-hero-art { width: 70%; height: 150px; }
  .grid-3, .grid-2, .law, .next-steps, .ref-grid, .guides { grid-template-columns: 1fr; }
  .words { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .step h3 { margin-top: 4px; }
  .step p { grid-column: 2; }
  .video-wrap, .feature, .res-grid, .sim { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .sim-in { border-right: 0; border-bottom: 1px solid #EFEAE4; }
  .footer .wrap { grid-template-columns: 1fr 1fr; padding: 40px 20px 24px; }
  .footer .wrap > :first-child { grid-column: 1 / -1; }
  .footer-bottom .wrap { padding-inline: 20px; }
  .cta-art { width: 94%; opacity: .55; }
  .cta .wrap { padding-top: 120px; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --s: .7px; }
  .words { grid-template-columns: 1fr; }
  .ui-tr { grid-template-columns: 1fr auto; }
  .ui-tr > :nth-child(2) { display: none; }
  .ui-table { overflow-x: auto; }
  .ui-grid4 { min-width: 430px; }
  .ui-tools { grid-template-columns: 1fr; }
  .sim-big { grid-template-columns: 1fr; }
  .menu { padding: 84px 26px 32px; }
  .menu-links a { font-size: 27px; }
}

/* ---------- Encart « Demandez une démo » (répété dans le site) ---------- */
.encart-band { padding: calc(var(--s) * 24) 0; }
.encart-band .wrap { padding-inline: calc(var(--s) * 79) calc(var(--s) * 52); }
.demo-encart { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: calc(var(--s) * 28); align-items: center; background: var(--ivory); border: 1px solid #F0D9A6; border-radius: var(--radius); padding: calc(var(--s) * 34) calc(var(--s) * 32) calc(var(--s) * 28); box-shadow: var(--shadow); }
.demo-encart::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: url(../img/motif.png) left center / auto 100% repeat-x; opacity: .75; }
.demo-encart .de-logo { width: max(52px, calc(var(--s) * 54)); height: auto; }
.demo-encart h2 { font-size: max(30px, calc(var(--s) * 36)); line-height: 1.02; }
.demo-encart p { margin-top: 6px; font-size: var(--t-small); color: #5B5650; max-width: 54ch; }
.feature + .demo-encart, .demo-encart.in-flow { margin: calc(var(--s) * 16) 0 calc(var(--s) * 40); }

/* ---------- Encart « Une question ? Écrivez-nous » (plus discret que l'encart démo) ---------- */
.question-encart { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: calc(var(--s) * 24); align-items: center; background: #FFFDF8; border: 1px solid #F1E6D2; border-radius: var(--radius); padding: calc(var(--s) * 28) calc(var(--s) * 30) calc(var(--s) * 24); }
.question-encart::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: url(../img/motif.png) left center / auto 100% repeat-x; opacity: .4; }
.question-encart .qe-icon { display: grid; place-items: center; width: max(46px, calc(var(--s) * 50)); height: max(46px, calc(var(--s) * 50)); border-radius: 50%; background: var(--ivory); border: 1px solid #F0D9A6; color: var(--gold); }
.question-encart .qe-icon .i { width: 22px; height: 22px; }
.question-encart h2 { font-size: max(24px, calc(var(--s) * 28)); line-height: 1.06; }
.question-encart p { margin-top: 6px; font-size: var(--t-small); color: #5B5650; max-width: 58ch; }

/* ---------- Se connecter (espace client) ---------- */
.login-grid { display: grid; grid-template-columns: 1fr minmax(300px, calc(var(--s) * 400)); gap: calc(var(--s) * 56); align-items: start; }
.login-card { position: relative; z-index: 2; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--s) * 30); display: grid; gap: 16px; }
.login-card h2 { font-size: max(28px, calc(var(--s) * 30)); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.pw button .i { width: 20px; height: 20px; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 13.5px; }
.login-row label { display: inline-flex; align-items: center; gap: 8px; color: #5B5650; }
.login-row input { width: 16px; height: 16px; accent-color: var(--gold); }
.login-row a { color: var(--terra); font-weight: 600; }
.login-card .btn { width: 100%; justify-content: center; gap: 12px; }
.login-msg { font-size: 13.5px; line-height: 1.5; border-radius: 8px; padding: 10px 12px; background: #FCEBD7; color: #7A3B05; }
.login-alt { font-size: 14px; color: var(--text); border-top: 1px solid #F0EBE5; padding-top: 14px; }
.login-alt a { color: var(--ink); font-weight: 600; }

/* ---------- Calendrier de paie : aperçu agrandissable et formulaire ---------- */
.cal-promo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: calc(var(--s) * 56); align-items: center; }
.cal-copy { max-width: none; }
.cal-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--ivory); box-shadow: 0 calc(var(--s) * 18) calc(var(--s) * 44) rgba(35, 26, 18, .14); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.cal-thumb:hover { transform: translateY(-3px); box-shadow: 0 calc(var(--s) * 24) calc(var(--s) * 52) rgba(35, 26, 18, .18); }
.cal-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.cal-thumb img { width: 100%; height: auto; }
.cal-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; background: rgba(35, 26, 18, .84); color: var(--ivory); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.cal-zoom .i { width: 15px; height: 15px; }
.cal-get { margin-top: calc(var(--s) * 44); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--s) * 26) calc(var(--s) * 28); }
.cal-get-head h3 { font-size: max(24px, calc(var(--s) * 26)); }
.cal-get-head p { margin-top: 4px; font-size: var(--t-small); }
.cal-form { box-shadow: none; padding: 0; margin-top: 16px; background: transparent; }
.cal-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.cal-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cal-submit .consent { max-width: 62ch; }
.cal-get .success { margin-top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 13.5px; line-height: 1.5; border-radius: 8px; padding: 10px 12px; background: #FDECEA; color: #8C1D18; }
.form-error a { color: inherit; font-weight: 600; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }


/* ---------- CGU et mentions légales ---------- */
.legal-grid { display: grid; grid-template-columns: calc(var(--s) * 230) 1fr; gap: calc(var(--s) * 56); align-items: start; }
.legal-toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: 14.5px; }
.legal-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; }
.legal-toc a:hover { border-left-color: var(--gold); color: var(--ink); }
.legal-body { max-width: 72ch; }
.legal-body section { padding-bottom: calc(var(--s) * 30); margin-bottom: calc(var(--s) * 30); border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: max(26px, calc(var(--s) * 28)); }
.legal-body h3 { font-size: 19px; margin-top: 18px; }
.legal-body p, .legal-body li { font-size: var(--t-small); color: #4D4741; margin-top: 10px; }
.legal-body ul { list-style: disc; padding-left: 20px; }
.legal-body dl { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 8px 18px; margin: 14px 0 0; font-size: var(--t-small); }
.legal-body dt { color: var(--muted); }
.legal-body dd { margin: 0; color: var(--ink); }
.legal-body a { color: var(--terra); }
.legal-date { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

@media (max-width: 879px) {
  .login-pill { top: 18px; right: 70px; height: 44px; padding: 0 14px 1px 12px; font-size: 16px; }
  .cal-fields { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cal-fields { grid-template-columns: 1fr; }
  .legal-body dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-body dd { margin-bottom: 8px; }
}
@media (max-width: 360px) {
  .login-pill span { display: none; }
  .login-pill { padding: 0 13px; }
}

/* Mobile et tablette : composants dont la règle de base est plus haut dans la feuille */
@media (max-width: 879px) {
  .encart-band .wrap { padding-inline: 20px; }
  .demo-encart { grid-template-columns: 1fr; gap: 16px; }
  .question-encart { grid-template-columns: auto 1fr; gap: 16px; }
  .question-encart .btn { grid-column: 1 / -1; justify-self: start; }
  .login-grid { grid-template-columns: 1fr; }
  .cal-promo { grid-template-columns: 1fr; gap: 26px; }
  .contact-solo { max-width: none; }
}
@media (max-width: 520px) {
  .question-encart { grid-template-columns: 1fr; }
}
