/* Shared styles for the legal pages (mentions légales, confidentialité) */
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1c1c1c;
  --grey: #878787;
  --white: #ffffff;
  --line: rgba(135, 135, 135, .45);
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Roobert", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }

/* Header (same as the other pages) */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(135, 135, 135, .2); transition: transform .6s var(--ease);
}
.header.hide { transform: translateY(-100%); }
.brand { position: relative; height: 38px; width: 190px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border-radius: 999px; border: 1px solid currentColor; font-size: 15px; line-height: 1; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover { color: var(--white); }
.btn:hover::before { transform: none; }
.btn .arrow { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Intro */
.intro { padding: clamp(130px, 20vh, 200px) var(--gutter) clamp(40px, 6vh, 64px); display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; align-items: end; border-bottom: 1px solid var(--line); }
.intro h1 { margin: 0 0 18px; font-size: clamp(48px, 7.5vw, 116px); font-weight: 700; line-height: .92; letter-spacing: -.045em; }
.intro p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--grey); max-width: 34em; }

/* Legal content: title left, text right, like the case-study fact sheets */
.legal { padding: 0 var(--gutter) clamp(96px, 15vh, 170px); }
.legal-block { display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; padding: clamp(36px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); }
.legal-block h2 { margin: 0; font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.legal-text { max-width: 44em; font-size: 16px; line-height: 1.65; }
.legal-text p { margin: 0 0 14px; }
.legal-text p:last-child { margin-bottom: 0; }
.legal-text h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 700; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal-text li { margin-bottom: 6px; }
.legal-text dl { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 28px; margin: 0; }
.legal-text dt { color: var(--grey); }
.legal-text dd { margin: 0; }
.legal-date { color: var(--grey); font-size: 14px; margin-top: 24px !important; }

/* Text links: same animated underline as the rest of the site (width, so the thickness never changes) */
.text-link { position: relative; padding-bottom: 1px; }
.text-link::before, .text-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; }
.text-link::after { left: auto; right: 0; transition: width .45s var(--ease) .3s; }
.text-link::before { width: 0; transition: width .45s var(--ease); }
.text-link:hover::after { width: 0; transition-delay: 0s; }
.text-link:hover::before { width: 100%; transition-delay: .3s; }

/* CTA + footer */
.case-cta { background: var(--ink); color: var(--white); padding: clamp(96px, 15vh, 170px) var(--gutter) clamp(64px, 10vh, 110px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.case-cta h2 { margin: 0; font-weight: 700; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.04em; }
.case-cta h2 em { font-style: normal; color: var(--grey); white-space: nowrap; }
.case-cta .btn { justify-self: start; }
.case-cta .btn:hover { color: var(--white); }
.foot-bar { background: var(--ink); color: var(--grey); padding: 28px var(--gutter); border-top: 1px solid rgba(135,135,135,.3); display: flex; justify-content: space-between; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot-bar a:hover, .foot-bar a[aria-current="page"] { color: var(--white); }

@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .intro, .legal-block, .case-cta { grid-template-columns: 1fr; }
  .legal-block { gap: 16px; }
}
@media (max-width: 640px) {
  .brand { width: 150px; height: 30px; }
  .header .btn { padding: 11px 16px; font-size: 14px; }
  .legal-text dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-text dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
