/* Upratic — accueil v2. Charte : bleu nuit #0A2A66, orange #FF6A00, bleu clair #00B2FF, jaune #FFC107, Montserrat. */

@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy-900: #04122f;
  --navy-800: #061a47;
  --navy: #0a2a66;
  --navy-600: #143a85;
  --orange: #ff6a00;
  --orange-600: #e85d00;
  --sky: #00b2ff;
  --yellow: #ffc107;
  --ink: #0d1b3a;
  --text: #43506b;
  --muted: #6b7690;
  --line: #e3e8f2;
  --soft: #f4f7fc;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(10, 42, 102, .28);
  --shadow-lg: 0 30px 70px -30px rgba(4, 18, 47, .55);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--orange); }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: .9rem; text-decoration: none; padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: .98rem; border-radius: 12px; }
.btn-orange { background: linear-gradient(135deg, #ff7a12, var(--orange-600)); color: #fff; box-shadow: 0 12px 26px -10px rgba(255, 106, 0, .75); }
.btn-orange:hover { box-shadow: 0 16px 32px -10px rgba(255, 106, 0, .9); }
.btn-line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); box-shadow: var(--shadow); }
.btn-ghost { color: var(--navy); border-color: #c9d3e6; }
.btn-ghost:hover { border-color: var(--navy); }
.arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.brand span { font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: #fff; }

/* ---------- En-tête ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.hdr.is-scrolled, .hdr.menu-open { background: rgba(6, 26, 71, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 78px; transition: height .3s; }
.hdr.is-scrolled .hdr-in { height: 66px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
/* l'en-tête utilise toute la largeur de l'écran, pas seulement la colonne du contenu */
.hdr .wrap { width: min(1600px, 100% - 48px); }
.nav > a, .hdr-end .btn { white-space: nowrap; }
.nav > a { color: #d6def0; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .86rem; padding: 8px 10px; border-radius: 8px; position: relative; transition: color .2s; }
.nav > a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.nav > a:hover { color: #fff; }
.nav > a:hover::after { transform: scaleX(1); }
.nav-mobile-actions { display: none; }
/* Choix de la langue (à gauche du logo) */
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); margin-right: -10px; }
.lang-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: 8px; background: none; color: #b9c6e2; font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.lang-btn svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.lang-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-btn[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .14); }
.lang-btn[aria-disabled="true"] svg { opacity: .75; }
.lang-soon { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--navy); font-family: var(--head); font-weight: 600; font-size: .76rem; letter-spacing: 0; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); pointer-events: none; }
.hdr-end { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .1); border-radius: 10px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { content: ""; left: 0; top: -6px; }
.burger span::after { content: ""; left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav > a[aria-current="page"] { color: #fff; }
.nav > a[aria-current="page"]::after { transform: scaleX(1); }
.hdr.is-solid { background: rgba(6, 26, 71, .97); }
/* ---------- Pied de page ---------- */
.ftr { background: var(--navy-900); color: #9fb0cf; padding: 70px 0 30px; position: relative; }
.ftr::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sky), var(--navy-600) 40%, var(--orange) 80%, var(--yellow)); }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr-about p { font-size: .92rem; max-width: 26em; }
.ftr-motto { font-family: var(--head); font-weight: 700; font-style: italic; color: var(--orange); margin: 14px 0 10px; }
.ftr h3 { color: #fff; font-size: .92rem; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a, .ftr-low a { text-decoration: none; font-size: .9rem; transition: color .2s; }
.ftr ul a:hover, .ftr-low a:hover { color: #fff; }
.ftr-low { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .84rem; }
.ftr-low nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Apparition au défilement ---------- */
.reveal.pending { opacity: 0; transform: translateY(28px); }
.reveal.pending.is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.who .reveal.pending:nth-child(2), .hero-feats .reveal.pending:nth-child(2), .steps .reveal.pending:nth-child(2), .stats-in .reveal.pending:nth-child(2), .tps .reveal.pending:nth-child(2) { transition-delay: .08s; }
.who .reveal.pending:nth-child(3), .hero-feats .reveal.pending:nth-child(3), .steps .reveal.pending:nth-child(3), .stats-in .reveal.pending:nth-child(3), .tps .reveal.pending:nth-child(3) { transition-delay: .16s; }
.hero-feats .reveal.pending:nth-child(4), .steps .reveal.pending:nth-child(4), .stats-in .reveal.pending:nth-child(4), .tps .reveal.pending:nth-child(4) { transition-delay: .24s; }
.tps .reveal.pending:nth-child(5) { transition-delay: .12s; }
.tps .reveal.pending:nth-child(6) { transition-delay: .2s; }
.tps .reveal.pending:nth-child(7) { transition-delay: .28s; }

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

/* ---------- Responsive (en-tête, pied de page) ---------- */
@media (max-width: 1520px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 5px 6px; }
  .nav > a { padding: 8px 7px; font-size: .82rem; }
  .hdr-in { gap: 16px; }
  .hdr-end .btn { padding: 10px 14px; font-size: .84rem; }
}
@media (max-width: 1280px) {
  .burger { display: block; }
  .hdr-end .btn { display: none; }
  .hdr-end { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 10px 20px 22px; background: rgba(6, 26, 71, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .08); display: none; }
  .nav.is-open { display: flex; }
  .nav > a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav > a::after { display: none; }
  .nav-mobile-actions { display: flex; gap: 10px; margin-top: 18px; }
  .nav-mobile-actions .btn { flex: 1; }
}
@media (max-width: 980px) {
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap, .hdr .wrap { width: calc(100% - 32px); }
  .hdr-in { gap: 10px; }
  .lang { margin-right: 0; padding: 3px; }
  .lang-btn { padding: 5px 6px; }
  .lang-btn span { display: none; }
  .brand img { width: 38px; }
  .brand span { font-size: 1.25rem; }
  .ftr-in { grid-template-columns: 1fr; }
}
