 /* Import de la police */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Amiri', serif;
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  direction: inherit; /* Important pour RTL */
}

/* Conteneur principal */
main {
  flex: 1;
}

/* HEADER */
header {
  text-align: start; /* respecte la direction dynamique */
  padding: 30px 15px;
  background: #318CE7;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  direction: inherit;
}

header .logo {
  width: 100px;
  height: auto;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: inherit;
}

header .subheadline {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 90%;
  text-align: inherit;
}

/* Langue Switcher */
.lang-switcher {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-switcher button {
  background-color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lang-switcher button:hover {
  background-color: #ddd;
}

.lang-switcher button img {
  width: 24px;
  height: 18px;
}

/* Sections générales */
section {
  background-color: #fff;
  margin: 20px auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 95%;
  direction: inherit;
  text-align: start;
}

section h2 {
  margin-bottom: 15px;
  color: #0055aa;
  font-size: 1.6rem;
}

section ul {
  padding-left: 20px;
}

section ul li {
  margin-bottom: 10px;
}

/* RADIO PLAYER */
.player {
  text-align: center;
  padding: 20px;
  direction: inherit;
}

.radio-player {
  margin-top: 10px;
}

.player button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin: 10px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: auto;
}

.player button:hover {
  background-color: #0056b3;
}

.radio-info {
  background-color: #000;
  color: #fff;
  padding: 12px 15px;
  margin-top: 15px;
  text-align: center;
  font-size: 1em;
  border-radius: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Amiri', serif;
  line-height: 1.5;
}

/* SECTIONS */
.presentation,
.championnats,
.maintenance {
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  direction: inherit;
  text-align: start;
}

/* LISTE CHAMPIONNATS */
.championnats ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* FOOTER */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  width: 100%;
  padding: 30px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #222;
  direction: inherit;
}

footer p {
  margin: 10px 0;
}

footer a {
  color: #aad;
  text-decoration: none;
}

/* RESPONSIVE DESIGN : Smartphones + Tablettes */
@media (max-width: 1024px) {
  header {
    padding: 25px 10px;
  }

  header .logo {
    width: 80px;
  }

  header h1 {
    font-size: 2rem;
  }

  header .subheadline {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .lang-switcher {
    gap: 8px;
    flex-wrap: wrap;
  }

  .player button {
    width: 90%;
    max-width: 300px;
  }

  section {
    width: 95%;
    padding: 20px 15px;
  }

  .radio-info {
    font-size: 0.95em;
    padding: 10px;
  }

  footer {
    padding: 20px 10px;
  }
}
