/* Pages publiques (accueil, confidentialité, conditions) : mêmes jetons que l'application. */
:root {
  --bg: #fbf7ee;
  --surface: #ffffff;
  --ink: #1b1b3a;
  --muted: #55546a;
  --border: #eadfcb;
  --accent: #1d63b8;
  --accent-hover: #134a8a;
  --highlight: #ffe066;
  --crayon-yellow: #ffd23f;
  --radius-hand: 18px 16px 19px 15px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6 C25 2 45 9 70 5 S115 2 147 6' fill='none' stroke='%23FFD23F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root[lang='ar'] {
  --font: 'IBM Plex Sans Arabic', 'Figtree', system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.hl {
  background: linear-gradient(transparent 55%, var(--highlight) 55% 92%, transparent 92%);
  padding: 0 0.1em;
}
.squiggle {
  display: inline-block;
  padding-bottom: 10px;
  background: var(--squiggle) bottom / 100% 10px no-repeat;
}
.badge {
  display: inline-block;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-hand);
  box-shadow: 0 4px 0 var(--accent-hover);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover {
  color: #fff;
  background: var(--accent-hover);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-hover);
}
.btn:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--crayon-yellow);
  outline-offset: 3px;
}

/* En-tête */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
.langs {
  display: flex;
  gap: 4px;
}
.langs button {
  font: inherit;
  font-size: 0.9rem;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
}
.langs button[lang='ar'] {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.langs button[aria-pressed='true'] {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

/* Accueil */
.home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 24px 0 48px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.phone {
  margin: 0 auto;
  width: min(300px, 78vw);
  border-radius: 34px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(27, 27, 58, 0.45);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}
.hero-phone {
  transform: rotate(2deg);
}
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
  border-top: 2px dashed var(--border);
}
.text-only .ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  position: relative;
  padding-inline-start: 34px;
  margin-bottom: 8px;
  font-weight: 600;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--highlight);
  text-align: center;
  line-height: 24px;
  font-size: 0.85rem;
}
.faq {
  padding: 40px 0;
  border-top: 2px dashed var(--border);
  max-width: 760px;
}
details {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-hand);
  padding: 4px 18px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
details p {
  color: var(--muted);
}
.final {
  text-align: center;
  padding: 48px 0 56px;
}
.final img {
  display: block;
  margin: 0 auto 12px;
}

@media (min-width: 820px) {
  .hero,
  .feature {
    grid-template-columns: 1.2fr 1fr;
  }
  .feature.text-only {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .feature .phone {
    width: 270px;
  }
}

/* Pages juridiques */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.doc h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}
.doc section {
  margin-top: 28px;
}
.doc h2 {
  font-size: 1.3rem;
}
.doc ul {
  padding-inline-start: 1.3em;
  margin: 0 0 1em;
}
.doc li {
  margin-bottom: 6px;
}

/* Pied de page */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 2px dashed var(--border);
  text-align: center;
  font-size: 0.95rem;
}
.foot a {
  overflow-wrap: anywhere;
}
