/* Mirabam, site vitrine. Mêmes couleurs que l'appli (mobile/src/theme.ts) :
   crème, bleu marine, jaune soleil = action, corail = note et direct, vert = preuve « filmé sur place ». */

@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_400Regular_Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ground: #FFF8EE;
  --surface: #FFFFFF;
  --raised: #FFF0D9;
  --line: #EBDDC8;
  --segment-empty: #EADFCE;
  --text: #1B2A41;
  --text-2: #3F4D66;
  --muted: #5E6A82;
  --accent: #FFC93C;
  --accent-border: #F2B705;
  --coral: #FF6B4A;
  --coral-text: #C8432A;
  --verified: #12A06B;
  --verified-text: #0D7A52;
  --verified-light: #5BE3A6;
  --display: 'Bricolage', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--ground); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* ——— Boutons : jaune = l'action, un seul par écran ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px;
  background: var(--accent); color: var(--text);
  font: 700 17px/1.2 var(--display); text-decoration: none; text-align: center;
  border-radius: 16px; border: 0;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--accent-border); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 13px; white-space: nowrap; }
.btn-secondary { background: rgba(27,42,65,.07); }
.btn-secondary:hover { background: rgba(27,42,65,.13); }

/* ——— En-tête ——— */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,248,238,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
}
@media (max-width: 360px) {
  .top-in { gap: 12px; }
  .top .btn-small { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 420px) {
  .cta .btn { width: 100%; }
}

/* ——— Héros ——— */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 104px); overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { font: 600 16px/1 var(--display); color: var(--coral-text); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -0.025em; }
.hl { color: var(--verified-text); }
.hero h1 .hl { background: linear-gradient(transparent 72%, rgba(18,160,107,.16) 72%); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin: 26px 0 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; padding-bottom: 28px; }
.sun { position: absolute; width: min(400px, 80%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD65C, #FFB62C); top: 0; right: -6%; }
.phone { margin: 0; position: relative; width: 250px; border-radius: 34px; overflow: hidden; background: var(--text); box-shadow: 0 0 0 7px var(--text), 0 30px 60px -18px rgba(27,42,65,.45); }
.phone img { width: 100%; height: auto; }
.phone-front { z-index: 2; transform: translateX(46px) rotate(3deg); }
.phone-back { position: absolute; z-index: 1; width: 214px; transform: translateX(-118px) translateY(28px) rotate(-7deg); opacity: .97; }
.stamp {
  position: absolute; z-index: 3; left: -48px; bottom: -22px;
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 16px 10px 12px; background: var(--surface); color: var(--verified);
  border-radius: 18px; box-shadow: 0 14px 30px -12px rgba(27,42,65,.35);
  font: 700 15px/1.15 var(--display); transform: rotate(-4deg);
}
.stamp span { color: var(--text); }
.stamp small { font: 400 13px var(--body); color: var(--muted); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding: 24px 0 8px; }
  .phone-front { transform: translateX(40px) rotate(3deg); width: 220px; }
  .phone-back { width: 188px; transform: translateX(-96px) translateY(24px) rotate(-7deg); }
  /* Sur téléphone, la capture montre déjà le cachet vert : pas de badge en double */
  .stamp { display: none; }
}
@media (max-width: 420px) {
  .phone-front { width: 196px; transform: translateX(34px) rotate(3deg); }
  .phone-back { width: 166px; transform: translateX(-80px) translateY(22px) rotate(-7deg); }
}
@media (max-width: 360px) {
  .phone-front { width: 180px; transform: translateX(44px) rotate(3deg); }
  .phone-back { width: 150px; transform: translateX(-56px) translateY(20px) rotate(-7deg); }
}

/* ——— Titres de section ——— */
.section-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 36px; }

/* ——— Trois règles ——— */
.rules { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
/* Une règle par ligne, façon sommaire de magazine : le dessin, le titre, le texte */
.rules-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rules-list li { display: grid; grid-template-columns: 240px minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px 48px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.rules-list h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.rules-list p { color: var(--text-2); margin: 0; }
.rule-mark { min-height: 52px; display: flex; align-items: center; gap: 14px; }
.rule-mark.proof { color: var(--verified); }
.rule-mark.live { font: 700 16px var(--display); white-space: nowrap; gap: 10px; }
.rule-num { font: 800 26px/1 var(--display); color: var(--coral-text); font-variant-numeric: tabular-nums; }
.crowd { display: inline-flex; gap: 7px; }
.crowd i { width: 16px; height: 16px; border-radius: 50%; background: var(--segment-empty); }
.crowd i.on { background: var(--coral); }
@media (max-width: 900px) {
  .rules-list li { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
}

/* ——— Comment ça marche ——— */
.how { padding: clamp(56px, 8vw, 104px) 0; background: var(--raised); }
.how-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-visual { display: grid; place-items: center; }
.how-visual .phone { width: 270px; transform: rotate(-2deg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step-n { font: 800 44px/1 var(--display); color: var(--text); opacity: .9; }
.steps h3 { font-size: 23px; font-weight: 700; margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--text-2); }
@media (max-width: 820px) {
  .how-in { grid-template-columns: 1fr; }
  .how-visual { order: 2; }
  .how-visual .phone { width: 230px; }
}

/* ——— Tous les lieux ——— */
.places { padding: clamp(64px, 10vw, 128px) 0; }
.big-line { font-size: clamp(32px, 5.2vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; max-width: 18em; }
.big-line .hl { color: var(--coral-text); }
.places-sub { margin: 28px 0 0; font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36em; }

/* ——— Promesse ——— */
.promise { background: var(--text); color: var(--ground); padding: clamp(56px, 8vw, 96px) 0; }
.promise h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; max-width: 14em; }
.promise-list { list-style: none; margin: 36px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 48px; max-width: 920px; }
.promise-list li { position: relative; padding-left: 32px; color: rgba(255,248,238,.9); }
.promise-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--verified-light); border-bottom: 3px solid var(--verified-light); transform: rotate(-45deg); }
.link-light { font: 700 17px var(--display); color: var(--ground); }
.promise :focus-visible { outline-color: var(--accent); }
@media (max-width: 700px) { .promise-list { grid-template-columns: 1fr; } }

/* ——— Commerçants ——— */
.managers { padding: clamp(56px, 8vw, 104px) 0; }
.managers-in { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.managers p { color: var(--text-2); max-width: 36em; }
.managers strong { color: var(--text); }
.managers-aside { border-left: 3px solid var(--line); padding-left: 28px; margin-top: calc(clamp(32px, 4.4vw, 48px) + 36px); }
.managers-aside p { font: 600 19px/1.3 var(--display); color: var(--text); }
@media (max-width: 820px) {
  .managers-in { grid-template-columns: 1fr; }
  .managers-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; }
}

/* ——— Fin ——— */
.final { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.025em; margin: 24px 0 14px; }
.final p { color: var(--text-2); font-size: 19px; margin-bottom: 30px; }

/* ——— Pied de page ——— */
.foot { background: var(--raised); padding: 48px 0 40px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 12px; }
.foot-brand p { margin: 0; line-height: 1.3; }
.foot-brand strong { font: 800 20px var(--display); }
.foot-brand span { color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot-note { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .foot-nav { flex-direction: column; gap: 4px; }
  .foot-nav a { padding: 8px 0; }
}

/* ——— Pages de texte ——— */
.doc-in { max-width: 760px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 20px; }
.doc-lead { font-size: 20px; color: var(--text-2); }
.doc-date { font-size: 14px; color: var(--muted); }
.doc section { margin-top: 40px; }
.doc h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--coral); }
.todo { background: var(--accent); color: var(--text); padding: 0 6px; border-radius: 4px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 700 20px/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 600 28px/1 var(--display); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { color: var(--text-2); }
.faq details > p:last-child { padding-bottom: 14px; }
.notfound .btn { margin-top: 12px; }
