:root {
  --primary: #003087;
  --primary-dark: #001f5f;
  --accent: #f5c518;
  --text: #1e293b;
  --text-light: #475569;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 10px 38px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --primary: #4d8aff;
  --primary-dark: #2b5ce6;
  --accent: #ffd54f;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --border: #334155;
  --shadow: 0 10px 38px rgba(0,0,0,0.45);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

.header {
  background: #003087;
  color: white;
  padding: 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-controls {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 10;
}

.theme-toggle {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: white;
}

[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.logo-banner {
  position: relative;
  /*margin: 0 auto 2.2rem;*/
  margin: 0 auto 0;
  /*max-width: 720px;*/
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yellow-line {
  position: absolute;
  height: 4px;
  background: #f5c518;
  left: 0;
  right: 0;
}

.yellow-line.top { top: 49%; }
.yellow-line.bottom { bottom: 49%; }

.diamond {
  width: 100px;
  height: 100px;
  background: #003087;
  transform: rotate(45deg);
  border: 5px solid #f5c518;
  /*border-radius: 12px;*/
  border-radius: 0px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-diamond {
  /*width: 140px;*/
  width: 180px;
  height: auto;
  transform: rotate(-45deg);
  /*margin-bottom: 12px;*/
  margin-bottom: 0;
  filter: brightness(1.05);
}

.texts {
  transform: rotate(-45deg);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.3;
  color: white;
  font-weight: 500;
  display: none;
  visibility: hidden;
}

.arabic {
  font-family: 'Traditional Arabic', 'Arial', 'Segoe UI', sans-serif;
  direction: rtl;
  margin-bottom: 4px;
}

.french {
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.last-update {
  font-size: 1rem;
  opacity: 0.9;
}

.container {
  max-width: 860px;
  margin: 4rem auto 5rem;
  padding: 0 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.8rem 2.3rem;
  border: 1px solid var(--border);
}

h2 {
  color: var(--primary);
  font-size: 1.65rem;
  margin: 0.5rem 0 0.5rem;
  font-weight: 600;
  position: relative;
  padding-left: 1.3rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

p, li {
  font-size: 1.04rem;
  color: var(--text-light);
}

strong { color: var(--text); font-weight: 600; }

ul {
  list-style: none;
  margin: 1.3rem 0 1.7rem 1.5rem;
}

ul li {
  position: relative;
  margin-bottom: 0.95rem;
  padding-left: 1.7rem;
}

ul li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.25rem;
}

.contact {
  margin: 2.8rem 0;
  padding: 0.5rem 0.9rem 1rem 0.9rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
}

.contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,48,135,0.1);
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
}

.email:hover {
  color: var(--accent);
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--text-light);
  font-size: 0.94rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .header { padding: 1rem 0; }
  h1 { font-size:1.7rem }
  h2 { font-size:1.3rem }
  .logo-banner { height: 150px; }
  .diamond { width: 100px; height: 100px; }
  .logo-diamond { width: 180px; }
  .texts { font-size: 0.85rem; }
  .card { padding: 2rem 1.6rem; }
}