@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@400;500&family=Noto+Naskh+Arabic:wght@400;500&display=swap');

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

:root {
  --bg: rgb(241, 225, 163);
  --surface: #FFFFFF;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);
  --text-primary: #1A1814;
  --text-secondary: #6B6760;
  --text-tertiary: #A09D98;
  --accent: #7B5E3A;
  --blue-icon: #185FA5;
  --gray-icon: #5F5E5A;
  --amber-icon: #854F0B;
  --purple-icon: #534AB7;
  --teal-icon: #0F6E56;
  --red-icon: #A32D2D;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
}

/* Police arabe pour la version arabe */
html[lang="ar"] body {
  font-family: 'Noto Naskh Arabic', serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 2rem;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 560px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.header img {
  height: 52px;
  opacity: 0.9;
  flex-shrink: 0;
}

.header-text h1 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

html[lang="ar"] .header-text h1 {
  font-family: 'Noto Naskh Arabic', serif;
  text-align: right;
}

.header-text p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

html[lang="ar"] .header-text p {
  font-family: 'Noto Naskh Arabic', serif;
  text-align: right;
}

.header-text cite {
  font-style: normal;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}

/* Section label */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

html[lang="ar"] .section-label {
  text-align: right;
}

/* Calendar list — 1 colonne par défaut */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 2 colonnes si classe .two-col (EN et AR) */
.calendar-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Calendar item */
.calendar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease both;
}

.calendar-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.calendar-item:active {
  transform: translateY(0);
  box-shadow: none;
}

.calendar-item:nth-child(1) { animation-delay: 0.15s; }
.calendar-item:nth-child(2) { animation-delay: 0.22s; }
.calendar-item:nth-child(3) { animation-delay: 0.29s; }
.calendar-item:nth-child(4) { animation-delay: 0.36s; }
.calendar-item:nth-child(5) { animation-delay: 0.43s; }
.calendar-item:nth-child(6) { animation-delay: 0.50s; }

/* Item left (LTR) */
.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Item left (RTL — arabe) */
[dir="rtl"] .item-left {
  flex-direction: row-reverse;
}

.item-text {
  text-align: left;
}

[dir="rtl"] .item-text {
  text-align: right;
}

.item-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.item-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Chevron */
.chevron {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

[dir="rtl"] .chevron {
  transform: scaleX(-1);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  animation: fadeUp 0.5s 0.5s ease both;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .header-text h1 { font-size: 1.1rem; }
  .header-text p  { font-size: 0.8rem; }
  .calendar-list.two-col { grid-template-columns: 1fr; }
}

