/* === GLOBAL === */
body {
  margin: 0;
  background: #001d24;
  color: #fff;
  font-family: 'Arial', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === MODE NUIT === */
body.dark-mode {
  background: #000;
  color: #ccc;
}

body.dark-mode .carte-article {
  background-color: #111;
}

body.dark-mode .carte-article:hover {
  background-color: #222;
}

/* === BOUTON NUIT === */
#toggle-dark {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #01404e;
  color: #00eaff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  z-index: 999;
}

/* === HEADER === */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #012;
  padding: 15px 20px;
}

.logo {
  height: 60px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0 auto;
  padding: 0;
}

.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #00eaff;
  font-weight: bold;
  padding: 8px 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #01404e;
  top: 35px;
  left: 0;
  border-radius: 5px;
  overflow: hidden;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  white-space: nowrap;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* RUBAN LED */
.led-ribbon {
  height: 3px;
  background: linear-gradient(to right, red, orange, yellow, lime, cyan, blue, violet);
}

/* === TITRE PRINCIPAL === */
.site-title {
  text-align: center;
  font-size: 2.2em;
  margin: 25px 0;
  color: #00eaff;
  text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
}

.site-title strong.neon-yellow {
  color: #ffeb3b;
  text-shadow: 0 0 10px #ffeb3b, 0 0 20px #ffd700;
}

/* PÉRIODES */
.periode-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #00414d;
  padding: 10px 0;
}

.periode-item a {
  background-color: #006b7e;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 0 6px cyan;
}

.periode-item .plus {
  margin-left: 5px;
  color: #ffd700;
}

.periode-item a:hover {
  background-color: #0099aa;
}

/* === BARRE DE RECHERCHE === */
.search-bar {
  text-align: center;
  margin: 30px 0;
}

.search-bar form {
  display: inline-flex;
  background: #f8f9fa;
  border-radius: 5px;
  overflow: hidden;
}

.search-bar input[type="text"] {
  padding: 12px;
  font-size: 16px;
  border: none;
  outline: none;
  width: 300px;
  background: #012932;
  color: #00eaff;
}

.btn-search {
  background: #f3f5f5;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0 20px;
  cursor: pointer;
}

/* === SLIDER === */
.slider-container {
  max-width: 900px;
  margin: 30px auto 10px;
  text-align: center;
}

.swiper {
  padding: 20px 0;
}

.swiper-slide img {
  height: 340px;
  width: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
}

.swiper-slide p {
  margin-top: 10px;
  font-weight: bold;
  color: #00eaff;
  font-size: 14px;
}

/* === CONCOURS + PUB BOX === */
.concours-section {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.concours-box, .pub-box {
  flex: 1;
  background: #01313c;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px #00eaff55;
}

.concours-box img, .pub-box img {
  max-width: 100%;
  border-radius: 5px;
}

.btn-concours {
  background: #00eaff;
  color: #000;
  padding: 10px 20px;
  font-weight: bold;
  display: inline-block;
  border-radius: 5px;
  margin-top: 10px;
}

/* === CONTENU GRILLE === */
.main-content-columns {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.column {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column h2 {
  margin: 0;
  font-size: 1.5em;
  color: #00eaff;
  text-shadow: 0 0 10px #00eaff;
}

/* === CARTES ARTICLES & TESTS === */
.liste-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.carte-article {
  display: flex;
  background: #01404e;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.2s ease;
  min-height: 100px;
}

.carte-article:hover {
  background: #025060;
  transform: translateY(-2px);
}

.carte-img {
  min-width: 100px;
  max-width: 100px;
  overflow: hidden;
}

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

.carte-contenu {
  padding: 10px;
  flex: 1;
}

.carte-contenu h3 {
  margin: 0;
  font-size: 1.1em;
  color: #00eaff;
}

.carte-contenu p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #ccc;
}

/* === BLOC VIDE STYLE IDENTIQUE === */
.carte-vide {
  background: #012932;
  border-radius: 8px;
  padding: 15px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}

/* === FOOTER === */
footer {
  margin-top: 80px;
  background: #001921;
  text-align: center;
  padding: 20px;
  color: #888;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .main-content-columns,
  .concours-section {
    flex-direction: column;
  }

  .column, .concours-box, .pub-box {
    width: 100%;
  }

  .swiper-slide img {
    width: 90px;
    height: 180px;
  }

  .search-bar form {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    padding: 12px;
  }
}
.concours-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
