/* Styles communs à toutes les pages du site Quorpi. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.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-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.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 {
  /* Marque : le bleu de l'icône Quorpi. */
  --blue: #1f63d8;
  --blue-bright: #2d7cfd;
  --blue-deep: #0d3f99;
  --blue-50: #eaf1fe;
  --blue-100: #d6e4fd;

  /* Fonds sombres. */
  --navy: #141b2d;
  --navy-2: #1f2840;
  --navy-line: #323c56;

  /* Texte et surfaces claires. */
  --ink: #141b2d;
  --text: #384152;
  --muted: #5d6675;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #e2e7ef;

  /* Réponses et statuts, repris de l'application. */
  --green: #1a7f4e;
  --green-soft: #e1f3e9;
  --amber: #a15f00;
  --amber-soft: #fdf0d9;
  --red: #b93226;
  --red-soft: #fbe5e2;
  --grey: #5f6673;
  --grey-soft: #eceef2;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
.wrap { width: min(100%, 1120px); margin: 0 auto; padding-inline: 24px; }

/* En-tête : reste visible pendant le défilement. Les ancres gardent un
   décalage égal à sa hauteur pour ne pas passer dessous. */
html { scroll-padding-top: 80px; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #f5f7fb; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(11, 16, 32, .18); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.topbar nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.topbar nav a { color: #c3cad8; text-decoration: none; }
.topbar nav a:hover { color: #fff; }
.topbar nav .lang { border: 1px solid var(--navy-line); border-radius: 999px; padding: 5px 12px; font-weight: 700; color: #fff; }

/* Boutons des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .06); }
.store svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.store span { display: grid; font-weight: 700; line-height: 1.2; }
.store small { color: #aab3c5; font-weight: 500; font-size: 13px; }

/* Pastilles */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip.yes, .chip.confirmed { background: var(--green-soft); color: var(--green); }
.chip.maybe { background: var(--grey-soft); color: var(--grey); }
.chip.no, .chip.impossible { background: var(--red-soft); color: var(--red); }
.chip.uncertain { background: var(--amber-soft); color: var(--amber); }
.chip.pending { background: var(--blue-50); color: var(--blue); }
.chip.full { background: var(--green); color: #fff; }
.chip.cancelled { background: var(--grey-soft); color: var(--grey); }

/* Pied de page */
.site-footer { padding-block: 40px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer nav { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer a { color: var(--text); }

/* Pages de contenu : confidentialité, support, suppression du compte */
.page-head { background: var(--navy); color: #fff; padding-block: 40px 88px; }
.page-head p { margin: 0; color: #aab3c5; font-size: 15px; }
.page { width: min(100%, 860px); margin: -64px auto 0; padding-inline: 20px; }
.page article { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 52px); box-shadow: 0 18px 48px rgba(20, 27, 45, .08); color: var(--text); }
.page h1 { margin: 0 0 12px; color: var(--ink); font-size: clamp(30px, 6vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.page h2 { margin: 40px 0 12px; color: var(--ink); font-size: 21px; letter-spacing: -.01em; }
.page p, .page li { line-height: 1.7; }
.page ul, .page ol { padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page .lead { color: var(--muted); font-size: 18px; }
.page .meta { margin-top: 0; color: var(--muted); }
.page .notice { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--blue-50); border-left: 4px solid var(--blue); color: var(--ink); }
.page .button { display: inline-block; margin-top: 8px; padding: 13px 20px; border-radius: 12px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; }
.page .button:hover { background: var(--blue-deep); }

/* Page d'invitation */
.page.narrow { width: min(100%, 600px); }
.invite-tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.page .actions { display: grid; gap: 10px; margin-top: 28px; }
.page .actions .button { display: block; margin: 0; text-align: center; padding-block: 15px; }
.page .button.secondary { background: var(--grey-soft); color: var(--ink); }
.page .button.secondary:hover { background: var(--line); }
.page .fine { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; text-align: center; }
button.lang { font: inherit; font-size: 15px; background: none; cursor: pointer; }

@media (max-width: 640px) {
  .topbar nav a:not(.lang) { display: none; }
  .topbar nav a.home-link { display: inline; }
}
