:root {
  --green: #1f3d2b;
  --green-2: #2c5a3f;
  --clay: #b8532f;
  --clay-2: #9c4224;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1d1d1b;
  --muted: #5d5a52;
  --line: #e4dccb;
  --ball: #d7e84a;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
html[lang='ar'] { --font: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif; --display: 'Noto Kufi Arabic', Georgia, serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--clay-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { width: auto; height: auto; margin: 0; clip: auto; clip-path: none; inset-inline-start: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px; }

/* Barre du haut */
.topbar { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; letter-spacing: .2px; }
.brand b { color: var(--ball); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #e8efe9; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.lang:hover { background: rgba(255,255,255,.1); }

/* Hero : terre battue + lignes de court */
.hero { position: relative; overflow: hidden; background: var(--clay); color: #fff; padding: 64px 0 72px; }
.court { position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center / 3px 100% no-repeat,
    linear-gradient(#fff, #fff) 50% 22% / 70% 3px no-repeat,
    linear-gradient(#fff, #fff) 50% 78% / 70% 3px no-repeat,
    linear-gradient(#fff, #fff) 15% 50% / 3px 56% no-repeat,
    linear-gradient(#fff, #fff) 85% 50% / 3px 56% no-repeat;
}
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.08; margin: 14px 0 12px; text-wrap: balance; }
html[lang='ar'] .hero h1 { line-height: 1.4; }
.subtitle { font-size: clamp(18px, 2.4vw, 23px); margin: 0 0 14px; color: #fff3ea; font-weight: 500; }
.place { margin: 4px 0; color: #ffe9dd; font-size: 15px; }
.hero .btn { margin-top: 22px; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-2); background: #f3e2d6; border-radius: 999px; padding: 4px 12px; }
.tag-light { background: rgba(255,255,255,.18); color: #fff; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-clay { background: var(--green); color: #fff; }
.hero .btn-clay { background: #fff; color: var(--clay-2); }
.btn-clay:hover { background: var(--green-2); }
.hero .btn-clay:hover { background: #fff5ee; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-wa { background: #1f8f4d; color: #fff; }
.btn-fb { background: #1b5fbf; color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }

/* Mise en page */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.content p { margin: 0 0 16px; }
.content h2 { font-family: var(--display); font-size: 23px; margin: 28px 0 12px; color: var(--green); }
.recipients { border-inline-start: 4px solid var(--clay); background: #fbf3ec; padding: 14px 18px; border-radius: 8px; margin-bottom: 24px; }
.recipients h2 { margin: 0 0 6px; font-size: 14px; font-family: var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--clay-2); }
.recipients ul { margin: 0; padding-inline-start: 18px; font-weight: 600; }
.demands { padding-inline-start: 22px; }
.demands li { margin-bottom: 10px; padding-inline-start: 4px; }
.demands li::marker { color: var(--clay); font-weight: 800; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { display: flex; gap: 6px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.recent li span { margin-inline-start: auto; color: var(--muted); font-size: 13px; }

.side { position: sticky; top: 76px; scroll-margin-top: 76px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(31,61,43,.12); border: 1px solid var(--line); }
.count { margin: 0; font-size: 17px; color: var(--muted); }
.count b { font-family: var(--display); font-size: 42px; color: var(--green); margin-inline-end: 4px; }
.bar { height: 10px; background: #eee6d6; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--clay), #d97b4e); border-radius: 99px; transition: width .6s; }
.goal { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

form h2, .thanks h2 { font-family: var(--display); font-size: 21px; color: var(--green); margin: 18px 0 10px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0; }
input:not([type=checkbox]), textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid #d6cdb9; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fffdf9; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,61,43,.15); }
small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; line-height: 1.45; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ts { min-height: 70px; margin: 12px 0 4px; }
.error { background: #fdecea; color: #8a1f12; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.notice { background: #f2efe7; padding: 14px; border-radius: 10px; }

.thanks { text-align: center; }
.ball { width: 54px; height: 54px; border-radius: 50%; margin: 10px auto 0; background: radial-gradient(circle at 35% 35%, #eef77d, var(--ball) 60%, #b5c52f); position: relative; overflow: hidden; }
.ball::before, .ball::after { content: ''; position: absolute; width: 54px; height: 54px; border: 3px solid #fff; border-radius: 50%; }
.ball::before { left: -36px; } .ball::after { right: -36px; }

/* Bientôt */
.coming { background: var(--green); color: #e9f0ea; padding: 48px 0; }
.coming h2 { font-family: var(--display); color: #fff; margin: 0 0 8px; font-size: 26px; }
.coming p { margin: 0 0 18px; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 16px; font-size: 14px; }

/* Liste de campagnes (quand il y en aura plusieurs) */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card h3 { font-family: var(--display); margin: 10px 0 6px; color: var(--green); }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card-count b { color: var(--clay); font-size: 20px; }

.footer { background: #17301f; color: #b9c8bd; font-size: 14px; padding: 28px 0; }
.footer a { color: #e3ece5; }
.footer-in p { margin: 4px 0; }
.loading, .notfound { padding: 80px 16px; text-align: center; color: var(--muted); }

/* Page texte (confidentialité) */
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 32px auto 56px; max-width: 820px; }
.doc h1 { font-family: var(--display); color: var(--green); margin-top: 0; line-height: 1.2; }
.doc h2 { color: var(--green); font-size: 19px; margin-top: 26px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .side { position: static; order: -1; }
  .content, .doc { padding: 22px 18px; }
  .hero { padding: 44px 0 52px; }
}
@media (max-width: 480px) {
  .nav a[href^='/#'] { display: none; }
  .nav { gap: 12px; }
  .brand span { font-size: 17px; }
}
