/* ============================================================
   TĚEGRE, Festival de théâtre de Saaba
   Design: high contrast, dark text on light backgrounds
   (accessibility requirement), Burkina-inspired palette:
   laterite red, ochre gold, deep ink brown, warm cream.
   ============================================================ */

:root {
  /* Palette matched to the official TĚEGRE logo: bright orange + black.
     --laterite is a darkened orange kept AA-readable on cream for small
     text; --ochre is the bright logo orange, reserved for large display
     text and graphic accents. */
  --laterite: #A85400;
  --laterite-dark: #7E3F00;
  --ochre: #F7941D;
  --ink: #191410;           /* near-black, main text (logo black) */
  --ink-soft: #46392C;      /* secondary text */
  --cream: #FAF3E7;         /* page background */
  --cream-deep: #F3E6CF;    /* alt section background */
  --white: #FFFFFF;
  --green: #2E6B3F;         /* Burkina green, small accents */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(25, 20, 16, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 20px;
  max-width: 26ch;
}

p + p { margin-top: 14px; }

a { color: var(--laterite); }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laterite);
  border: 2px solid var(--laterite);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

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

.hidden-field { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--laterite);
  color: var(--white);
}
.btn-primary:hover { background: var(--laterite-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.text-link { font-weight: 600; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(36, 26, 18, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--ochre);
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-text strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--laterite); }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  padding: 9px 20px;
}

.main-nav a.nav-active { color: var(--laterite); }
.main-nav a.nav-cta.nav-active { color: var(--white) !important; background: var(--laterite); }
.nav-cta:hover { background: var(--laterite); color: var(--white) !important; }

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 134, 43, 0.28), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(164, 52, 24, 0.16), transparent 55%),
    var(--cream);
  border-bottom: 4px solid var(--ink);
}

.hero-inner {
  padding: 90px 24px 70px;
  text-align: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.hero-title .hero-word {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  letter-spacing: 0.01em;
  color: var(--ochre);
  line-height: 1;
}

.hero-meaning {
  display: block;
  margin-top: 14px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
}
.hero-meaning strong { color: var(--laterite); }

.hero-title .hero-sub {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.2rem, 3.2vw, 1.9rem);
  color: var(--ink);
  margin-top: 10px;
}

.hero-dates {
  margin-top: 28px;
  font-size: 1.1rem;
}
.hero-dates strong {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 1.05rem;
}
.hero-dates span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-tagline {
  max-width: 46ch;
  margin: 22px auto 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

.hero-strip {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1rem;
  padding: 12px 0;
}
.hero-strip span:nth-child(even) { color: var(--ochre); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-deep); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}

.values { display: grid; gap: 16px; }

.value-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-left: 6px solid var(--ochre);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.value-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.value-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Stats ===== */
.stats {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0;
}
.stats .stat strong { color: var(--ochre); }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.92;
}

/* ===== Programme ===== */
.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
  margin-bottom: 42px;
}

.inline-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  font: inherit;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.inline-form input[type="email"]:focus {
  outline: 3px solid var(--ochre);
  outline-offset: 1px;
}

.programme-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.day {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-top: 6px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.day span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.day strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.15;
}
.day em {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--laterite);
  margin-top: 4px;
}

/* ===== Lieu ===== */
.place-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.place-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.place-card ul { list-style: none; }
.place-card li + li { margin-top: 10px; }
.place-card li { color: var(--ink-soft); }
.place-card strong { color: var(--ink); }

/* ===== Équipe ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}
.team-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .team-grid-3 { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  border: 3px solid var(--ochre);
  color: var(--laterite);
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 3px solid var(--ochre);
  margin-bottom: 16px;
}

.team-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--laterite);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 6px 0 12px;
}

.team-card > p:last-child { color: var(--ink-soft); }

/* ===== Participer (dark section, light text: large text only) ===== */
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark h2 { color: var(--white); max-width: 30ch; }
.section-dark .lead { color: rgba(250, 243, 231, 0.85); }
.section-dark .section-kicker {
  color: var(--ochre);
  border-color: var(--ochre);
}

.contact-form {
  max-width: 720px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid rgba(36, 26, 18, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--ochre);
  outline-offset: 1px;
  border-color: var(--ink);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--cream-deep);
  border-top: 4px solid var(--laterite);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--laterite);
  margin-bottom: 8px;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer p { color: var(--ink-soft); }
.site-footer a { color: var(--laterite); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(36, 26, 18, 0.15);
  padding-top: 18px;
  padding-bottom: 18px;
}
.footer-bottom p { font-size: 0.88rem; }

/* ===== Photos ===== */
.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.15);
  padding: 2px;
}

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 26, 18, 0.12);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.photo-strip img { height: 230px; object-fit: cover; }

.section-photo { margin: 8px 0 40px; }
.section-photo img {
  height: clamp(260px, 40vw, 440px);
  object-fit: cover;
}

.place-photo { margin-top: 20px; }
.place-photo img { height: 220px; object-fit: cover; }

.card-logo {
  height: 76px;
  width: auto;
  margin-bottom: 14px;
}

.footer-logos {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.footer-logos img {
  height: 60px;
  width: auto;
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.15);
  border-radius: 10px;
  padding: 4px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 14px;
}
.timeline img { height: 200px; object-fit: cover; }
.section-dark figcaption { color: rgba(250, 243, 231, 0.85); }
.timeline figcaption strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--ochre);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}
.gallery img { height: 240px; object-fit: cover; }

/* ===== Cartes personnes (page équipe) ===== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 14px;
}
.people-grid-3 { grid-template-columns: repeat(3, 1fr); }

.person-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.person-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  border-bottom: 3px solid var(--ochre);
}
.person-body { padding: 22px 24px 26px; }
.person-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.person-alias {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.person-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--laterite);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.person-body > p:last-child { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 860px) {
  .people-grid, .people-grid-3 { grid-template-columns: 1fr; }
}

/* ===== Hero photo (accueil) ===== */
.hero-photo-wrap {
  margin-top: 6px;
  padding-bottom: 8px;
}
.hero-photo {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 26, 18, 0.12);
  box-shadow: var(--shadow);
}

/* ===== Page Merci ===== */
.merci-wrap {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.merci-card {
  max-width: 620px;
}
.merci-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.merci-badge svg { width: 44px; height: 44px; }
.merci-card h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.merci-card p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 12px; }
.merci-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Page Soutenir ===== */
.hero-compact .hero-inner { padding: 64px 24px 56px; }

.hero-title .hero-word-sm {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 26px;
  align-items: start;
}

.tier-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.tier-featured {
  border: 3px solid var(--laterite);
}

.tier-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.tier-price {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--laterite);
  margin: 6px 0 14px;
}
.tier-price span {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tier-card ul {
  list-style: none;
  padding: 0;
}
.tier-card li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.tier-card li + li { margin-top: 8px; }
.tier-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.in-kind { margin-top: 6px; }

/* Axes du programme */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 6px 0 30px;
}

.axe-card {
  background: var(--white);
  border: 1px solid rgba(36, 26, 18, 0.12);
  border-top: 5px solid var(--laterite);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.axe-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.axe-card p { color: var(--ink-soft); font-size: 0.92rem; }

.crowd-uses {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

/* Bandeau soutien sur l'accueil */
.support-band {
  background: var(--laterite);
  color: var(--white);
  padding: 44px 0;
}
.support-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.support-band h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 6px;
  max-width: none;
}
.support-band p { color: rgba(255, 255, 255, 0.92); max-width: 56ch; }
.support-band .btn {
  background: var(--white);
  color: var(--laterite);
  white-space: nowrap;
}
.support-band .btn:hover { background: var(--cream); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .two-col,
  .team-grid,
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .programme-days { grid-template-columns: repeat(2, 1fr); }
  .photo-strip,
  .gallery,
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .crowd-uses { grid-template-columns: 1fr; }
  .photo-strip img, .gallery img, .timeline img { height: 180px; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(36, 26, 18, 0.12);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; }
  .main-nav .nav-cta { margin: 8px 24px 6px; text-align: center; }
  .hero-inner { padding: 64px 24px 52px; }
}
@media (max-width: 520px) {
  .photo-strip,
  .gallery,
  .timeline { grid-template-columns: 1fr; }
  .photo-strip img, .gallery img, .timeline img { height: 220px; }
}
