:root {
  --ink: #0b0a10;
  --ink-text: #14131a;
  --light: #f3f0ea;
  --paper: #faf9f6;
  --line: #d3d0c9;
  --radius: 4px;
  --gutter: clamp(20px, 6.67vw, 96px);
  --frise: 0px;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--light);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ─── Navigation : un bandeau de verre cannelé, affleurant ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--light);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 5px, rgba(0, 0, 0, 0.10) 5px 6px, rgba(255, 255, 255, 0) 6px 10px),
    linear-gradient(180deg, rgba(11, 10, 16, 0.62), rgba(11, 10, 16, 0.38));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-light {
  color: var(--ink-text);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, rgba(255, 255, 255, 0) 1px 5px, rgba(20, 19, 26, 0.035) 5px 6px, rgba(255, 255, 255, 0) 6px 10px),
    rgba(250, 249, 246, 0.78);
  box-shadow: inset 0 -1px 0 rgba(20, 19, 26, 0.12);
}

.nav__logo { display: inline-flex; justify-self: start; }
.nav__logo svg { height: 26px; width: auto; display: block; }

.nav__links { display: flex; gap: 40px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links a { opacity: 0.82; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }

.nav__side { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.nav__lang {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav__lang a { opacity: 0.5; }
.nav__lang a:hover { opacity: 1; }

.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav__menu span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 10px;
  color: var(--light);
  background: rgba(16, 15, 22, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.nav__panel[hidden] { display: none; }
.nav__panel a { padding: 14px; border-radius: var(--radius); font-size: 17px; font-weight: 500; }
.nav__panel a:hover { background: rgba(255, 255, 255, 0.08); }

/* ─── Boutons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn svg, .link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg, .link:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--light); color: var(--ink); }
.btn--primary:hover { background: #fff; }
.nav.is-light .btn--primary { background: var(--ink-text); color: var(--paper); }
.nav.is-light .btn--primary:hover { background: #2a2830; }

.btn--ghost {
  color: var(--light);
  background: rgba(11, 10, 16, 0.35);
  box-shadow: inset 0 0 0 1px rgba(243, 240, 234, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(243, 240, 234, 0.7); }

.nav__cta { height: 40px; padding: 0 16px; font-size: 14px; }

/* ─── Mur de verre ─── */
main { position: relative; overflow-x: clip; }

.glass {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  overflow: hidden;
  background:
    var(--ink);
  pointer-events: none;
}
.glass canvas { display: block; width: 100%; height: 100%; }

/* ─── Héros ─── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(640px, 100svh, 1100px);
  padding: 72px var(--gutter) 0;
  color: var(--light);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4.4vh, 48px);
  max-width: 1180px;
  margin-top: -2vh;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.05rem + 6.1vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  animation: rise 1s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: rise 1s var(--ease) 0.12s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ─── Services ─── */
.services {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(96px, 11vw, 160px);
}

.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-text); }
.offers li { border-bottom: 1px solid var(--line); }

.offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.2vw, 44px) 0;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}

.offer::before {
  content: '';
  position: absolute;
  inset: -1px calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--ink-text);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
}

.offer:hover, .offer:focus-visible { color: var(--light); }
.offer:hover::before, .offer:focus-visible::before { transform: scaleY(1); }

.offer__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 0.6rem + 6.1vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.offer__arrow {
  flex: none;
  width: clamp(24px, 2.8vw, 40px);
  height: clamp(24px, 2.8vw, 40px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease);
}
.offer:hover .offer__arrow, .offer:focus-visible .offer__arrow { transform: translateX(8px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 600;
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .nav { height: 60px; padding: 0 8px 0 20px; grid-template-columns: 1fr auto; }
  .nav__links, .nav__lang, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav__logo svg { height: 22px; }
  .hero { padding-top: 60px; }
  .hero__actions .btn { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Logo monochrome ───
   Par défaut : K à trois bandes épaissies, lisible en petit.
   ?logo=cinq : les cinq bandes d'origine en blanc. ?logo=couleur : logo d'origine. */
[data-logo] .nav__logo svg { overflow: visible; }
[data-logo] .nav__logo svg path:not([fill="currentColor"]) { fill: currentColor; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
[data-logo="blanc"] .nav__logo svg path[fill="#E8742E"],
[data-logo="blanc"] .nav__logo svg path[fill="#3E9A7E"] { display: none; }
[data-logo="blanc"] .nav__logo svg path:not([fill="currentColor"]) { stroke: currentColor; stroke-width: 40; stroke-linejoin: miter; }
