/* Expat Money – site vitrine */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0B1B33;
  --muted: #55627A;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E2E7EF;
  --navy: #0B1B33;
  --navy-soft: #C9D3E3;
  --accent: #FF7A1A;
  --accent-hover: #FF8F3D;
  --good: #0A7A50;
  --bad: #A8231A;
  --radius: 18px;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Les liens vers #inscription ou #questions ne doivent pas cacher le titre sous l'en-tête fixe. */
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.skip:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 27, 51, .96); color: #fff; backdrop-filter: blur(8px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--ink); display: grid; place-items: center;
  font: 700 18px/1 var(--display); }
.brand-name { font: 600 18px/1 var(--display); }
.brand-by { font-size: 13px; color: var(--navy-soft); }
@media (max-width: 420px) { .brand-by { display: none; } }

/* Ouverture */
.hero { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.pill { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { margin-top: 20px; max-width: 34em; color: var(--navy-soft); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: #9FB0C8; }

/* Illustration de l'appli */
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-figure figcaption { font-size: 13px; color: #9FB0C8; }
.phone { width: 300px; max-width: 100%; padding: 12px; border-radius: 42px; background: #050D19; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.phone-screen { border-radius: 32px; background: var(--bg); color: var(--ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.ph-top { display: flex; align-items: center; gap: 10px; }
.ph-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.ph-hello { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.ph-hello small { font-weight: 400; color: var(--muted); font-size: 11px; }
.ph-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ph-label { font-size: 11px; color: var(--navy-soft); }
.ph-total { font: 700 24px/1.1 var(--display); }
.ph-pockets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ph-pockets > span { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 10px; color: var(--navy-soft); }
.ph-pockets b { color: #fff; font-size: 13px; }
.ph-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-actions span { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 2px; text-align: center; font-size: 10px; font-weight: 600; }
.ph-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #EEF1F5; }
.ph-row:last-child { border-bottom: 0; }
.ph-row > span { display: flex; flex-direction: column; font-weight: 500; }
.ph-row small { color: var(--muted); font-size: 10px; font-weight: 400; }
.ph-row b { white-space: nowrap; }
.ph-row b.pos { color: var(--good); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 28px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature-icon { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 18px/1 var(--display); }
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; }

.expat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.expat p + p { margin-top: 14px; }
.countries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.countries li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.code { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; letter-spacing: .04em; flex: none; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* Inscription */
.signup .lead { margin-bottom: 24px; color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select { min-height: 52px; width: 100%; padding: 0 16px; border: 1px solid #B9C3D3; border-radius: 14px; background: #fff;
  color: var(--ink); font: 16px var(--body); }
.field input::placeholder { color: #7A8599; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* Pied de page */
.footer { background: var(--navy); color: var(--navy-soft); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #fff; }
.footer .muted { color: #9FB0C8; }

/* Pages de texte (mentions légales, confidentialité, 404) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: #2A3954; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; }

/* Administration */
.admin-main { padding: 40px 20px; display: flex; flex-direction: column; gap: 18px; }
.admin-main h1 { font-size: 34px; }
.admin-total { font-size: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-grid h2 { font-size: 20px; margin-bottom: 10px; }
.admin table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.admin td.num { text-align: right; font-weight: 700; }
.admin-note { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero-inner, .expat { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .features, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 20px; }
  .hero-actions .btn { width: 100%; }
}
