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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: inherit;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--pv-blue); color: var(--night-900); }

:focus-visible {
  outline: 2px solid var(--pv-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main, .site-footer { overflow-x: clip; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--night-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Icônes ---------- */
.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Surtitres et en-têtes de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pv-blue-ink);
}
.eyebrow--light { color: var(--pv-blue); }

/* les barres du logo, en miniature */
.bars { display: inline-flex; gap: 2px; height: 14px; flex: none; }
.bars i { width: 3px; height: 10px; background: var(--c); }
.bars i:nth-child(even) { margin-top: 4px; }
.bars i:nth-child(1) { --c: var(--pv-blue); }
.bars i:nth-child(2) { --c: var(--pv-green); }
.bars i:nth-child(3) { --c: var(--pv-yellow); }
.bars i:nth-child(4) { --c: var(--pv-red); }
.bars i:nth-child(5) { --c: var(--pv-brick); }
.bars i:nth-child(6) { --c: var(--pv-purple); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head h2 {
  margin-top: 14px;
  font-size: var(--fs-h2);
  letter-spacing: -.025em;
}
.section-head p {
  margin: 16px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), background-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
/* reflet qui traverse le bouton au survol */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  z-index: -1;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg) translateX(0);
  opacity: 0;
}
.btn:hover::after { animation: btn-shine .8s var(--ease-out); }
@keyframes btn-shine {
  from { opacity: 1; transform: skewX(-20deg) translateX(0); }
  to { opacity: 0; transform: skewX(-20deg) translateX(520%); }
}

.btn--primary { background: var(--pv-blue); color: var(--night-900); }
.btn--primary:hover { background: var(--pv-blue-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--night-900); }
.btn--dark { background: var(--night-800); color: var(--white); }
.btn--dark:hover { background: var(--night-900); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 14.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pv-blue-ink);
}
.link-arrow .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform .35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Photos : révélation par balayage ---------- */
.frame { position: relative; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--pv-blue);
  box-shadow: 0 0 18px 2px rgba(88, 187, 226, .75);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Titres révélés ligne par ligne ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- États initiaux des animations ----------
   Masqués seulement si le script d'animation tourne (classe posée dans <head>),
   et réaffichés d'office par .anim-off au bout de 3 s si rien ne s'est lancé. */
.js-anim [data-intro] { opacity: 0; }
.js-anim [data-intro-lines] .line-mask > span { transform: translateY(105%); }
.anim-off [data-intro] { opacity: 1 !important; transform: none !important; }
.anim-off [data-intro-lines] .line-mask > span { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
