/* =========================================================
   Birdpost — Design tokens & base styles
   Identité réelle de marque : Oxford Blue + Robin Egg Blue
   ========================================================= */

:root {
  /* Brand colors (Visual Identity Manual) */
  --navy: #000333;        /* Oxford Blue — texte, fond foncé, logo */
  --teal: #33CCCC;        /* Robin Egg Blue — accent, symbole */
  --lapis: #246189;       /* Lapis Lazuli — accent secondaire sur fond foncé */
  --sky: #94C7F2;         /* Light Sky Blue — accent secondaire sur fond clair */
  --platinum: #E0E0E0;    /* Platinum — fonds neutres, séparateurs */
  --white: #FFFFFF;

  /* Semantic tokens (light theme, default) */
  --bg: var(--white);
  --bg-subtle: #F6F8FA;
  --bg-inverse: var(--navy);
  --text: var(--navy);
  --text-secondary: #4A4D6B;
  --text-inverse: var(--white);
  --text-inverse-secondary: #B9C4E0;
  --border: #E3E6EE;
  --accent: var(--teal);
  --accent-ink: #0A7A7A; /* teal darkened for AA text contrast */
  --success-bg: #ECFBF8;
  --danger: #C4420A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 3, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 3, 51, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 3, 51, 0.14);

  --container: 1160px;
  --gap: clamp(1rem, 2vw, 2rem);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04061F;
    --bg-subtle: #0A0D33;
    --bg-inverse: #FFFFFF;
    --text: #F2F4FA;
    --text-secondary: #AEB6D6;
    --text-inverse: var(--navy);
    --text-inverse-secondary: #4A4D6B;
    --border: #1C2050;
    --accent: var(--teal);
    --accent-ink: #5CE0E0;
    --success-bg: #082A2A;
  }
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--text-secondary); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-secondary); }

code, .mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  transition: top 0.15s ease; z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
@media (prefers-color-scheme: dark) {
  /* Oxford Blue se fond dans un fond déjà très sombre : on bascule sur le
     Lapis Lazuli, prévu par la charte pour les fonds foncés. */
  .btn-primary { background: var(--lapis); }
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-accent { background: transparent; border-color: var(--teal); color: var(--accent-ink); }
.btn-outline-accent:hover { border-color: var(--accent-ink); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.btn-ghost-inverse { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-inverse:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); padding: 0.55rem 1rem;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
}
.store-badge svg { flex: none; }
.store-badge .store-label { line-height: 1.1; }
.store-badge .store-label small { display: block; font-size: 0.65rem; opacity: 0.8; font-weight: 500; }
.store-badge .store-label strong { display: block; font-size: 0.95rem; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header > .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 1.85rem; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary);
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions [data-auth-guest]:not([hidden]), .header-actions [data-auth-user]:not([hidden]) { display: flex; align-items: center; gap: 0.6rem; }
/* Sous 900px, le menu burger prend le relais : les mêmes actions sont déjà
   proposées en pleine largeur dans .mobile-nav, les dupliquer ici dans
   l'en-tête compact fait déborder la ligne (logo + 2 boutons + burger). */
@media (max-width: 899px) {
  .header-actions [data-auth-guest], .header-actions [data-auth-user] { display: none !important; }
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1.25rem; }
.mobile-nav ul a {
  display: block; padding: 0.85rem clamp(1.25rem, 4vw, 2rem); text-decoration: none;
  font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-nav .mobile-cta { padding: 1rem clamp(1.25rem, 4vw, 2rem) 0; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Sections / layout ---------- */
section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-subtle { background: var(--bg-subtle); }
.section-inverse { background: var(--bg-inverse); color: var(--text-inverse); }
.section-inverse p { color: var(--text-inverse-secondary); }
.section-inverse h2, .section-inverse h3 { color: var(--text-inverse); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin-bottom: 1rem;
}
.section-inverse .eyebrow { color: var(--teal); }
.eyebrow.eyebrow-brand { text-transform: none; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 8vw, 5.5rem); overflow: hidden; }
.hero .container { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy h1 { margin-bottom: 0.5rem; }
.hero-art { position: relative; }
.hero-art img, .hero-art svg { width: 100%; height: auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; align-items: center; }
.trust-row .trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-secondary); font-weight: 600; }
.trust-row svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); height: 100%;
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card.card-navy, .ui-card.card-navy {
  /* Fond toujours Oxford Blue, qu'importe le thème — voir .site-footer / .compare-card.pro. */
  --text-inverse-secondary: #B9C4E0;
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.card.card-navy h3, .ui-card.card-navy h3 { color: var(--white); }
.card.card-navy p, .ui-card.card-navy p { color: var(--text-inverse-secondary); }
.card.card-navy .card-icon, .ui-card.card-navy .card-icon { background: var(--white); }

.card.card-lapis {
  background: var(--lapis); border-color: var(--lapis); color: var(--white);
}
.card.card-lapis h3, .card.card-lapis p, .card.card-lapis strong { color: var(--white); }
.card.card-lapis .card-icon { background: var(--white); }

.step-card { position: relative; }
.step-number {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--accent-ink); display: block; margin-bottom: 0.75rem;
}

.two-col-compare { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .two-col-compare { grid-template-columns: 1fr 1fr; } }
.compare-card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.compare-card.client { background: var(--bg-subtle); border: 1px solid var(--border); }
.compare-card.client.card-skyblue { background: var(--lapis); border-color: var(--lapis); }
.compare-card.client.card-skyblue .card-icon { background: var(--white); }
.compare-card.client.card-skyblue p { color: var(--white); }
.compare-card.pro {
  /* Fond toujours Oxford Blue, qu'importe le thème — voir .site-footer. */
  --text-inverse-secondary: #B9C4E0;
  background: var(--navy); color: var(--white);
}
.compare-card.pro p { color: var(--text-inverse-secondary); }
.compare-card.pro.card-lapis { background: var(--lapis); }
.compare-card.pro.card-lapis { background: var(--lapis); }
.compare-card.pro.card-lapis .card-icon { background: var(--white); }
.compare-card.pro.card-lapis p { color: var(--white); }
.compare-card .quote { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
/* Une seule ligne seulement là où ça tient sans déborder (≥700px) ; en
   dessous, retour au comportement normal (retour à la ligne) plutôt que de
   rapetisser le texte jusqu'à l'illisible. */
@media (min-width: 700px) {
  .quote-nowrap { white-space: nowrap; }
}

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent-ink); display: block; }
.section-inverse .stat .num { color: var(--teal); }
.stat .label { font-size: 0.9rem; color: var(--text-secondary); }
.section-inverse .stat .label { color: var(--text-inverse-secondary); }

.logo-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; justify-content: center; opacity: 0.85; }
.logo-strip span { font-weight: 700; font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-secondary); }

/* ---------- Testimonials ---------- */
.testimonial {
  /* Fond toujours White Smoke, qu'importe le thème — voir .device-mock. */
  --bg-subtle: #F5F5F5;
  --text: var(--navy);
  --text-secondary: #4A4D6B;
  --border: #E3E6EE;
  --accent-ink: #0A7A7A;
  background: #F5F5F5; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); height: 100%; border: 1px solid var(--border);
  color: var(--text);
}
.testimonial .stars { color: var(--accent-ink); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.testimonial .who { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 0.95rem;
}
.who strong { display: block; font-size: 0.92rem; }
.who span:not(.avatar) { display: block; font-size: 0.82rem; color: var(--text-secondary); }

/* ---------- Timeline / flow ---------- */
.flow { display: grid; gap: 1.25rem; counter-reset: flow; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(var(--flow-cols, 3), 1fr); } }
.flow-step { position: relative; padding-top: 1rem; }
.flow-step::before {
  counter-increment: flow; content: counter(flow);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4rem; }
.field .hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-ink); outline: none; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-field input { width: auto; margin-top: 0.25rem; }
.checkbox-field label { font-weight: 500; font-size: 0.86rem; color: var(--text-secondary); }

.form-card.card-navy {
  --text-inverse-secondary: #B9C4E0;
  background: var(--navy); border-color: var(--navy);
}
.form-card.card-navy .field label { color: var(--white); }
.form-card.card-navy .field input,
.form-card.card-navy .field select,
.form-card.card-navy .field textarea { background: var(--white); color: var(--navy); }
.form-card.card-navy .form-note { color: var(--text-inverse-secondary); }

.form-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.9rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; display: none; padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--success-bg); color: var(--accent-ink); }
.form-status.err { background: #FDEBE0; color: var(--danger); }

.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.inline-form input[type="email"] {
  flex: 1 1 240px; font: inherit; padding: 0.85rem 1.1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); color: var(--text); background: var(--bg);
}
.section-inverse .inline-form input[type="email"] { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: var(--white); }
.section-inverse .inline-form input[type="email"]::placeholder { color: var(--text-inverse-secondary); }

/* ---------- Accordion (FAQ) ---------- */
.accordion-group { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.02rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .chev { transition: transform 0.2s ease; flex: none; width: 20px; height: 20px; color: var(--text-secondary); }
.accordion-item[open] summary .chev { transform: rotate(180deg); }
.accordion-item .accordion-body { padding-bottom: 1.4rem; color: var(--text-secondary); max-width: 68ch; }

.profile-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-pill {
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text-secondary);
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.86rem;
  cursor: pointer;
}
.filter-pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.faq-group[hidden] { display: none; }
.faq-group h3 { margin-top: 2rem; }

/* ---------- Pricing ---------- */
.price-card { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.25rem); height: 100%; display: flex; flex-direction: column; }
.price-card.highlight { border-color: var(--navy); box-shadow: var(--shadow-md); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 1.75rem; background: var(--accent); color: var(--navy); font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); letter-spacing: 0.04em; text-transform: uppercase; }
.price-card .price { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; margin: 0.5rem 0 1.25rem; }
.price-card .price small { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.price-list { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.price-list li { display: flex; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.92rem; border-top: 1px solid var(--border); }
.price-list li:first-child { border-top: none; }
.price-list svg { width: 18px; height: 18px; flex: none; color: var(--accent-ink); margin-top: 0.1rem; }
.price-list-negative svg { color: var(--danger); }

/* ---------- Phase cards (chantier) ---------- */
.phase-rail { position: relative; }
.phase-item { display: grid; grid-template-columns: 28px 1fr; gap: 1.25rem; }
.phase-item .dot-col { display: flex; flex-direction: column; align-items: center; }
.phase-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); flex: none; }
.phase-item .line { flex: 1; width: 2px; background: var(--border); margin-top: 6px; }
.phase-item:last-child .line { display: none; }
.phase-item .body { padding-bottom: 2.25rem; }

/* ---------- Device mock ---------- */
.device-mock {
  /* Le mockup représente une capture d'écran de l'app — toujours en thème
     clair, qu'importe le thème (clair/sombre) de la page qui l'entoure.
     On re-fixe localement les jetons sémantiques à leurs valeurs claires. */
  --bg: var(--white);
  --bg-subtle: #F6F8FA;
  --text: var(--navy);
  --text-secondary: #4A4D6B;
  --border: #E3E6EE;
  --accent-ink: #0A7A7A;
  color: var(--text);
  background: var(--navy); border-radius: 36px; padding: 10px; box-shadow: var(--shadow-lg);
  width: min(280px, 72vw); margin-inline: auto;
}
.device-mock .screen { background: var(--bg); border-radius: 26px; overflow: hidden; aspect-ratio: 9/19.5; display: flex; flex-direction: column; }
.app-screenshot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- App UI mockup (illustrations maison) ---------- */
.app-ui { padding: 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; background: var(--bg); }
.app-ui .ui-statusbar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-secondary); }
.app-ui .ui-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); font-weight: 700; }
.app-ui .ui-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--navy); }
.app-ui .ui-amount small { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; color: var(--accent-ink); display: block; margin-top: 0.3rem; }
.ui-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.ui-steps { display: flex; flex-direction: column; gap: 0.1rem; }
.ui-step { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; position: relative; }
.ui-step .ui-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text-secondary);
}
.ui-step .ui-dot svg { width: 13px; height: 13px; }
.ui-step.done .ui-dot { background: var(--accent); color: var(--navy); }
.ui-step.active .ui-dot { background: var(--navy); color: var(--white); }
.ui-step span { font-size: 0.82rem; font-weight: 700; }
.ui-step small { display: block; font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }
.ui-provider { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.ui-provider .avatar { width: 36px; height: 36px; font-size: 0.8rem; }
.ui-provider strong { display: block; font-size: 0.85rem; }
.ui-provider span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-ink); }
.ui-badge-float {
  /* Badge toujours blanc/texte foncé, quel que soit le thème de la page. */
  position: absolute; background: var(--white); border: 1px solid #E3E6EE; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 0.6rem 0.85rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
}
.ui-badge-float svg { width: 16px; height: 16px; color: #0A7A7A; flex: none; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
.hero-art .ui-badge-float.b1 { top: 6%; left: -4%; }
.hero-art .ui-badge-float.b2 { bottom: 10%; right: -6%; }
@media (max-width: 480px) { .hero-art .ui-badge-float { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  /* Le pied de page est toujours en Oxford Blue, qu'importe le thème de la
     page — on fixe donc ces jetons à leur valeur "texte clair sur fond
     foncé", qui sinon change de sens en mode sombre (prévu pour les
     sections "inverse" qui, elles, basculent en fond blanc). */
  --text-inverse: var(--white);
  --text-inverse-secondary: #B9C4E0;
  background: var(--navy); color: var(--text-inverse); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { text-decoration: none; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand img { height: 24px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; color: var(--text-inverse-secondary); font-size: 0.9rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-col h4.footer-brand-heading { text-transform: none; letter-spacing: normal; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: var(--text-inverse-secondary); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.82rem; color: var(--text-inverse-secondary); }
.social-row { display: flex; gap: 0.75rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 17px; height: 17px; color: var(--white); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.breadcrumb { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Legal content ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { color: var(--text-secondary); }
.prose a { color: var(--accent-ink); font-weight: 600; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }

.cta-banner { border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-banner h2 { margin-bottom: 0.5rem; }
.cta-banner .btn-group { justify-content: center; margin-top: 1.5rem; }

.qr-box { background: var(--white); padding: 14px; border-radius: var(--radius-md); display: inline-flex; box-shadow: var(--shadow-sm); }

/* ---------- Store badges (bientôt disponible) ---------- */
.store-badge.is-soon { opacity: 0.55; cursor: default; pointer-events: none; }
.store-badge .soon-pill {
  position: absolute; top: -8px; right: -8px; background: var(--accent); color: var(--navy);
  font-size: 0.58rem; font-weight: 800; padding: 0.15rem 0.4rem; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.store-badge { position: relative; }

/* decorative QR placeholder (motif générique, pas scannable) */
.qr-placeholder {
  width: 140px; height: 140px; display: grid; grid-template-columns: repeat(7,1fr); grid-template-rows: repeat(7,1fr); gap: 4px;
}
.qr-placeholder span { background: var(--navy); border-radius: 2px; }
.qr-placeholder span.off { background: transparent; }

.screenshot-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.screenshot-tabs button {
  border: 1.5px solid var(--border); background: var(--bg); padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--text-secondary);
}
.screenshot-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.screenshot-panels { position: relative; }
.screenshot-panel[hidden] { display: none; }

::selection { background: var(--teal); color: var(--navy); }

/* =========================================================
   Passe « confiance & finition premium »
   ========================================================= */

/* ---------- Profondeur par défaut (cartes plus "posées") ---------- */
.card, .testimonial, .price-card, .form-card, .ui-card {
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent-ink) 35%, var(--border)); }
  .testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .price-card.highlight:hover, .price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}

/* ---------- Boutons : micro-interaction de "levée" ---------- */
@media (hover: hover) {
  .btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); }
  .btn-outline:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
}

/* ---------- Accent de titre (mot-clé souligné à la main) ---------- */
.accent-underline { position: relative; white-space: nowrap; }
.accent-underline::after {
  content: ""; position: absolute; left: -0.08em; right: -0.08em; bottom: 0.03em; height: 0.26em;
  background: color-mix(in srgb, var(--teal) 55%, transparent); border-radius: 3px; z-index: -1;
}

/* ---------- Halo décoratif derrière le mockup du hero ---------- */
.hero-art::before {
  content: ""; position: absolute; inset: -10% -5% -5% -5%; z-index: -1;
  background:
    radial-gradient(42% 55% at 50% 38%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    radial-gradient(30% 40% at 78% 70%, color-mix(in srgb, var(--lapis) 16%, transparent), transparent 70%);
  filter: blur(4px);
}
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, black, transparent 75%);
  opacity: 0.6;
}
@media (prefers-color-scheme: dark) {
  .hero::before { opacity: 0.35; }
}

/* ---------- Badges de confiance (Stripe / Visa / Mastercard / SSL) ---------- */
.trust-marks { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.trust-mark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); border-radius: var(--radius-sm); padding: 0.55rem 1rem;
  box-shadow: var(--shadow-sm); border: 1px solid #E3E6EE;
}
.trust-mark svg { height: 16px; width: auto; flex: none; }
.trust-mark .mark-text { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; line-height: 1; }
.trust-mark .mark-stripe { color: #635BFF; font-family: var(--font-sans); }
.trust-mark .mark-visa { color: #1A1F71; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.trust-mark .mark-ssl { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--navy); font-weight: 700; font-size: 0.85rem; }
.trust-mark .mark-ssl svg { color: var(--accent-ink); height: 15px; }

.trust-inline {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.45rem 0.85rem; margin-top: 0.9rem;
}
.trust-inline svg { width: 15px; height: 15px; color: var(--accent-ink); flex: none; }
.trust-inline.on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--text-inverse-secondary); }
.trust-inline.on-dark svg { color: var(--teal); }

/* ---------- Barre de recherche « Trouver un pro » ---------- */
.search-bar {
  /* Fond toujours Oxford Blue, qu'importe le thème — voir .card-navy / .testimonial.
     Les champs à l'intérieur restent toujours clairs pour rester lisibles sur ce fond. */
  --bg-subtle: #F6F8FA;
  --bg: #FFFFFF;
  --border: #E3E6EE;
  --text: var(--navy);
  background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.4rem); box-shadow: var(--shadow-md);
  display: grid; gap: 0.75rem; max-width: 760px; margin-inline: auto;
}
.search-bar .search-field label { color: #B9C4E0; }
.search-bar .search-field svg { color: #4A4D6B; }
@media (min-width: 720px) {
  .search-bar { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
.search-field label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.search-field { position: relative; }
.search-field svg {
  position: absolute; left: 0.9rem; top: 2.45rem; width: 17px; height: 17px;
  color: var(--text-secondary); pointer-events: none;
}
.search-field select, .search-field input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg-subtle);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem 1rem 0.8rem 2.5rem;
  appearance: none;
}
.search-field select:focus, .search-field input:focus { border-color: var(--accent-ink); outline: none; background: var(--bg); }
.search-bar .btn { white-space: nowrap; }
.search-results { max-width: 760px; margin: 1.5rem auto 0; }
.birdpost-badge {
  display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.5rem;
  background: var(--teal); color: #FFFFFF; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; vertical-align: middle;
}
.search-result-unregistered {
  display: block; font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.15rem;
}
.search-suggestions {
  /* Dans le flux normal (pas absolute) : un menu en superposition recouvrait
     le champ « lieu » juste en dessous dans la mise en page empilée
     (mobile/étroit) et bloquait les clics qui lui étaient destinés — vérifié
     en test réel. Pousser le champ suivant vers le bas au lieu de le
     recouvrir est le compromis le plus sûr. */
  margin-top: 0.3rem; max-height: 240px; overflow-y: auto;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.search-suggestion-group-label {
  padding: 0.5rem 0.9rem 0.3rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-secondary);
}
.search-suggestion-item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.55rem 0.9rem; font-size: 0.92rem; color: var(--text);
}
.search-suggestion-item:hover, .search-suggestion-item:focus-visible { background: var(--bg-subtle); outline: none; }
.search-view-toggle { display: inline-flex; gap: 0.3rem; margin-bottom: 1rem; background: var(--bg-subtle); border-radius: var(--radius-pill); padding: 0.25rem; }
.search-view-btn {
  border: none; background: none; cursor: pointer; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.85rem; color: var(--text-secondary);
}
.search-view-btn[aria-pressed="true"] { background: var(--bg); color: var(--navy); box-shadow: var(--shadow-sm); }
.search-map { height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.search-map .leaflet-popup-content { font-size: 0.85rem; }
.search-map .leaflet-popup-content .birdpost-badge { display: block; margin: 0.3rem 0; width: fit-content; }
.search-map .leaflet-popup-content .btn { display: inline-block; margin-top: 0.4rem; padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.category-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem; }
.category-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.5rem 1rem 0.5rem 0.6rem; font-weight: 700; font-size: 0.86rem;
  text-decoration: none; color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-pill .pill-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); flex: none;
}
.category-pill .pill-icon svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .category-pill:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
}

/* ---------- Carte fictive (illustration « près de chez vous ») ---------- */
.map-mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  background:
    linear-gradient(color-mix(in srgb, var(--border) 85%, transparent) 1.5px, transparent 1.5px) 0 0/42px 42px,
    linear-gradient(90deg, color-mix(in srgb, var(--border) 85%, transparent) 1.5px, transparent 1.5px) 0 0/42px 42px,
    var(--bg-subtle);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.map-mock .pin {
  position: absolute; color: var(--lapis); filter: drop-shadow(0 2px 3px rgba(0,3,51,0.18));
}
.map-mock .pin svg { width: 26px; height: 26px; }
.map-mock .pin.featured { color: var(--navy); }
.map-mock .pin.featured svg { width: 40px; height: 40px; }
.map-mock .pin.featured .bird { position: absolute; inset: 0; margin: auto; width: 16px; top: 6px; }
.map-mock .callout {
  /* Bulle toujours blanche/texte foncé, quel que soit le thème de la page. */
  position: absolute; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 0.5rem 0.75rem; font-size: 0.76rem; font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; gap: 0.4rem; color: var(--navy);
}
.map-mock .callout .stars { color: #0A7A7A; font-size: 0.7rem; letter-spacing: 0.05em; }

/* ---------- Inscription / connexion ---------- */
.auth-shell { max-width: 480px; margin-inline: auto; }
.auth-shell.wide { max-width: 760px; }
.step-indicator { text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 1.5rem; }

.profile-picker { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .profile-picker { grid-template-columns: 1fr 1fr; } }
.profile-card {
  display: block; text-align: left; width: 100%; cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-card:hover { border-color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.profile-card[aria-pressed="true"] { border-color: var(--navy); border-width: 2px; box-shadow: var(--shadow-md); }
.profile-card .card-icon { margin-bottom: 0.9rem; }
.profile-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.profile-card p { font-size: 0.86rem; margin: 0; }

.radius-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radius-option {
  flex: 1 1 auto; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.6rem 0.5rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; background: var(--bg);
}
.radius-option input { position: absolute; opacity: 0; pointer-events: none; }
.radius-option:has(input:checked) { border-color: var(--navy); background: var(--bg-subtle); }

.password-field { position: relative; }
.password-field button {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 0.3rem;
}
.password-field button svg { width: 18px; height: 18px; }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.auth-switch a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }

/* ---------- Tableaux de bord ---------- */
.dash-hero { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding-block: 2rem; }
.dash-hero h1 { margin-bottom: 0.25rem; }
.dash-shell { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .dash-shell { grid-template-columns: 220px 1fr; } }

.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; position: sticky; top: 92px; }
.dash-nav button {
  display: flex; align-items: center; gap: 0.6rem; text-align: left; background: none; border: none;
  padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem;
  color: var(--text-secondary); cursor: pointer;
}
.dash-nav button svg { width: 18px; height: 18px; flex: none; }
.dash-nav button[aria-current="true"] { background: var(--bg-subtle); color: var(--navy); }
@media (max-width: 859px) {
  .dash-nav { flex-direction: row; overflow-x: auto; position: static; gap: 0.5rem; padding-bottom: 0.5rem; }
  .dash-nav button { white-space: nowrap; }
}

.dash-panel[hidden] { display: none; }
.dash-stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (min-width: 680px) { .dash-stat-row { grid-template-columns: repeat(4, 1fr); } }
.dash-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; }
.dash-stat .num { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.dash-stat .label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; }

/* Disponibilité pro — mêmes paires de couleurs que .status-badge, pas de
   nouvelle palette inventée. */
.availability-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); }
.availability-badge.available_now { background: #E7F6EC; color: #1C7A3D; }
.availability-badge.available_soon { background: #FDF1E0; color: #8A5A00; }
.availability-badge.busy { background: #FDEBE0; color: var(--danger); }
.availability-badge.unknown { background: #F3F2EF; color: #5B5752; }
.availability-note { display: block; font-size: 0.78rem; font-style: italic; color: var(--text-secondary); margin-top: 0.25rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.data-table th .no-uppercase { text-transform: none; }
.data-table td { padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.table-wrap .data-table { min-width: 480px; }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--text-secondary); }
.empty-state svg { width: 34px; height: 34px; color: var(--border); margin: 0 auto 0.75rem; }

.status-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); }
.status-badge.pending { background: #FDF1E0; color: #8A5A00; }
.status-badge.blocked { background: var(--success-bg); color: var(--accent-ink); }
.status-badge.confirmed { background: var(--success-bg); color: var(--accent-ink); }
.status-badge.traitement_virement { background: #FDF1E0; color: #8A5A00; }
.status-badge.virement_echoue { background: #FDEBE0; color: var(--danger); }
.status-badge.released { background: #E7F6EC; color: #1C7A3D; }
.status-badge.cancelled { background: #FDEBE0; color: var(--danger); }
/* Virement bancaire "blocked" sans fonds réellement garantis (ACSS ne
   permet aucune réservation à l'avance) — doit rester visuellement
   distinct de "Fonds bloqués" (carte), car c'est le signal sur lequel le
   sous-traitant décide de commencer le travail. */
.status-badge.is-unsecured { background: #F3F2EF; color: #5B5752; }

.search-result-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.search-result-card + .search-result-card { margin-top: 0.75rem; }

/* ---------- Révélation douce au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Grands titres : révélés un à un au défilement, une seule fois par visite. */
  h2[data-reveal-text] {
    opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease;
  }
  h2[data-reveal-text].is-revealed { opacity: 1; transform: none; }

  /* Le surlignage se dessine de gauche à droite une fois le titre révélé. */
  .accent-underline[data-reveal-text]::after {
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease 0.2s;
  }
  .accent-underline[data-reveal-text].is-revealed::after { transform: scaleX(1); }
}

/* ---------- Pied de page : lien discret vers /fondateur ---------- */
.founder-link { text-decoration: none; }
.founder-link:hover { text-decoration: underline; }

/* ---------- Page Fondateur (/fondateur, hors navigation) ---------- */
.page-founder { padding-block: clamp(4rem, 10vw, 7rem); }
.founder-container { max-width: 640px; margin-inline: auto; text-align: center; }
.founder-photo-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.founder-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; }
.founder-photo-placeholder {
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700;
}
.founder-name { font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 700; margin: 0 0 0.35rem; }
.founder-role { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 2.5rem; }
.founder-quotes { display: flex; flex-direction: column; gap: 1.75rem; margin-bottom: 2.5rem; }
.founder-quote { font-size: clamp(1.25rem, 2.4vw, 1.4rem); font-style: italic; color: var(--text); margin: 0; line-height: 1.55; }
.founder-sep { border: none; border-top: 1px solid var(--border); width: 72px; margin: 0 auto; }
.founder-back { font-size: 0.95rem; color: var(--text-secondary); text-decoration: none; }
.founder-back:hover { text-decoration: underline; }

/* Collecte du moyen de paiement (Stripe Payment Element) — voir
   assets/js/stripe-elements.js. */
dialog[data-stripe-payment-dialog] {
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2rem); width: min(480px, 92vw); background: var(--bg); color: var(--text);
}
dialog[data-stripe-payment-dialog]::backdrop { background: rgba(0, 3, 51, 0.55); }
dialog[data-stripe-payment-dialog] h3 { margin: 0 0 1rem; }
dialog[data-stripe-payment-dialog] #stripe-payment-element-mount { min-height: 220px; margin-bottom: 1rem; }
dialog[data-stripe-payment-dialog] [data-stripe-payment-error] { color: var(--danger); margin: 0 0 1rem; }
dialog[data-stripe-payment-dialog] .btn-group { justify-content: flex-end; }

/* Profil de réputation client (lib/client-reputation.js) — pros uniquement. */
dialog[data-reputation-dialog] {
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2rem); width: min(480px, 92vw); max-height: 80vh; overflow-y: auto;
  background: var(--bg); color: var(--text);
}
dialog[data-reputation-dialog]::backdrop { background: rgba(0, 3, 51, 0.55); }
dialog[data-reputation-dialog] .btn-group { justify-content: flex-end; margin-top: 1rem; }
.rep-badge { display: inline-block; font-size: 0.8rem; font-weight: 600; margin-left: 0.4rem; }
.rep-warn { display: block; font-size: 0.78rem; color: var(--danger); margin-top: 0.15rem; }
.rep-comment { border-top: 1px solid var(--border); padding: 0.5rem 0; font-size: 0.9rem; }
.rep-comment-stars { font-weight: 700; }
