/* ==========================================================================
   Parrain Radin — Design system
   Une seule feuille de style pour le site public, l'espace membre et l'admin.
   Mobile d'abord ; points de rupture : 640px, 768px, 1024px.
   ========================================================================== */

:root {
  /* Marque */
  --brand-900: #14321a;
  --brand-800: #1d4220;
  --brand-700: #2d5a27;
  --brand-600: #3a7232;
  --brand-100: #e4efe0;
  --brand-50: #f2f7f0;

  /* Accent (primes, mises en avant) */
  --accent-700: #b45309;
  --accent-500: #f59e0b;
  --accent-100: #fdf0d5;

  /* Neutres */
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6b6560;
  --subtle: #a8a29e;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --surface: #ffffff;
  --bg: #faf9f7;
  --bg-2: #f3f2ef;

  /* États */
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --success: #2d5a27;
  --success-bg: #e4efe0;

  /* Alias historiques (utilisés par admin.html) */
  --primary: var(--brand-700);
  --primary-hover: var(--brand-800);
  --primary-light: var(--brand-100);
  --primary-text: var(--brand-900);
  --bg-main: var(--bg);
  --bg-card: var(--surface);
  --bg-subtle: var(--bg-2);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-light: var(--subtle);
  --border: var(--line);
  --border-focus: var(--brand-700);
  --accent-amber: var(--accent-700);
  --accent-amber-bg: var(--accent-100);
  --accent-blue: #0369a1;
  --accent-blue-bg: #e0f2fe;

  /* Formes & ombres */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow: 0 2px 4px rgba(28, 25, 23, 0.04), 0 6px 16px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 4px 8px rgba(28, 25, 23, 0.05), 0 16px 40px rgba(28, 25, 23, 0.10);
  --ring: 0 0 0 3px rgba(45, 90, 39, 0.22);

  /* Typographie */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-700); }

img, svg { display: block; max-width: 100%; }

/* L'attribut hidden masque toujours, même si une classe définit display */
[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--brand-100); color: var(--brand-900); }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--brand-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.text-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   En-tête & navigation
   -------------------------------------------------------------------------- */
header, .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--brand-700); font-weight: 600; }

#nav-auth-container { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* Menu mobile : activé seulement si JavaScript est disponible (classe .js sur <html>) */
@media (max-width: 767px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-header .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .js .site-header.nav-open .nav-links { display: flex; }
  .js .site-header.nav-open .nav-toggle .icon-menu { display: none; }
  .js .site-header.nav-open .nav-toggle .icon-close { display: block; }
  .js .site-header .nav-link { padding: 12px; }
  .js .site-header #nav-auth-container { flex-direction: column; align-items: stretch; padding-top: 0.5rem; border-top: 1px solid var(--line); margin-top: 0.25rem; }
  .js .site-header #nav-auth-container .btn { width: 100%; }
  .nav-wrapper { position: relative; }
  html:not(.js) .nav-wrapper { flex-wrap: wrap; padding: 0.5rem 0; }
}

/* En-têtes sans menu repliable (admin, pages de connexion) : passage à la ligne sur mobile */
@media (max-width: 767px) {
  header:not(.site-header) .nav-wrapper, header:not(:has(.nav-toggle)) .nav-wrapper { flex-wrap: wrap; padding: 0.6rem 0; }
  header:not(.site-header) .nav-links { flex-wrap: wrap; gap: 0.25rem; }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-800); color: #fff; }

.btn-accent { background: var(--accent-500); color: var(--ink); }
.btn-accent:hover { background: #e48b06; color: var(--ink); }

.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--bg-2); border-color: var(--subtle); color: var(--ink); }

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }

.btn-danger { background: var(--surface); border-color: #f3c4c4; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn.is-done { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* --------------------------------------------------------------------------
   Sections & titres
   -------------------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2.5rem 0 1.25rem;
}
.section-title h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; }
.section-title p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.section-title .link-more { font-weight: 600; color: var(--brand-700); display: inline-flex; align-items: center; gap: 4px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Hero (accueil) & recherche
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 3rem 0 2rem;
  text-align: center;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(58, 114, 50, 0.16), transparent 70%),
    radial-gradient(500px 260px at 90% 10%, rgba(245, 158, 11, 0.10), transparent 70%);
}
@media (min-width: 768px) { .hero { padding: 4.5rem 0 2.5rem; } }

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  margin: 1rem auto 0.9rem;
  max-width: 820px;
}
.hero h1 .highlight { color: var(--brand-700); }
.hero p.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within { border-color: var(--brand-700); box-shadow: var(--shadow), var(--ring); }
.search-box .icon { position: absolute; left: 18px; color: var(--subtle); width: 20px; height: 20px; }
.search-input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px 15px 50px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 1rem;
  outline: none;
}
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-box .btn { margin: 5px; border-radius: var(--radius-full); }
@media (max-width: 479px) { .search-box .btn { display: none; } }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-stats strong { color: var(--ink); font-size: 1.05rem; }

/* Puces de catégorie = boutons radio d'un formulaire (fonctionne sans JavaScript) */
.categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1.25rem 0 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.categories-bar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .hero .categories-bar { justify-content: center; flex-wrap: wrap; } }

.cat-chip {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip:hover { border-color: var(--brand-600); color: var(--brand-800); }
.cat-chip:has(input:focus-visible) { box-shadow: var(--ring); }
.cat-chip.active, .cat-chip:has(input:checked) {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

/* Barre de filtres du catalogue */
.filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.filters .search-box { margin: 0; max-width: 520px; box-shadow: var(--shadow-sm); }
.filters .categories-bar { padding-top: 0.75rem; }

fieldset.categories-bar { border: 0; min-width: 0; margin: 0; }

/* Indicateur de chargement htmx (hx-indicator sur la grille) */
.grid-offers { transition: opacity 0.2s; }
.grid-offers.htmx-request { opacity: 0.5; }

/* --------------------------------------------------------------------------
   Cartes d'offre
   -------------------------------------------------------------------------- */
.grid-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}
@media (min-width: 768px) { .grid-offers { gap: 1.25rem; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: inherit; }

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 0.9rem; }
.card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.card-avatar-logo { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 6px; box-shadow: none; }
.card-avatar-logo img { width: 100%; height: 100%; object-fit: contain; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand-100);
  color: var(--brand-900);
  margin-top: 4px;
}
.card-badge.badge-accent { background: var(--accent-100); color: #7c3a06; }

.card-desc {
  flex-grow: 1;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.card-footer .count { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.card-footer .cta { color: var(--brand-700); font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
a.card:hover .card-footer .cta .icon { transform: translateX(3px); }
.card-footer .cta .icon { transition: transform 0.2s; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-state strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.35rem; }
.empty-state .btn { margin-top: 1rem; }

/* Pagination du catalogue (élément pleine largeur de la grille) */
.pagination {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pagination-info { color: var(--muted); font-size: 0.9rem; }
.pagination-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
a.pagination-link:hover { border-color: var(--brand-700); color: var(--brand-800); background: var(--brand-50); }
.pagination-link[aria-current="page"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pagination-link[aria-disabled="true"] { color: var(--subtle); background: var(--bg-2); }
.pagination-prev .icon { transform: scaleX(-1); }
.pagination-gap { color: var(--subtle); padding: 0 0.15rem; }
/* Sur mobile : seulement Précédente / Suivante (la ligne « Page N sur M » donne la position) */
@media (max-width: 639px) {
  .pagination-list li:not(.pagination-edge) { display: none; }
  .pagination-list { gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Comment ça marche
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.step {
  position: relative;
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 800;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Annonces (parrains)
   -------------------------------------------------------------------------- */
.listings { display: flex; flex-direction: column; gap: 0.75rem; }

.listing-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.listing-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.listing-action { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 768px) {
  .listing-item { grid-template-columns: auto 1fr auto; align-items: center; padding: 1.15rem 1.35rem; }
  .listing-action { grid-column: auto; }
}

.listing-info { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.listing-body { min-width: 0; }
.listing-title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.listing-title .for { font-weight: 500; font-size: 0.86rem; color: var(--muted); }
.listing-title .for a { color: var(--brand-700); font-weight: 600; }
.listing-desc { color: var(--muted); font-size: 0.93rem; margin-top: 2px; overflow-wrap: anywhere; white-space: pre-line; }
.listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--subtle);
}
.listing-meta strong { color: var(--ink-2); font-weight: 600; }

.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-weight: 700;
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.code-copy {
  display: flex;
  align-items: stretch;
  border: 1px dashed var(--brand-600);
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  overflow: hidden;
}
.listing-code-box {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--brand-800);
  overflow-wrap: anywhere;
  user-select: all;
}
.code-copy .btn { border-radius: 0; min-height: 44px; }
@media (min-width: 768px) { .code-copy { min-width: 260px; } }
.listing-action > .btn { width: 100%; }
@media (min-width: 768px) { .listing-action > .btn { width: auto; } }

.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--subtle);
  font-size: 0.8rem;
  transition: color 0.15s, background 0.15s;
}
.report-btn:hover { color: var(--danger); background: var(--danger-bg); }
.report-btn .icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Fiche offre
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: 0.88rem; color: var(--muted); padding: 1.25rem 0 0.75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--subtle); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.offer-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(600px 200px at 100% 0%, rgba(58, 114, 50, 0.08), transparent 70%);
}
@media (min-width: 768px) { .offer-hero { padding: 2rem 2.25rem; } }

.offer-hero-head { display: flex; gap: 1rem; align-items: center; }
.offer-avatar-lg .card-avatar { width: 64px; height: 64px; border-radius: 16px; font-size: 1.5rem; }
@media (min-width: 768px) { .offer-avatar-lg .card-avatar { width: 76px; height: 76px; font-size: 1.7rem; } }

.offer-hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 850; letter-spacing: -0.03em; }
.offer-hero .updated { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.offer-hero .lead { margin-top: 1.1rem; font-size: 1.05rem; color: var(--ink-2); max-width: 760px; }

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; } }

.benefit {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.benefit.benefit-accent { background: #fffaf0; border-color: var(--accent-100); }
.benefit .icon { width: 22px; height: 22px; color: var(--brand-700); margin-top: 2px; }
.benefit.benefit-accent .icon { color: var(--accent-700); }
.benefit .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.benefit .value { font-weight: 700; color: var(--ink); line-height: 1.35; }

.offer-hero .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

.offer-details {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  line-height: 1.75;
  color: var(--ink-2);
}
@media (min-width: 768px) { .offer-details { padding: 1.75rem 2rem; } }
.category-details { margin-top: 2.5rem; }
.offer-details h2 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--ink); }
.offer-details p + p { margin-top: 0.75rem; }
.offer-details-block + .offer-details-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.offer-conditions { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section { margin: 3rem 0 1rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-700);
  border-bottom: 2px solid var(--brand-700);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { transform: rotate(-135deg) translateY(-3px); }
.faq-answer { padding: 0 1.15rem 1.1rem; color: var(--muted); line-height: 1.7; }

.similar-section { margin: 3rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.form-label .optional { font-weight: 400; color: var(--muted); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem; /* 16px : évite le zoom automatique sur iOS */
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-textarea { resize: vertical; min-height: 96px; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--brand-700); box-shadow: var(--ring); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--subtle); }

.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--brand-700); }

.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }

/* Pages d'authentification */
.auth-page { display: grid; place-items: center; padding: 2rem 0 4rem; }
@media (min-width: 768px) { .auth-page { padding: 4rem 0 5rem; } }

.form-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form-card { padding: 2.25rem 2rem; } }

.form-card-head { text-align: center; margin-bottom: 1.75rem; }
.form-card-head .logo-badge { margin: 0 auto 1rem; width: 46px; height: 46px; border-radius: 14px; font-size: 0.95rem; }
.form-card-head h1 { font-size: 1.55rem; font-weight: 800; }
.form-card-head p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.form-card-foot { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.form-card-foot a, .link { color: var(--brand-700); font-weight: 600; }
.form-card-foot a:hover, .link:hover { text-decoration: underline; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.label-row .form-label { margin: 0; }
.label-row a { font-size: 0.85rem; }

.notice {
  display: flex;
  gap: 10px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-900);
  font-size: 0.92rem;
}
.notice .icon { margin-top: 2px; color: var(--brand-700); }
.verify-notice { margin-bottom: 1.25rem; background: var(--warning-bg); border-color: #fde68a; color: var(--ink); }
.verify-notice strong { display: block; margin-bottom: 0.2rem; }
.verify-notice .btn { margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   Espace membre
   -------------------------------------------------------------------------- */
.page-head { padding: 1.5rem 0 0.5rem; }
.page-head .breadcrumb { padding-top: 0; }
.page-title { font-size: clamp(1.6rem, 1.25rem + 1.8vw, 2.25rem); font-weight: 850; letter-spacing: -0.03em; }
.page-lead { color: var(--muted); margin-top: 0.35rem; max-width: 680px; }

/* Bandeau de profil */
.profile-hero {
  position: relative;
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-cover {
  height: 92px;
  background:
    radial-gradient(400px 120px at 15% 0%, rgba(245, 158, 11, 0.35), transparent 70%),
    linear-gradient(120deg, var(--brand-700), var(--brand-900));
}
@media (min-width: 768px) { .profile-cover { height: 120px; } }
.profile-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0 1.25rem 1.25rem;
  margin-top: -40px;
}
@media (min-width: 768px) { .profile-body { padding: 0 1.75rem 1.5rem; margin-top: -48px; } }
.profile-id { display: flex; align-items: flex-end; gap: 1rem; min-width: 0; }
.profile-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .profile-avatar { width: 100px; height: 100px; } }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-id h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 850; letter-spacing: -0.02em; }
.profile-id p { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 639px) { .profile-actions, .profile-actions .btn { width: 100%; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; } }
.stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat .value { font-size: 1.5rem; font-weight: 850; line-height: 1.1; letter-spacing: -0.02em; }
.stat .label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.stat.stat-accent { background: var(--brand-50); border-color: var(--brand-100); }
.stat.stat-accent .value { color: var(--brand-700); }

/* Onglets */
.tabs {
  display: flex;
  gap: 0.25rem;
  margin: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.7rem 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.tab .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: var(--radius-full); background: var(--bg-2); font-size: 0.75rem; }
.tab-panel[hidden] { display: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.toolbar .form-select { width: auto; min-width: 200px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
@media (min-width: 640px) { .panel { padding: 1.5rem 1.75rem; } }
.panel h2 { font-size: 1.15rem; font-weight: 750; margin-bottom: 0.35rem; }
.panel > .panel-lead { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.panel + .panel { margin-top: 1rem; }

.settings-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.avatar-edit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.avatar-edit .profile-avatar { width: 76px; height: 76px; box-shadow: none; border: 1px solid var(--brand-100); font-size: 1.6rem; }

/* Mes annonces : grille de cartes */
.my-listings { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .my-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.my-listings > .empty-state { grid-column: 1 / -1; }

.my-listing {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.my-listing:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.my-listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.my-listing-offer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.my-listing-offer .card-avatar { width: 40px; height: 40px; border-radius: 10px; font-size: 0.95rem; }
.my-listing-offer strong { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.my-listing h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.my-listing p { flex: 1; color: var(--muted); font-size: 0.93rem; margin-top: 0.6rem; overflow-wrap: anywhere; }
.my-listing .code-copy { margin-top: 0.9rem; }
.my-listing-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.my-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.my-listing-actions .spacer { flex: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-2);
  color: var(--ink-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-plain::before { display: none; }

.file-input { padding: 8px; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Publier / modifier une annonce
   -------------------------------------------------------------------------- */
.editor-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem 0 4rem; }
@media (min-width: 1024px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 2rem; } }

.form-step + .form-step { margin-top: 1rem; }
.step-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 750; margin-bottom: 0.35rem; }
.step-title .num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-700);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Choix de l'offre : recherche + liste défilante chargée page par page */
.offer-picker-search { margin: 0.75rem 0 0.6rem; box-shadow: none; }
.offer-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.offer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.offer-row + .offer-row { margin-top: 2px; }
.offer-row:hover, .offer-row.is-active { background: var(--brand-50); }
.offer-row.is-active { box-shadow: inset 0 0 0 2px var(--brand-600); }
.offer-row[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; background: none; }
.offer-row .card-avatar { width: 36px; height: 36px; border-radius: 9px; font-size: 0.85rem; flex-shrink: 0; }
.offer-row-text { flex: 1; min-width: 0; }
.offer-row .name { display: block; font-weight: 650; font-size: 0.93rem; line-height: 1.25; }
.offer-row .opt-benefit { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-row-cat { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.offer-list-status { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 639px) {
  .offer-list { max-height: 55vh; }
  .offer-row-cat { display: none; }
}

.offer-locked { display: flex; align-items: center; gap: 12px; padding: 0.9rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); margin-top: 0.75rem; }
.offer-locked .card-avatar { width: 42px; height: 42px; border-radius: 10px; font-size: 1rem; flex-shrink: 0; }
.offer-locked .form-hint { margin: 0; }
.offer-selected { justify-content: space-between; }
.offer-selected-body { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Bascule code / lien */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 1rem;
  width: 100%;
  max-width: 420px;
}
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

.char-count { display: block; text-align: right; font-size: 0.78rem; color: var(--subtle); margin-top: 4px; }
.char-count.is-near { color: var(--warning); }

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
@media (max-width: 639px) { .editor-actions .btn { flex: 1; } }

/* Aperçu en direct */
.preview-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.6rem; }
@media (min-width: 1024px) { .editor-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.preview .listing-item { grid-template-columns: auto 1fr; box-shadow: var(--shadow); }
.preview .listing-action { grid-column: 1 / -1; }
.preview .listing-title:empty::before { content: "Titre de votre annonce"; color: var(--subtle); }
.preview .listing-desc:empty::before { content: "Votre description apparaîtra ici."; color: var(--subtle); }
.tips { list-style: none; display: grid; gap: 0.6rem; margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-2); }
.tips li { display: flex; gap: 8px; }
.tips li::before { content: "✓"; color: var(--brand-700); font-weight: 800; }

/* --------------------------------------------------------------------------
   Fenêtre modale (attribut hidden pour la masquer)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(2px);
}
.modal-backdrop[hidden] { display: none; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 1rem; } }

.modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease-out;
}
@media (min-width: 640px) { .modal-box { border-radius: var(--radius-lg); padding: 2rem; } }
.modal-box h2 { font-size: 1.25rem; font-weight: 750; margin-bottom: 0.35rem; }
.modal-box > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }

@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Notifications (toasts)
   -------------------------------------------------------------------------- */
#toast-container {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 640px) { #toast-container { left: auto; right: 24px; bottom: 24px; align-items: flex-end; } }

.toast {
  max-width: 420px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease-out;
}
.toast.success { background: var(--brand-800); }
.toast.error { background: var(--danger); }

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
footer, .site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; padding: 3rem 0 2.5rem; } }

.footer-brand p { margin-top: 0.75rem; max-width: 360px; }
.footer-col h2 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-col a:hover { color: var(--brand-700); }

.footer-bottom, .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.footer-content { border-top: none; padding: 1.75rem 0; }

/* --------------------------------------------------------------------------
   Page d'erreur
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding: 4rem 0 5rem; }
.error-page .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 900; letter-spacing: -0.05em; color: var(--brand-100); line-height: 1; }
.error-page h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin: 0.5rem 0; }
.error-page p { color: var(--muted); margin-bottom: 1.5rem; }
.error-page .actions { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Accessibilité : réduire les animations si demandé
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
