/* Kaddu Troc — feuille de style
   Palette héritée de la plateforme Kaddu : crème, encre, terre cuite, ocre. */
:root {
  --bg: #f6f1e6;
  --bg-soft: #efe6d5;
  --surface: #fdfaf3;
  --ink: #1d2422;
  --ink-soft: #46524c;
  --ink-faint: #7d857c;
  --terra: #a9502a;
  --terra-deep: #8c3f20;
  --ocre: #b98a2f;
  --green: #2e5e4e;
  --green-deep: #234a3e;
  --line: #ddd0ba;
  --line-soft: #e7dcc8;
  --shadow: 0 18px 42px rgba(29, 36, 34, 0.15);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816;
    --bg-soft: #191f1c;
    --surface: #1d2421;
    --ink: #f0e9da;
    --ink-soft: #c9c2b0;
    --ink-faint: #93917f;
    --terra: #d97e4f;
    --terra-deep: #d97e4f;
    --ocre: #d3a94f;
    --green: #7fbfa9;
    --green-deep: #7fbfa9;
    --line: #3a443e;
    --line-soft: #2b332e;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  background-image: radial-gradient(rgba(169, 80, 42, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  font-size: 17.5px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: var(--terra-deep); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre supérieure & manchette ---------- */
.topbar { border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; }
.topbar a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--terra-deep); }
.lang-switch { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang-switch a { padding: 1px 9px; font-size: 12.5px; letter-spacing: .06em; }
.lang-switch a.actif { background: var(--terra); color: #fff; }
.lang-switch a.actif:hover { color: #fff; }
.masthead { text-align: center; padding: 30px 0 6px; }
.masthead-sur { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--terra-deep); text-transform: uppercase; }
.masthead-titre { font-size: clamp(48px, 10vw, 88px); margin-top: 6px; }
.masthead-titre span { color: var(--terra); font-style: italic; font-weight: 600; }
.masthead-devise { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(18px, 3vw, 23px); color: var(--ink-soft); margin-top: 8px; }

/* ---------- Bandeau héros ---------- */
.hero-img { margin: 22px auto 0; max-width: 1120px; padding: 0 20px; }
.hero-img figure { margin: 0; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.hero-img img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.hero-img figcaption { font-size: 12.5px; color: var(--ink-faint); padding: 7px 14px 9px; font-style: italic; }
.lede { max-width: 820px; margin: 30px auto 0; text-align: center; padding: 0 20px; }
.lede h2 { font-size: clamp(28px, 4.6vw, 40px); margin-bottom: 12px; }
.lede p { font-size: 18.5px; color: var(--ink-soft); }
.lede p strong { color: var(--ink); }

/* ---------- Boutons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; text-decoration: none; font-weight: 700; font-size: 15.5px; border: 1px solid transparent; }
.btn-solid { background: var(--terra); color: #fff; }
.btn-solid:hover { background: var(--terra-deep); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-deep); }
@media (prefers-color-scheme: dark) { .btn-wa { color: #12211b; } .btn-wa:hover { color: #12211b; } }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Titres de bloc ---------- */
.bloc-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 44px 0 20px; }
.bloc-titre h2 { font-size: 30px; }
.bloc-titre .note { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.etape { background: var(--surface); border: 1px solid var(--line-soft); border-top: 3px solid var(--terra); padding: 18px 18px 20px; }
.etape .num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 700; color: var(--terra-deep); }
.etape h3 { font-size: 21px; margin: 4px 0 8px; }
.etape p { font-size: 15px; color: var(--ink-soft); }
.etape p a { font-weight: 700; }

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-chip { background: var(--surface); border: 1px solid var(--line-soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cat-chip .glyphe { font-size: 22px; line-height: 1; }
.cat-chip strong { font-size: 16.5px; }
.cat-chip span { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Annonces ---------- */
.annonces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.annonce { background: var(--surface); border: 1px solid var(--line-soft); display: flex; flex-direction: column; position: relative; }
.annonce .a-img { position: relative; }
.annonce .a-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; color: #fff; }
.badge.troc { background: var(--green); }
.badge.vente { background: var(--terra); }
.badge.enchere { background: var(--ocre); }
.badge.exemple { left: auto; right: 10px; background: #6d5410; }
.annonce .a-txt { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.annonce h3 { font-size: 21.5px; }
.annonce .a-meta { font-size: 14px; color: var(--ink-faint); }
.annonce p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.annonce .a-echange { font-size: 14.5px; color: var(--ink); background: var(--bg-soft); border-left: 3px solid var(--ocre); padding: 7px 10px; }
.annonce .a-offre { font-size: 14.5px; color: var(--ink); background: var(--bg-soft); border-left: 3px solid var(--ocre); padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; }
.annonce .a-offre .prix { font-size: 17px; font-weight: 700; color: var(--terra-deep); }
.annonce .a-btn { margin-top: 8px; }
.annonce.vide { border: 1.5px dashed var(--ocre); background: var(--bg-soft); align-items: center; justify-content: center; text-align: center; padding: 26px 22px; gap: 10px; }
.annonce.vide h3 { font-size: 24px; }
.annonce.vide p { font-size: 15.5px; color: var(--ink-soft); flex: none; }

/* ---------- Encadrés ---------- */
.encadre { border: 1px solid var(--line); border-left: 4px solid var(--terra); background: var(--surface); padding: 20px 24px; margin: 26px 0; }
.encadre.vert { border-left-color: var(--green); }
.encadre h2, .encadre h3 { margin-bottom: 8px; font-size: 25px; }
.encadre p { color: var(--ink-soft); font-size: 16px; }
.encadre ul { margin: 8px 0 0; padding-left: 20px; }
.encadre li { margin: 6px 0; color: var(--ink-soft); font-size: 16px; }
.encadre li strong { color: var(--ink); }
.interdits { color: var(--terra-deep); font-weight: 700; }

/* ---------- Pied ---------- */
.pied { border-top: 3px double var(--ink); margin-top: 52px; padding: 26px 0 40px; background: var(--surface); }
.pied-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; text-align: center; }
.pied .pied-titre { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 700; }
.pied p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }
.pied nav { margin-top: 12px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.pied nav a { font-weight: 700; font-size: 14.5px; text-decoration: none; }

@media (max-width: 900px) {
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .annonces { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 4/3; }
}
@media (max-width: 520px) {
  .etapes { grid-template-columns: 1fr; }
}
