:root {
  --paper: #f6f0e4;
  --ink: #1f1b16;
  --muted: #6f6254;
  --line: #d8c7ad;
  --accent: #6e2f1a;
  --accent-dark: #4a1e10;
  --white: #fffaf1;
}

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

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 70px 0;
  background:
    linear-gradient(rgba(31, 27, 22, 0.55), rgba(31, 27, 22, 0.55)),
    repeating-linear-gradient(45deg, #6e2f1a, #6e2f1a 12px, #7c3a22 12px, #7c3a22 24px);
  color: var(--white);
  text-align: center;
  border-bottom: 6px double var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin: 0;
  line-height: 0.95;
}

.subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 22px auto 0;
  max-width: 780px;
}

.language-panel {
  margin: 32px auto 0;
  max-width: 900px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.45);
  background: rgba(255, 250, 241, 0.08);
}

.language-panel p {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.language-button,
.country-card button {
  font: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: var(--white);
  color: var(--accent-dark);
}

.language-button.active,
.country-card button:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.button.secondary { color: var(--white); }
.button.disabled { opacity: 0.55; cursor: not-allowed; }

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section.accent { background: var(--white); }

.poster-section { text-align: center; }

.poster-frame {
  margin: 28px auto 10px;
  max-width: 760px;
  background: white;
  padding: 14px;
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(110, 47, 26, 0.12);
}

.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 34px;
  align-items: start;
}

.world-section { background: #efe4d1; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.country-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.country-card span {
  font-size: 1.15rem;
  font-weight: bold;
}

.country-card small {
  color: var(--muted);
  margin: 6px 0 12px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 18px;
}

h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

p { font-size: 1.08rem; }
.large { font-size: 1.25rem; }
.small { color: var(--muted); font-size: 0.95rem; }

.card,
.order-box,
.price-card,
.donation-example {
  background: var(--white);
  border: 2px solid var(--line);
  padding: 24px;
  box-shadow: 8px 8px 0 rgba(110, 47, 26, 0.12);
}

.order-box { margin: 24px 0 12px; }
.payment-box { margin-top: 28px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.price {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: bold;
  color: var(--accent-dark);
  margin: 0 0 12px;
}

.donation-example {
  margin-top: 24px;
}

.donation-example ul {
  margin: 0;
  padding-left: 1.4rem;
}

.donation-example li {
  margin: 0.35rem 0;
  font-size: 1.08rem;
}

a { color: var(--accent-dark); }

footer {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .two-columns { grid-template-columns: 1fr; }
  .hero { padding: 55px 0 50px; }
  .poster-frame { padding: 8px; }
}

@media (max-width: 520px) {
  .country-grid { grid-template-columns: 1fr; }
}


/* Ajustements pour l’arabe */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .buttons,
html[dir="rtl"] .language-buttons {
  direction: rtl;
}

html[dir="rtl"] .poster-section,
html[dir="rtl"] footer {
  text-align: center;
}

html[dir="rtl"] .donation-example ul {
  padding-left: 0;
  padding-right: 1.4rem;
}
