/* ====== VERSION PRECEDENTE (copie du CSS inline d'origine) ======
   IMPORTANT :
   - Ne modifie pas les blocs existants si tu veux garder EXACTEMENT le même style.
   - Les AJOUTS RTL/AR sont tout en bas, dans "AJOUTS MINIMAUX".
*/

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  background: white;
  color: #333;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-banner {
  background: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 4px solid #ff6b35;
  position: relative;
}

.logo-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.logo-center img {
  height: 100px;
  width: auto;
}

.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  background: white;
  border: 2px solid #ff6b35;
  border-radius: 25px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: white;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: #fff5f2;
}

.lang-btn.active {
  background: #ff6b35;
  color: white;
}

.logo-img {
  height: 80px;
  width: auto;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  flex-grow: 1;
}

.logo-text .initials {
  color: #222;
  text-transform: uppercase;
}

.logo-text .full-name {
  color: #e85a2a;
}

nav {
  background: white;
  border-bottom: 3px solid #f0f0f0;
  direction: ltr;
}

/* RTL base (existant) */
body.rtl {
  direction: rtl;
}

body.rtl .header-banner {
  direction: rtl;
}

body.rtl .lang-switcher {
  right: auto;
  left: 2rem;
}

body.rtl nav {
  direction: rtl;
}

.nav-links {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

nav a:hover {
  background: #ff6b35;
  color: white;
  transform: translateY(-2px);
}

.hero {
  background: white;
  padding: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content h1 .initials {
  color: #222;
}

.hero-content h1 .full-name {
  color: #e85a2a;
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.black-band {
  background: #222;
  color: white;
  padding: 1rem 0;
  overflow: hidden;
}

.news-ticker {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 3rem;
}

.news-ticker-label {
  background: #ff6b35;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  white-space: nowrap;
}

.news-ticker-content {
  flex: 1;
  overflow: hidden;
}

.news-ticker-items {
  display: flex;
  gap: 3rem;
  animation: scroll 25s linear infinite;
}

.news-item {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-item::before {
  content: "●";
  color: #ff6b35;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff6b35;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #4caf50);
  border-radius: 2px;
}

.news-section {
  background: #f9f9f9;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: #ff6b35;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.about-section {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: #ff6b35;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-image {
  width: 100%;
  height: 400px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sports-icons {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.sport-icon {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

/* Styles pour la section Événements */
.events-section {
  background: linear-gradient(135deg, #f5f5f5, #e8f5e9);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  border-left: 5px solid #ff6b35;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-date-box {
  background: white;
  color: #ff6b35;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  min-width: 70px;
  font-weight: bold;
}

.event-date-day {
  font-size: 2rem;
  line-height: 1;
}

.event-date-month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-title {
  flex: 1;
  font-size: 1.3rem;
  font-weight: bold;
}

.event-body {
  padding: 1.5rem;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #666;
}

.event-info-icon {
  color: #ff6b35;
  font-weight: bold;
}

/* Styles pour la section Résultats */
.results-section {
  background: white;
}

.results-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2rem;
  border: 2px solid #ff6b35;
  background: white;
  color: #ff6b35;
  cursor: pointer;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s;
  font-size: 1rem;
}

.tab-btn:hover {
  background: #fff5f2;
}

.tab-btn.active {
  background: #ff6b35;
  color: white;
}

.results-content {
  display: none;
}

.results-content.active {
  display: block;
}

.result-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-top: 4px solid #4caf50;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-title {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}

.result-date {
  color: #ff6b35;
  font-weight: bold;
  font-size: 1.1rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.result-table th {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
}

.result-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.result-table tr:hover {
  background: #f9f9f9;
}

.medal {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.rank-1 { font-weight: bold; color: #FFD700; }
.rank-2 { font-weight: bold; color: #C0C0C0; }
.rank-3 { font-weight: bold; color: #CD7F32; }

footer {
  background: #222;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-section h3 {
  color: #ff6b35;
  margin-bottom: 1rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #444;
}

/* ====== AJOUTS MINIMAUX (sans changer le style) ======
   Objectif :
   - AR : meilleure police + meilleure lisibilité
   - RTL : ne pas casser la mise en page existante
   - Liens : titre d’événement cliquable sans changer la couleur
*/

/* 1) Titre d’événement cliquable (tu l’utilises sur 04 JAN) */
.event-title-link{
  color: inherit;        /* garde le blanc du header */
  text-decoration: none; /* pas de souligné par défaut */
}
.event-title-link:hover{
  text-decoration: underline;
}

/* 2) Classe utilitaire déjà utilisée dans ton HTML (mt-1) */
.mt-1{
  margin-top: 1rem;
}

/* 3) Amélioration AR/RTL :
   - On ne change PAS la police en français
   - On applique une police plus adaptée uniquement en RTL
*/
body.rtl{
  /* meilleure police pour l’arabe (fallbacks si non dispo) */
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* 4) RTL : alignements plus naturels (sans casser le design) */
body.rtl .footer-content,
body.rtl .footer-section{
  text-align: right;  /* en arabe, le footer est plus lisible aligné à droite */
}

/* 5) RTL : ticker — optionnel mais joli
   - Le ticker existe déjà en LTR (scroll vers la gauche)
   - En RTL on inverse la direction de l’animation
*/
body.rtl .news-ticker-items{
  animation-direction: reverse;
}

/* 6) (Optionnel) Empêche certains contenus (emails/liens) de s’inverser en RTL */
body.rtl a,
body.rtl .footer-section a{
  unicode-bidi: plaintext;
}

@media (max-width: 768px) {
  .header-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }

  .logo-img {
    height: 60px;
  }

  .logo-center img {
    height: 60px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .news-ticker {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-table {
    font-size: 0.9rem;
  }

  .result-table th,
  .result-table td {
    padding: 0.7rem;
  }
}
