/* Variables from index.html */
:root {
  --primary-color: #0b2b40;         /* Couleur principale du site */
  --secondary-color: #45BA01;       /* Couleur secondaire */
  --text-color: #ffffff;            /* Couleur du texte sur fond foncé */
  --light-bg: #f9f9f9;
  --dark-bg: #072130;              /* Couleur du header/footer */
  --border-radius: 6px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
}

/* Global Reset from index.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles from index.html */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes full viewport height */
}

/* New styles for the content wrapper */
.content-wrapper {
  flex-grow: 1; /* Allows this element to grow and push the footer down */
}

/* Link styles from index.html */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #fff; /* Quand on survole un lien, le texte devient blanc */
}

/* Container from index.html */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}


/* -------------------------- HEADER Styles from index.html -------------------------- */
header {
  background-color: var(--dark-bg);
  padding: 20px 0;
  box-shadow: var(--box-shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.header-left {
  display: flex;
  flex-direction: column;
}

/* Keep header link color same on hover */
.header-left a:hover {
  color: inherit; /* Inherit color from parent on hover (which is secondary) */
}


.header-left h1 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.header-left span {
  font-size: 1rem;
}

.header-news {
  /* Removed margins, handled by group */
}

.header-news a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-news a:hover {
  color: #fff; /* Quand on survole un lien, le texte devient blanc */
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating i {
  color: #FFD700;  /* Couleur des étoiles */
  font-size: 0.95rem; /* Réduction de la taille des icônes */
  vertical-align: middle;
}

.rating span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Styles for the right group container */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 15px;
  /* flex-wrap: wrap; */ /* Removed wrap */
  justify-content: center;
}
/* -------------------------- END HEADER Styles -------------------------- */


/* -------------------------- MAIN Content Styles (Adapt as needed) -------------------------- */
main {
  padding: 40px 0; /* Add padding like index.html */
}

/* Keep relevant utility classes */
.padding40 {padding: 40px;}

/* Add Card Styles (Example - adapt selectors if needed) */
/* You might need these for CMS content blocks */
.info-card, .reviews, .widget, .blueBackground /* Add blueBackground here if used */ {
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 32px; /* Augmenté pour plus d'espace */
    box-shadow: var(--box-shadow);
    margin-bottom: 20px; /* Add spacing between cards */
}

/* Ajoute de l'espace pour les éléments internes dans les cards */
.info-card > *, .reviews > *, .widget > *, .blueBackground > * {
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}

/* Supprime la marge supérieure du premier enfant et la marge inférieure du dernier enfant */
.info-card > *:first-child, .reviews > *:first-child, .widget > *:first-child, .blueBackground > *:first-child {
    margin-top: 0;
}
.info-card > *:last-child, .reviews > *:last-child, .widget > *:last-child, .blueBackground > *:last-child {
    margin-bottom: 0;
}

.info-card h3, .reviews h3, .widget-title { /* Style card/widget titles */
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Add styles for specific CMS elements if needed, like lists, blockquotes, etc. */


/* -------------------------- FOOTER Styles from index.html -------------------------- */
footer { /* Renamed from .footer */
  background-color: var(--dark-bg);
  padding: 20px 0;
  text-align: center;
  box-shadow: var(--box-shadow);
  margin-top: 40px; /* Add space above */
  color: #bbb; /* Default text color */
}

.copyright {
  font-size: 0.85rem;
  color: #bbb; /* Ensure copyright color is set */
}

/* Ensure footer links are styled if needed */
footer a {
    color: var(--secondary-color);
}
footer a:hover {
    color: #fff;
}

/* -------------------------- RESPONSIVE ADAPTATIONS from index.html -------------------------- */
@media (max-width: 768px) {
  /* Header adjustments */
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .header-right-group {
     margin-top: 10px; /* Add some space above the group */
  }
  .header-news {
    margin-left: 0;
    margin-right: 0;
    margin-top: 10px; /* Stacking adjustment */
  }
  .header-left h1 {
    font-size: 1.5rem;
  }

  /* Add other responsive styles if needed */
  .footer {
      padding: 15px 0;
      font-size: 0.8rem;
  }

  /* Adjust padding for main content */
   main {
       padding: 20px 0;
   }
   .padding40 { padding: 20px; }

}

#form-edit-post label, #form-edit-post input, #form-edit-post textarea, #form-edit-post select, #form-edit-post .note-editable {
  color: var(--dark-bg) !important;
}

/* ===== Remove or Comment Out Old/Conflicting Styles ===== */
/*
.navbar { ... }
.navbar-default .navbar-toggle { ... }
.navbar-light .navbar-nav .nav-link { ... }
.navbar-expand-lg .navbar-nav .navf-link { ... }
.nav li > a { ... }
.navbar li { ... }
.navbar-light .navbar-brand { ... }
.navbar-light .navbar-brand:hover { ... }
.navbar-collapse { ... }
ul.nav.navbar-nav.navbar-right li a:hover,
ul.nav.navbar-nav.navbar-right li.active a { ... }
.mainTitle { ... }
.flex-grow { ... } -> Keep if needed for subside block layout
*/
/* Keep .footer styles if they were different and desired */
/* Keep .btn styles if Bootstrap buttons aren't used elsewhere */
/* Keep card styles if they are used by CMS blocks */