/* Landing JobScanner.fr : monde « Trafic en direct ». Premier écran = scène au scroll (la France, l'offre, les décideurs, l'invitation, le message).
   Tokens partagés dans tokens.css. */
@font-face { font-family: "Albert Sans"; font-weight: 500 900; font-display: swap; src: url("fonts/albert-sans.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400 800; font-display: swap; src: url("fonts/public-sans.woff2") format("woff2"); }

:root {
  --map-ink: #09174b;
  --map-ink-soft: #596a99;
  --signal: #f87718;
  --signal-deep: #b84f08;
  --signal-hover: #ff8a2e;
  --live: #0f5428;
  --live-soft: #a7dcb8;
  --strip: #d9e8f7;
  --card: #f8f8f8;
  --line: #c6d3e6;
  --f-display: "Albert Sans", "Public Sans", sans-serif;
  --f-ui: "Public Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--card); color: var(--map-ink); font-family: var(--f-ui); -webkit-font-smoothing: antialiased; }
::selection { background: var(--signal); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Barre fixe ---------- */
:root { --bar: 64px; }
.topbar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 2.6vw, 44px); background: rgba(248, 248, 248, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo span { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.logo b { color: var(--signal-deep); font-weight: 800; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; padding: 10px 0; white-space: nowrap; }
.nav a:hover { color: var(--signal-deep); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.login, .bar-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 40px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.login { border: 2px solid var(--map-ink); color: var(--map-ink); }
.login:hover { background: #eaf1fa; }
.bar-cta { background: var(--signal); color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.bar-cta.on { opacity: 1; pointer-events: auto; }
.bar-cta:hover { background: var(--signal-hover); }
html:not(.js) .bar-cta { opacity: 1; pointer-events: auto; }

/* ---------- Scène au scroll : plongée de la France vers l'offre, les décideurs, l'invitation puis le message ---------- */
.runway { position: relative; }
.js .runway { height: var(--run, 800svh); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #cfe3f6; }
.world { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; translate: -50% -50%; transform-origin: 60% 68%; backface-visibility: hidden; }
.photo { position: absolute; inset: 0; background: url("assets/scene/france.webp") center / cover; }
.veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248, 248, 248, 0.9) 0%, rgba(248, 248, 248, 0.6) 38%, rgba(248, 248, 248, 0) 62%, rgba(248, 248, 248, 0.3) 100%); }
.city { position: absolute; inset: -4%; background-size: cover; background-position: center; filter: blur(5px); opacity: 0; }
.city.ld { background-image: url("assets/scene/ville.webp"); }
.citywash { position: absolute; inset: 0; background: rgba(248, 248, 248, 0.62); opacity: 0; }
.dot { position: absolute; width: 0; height: 0; }
.dot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(9, 23, 75, 0.15); }
.dot.hot i { width: 16px; height: 16px; left: -8px; top: -8px; }
.dot.hot i::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0.55; }
.pt i { width: 9px; height: 9px; left: -4.5px; top: -4.5px; }
.tag { position: absolute; left: 14px; top: -14px; white-space: nowrap; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line); border-radius: 32px; padding: 5px 11px; font: 600 12px var(--f-ui); }
.tag em { font-style: normal; color: var(--signal-deep); }
.tag small { display: block; font: 500 11px var(--f-ui); color: var(--map-ink-soft); }
.dot.hot .tag { border: 2px solid var(--signal); top: -22px; padding: 6px 13px; font-size: 13px; }
.hero { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: calc(var(--bar) + 3.5%); }
.hero h1 { width: min(92%, 760px); margin: 0; text-align: center; font: 800 clamp(30px, 6.5vw, 52px) / 1.1 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.hero h1:focus { outline: none; }
.hero-action, .t-accent {
  color: var(--signal);
  background: linear-gradient(135deg, #f87718 10%, #d94e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}
.hero .sub { width: min(80%, 520px); margin: 0; text-align: center; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.5; color: #2f3d6b; }
.cta-wrap { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); text-align: center; z-index: 9; }
.cta { display: inline-flex; align-items: center; background: var(--signal); color: #fff; font: 700 clamp(14px, 1.5vw, 17px) var(--f-display); padding: 14px 26px; border-radius: 40px; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transition: transform 0.25s var(--ease-out), background 0.2s; }
.cta:hover { background: var(--signal-hover); transform: translateY(-2px); }
.cta-wrap p { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.cta-wrap.end p { color: #2f3d6b; text-shadow: none; }
.steps { position: absolute; z-index: 8; left: 50%; top: calc(var(--bar) + 12px); transform: translateX(-50%); display: flex; gap: 6px; opacity: 0; font: 600 12px var(--f-ui); }
.steps span { padding: 6px 12px; border-radius: 32px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); color: #4a5a86; }
.steps span.on { background: var(--map-ink); border-color: var(--map-ink); color: #fff; }
.board { position: absolute; z-index: 6; left: 50%; top: calc(50% + var(--bar) / 2); width: min(92vw, 980px); translate: -50% -50%; display: grid; gap: 14px; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(9, 23, 75, 0.14); }
.offer { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.offer h2, .offer h3 { margin: 0; font: 800 clamp(18px, 2.4vw, 26px) / 1.15 var(--f-display); }
.offer p { margin: 4px 0 0; font-size: 14px; color: #2f3d6b; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font: 600 12px var(--f-ui); padding: 5px 11px; border-radius: 32px; background: #eaf1fa; color: var(--map-ink); }
.badge.hot { background: #fde7d3; color: #7a3205; }
.cell { display: grid; }
.cell > * { grid-area: 1 / 1; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.person { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.2s, outline-color 0.2s; outline: 2px solid transparent; }
.person.active { outline-color: var(--signal); }
.who { display: flex; gap: 12px; align-items: center; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--f-display); background: #eaf1fa; color: var(--map-ink); flex: none; }
.who b { display: block; font: 700 15px var(--f-display); }
.who span { font-size: 12px; color: var(--map-ink-soft); }
.board .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 40px; font: 700 14px var(--f-display); padding: 10px 16px; background: var(--signal); color: #fff; transition: transform 0.12s; }
.board .btn.pressed { transform: scale(0.95); }
.board .btn.sent { background: #eaf1fa; color: #2f3d6b; border: 1px solid var(--line); }
.board .btn.ok { background: #dcf5e4; color: var(--live); }
.board .btn.idle { background: #f0f5fb; color: var(--map-ink-soft); }
.chip { margin-top: 6px; font-size: 12px; color: var(--map-ink-soft); min-height: 16px; }
.chat { opacity: 0; display: flex; flex-direction: column; gap: 12px; }
.chat header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.angles { display: flex; gap: 6px; flex-wrap: wrap; }
.angle { font: 600 12px var(--f-ui); padding: 5px 11px; border-radius: 32px; background: #eaf1fa; color: #2f3d6b; cursor: pointer; transition: background 0.2s, color 0.2s; }
.angle.on { background: #fde7d3; color: #7a3205; }
.angle i { font-style: normal; }
.angle .sm { display: none; }
.chat > .angle { align-self: flex-start; cursor: default; }
.msg { background: #eaf1fa; border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; min-height: 100px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--map-ink); vertical-align: -2px; margin-left: 1px; animation: bl 1s steps(2) infinite; }
@keyframes bl { 50% { opacity: 0; } }
.sentmark { font-size: 12px; font-weight: 600; color: var(--live); opacity: 0; }
.progress { position: absolute; z-index: 8; left: 0; bottom: 0; height: 3px; background: var(--signal); width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dot i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: ping 2.8s var(--d, 0s) infinite cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* Texte des étapes : masqué visuellement mais lisible (robots, lecteurs d'écran) quand la scène est animée ; affiché sans JavaScript ou animations réduites */
.static-steps { padding: clamp(40px, 7vw, 80px) 0; background: var(--card); }
.static-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.static-steps h2 { margin: 0 0 8px; font: 800 1.6rem var(--f-display); }
.static-steps li > p { margin: 0 0 14px; line-height: 1.55; color: #2f3d6b; }
.static-steps .team { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.static-note { margin: 24px 0 0; font-size: 13px; color: #4a5a86; }
.js:not(.rm) .static-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
html.rm .runway { height: auto; }
.rm .stage { position: relative; }
.rm .board, .rm .steps, .rm .progress { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .logo span { font-size: 21px; }
  .login { min-height: 44px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 700px) {
  :root { --run: 620svh; }
  .world { translate: -60% -50%; }
  .board { top: calc(var(--bar) + 56px); translate: -50% 0; gap: 10px; }
  .offer h2 { font-size: 17px; }
  .offer p { font-size: 13px; margin-top: 2px; }
  .offer .badges { display: none; }
  .msg { font-size: 13px; line-height: 1.45; min-height: 112px; padding: 11px 13px; }
  .angle .lg { display: none; }
  .angle .sm { display: inline; }
  .chat { gap: 8px; }
  .chat .who span { display: none; }
  .board .offer { transition: opacity 0.3s, max-height 0.3s, padding 0.3s, margin 0.3s; max-height: 200px; }
  .board .offer.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; overflow: hidden; }
  .board { gap: 0 10px; row-gap: 10px; }
  .board:has(.offer.gone) { row-gap: 0; }
  .cta-wrap p { font-size: 12px; margin-top: 6px; }
  .dot.hot .tag { left: -96px; top: -60px; }
  .hero h1 { width: min(94%, 390px); font-size: clamp(27px, 7.4vw, 34px); line-height: 1.12; }
  .hero-action { display: block; margin-top: 6px; }
  .hero .sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-cta:not(.on) { display: none; }
  .topbar:has(.bar-cta.on) .login { display: none; }
  .team { grid-template-columns: 1fr; gap: 8px; }
  .board .person { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px; }
  .board .person .who span { display: none; }
  .board .btn { padding: 9px 12px; font-size: 13px; }
  .chip { display: none; }
  .card { padding: 14px; }
  .steps span { padding: 5px 8px; font-size: 11px; }
  .tag.hm { display: none; }
}


/* ---------- Sections ---------- */
.sections { background: var(--card); }
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-tint { background: #eaf1fa; }
.wrap { width: min(1180px, 100% - clamp(40px, 8vw, 128px)); margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 32px; }
.sections h2 { margin: 0 0 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.sections h3 { margin: 0 0 8px; font-weight: 800; font-size: 1.25rem; }
.lede { margin: 0; font-size: 1.15rem; line-height: 1.6; color: #2f3d6b; max-width: 56ch; }

.route { list-style: none; margin: 0; padding: 0 0 0 clamp(36px, 4vw, 56px); position: relative; display: grid; gap: clamp(28px, 3.5vw, 44px); }
.route::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 6px; border-radius: 3px; background: linear-gradient(180deg, rgba(247, 135, 40, 0.25), rgba(247, 135, 40, 0.9)); }
.route li { position: relative; }
.route li::before { content: ""; position: absolute; left: calc(-1 * clamp(36px, 4vw, 56px)); top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 8px rgba(252, 204, 168, 0.55); }
.route li::after { content: ""; position: absolute; left: calc(-1 * clamp(36px, 4vw, 56px) + 9px); top: 13px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 246, 232, 0.97); }
.route p { margin: 0; line-height: 1.65; max-width: 62ch; color: #243060; }

.uses { margin: 36px 0 0; display: grid; }
.uses > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 28px 0; border-top: 2px solid #c6d3e6; }
.uses > div:last-child { border-bottom: 2px solid #c6d3e6; }
.uses dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.uses dd { margin: 0; font-size: 1.1rem; line-height: 1.6; max-width: 58ch; color: #243060; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; }
.rules li { padding: 20px 0; border-top: 2px solid #c6d3e6; font-size: 1.15rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.rules li:last-child { border-bottom: 2px solid #c6d3e6; }
.rules strong { font-weight: 800; }

.plan { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.plan-box { background: var(--card); border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 24px 40px -28px rgba(9, 23, 75, 0.45); }
.plan-price { margin: 0 0 20px; font-size: 1.15rem; font-weight: 600; }
.plan-price span { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.02em; margin-right: 8px; }
.plan-box ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.plan-box li { padding-left: 32px; position: relative; line-height: 1.5; }
.plan-box li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(252, 204, 168, 0.55); }
.plan-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 40px; background: var(--signal); color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: transform 0.25s var(--ease-out), background 0.2s; }
.plan-cta:hover { background: var(--signal-hover); transform: translateY(-2px); }

.faq { max-width: 860px; }
.faq details { border-top: 2px solid #c6d3e6; padding: 4px 0; }
.faq details:last-of-type { border-bottom: 2px solid #c6d3e6; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.15rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--signal-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 6.5l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 6.5l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; line-height: 1.65; max-width: 64ch; color: #243060; }

.foot { background: var(--map-ink); color: #eaf1fa; padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-brand { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; }
.foot-brand b { color: #ffb37a; font-weight: 800; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: #eaf1fa; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; display: inline-block; }
.foot a:hover { color: #ffb37a; }
.foot-linkedin-link { display: inline-flex !important; align-items: center; gap: 6px; text-decoration: none !important; font-weight: 600; }
.foot-linkedin-link .foot-linkedin-icon { flex-shrink: 0; color: #ffb37a; transition: transform 0.18s ease; }
.foot-linkedin-link:hover .foot-linkedin-icon { transform: scale(1.15); }
.foot-linkedin-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .split, .plan { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .uses > div { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Mouvement : un geste signature (carte interactive), le reste en retenue ---------- */

@keyframes respire { 0% { transform: scale(0.9); opacity: 0.55; } 70% { transform: scale(2.1); opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes beam-down { 0% { top: -20%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes beam-turn { to { --beam-angle: 360deg; } }
@keyframes ticker-in { from { opacity: 0; transform: translateY(calc(8 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {

  /* Faisceau animé (inspiré d'Animated Beam, 21st.dev / Magic UI) : une impulsion parcourt le fil de route */
  .route::after { content: ""; position: absolute; left: 11px; width: 6px; height: 22%; border-radius: 3px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0)); mix-blend-mode: overlay; animation: beam-down 4.5s linear infinite; pointer-events: none; }

  /* Faisceau de bordure (inspiré de Border Beam, Magic UI) : un point lumineux fait le tour de la carte du plan */
  .plan-box { position: relative; }
  .plan-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--beam-angle), transparent 0 80%, var(--signal) 92%, #ffd9b8 98%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: beam-turn 6s linear infinite; pointer-events: none; }

  /* Révélation à l'entrée dans l'écran : visible par défaut, masquée seulement si le JS a démarré */
  .js .reveal { opacity: 0; }
  .js .reveal.in { animation: rise 0.7s var(--ease-out) both; }
}

/* ---------- Modale d'inscription et de connexion (balise <dialog> native : focus piégé, Échap, retour du focus) ---------- */
.auth { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 28px; padding: 0; background: var(--card); color: var(--map-ink); box-shadow: 0 30px 60px -20px rgba(9, 23, 75, 0.6); }
.auth::backdrop { background: rgba(9, 23, 75, 0.55); }
.auth-form { position: relative; padding: clamp(24px, 5vw, 36px); display: grid; gap: 16px; }
.auth-form h2 { margin: 0; padding-right: 48px; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.auth-desc { margin: -6px 0 0; color: #2f3d6b; line-height: 1.5; }
.auth-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--map-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.auth-close:hover { background: #eaf1fa; }
.auth-alert { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.45; background: #fde8e3; color: #8a1d0a; }
.auth-alert.ok { background: #dff3e6; color: #0f5428; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-weight: 500; color: #2f3d6b; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--map-ink); font: inherit; font-size: 1rem; }
.field input:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--signal-deep); }
.field input:user-invalid { border-color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--signal-deep); }
.check a { color: var(--map-ink); text-underline-offset: 3px; }
.auth-submit { min-height: 54px; border: 0; border-radius: 40px; background: var(--signal); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: background 0.2s, transform 0.25s var(--ease-out); }
.auth-submit:hover:not(:disabled) { background: var(--signal-hover); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.6; cursor: progress; }
.auth-switch { margin: 0; text-align: center; font-size: 0.95rem; }
.auth-switch button { border: 0; background: none; padding: 10px 6px; min-height: 44px; font: inherit; font-weight: 700; color: var(--signal-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .auth[open] { animation: rise 0.35s var(--ease-out); }
  .auth[open]::backdrop { animation: fade 0.35s ease-out; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }


.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 12px 18px; border-radius: 10px; background: var(--map-ink); color: #fff; font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 8px; }
/* L'attribut hidden doit gagner sur les display explicites (champs, cases, alertes de la modale) */
.field[hidden], .check[hidden], .auth-alert[hidden], .auth-switch[hidden] { display: none; }
