/* Charte reprise de l'application : meme navy, meme or, meme echelle
   typographique. Un site qui ne ressemble pas a l'app qu'il presente
   force le visiteur a verifier qu'il est au bon endroit. */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --emerald: #10b981;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e2e8f0;

  --radius-card: 16px;
  --radius-button: 12px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont,
    sans-serif;
  color: var(--navy);
  line-height: 1.25;
  text-wrap: balance;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  margin-top: var(--space-2xl);
}
h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: var(--space-xl);
}

p,
li {
  color: var(--text-2);
}

a {
  color: var(--gold-dark);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ structure */

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.prose {
  max-width: var(--measure);
}

.site-header {
  background: var(--navy);
  color: #fff;
  padding: var(--space-lg) 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-nav a:hover {
  color: #fff;
}

main {
  padding: var(--space-2xl) 0 48px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  color: var(--text-3);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-lg);
}

/* ---------------------------------------------------------------- accueil */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.0625rem;
  max-width: 52ch;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 22px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
}
.button-primary:hover {
  background: var(--gold-dark);
}

.button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.button.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.16);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.notice {
  background: var(--surface);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-button);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-2xl);
}

.notice p {
  margin: 0;
}

/* ------------------------------------------------------- pages legales */

.legal-meta {
  color: var(--text-3);
  font-size: 0.875rem;
  margin-top: -4px;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--navy);
  font-weight: 700;
}

td {
  color: var(--text-2);
}

.table-scroll {
  overflow-x: auto;
}

/* ------------------------------------------------------ renvoi vers store */

.redirect-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  z-index: 50;
}

.redirect-card {
  text-align: center;
  max-width: 340px;
}

.redirect-card h1 {
  color: #fff;
  font-size: 1.375rem;
}

.redirect-card p {
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.redirect-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin: 0 auto var(--space-lg);
}

.redirect-card .button {
  width: 100%;
  margin-top: var(--space-sm);
}

.link-button {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: var(--space-lg);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
