/* ============================================================
   MeilleursbonsplansClub — styles principaux
   Fichier créé pour le projet meilleursbonsplansclub.info
   Utilise Bootstrap 5.3 comme base, on ajoute juste ce qui manque
   ============================================================ */

/* variables globales — couleurs du site */
:root {
  --accent-color: #00c896;
  --accent-hover: #00a87c;
  --bg-main: #0e1620;
  --card-bg: #141e2d;
  --card-bg-hover: #1a2a3e;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --text-dimmed: #7a8fa6;
}

/* ---- BODY & FOND ---- */
/* le fond avec l'image assombrie — on met un dégradé sombre par-dessus */
body {
  background-color: var(--bg-main);
  background-image: linear-gradient(rgba(8, 14, 24, 0.89), rgba(8, 14, 24, 0.89)),
    url('/images/img1.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #dce8f0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- BARRE D'AVERTISSEMENT EN HAUT ---- */
/* la petite bande tout en haut avec le message 18+ */
#top-disclaimer-bar {
  background-color: #090f1a;
  border-bottom: 1px solid rgba(255, 193, 7, 0.25);
  font-size: 0.7rem;
  color: #96a8b8;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ---- HEADER / NAVBAR ---- */
#site-header {
  background-color: rgba(10, 16, 28, 0.97) !important;
  border-bottom: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#site-header .navbar-brand img {
  max-height: 42px;
  width: auto;
}

#site-header .nav-link {
  color: #b0c4d8 !important;
  font-size: 0.9rem;
  transition: color 0.15s;
}

#site-header .nav-link:hover {
  color: var(--accent-color) !important;
}

/* ---- SECTION HERO ---- */
#hero-section {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

#hero-section h1 {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- CARTES BOOKMAKERS ---- */
/* style des cartes de comparaison — le cœur du site */
.bookmaker-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 992px) {
  .bookmaker-card {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

.bookmaker-card:hover {
  background-color: var(--card-bg-hover);
  border-color: rgba(0, 200, 150, 0.35) !important;
}

/* le logo de la plateforme dans la carte */
.brand-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* badge numéroté avec drapeau dans le coin de la carte */
.rank-num-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  min-width: 40px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #8899aa;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
}

.rank-num-badge i {
  font-size: 0.7rem;
  color: #f5a623;
}

/* étoiles de notation */
.stars-row i {
  color: #f5a623;
  font-size: 0.8rem;
}

/* bonus text dans la carte */
.bonus-text {
  color: #e0eed8;
  font-weight: 600;
  font-size: 0.92rem;
}

 .offer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
 }

 .offer-bonus {
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  color: #d7f0ea;
  font-size: 0.92rem;
 }

 .offer-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
 }

 .offer-actions .btn {
  width: 100%;
 }

 .offer-mini-link {
  display: inline-block;
  font-size: 0.78rem;
  color: #8fa5ba;
  text-decoration: underline;
  opacity: 0.9;
  width: fit-content;
 }

 .offer-mini-link:hover {
  color: #b6c6d6;
 }

@media (max-width: 575.98px) {
  [id^="rating-row-"] {
    flex-direction: column-reverse !important;
    align-items: flex-end !important;
    gap: 2px !important;
  }
}

/* bouton CTA vert/turquoise — override du primary Bootstrap */
.btn-get-bonus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-get-bonus:hover,
.btn-get-bonus:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000000;
}

/* ---- SECTIONS ARTICLES ---- */
/* les blocs texte en bas de la page principale */
.article-section {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
}

.article-section h2 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.article-section p {
  color: #9ab0c4;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- FOOTER ---- */
#site-footer {
  background-color: rgba(6, 11, 19, 0.99);
  border-top: 1px solid var(--border-subtle);
  color: #7a8fa6;
  font-size: 0.85rem;
}

#site-footer a {
  color: #9ab0c4;
  text-decoration: none;
  transition: color 0.15s;
}

#site-footer a:hover {
  color: var(--accent-color);
}

/* images des organismes responsables dans le footer */
.resp-org-img {
  max-height: 44px;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0.92);
  transition: opacity 0.2s, filter 0.2s;
}

.resp-org-img:hover {
  opacity: 1;
  filter: brightness(1.05);
}

/* bloc des infos légales tout en bas du footer */
.footer-legal-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #526070;
}

/* ---- POPUPS ---- */

/* overlay de vérification d'âge */
#age-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 16, 0.97);
  z-index: 10000;
  display: flex; /* visible par défaut — JS le cache si l'âge est déjà confirmé */
  align-items: center;
  justify-content: center;
}

#age-popup-box {
  background: #131d2c;
  border: 1px solid rgba(0, 200, 150, 0.28);
  border-radius: 14px;
  max-width: 450px;
  width: 94%;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

#age-popup-box .popup-logo {
  max-height: 48px;
  margin-bottom: 1.25rem;
}

#age-popup-box h2 {
  color: var(--accent-color);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#age-popup-box p {
  color: #8fa5ba;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* boutons dans le popup d'âge */
#btn-confirm-age {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
  font-weight: 700;
  min-width: 160px;
}

#btn-confirm-age:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000;
}

#btn-under18 {
  color: #7a8fa6;
  border-color: #3a4a5a;
  min-width: 140px;
}

#btn-under18:hover {
  color: #cc3333;
  border-color: #cc3333;
  background-color: transparent;
}

/* overlay pour les moins de 18 ans */
#under18-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 6, 12, 0.99);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

#under18-popup-box {
  background: #180a0a;
  border: 1px solid rgba(200, 40, 40, 0.4);
  border-radius: 14px;
  max-width: 400px;
  width: 92%;
  padding: 2rem;
  text-align: center;
}

#under18-popup-box h3 {
  color: #e05555;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

#under18-popup-box p {
  color: #9a7070;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* effet flou par défaut sur le wrapper — retiré par JS après confirmation âge */
body.popup-active #main-wrapper {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* barre de consentement cookies */
#cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 19, 30, 0.97);
  border-top: 1px solid var(--border-subtle);
  z-index: 9998;
  padding: 0.9rem 1.5rem;
  display: none; /* géré par JS */
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#cookie-consent-bar p {
  margin: 0;
  font-size: 0.83rem;
  color: #8fa5ba;
  flex: 1;
  min-width: 220px;
}

#cookie-consent-bar a {
  color: var(--accent-color);
}

/* ---- NOTE : effet flou défini plus haut près du popup d'âge ---- */

/* ---- PAGE CONTENT (privacy, terms, contacts) ---- */
.static-page-content {
  background-color: rgba(18, 27, 40, 0.85);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.static-page-content h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.static-page-content h2 {
  color: #d0e4f0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.static-page-content p,
.static-page-content li {
  color: #8fa5ba;
  font-size: 0.92rem;
  line-height: 1.75;
}

.static-page-content a {
  color: var(--accent-color);
}

/* ---- FORMULAIRE DE CONTACT ---- */
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  background-color: #0e1825;
  border-color: #2a3a4e;
  color: #c0d4e4;
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
  background-color: #111f30;
  border-color: var(--accent-color);
  color: #d0e4f0;
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 150, 0.15);
}

.contact-form-wrap label {
  color: #8fa5ba;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

/* ---- RESPONSIVE ---- */
/* petits ajustements pour mobile — à améliorer dans v2 */
@media (max-width: 767px) {
  #hero-section h1 {
    font-size: 1.25rem;
  }

  .static-page-content {
    padding: 1.25rem 1rem;
  }

  #top-disclaimer-bar {
    font-size: 0.65rem;
  }

  #age-popup-box {
    padding: 1.75rem 1.25rem 1.5rem;
  }
}
