/* =========================================================
   POLYANCE — Base / reset / typographie / layout partagé
   ========================================================= */

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:400; color:var(--ink); text-wrap:balance; }
p{ margin:0; }

:focus-visible{
  outline:2.5px solid var(--orange);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding-inline:var(--gutter);
}

/* ancre de section : compense le header flottant fixed pour qu'un lien
   #section n'affiche jamais le titre caché dessous */
main section[id]{ scroll-margin-top:110px; }

.visually-hidden{
  position:absolute; 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; top:-60px; left:16px; z-index:1000;
  background:var(--navy); color:#fff; padding:12px 18px;
  border-radius:var(--radius-s); font-family:var(--font-body); font-weight:600;
  transition:top var(--dur-s) var(--ease);
}
.skip-link:focus{ top:16px; }

/* ---------- type scale ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:12.5px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--orange-deep);
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%;
  background:var(--orange); flex:none;
}

h1.h1, .h1{
  font-size:clamp(42px,7.4vw,92px);
  line-height:1.01;
  letter-spacing:-0.02em;
  font-weight:700;
}
h2.h2, .h2{
  font-size:clamp(32px,5vw,54px);
  line-height:1.08;
  letter-spacing:-0.015em;
  font-weight:700;
}
h3.h3, .h3{
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.25;
  font-weight:700;
}
em, .accent-italic{ font-style:italic; font-weight:400; color:var(--blue); }

.lede{
  font-family:var(--font-body);
  font-weight:500;
  font-size:clamp(18px,1.9vw,21px);
  color:var(--ink-soft);
  line-height:1.55;
}

.section{ padding:clamp(88px,13vw,168px) 0; position:relative; }
.section-tint{ background:var(--blue-tint); }
.section-grey{ background:var(--grey-tint); }
.section-navy{ background:var(--navy); color:#fff; }
.section-navy h1, .section-navy h2, .section-navy h3{ color:#fff; }
.section-navy .lede{ color:rgba(255,255,255,.72); }
.section-blue{ background:var(--blue); color:#fff; }
.section-blue h1, .section-blue h2, .section-blue h3{ color:#fff; }
.section-blue .lede{ color:rgba(255,255,255,.78); }

.section-head{ max-width:660px; margin-bottom:clamp(48px,6vw,80px); }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head .eyebrow{ margin-bottom:18px; }
.section-head h2{ margin-bottom:18px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:11px;
  font-family:var(--font-body); font-weight:600; font-size:15.5px;
  padding:17px 30px; border-radius:var(--radius-pill);
  border:1.5px solid transparent; cursor:pointer;
  transition:transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  white-space:nowrap;
}
.btn svg{ transition:transform var(--dur-s) var(--ease); flex:none; }
.btn:hover svg{ transform:translateX(4px); }
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:scale(.97); }

.btn-primary{
  background:var(--orange); color:#fff;
  box-shadow:0 14px 30px -10px rgba(252,125,30,.5);
}
.btn-primary:hover{ background:var(--orange-deep); box-shadow:0 18px 36px -10px rgba(226,101,10,.55); }

.btn-ghost{
  background:transparent; color:var(--blue); border-color:var(--line);
}
.btn-ghost:hover{ background:var(--blue); color:#fff; border-color:var(--blue); }

.section-navy .btn-ghost, .section-blue .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.55); }
.section-navy .btn-ghost:hover, .section-blue .btn-ghost:hover{ background:#fff; color:var(--blue); }

.btn-sm{ padding:11px 20px; font-size:14px; }

/* ---------- links ---------- */
.link-underline{
  position:relative; font-weight:600; color:var(--blue); padding-bottom:2px;
}
.link-underline::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:currentColor; transition:right var(--dur-m) var(--ease);
}
.link-underline:hover::after{ right:0; }

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-scale{ opacity:0; transform:scale(.94); transition:opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal-scale.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-scale{ opacity:1; transform:none; transition:none; }
}

/* stagger helper: set --i on children */
.stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* ---------- footer ---------- */
.site-footer{
  background:#0D1322; color:rgba(255,255,255,.7);
  padding:52px 0 28px;
  position:relative; overflow:hidden;
  border-top:1px solid rgba(255,255,255,.08);
}
.site-footer .container{ position:relative; z-index:1; }
.footer-y{
  position:absolute; z-index:0; right:-94px; bottom:-36px;
  width:440px; height:auto; max-width:none;
  opacity:.04;
  pointer-events:none;
}
.footer-top{
  display:flex; justify-content:flex-start; gap:clamp(64px, 9vw, 140px); flex-wrap:wrap;
  padding-bottom:36px; margin-bottom:28px; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{ max-width:340px; }
.footer-brand img{ height:30px; width:auto; margin-bottom:16px; }
.footer-brand p{ max-width:34ch; font-size:14.5px; line-height:1.55; }
.footer-nav{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-nav h4{ font-family:var(--font-body); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.5); margin-bottom:16px; }
.footer-nav ul{ display:flex; flex-direction:column; gap:11px; }
.footer-nav a{ font-size:15px; color:rgba(255,255,255,.82); transition:color var(--dur-s); }
.footer-nav a:hover{ color:var(--orange); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:13px; color:rgba(255,255,255,.55); }
.footer-bottom a{ color:rgba(255,255,255,.6); font-weight:500; transition:color var(--dur-s); }
.footer-bottom a:hover{ color:var(--orange); }
.footer-legal{ display:flex; align-items:center; gap:10px; }
.footer-legal .sep{ color:rgba(255,255,255,.3); }

@media (max-width:640px){
  .footer-top{ flex-direction:column; gap:32px; }
  .footer-nav{ gap:32px; }
  .footer-y{ width:200px; opacity:.03; right:-40px; bottom:-16px; }
  .footer-bottom{ align-items:flex-start; }
}
