/* ===== PALETTE CAMEROUN ===== */
:root {
  --green:  #007A3D;
  --red:    #CE1126;
  --yellow: #FCD116;
  --dark:   #1a1a1a;
  --light:  #f5f5f0;
  --radius: 8px;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: var(--green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 3px solid var(--yellow);
}

.logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
}

.site-title {
  color: var(--yellow);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#lang-toggle {
  margin-left: auto;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
#lang-toggle:hover { background: #e6bc00; }

/* ===== NAV TABS ===== */
nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: #005c2e;
}

.tab-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.18s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.tab-btn.active {
  color: var(--dark);
  background: var(--yellow);
}

/* ===== TAB CONTENT ===== */
.tab-content { display: none; padding: 40px 24px; max-width: 860px; margin: 0 auto; }
.tab-content.active { display: block; }

h1 {
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 28px;
  border-left: 5px solid var(--yellow);
  padding-left: 14px;
  line-height: 1.3;
}

/* ===== MAIN ROW (logo + gif) ===== */
.main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.main-logo {
  width: 340px;
  max-width: 42vw;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.main-gif {
  width: 340px;
  max-width: 42vw;
  border-radius: var(--radius);
  border: 3px solid var(--yellow);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  min-height: 200px;
  background: #ddd;
}

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

thead { background: var(--green); color: #fff; }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

tbody tr:nth-child(even) { background: #f0f7f3; }
tbody tr:hover { background: #ddf0e5; }

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}
.result-W { background: #d4edda; color: #155724; }
.result-D { background: #fff3cd; color: #856404; }
.result-L { background: #f8d7da; color: #721c24; }

/* ===== LINKS ===== */
.links-section {
  margin-top: 32px;
}
.links-section h2 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 700;
}
.links-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.links-section a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--yellow);
  transition: color 0.2s;
}
.links-section a:hover { color: var(--red); }

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: #f0f7f3; }
.faq-question::after { content: '▼'; font-size: 0.7rem; color: var(--green); transition: transform 0.2s; }
.faq-item.open .faq-question::after { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: #444;
  line-height: 1.6;
  border-top: 2px solid var(--yellow);
}
.faq-item.open .faq-answer { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  .header-inner { padding: 8px 12px; }
  .tab-content { padding: 24px 12px; }
}
