/* ═══════════════════════════════════════════════════════════
   VIZARNE — socle commun des pages intérieures
   Palette : Night Blue, Bleu Profond, Bleu Ardoise, Electric Blue,
   Blue Ice, Blanc, Corail Vif. Polices : Bricolage Grotesque
   (largeur variable), Instrument Serif (italique), Geist Mono.
   ═══════════════════════════════════════════════════════════ */
:root {
  --night: #081320; --deep: #1b263b; --slate: #27364d;
  --electric: #3d5afe; --ice: #cbe1f8; --white: #ffffff; --coral: #ff3d5a;

  --bg: var(--night); --fg: var(--white); --muted: rgba(203, 225, 248, .66);
  --line: rgba(203, 225, 248, .14); --line-strong: rgba(203, 225, 248, .3);

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--coral); color: var(--white); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.out { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.out.c-coral { -webkit-text-stroke-color: var(--coral); }
.c-coral { color: var(--coral); }
.c-electric { color: var(--electric); }
.c-ice { color: var(--ice); }
.muted { color: var(--muted); }
.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.dot { color: var(--coral); }

/* ─── Barre de navigation (même pilule que l'accueil) ─── */
.wn-dock {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  height: 72px; padding-inline: var(--gutter);
  background: rgba(8, 19, 32, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wn-logo { font-family: var(--display); font-weight: 700; font-size: 26px; font-stretch: 82%; letter-spacing: -.035em; margin-right: auto; }
.wn-nav { display: flex; gap: 8px; }
.wn-nav a { position: relative; padding: 10px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.wn-nav a:hover, .wn-nav a[aria-current="page"] { color: var(--fg); }
.wn-nav a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .4s var(--ease); }
.wn-nav a[aria-current="page"]::after { transform: scale(1); }
.wn-cta { background: var(--ice); color: var(--night); padding: 13px 20px; border-radius: 999px !important; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; transition: background .3s, color .3s; white-space: nowrap; }
.wn-cta:hover { background: var(--coral); color: var(--white); }
.wn-burger { display: none; width: 40px; height: 34px; position: relative; }
.wn-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.wn-burger span:first-child { top: 13px; } .wn-burger span:last-child { top: 20px; }
.menu-open .wn-burger span:first-child { top: 16.5px; transform: rotate(45deg); }
.menu-open .wn-burger span:last-child { top: 16.5px; transform: rotate(-45deg); }

/* menu plein écran (mobile) */
.wn-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--electric);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 90px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
.menu-open .wn-menu { clip-path: inset(0 0 0 0); }
.wn-menu a { font-family: var(--display); font-weight: 700; font-stretch: 75%; font-size: clamp(48px, 15vw, 96px); line-height: .95; letter-spacing: -.035em; }
.wn-menu a:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.wn-menu a[aria-current="page"] { color: var(--night); }

/* ─── Hero de page ─── */
.p-hero { padding-top: clamp(150px, 18vw, 230px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.p-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 28px; }
.p-kicker::before { content: ''; width: 28px; height: 1px; background: var(--coral); }
.p-title {
  font-family: var(--display); font-weight: 750; font-stretch: 75%;
  font-size: clamp(56px, 12.5vw, 196px); line-height: .88; letter-spacing: -.035em;
}
.p-title .it { font-weight: 400; font-size: 1.04em; letter-spacing: -.03em; }
.p-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.p-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .p-title .line > span { transform: none; }
.p-title .line:nth-child(2) > span { transition-delay: .08s; }
.p-title .line:nth-child(3) > span { transition-delay: .16s; }
.p-lead { margin-top: 36px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }

/* largeur variable au survol : la lettre respire */
.flex-word { transition: font-stretch .7s var(--ease), font-weight .7s var(--ease), letter-spacing .7s var(--ease); }
.flex-word:hover { font-stretch: 112%; font-weight: 250; letter-spacing: -.02em; }

/* ─── Bandeau défilant ─── */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker span { font-family: var(--display); font-size: clamp(30px, 4.4vw, 62px); font-weight: 600; font-stretch: 80%; letter-spacing: -.04em; white-space: nowrap; display: inline-flex; align-items: center; }
.ticker span::after { content: ''; width: .28em; height: .28em; border-radius: 50%; background: var(--coral); margin-inline: .7em; }
.ticker span:nth-child(3n+2) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ice); }
.ticker span:nth-child(3n) { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ─── Blocs de couleur ─── */
.blk { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.blk-ice { background: var(--ice); color: var(--night); --muted: #3c4f69; --line: rgba(8, 19, 32, .14); --line-strong: rgba(8, 19, 32, .3); }
.blk-coral { background: var(--coral); color: var(--white); --muted: rgba(255, 255, 255, .82); --line: rgba(255, 255, 255, .3); }
.blk-electric { background: var(--electric); color: var(--white); --muted: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .28); }
.blk-deep { background: var(--deep); }
.blk-white { background: var(--white); color: var(--night); --muted: #4b5a71; --line: rgba(8, 19, 32, .1); }
.h2 { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(40px, 6.6vw, 104px); line-height: .9; letter-spacing: -.035em; }
.h2 .it { font-weight: 400; }

/* ─── Bouton ─── */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--coral); color: var(--white); transition: background .3s, color .3s, transform .5s var(--ease); }
.btn:hover { background: var(--white); color: var(--night); }
.btn-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: currentColor; }
.btn-ghost:hover > * { color: var(--night); }

/* ─── Révélations ─── */
[data-rv] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-rv].in { opacity: 1; transform: none; }

/* ─── Pied de page ─── */
.wn-foot { padding: clamp(80px, 10vw, 140px) 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.wn-foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.wn-foot h3 { font-family: var(--display); font-weight: 650; font-stretch: 82%; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.04em; max-width: 12ch; }
.wn-foot-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.wn-foot-col .mono { color: var(--muted); margin-bottom: 6px; }
.wn-foot-col a { color: var(--muted); width: fit-content; transition: color .3s; }
.wn-foot-col a:hover { color: var(--coral); }
.wn-foot-mark { margin-top: clamp(56px, 8vw, 100px); font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(88px, 26vw, 400px); line-height: .76; letter-spacing: -.07em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none; transition: color .8s var(--ease); }
.wn-foot-mark:hover { color: var(--electric); -webkit-text-stroke-color: var(--electric); }
.wn-foot-mark b { color: var(--coral); -webkit-text-stroke: 0; }
.wn-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .wn-dock { height: 64px; gap: 12px; }
  .wn-nav { display: none; }
  .wn-burger { display: block; margin-left: auto; }
  .wn-cta { padding: 9px 12px; font-size: 10px; }
  .wn-foot-top { grid-template-columns: 1fr 1fr; }
  .wn-foot-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .wn-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-rv] { opacity: 1; transform: none; }
  .p-title .line > span { transform: none; }
}
.p-title .out + .it, .p-title .it + .out { margin-left: .14em; }
.cta-blk { overflow: hidden; }

/* liens légaux du bas de page */
.wn-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.wn-legal a { color: inherit; transition: color .3s; }
.wn-legal a:hover { color: var(--white); }

/* titre lu par Google et les lecteurs d'écran, invisible à l'écran */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* lien d'accès direct au contenu : invisible, il apparaît quand on navigue au clavier (Tab) */
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 18px; border-radius: 999px; background: #ff3d5a; color: #fff; font: 500 14px/1 'Geist', system-ui, sans-serif; text-decoration: none; transform: translateY(-160%); transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 3px; }

.wn-logo { font-weight: 800; letter-spacing: -.03em; }
.wn-foot-mark { font-size: clamp(64px, 19vw, 300px); letter-spacing: -.045em; }

/* ── Logo officiel Vizarne (fichier SVG fourni, jamais retapé avec une police) ── */
.vz-logo { display: inline-block; height: .8em; width: auto; aspect-ratio: 3270 / 745; vertical-align: -.02em; overflow: hidden; }
.vz-logo .vz-txt path { fill: currentColor; }
.vz-logo .vz-dot { fill: #ff3d5a; }
/* grand logo du bas de page : lettres en contour fin, remplies de bleu au survol, point corail plein */
.wn-foot-mark .vz-txt path { fill: transparent; stroke: var(--line-strong); stroke-width: 1px; vector-effect: non-scaling-stroke; transition: fill .8s var(--ease), stroke .8s var(--ease); }
.wn-foot-mark:hover .vz-txt path { fill: var(--electric); stroke: var(--electric); }
