@font-face {
  font-family: "Red Hat Display";
  src: url("assets/fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #303b90;
  --blue-deep: #232b6e;
  --orange: #e54d1d;
  --orange-dark: #c23c10;
  --lav: #9494d6;
  --lav-soft: #eeeefa;
  --ink: #1d2250;
  --white: #fff;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 14px; z-index: 10; border-radius: 8px; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Bandeau haut */
.top { background: var(--white); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { width: 190px; }
.sos {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; color: var(--white); background: var(--orange-dark);
  padding: 9px 16px; border-radius: 12px; line-height: 1.2; text-align: right;
}
.sos:hover { background: var(--blue); }
.sos-label { font-size: 13px; font-weight: 600; }
.sos-tel { font-size: 19px; font-weight: 800; white-space: nowrap; }

/* Hero */
.hero { background: var(--blue); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; margin: 0 10px; }
.hero-in { padding-top: 52px; padding-bottom: 8px; max-width: 900px; margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block; background: var(--orange-dark); color: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px; margin-bottom: 22px;
}
h1 { font-size: clamp(32px, 6.2vw, 58px); line-height: 1.05; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
h1 .thin { display: block; font-weight: 400; font-size: .62em; line-height: 1.15; margin-bottom: 6px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); margin-top: 22px; max-width: 700px; color: #e6e7fb; }
.soon { margin-top: 18px; font-weight: 800; font-size: clamp(18px, 2.4vw, 22px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 15px 24px; border-radius: 14px; text-align: center;
}
.btn-main { background: var(--orange-dark); color: var(--white); }
.btn-main:hover { background: var(--white); color: var(--blue); }
.btn-ghost { border: 2px dashed rgba(255,255,255,.75); color: var(--white); padding: 13px 22px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-art { padding: 0 0 0 20px; margin-top: 26px; }
.hero-art img { width: 100%; }

/* Présentation */
.about { background: var(--lav-soft); margin: 0 10px; padding: 54px 0; }
.about-in { display: grid; gap: 34px; }
h2 { text-wrap: balance; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.15; font-weight: 900; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.about-text p + p { margin-top: 14px; }
.note { border-left: 4px solid var(--orange); padding-left: 14px; font-weight: 600; }
.cards { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-content: start; }
.cards li { background: var(--white); border-radius: 16px; padding: 18px; font-size: 15.5px; line-height: 1.35; }
.cards b { display: block; color: var(--orange-dark); text-transform: uppercase; font-weight: 900; font-size: 15px; margin-bottom: 4px; }

/* Contact */
.contact { margin: 0 10px; padding: 54px 0; background: var(--white); text-align: center; }
.contact-in { max-width: 720px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 20px; }
.contact-links a { font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: var(--blue); text-decoration: none; border-bottom: 3px solid var(--orange); }
.contact-links a:hover { color: var(--orange-dark); }

/* Assistance */
.sos-band { background: var(--orange-dark); color: var(--white); margin: 0 10px; border-radius: 0 0 var(--radius) var(--radius); padding: 40px 0; }
.sos-band h2 { color: var(--white); margin-bottom: 8px; }
.sos-band-in { display: grid; gap: 22px; align-items: center; }
.sos-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-white { background: var(--white); color: var(--orange-dark); }
.btn-white:hover { background: var(--blue); color: var(--white); }
.link-white { color: var(--white); font-weight: 600; font-size: 15.5px; }

/* Pied */
.foot { padding: 34px 0 44px; }
.foot-in { display: grid; gap: 20px; justify-items: center; text-align: center; }
.funders { width: min(520px, 100%); }
.foot p { font-size: 13.5px; color: #4a4f7a; max-width: 760px; }

@media (min-width: 820px) {
  .logo { width: 240px; }
  .about-in { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .sos-band-in { grid-template-columns: 1.4fr 1fr; }
  .hero, .about, .contact, .sos-band { margin: 0 20px; }
  .hero-in { padding-top: 70px; }
}
@media (max-width: 420px) {
  .logo { width: 150px; }
  .sos { padding: 8px 12px; }
  .sos-label { font-size: 11.5px; }
  .sos-tel { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* Inscription */
.news { background: var(--lav-soft); margin: 0 10px; padding: 54px 0 0; scroll-margin-top: 10px; }
.news-in { display: grid; gap: 22px; align-items: center; }
.news-form { background: var(--white); border-radius: 18px; padding: 14px 20px 4px; box-shadow: 0 10px 30px rgba(48,59,144,.12); }
.news-form iframe { display: block; border: 0; }
@media (min-width: 820px) {
  .news { margin: 0 20px; }
  .news-in { grid-template-columns: 1fr 1fr; gap: 44px; }
}

/* Barre de construction */
.tag { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.build { height: 10px; max-width: 420px; margin-top: 22px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.build-bar {
  display: block; height: 100%; width: 72%; border-radius: 99px;
  background-color: var(--orange);
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 10px, transparent 10px 20px);
  background-size: 28.28px 100%;
}

/* Micro-animations */
.btn, .sos, .cards li, .contact-links a { transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn:hover, .sos:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn:active, .sos:active { transform: translateY(0); box-shadow: none; }
.cards li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(48,59,144,.14); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .dot { animation: blink 1.4s ease-in-out infinite; }
  .build-bar { animation: fill 2.2s cubic-bezier(.2,.7,.2,1) .5s both, stripes 1s linear infinite; }
  .sos { animation: ring 2.8s ease-out 1.5s infinite; }

  .hero-in > * { animation: up .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-in > :nth-child(1) { animation-delay: .05s; }
  .hero-in > :nth-child(2) { animation-delay: .15s; }
  .hero-in > :nth-child(3) { animation-delay: .28s; }
  .hero-in > :nth-child(4) { animation-delay: .38s; }
  .hero-in > :nth-child(5) { animation-delay: .46s; }
  .hero-in > :nth-child(6) { animation-delay: .56s; }
  .hero-art img { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .35s both; }
  .logo { animation: fade .6s ease both; }

  .js .reveal, .js .reveal-list > li { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in, .js .reveal-list.in > li { opacity: 1; transform: none; }
  .js .reveal-list.in > li:nth-child(2) { transition-delay: .1s; }
  .js .reveal-list.in > li:nth-child(3) { transition-delay: .2s; }
  .js .reveal-list.in > li:nth-child(4) { transition-delay: .3s; }
}

@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { width: 0; } to { width: 72%; } }
@keyframes stripes { to { background-position: 28.28px 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(194,60,16,.55); } 60%, 100% { box-shadow: 0 0 0 14px rgba(194,60,16,0); } }
@media (max-width: 520px) { .news-form { padding: 10px 14px 2px; } .news-form iframe { height: 350px; } }
