@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; }


/* 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; }

  .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; } }

/* Bouton et popin d'assistance */
.sos { cursor: pointer; }
.sos-q { font-size: 17px; font-weight: 800; white-space: nowrap; }
.sos-label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.sos-pop { border: 0; border-radius: var(--radius); padding: 34px 28px 28px; width: min(460px, calc(100vw - 32px)); margin: auto; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.sos-pop::backdrop { background: rgba(29,34,80,.6); backdrop-filter: blur(3px); }
.sos-pop h2 { color: var(--orange-dark); padding-right: 30px; }
.sos-pop-actions { display: grid; gap: 12px; margin-top: 22px; }
.sos-pop .btn { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 20px; }
.sos-pop .small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 3px; }
.btn-line { border: 2px solid var(--blue); color: var(--blue); padding: 13px 22px; }
.btn-line:hover { background: var(--blue); color: var(--white); }
.sos-pop .btn-main:hover { background: var(--blue); color: var(--white); }
.sos-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lav-soft); color: var(--blue); font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit; }
.sos-close:hover { background: var(--blue); color: var(--white); }
@media (max-width: 420px) { .sos-q { font-size: 14.5px; } .sos-label { font-size: 10.5px; } }
@media (prefers-reduced-motion: no-preference) {
  .sos-pop[open] { animation: pop .28s cubic-bezier(.2,.9,.3,1.2) both; }
  .sos-pop[open]::backdrop { animation: fade .25s ease both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
body { overflow-x: clip; }
@media (max-width: 420px) {
  .top-in { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .logo { width: 128px; }
  .sos { padding: 8px 11px; }
  .sos-q { font-size: 13.5px; }
  .sos-label { font-size: 10px; letter-spacing: .12em; }
}

/* Icônes (Phosphor duotone) : pastille bleue cerclée d'orange, comme sur la plaquette */
.ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--orange); margin: 6px 6px 14px; transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
.ico svg { width: 28px; height: 28px; }
.ico-lg { width: 64px; height: 64px; margin-bottom: 18px; }
.ico-lg svg { width: 34px; height: 34px; }
.news .ico-lg { box-shadow: 0 0 0 3px var(--lav-soft), 0 0 0 6px var(--orange); }
.ico-inv { background: var(--white); color: var(--orange-dark); box-shadow: 0 0 0 3px var(--orange-dark), 0 0 0 6px rgba(255,255,255,.55); }
.cards li:hover .ico { transform: scale(1.08) rotate(-6deg); }
.cards li { box-shadow: 0 6px 18px rgba(48,59,144,.08); }

.sos { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
.sos-txt { display: flex; flex-direction: column; align-items: flex-start; }
.sos-ico { display: grid; }
.sos-ico svg { width: 30px; height: 30px; }
.sos-pop .btn { position: relative; padding-left: 60px; padding-right: 60px; }
.btn-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: grid; }
.btn-ico svg { width: 30px; height: 30px; }

.contact-social { margin-top: 24px; }
.contact-social .btn { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.contact-social svg { width: 26px; height: 26px; }
.social { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
.social-t { font-weight: 800; color: var(--blue); text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.social a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; color: var(--white); background: var(--blue); padding: 8px 16px 8px 12px; border-radius: 99px; transition: background-color .18s ease, transform .18s ease; }
.social a:hover { background: var(--orange-dark); transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; }
@media (max-width: 420px) { .sos { gap: 7px; } .sos-ico svg { width: 24px; height: 24px; } .sos-q { font-size: 12.5px; } }

/* Empreinte du logo qui se construit en circuits (remplace la barre de construction) */
.build { display: none; }
.fp { --px: 0; --py: 0; width: min(270px, 78%); margin: 26px auto 4px; perspective: 900px; }
.fp-tilt { transform-style: preserve-3d; transform: rotateY(calc(var(--px) * 14deg)) rotateX(calc(var(--py) * -14deg)); transition: transform .35s ease-out; }
.fp-cam { position: relative; aspect-ratio: 620 / 640; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-16deg); }
.fp-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fp-grid { transform: translateZ(-46px); fill: rgba(255,255,255,.16); }
.fp-shadow { transform: translateZ(-44px); filter: blur(7px); opacity: .5; }
.fp-shadow .sh { stroke: #141a4d; stroke-width: 24; }
.fp-traces { transform: translateZ(0); }
.fp-print { transform: translateZ(34px); filter: drop-shadow(0 0 7px rgba(148,148,214,.75)); }
.fp-key { transform: translateZ(68px); filter: drop-shadow(0 0 9px rgba(255,255,255,.8)); }
.tr { stroke: var(--lav); stroke-width: 2.5; stroke-dasharray: 1; }
.tr:nth-of-type(3n) { stroke: #f08a66; }
.pu { stroke: #fff; stroke-width: 4; stroke-dasharray: .1 1; opacity: 0; }
.pu:nth-of-type(3n) { stroke: #ffb596; }
.nd { stroke: var(--lav); stroke-width: 3; fill: var(--blue); transform-box: fill-box; transform-origin: center; }
.sq { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.rg { stroke-width: 24; stroke-dasharray: 1; }
.r-w { stroke: #fff; } .r-lav { stroke: var(--lav); } .r-peach { stroke: #fbc5b5; } .r-salmon { stroke: #f48d6d; }
.dt { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.ping { stroke: #fff; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fp-scan { position: absolute; left: 6%; right: 6%; top: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff, var(--orange), #fff, transparent); box-shadow: 0 0 16px 4px rgba(229,77,29,.6); transform: translateZ(80px); opacity: 0; }
.fp-hud { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: .06em; color: #c9caf3; text-align: center; margin-top: 2px; white-space: nowrap; }
.fp-hud i { display: inline-block; width: 8px; height: 14px; background: var(--orange); margin-left: 5px; vertical-align: -2px; }

@media (min-width: 900px) {
  .hero-in { position: relative; max-width: 1120px; padding-right: 440px; min-height: 470px; }
  .fp { position: absolute; right: 10px; top: 44px; width: 400px; margin: 0; }
  .fp-hud { font-size: 13.5px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in > .fp { animation: fade .5s ease both; }
  .fp-cam { animation: cam 3.6s cubic-bezier(.3,.7,.2,1) both, sway 9s ease-in-out 3.6s infinite; }
  .fp-grid { animation: fade 1s ease both; }
  .tr { animation: draw .9s ease-out calc(.25s + var(--i) * .11s) both; }
  .nd { animation: popin .35s cubic-bezier(.2,.9,.3,1.6) calc(1.05s + var(--i) * .11s) both; }
  .sq { animation: popin .3s cubic-bezier(.2,.9,.3,1.6) calc(.6s + var(--i) * .11s) both, blink 2.4s ease-in-out calc(4s + var(--i) * .3s) infinite; }
  .rg, .sh { stroke-dasharray: 1; animation: draw .75s cubic-bezier(.5,0,.2,1) calc(1.5s + var(--i) * .3s) both; }
  .dt { animation: popin .4s cubic-bezier(.2,.9,.3,1.8) calc(2.9s + var(--i) * .25s) both; }
  .ky { animation: draw .75s cubic-bezier(.5,0,.2,1) 2.4s both, keyglow 3s ease-in-out 3.6s infinite; }
  .ping { animation: ping 3s ease-out 3.3s infinite; }
  .pu { animation: flow calc(2.2s + var(--i) * .17s) linear calc(3.4s + var(--i) * .23s) infinite; }
  .fp-scan { animation: scan 4.5s ease-in-out 3.6s infinite; }
  .fp-hud span { display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: type 2.4s steps(35) .6s forwards; }
  .fp-hud i { animation: blink 1s steps(2) infinite; }
}
@keyframes cam { from { transform: rotateX(64deg) rotateZ(-32deg) scale(.78); } to { transform: rotateX(16deg) rotateY(-16deg); } }
@keyframes sway { 0%, 100% { transform: rotateX(16deg) rotateY(-16deg); } 50% { transform: rotateX(8deg) rotateY(14deg); } }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes popin { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes flow { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: 1.1; opacity: 1; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes keyglow { 0%, 100% { stroke: #fff; } 50% { stroke: #ffb596; } }
@keyframes scan { 0% { top: 8%; opacity: 0; } 10% { opacity: .9; } 50% { top: 90%; opacity: .9; } 60%, 100% { top: 90%; opacity: 0; } }
@keyframes type { to { width: 35ch; } }
@media (max-width: 899px) {
  .hero-in { display: flex; flex-direction: column; align-items: flex-start; }
  .fp { order: 9; align-self: center; margin-top: 34px; }
}
.social-contact { margin-top: 26px; }

/* Première ligne du titre : toujours sur une seule ligne */
h1 .thin { white-space: nowrap; font-size: clamp(13px, 4.05vw, 31px); }
@media (min-width: 900px) {
  .hero-in { padding-right: 410px; }
  .fp { width: 380px; }
  h1 .thin { font-size: clamp(19px, 2.3vw, 31px); }
}

/* En-tête sur petit écran : le bouton d'assistance ne déborde jamais */
.logo { flex: 0 0 auto; }
.sos { min-width: 0; }
@media (max-width: 560px) {
  .logo { width: clamp(112px, 33vw, 170px); }
  .sos { padding: 8px 11px; gap: 8px; }
  .sos-ico svg { width: 24px; height: 24px; }
  .sos-q { white-space: normal; line-height: 1.15; font-size: 13.5px; }
  .sos-label { font-size: 10px; letter-spacing: .12em; }
}
@media (max-width: 380px) { .sos-ico { display: none; } }
h1 { font-size: clamp(27px, 6.2vw, 58px); }
