/* Global styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
}



header[role=banner] {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 3rem 1rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  border-bottom: 2px solid #a8dadc;
  border-radius: 15px 15px 0 0;
  font-weight: 600;
  letter-spacing: 0.06em;
}
header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
header p {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
  color: #dbe9ff;
}












/* Main content */
main {
  max-width: 1000px;
  margin: auto;
  padding: 30px 20px;
}

/* Headings */
h2 {
  color: #1d3557;
  font-size: 1.6rem;
  margin-top: 40px;
}

/* Navigation */
nav {
  background: linear-gradient(90deg, #457b9d, #1d3557);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  box-sizing: border-box;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.navbar-logo {
  height: calc(100% - 20px);
  max-height: 60px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 80px;
  margin-left: 10px;
}

.navbar-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.navbar-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: white;
  transition: width 0.3s;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Responsive nav */
@media (max-width: 768px) {
  nav {
    height: 50px;
  }

  .navbar-container {
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
  }

  .navbar-logo {
    height: calc(100% - 20px);
    max-height: 50px;
    margin: 0 0 5px 0;
    margin-left: 0;
    align-self: center;
  }

  .navbar-toggle {
    display: block;
    margin-bottom: 5px;
    position: absolute;
    left: 20px;
    top: 5px;
    align-self: auto;
  }

  .navbar-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-links.show {
    max-height: 500px;
  }
}

/* Intro text block */
.intro {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin: 2em auto;
  padding: 1rem 1.5rem;
  text-align: justify;
  background-color: #fff;
  border-left: 3px solid #6c757d;
  box-shadow: none;
  border-radius: 0;
}

.intro:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

section.categories {
  column-count: 1;
  column-gap: 30px;
  margin-bottom: 50px;
  margin-top: 50px;
}

@media (min-width: 700px) {
  section.categories {
    column-count: 2; /* 2 colonnes imbriquées verticalement */
  }
}

section.category-block {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  padding: 25px 30px;
  margin-bottom: 30px;
  display: inline-block; /* indispensable pour column layout */
  width: 100%;            /* s’adapte à la colonne */
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}



section.category-block:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
}


section.category-block h2 a {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

section.category-block h2 a:hover {
}


section.category-block a.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

section.category-block a.read-more:hover {
  color: white;
  background-color: #2563eb;
}


section.category-block p {
  font-size: 1rem;
  color: #475569;
  margin: 15px 0 20px;
  line-height: 1.4;
}

section.category-block a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

section.category-block a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Article preview cards */
.article-preview {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 24px 28px;
  margin-bottom: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.article-preview {
  background: #f9fafb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-preview:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-preview h3 {
  margin-top: 0;
  color: #e63946;
  font-weight: 700;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.article-preview h3:hover {
  color: #d62828;
}

.article-preview p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

.article-preview a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  font-size: 1.5rem;
}

.article-preview a:hover {
  color: #457b9d;
  border-color: #457b9d;
}

article.article-preview a.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

article.article-preview a.read-more:hover {
  background-color: #2563eb;
}

/* Footer */
.site-footer {
  background-color: #1d3557;
  color: #f1f1f1;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-nav {
  margin-top: 10px;
}

.footer-nav a {
  color: #a8dadc;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #f1faee;
}

/* Ads container */
.ad-container {
  background-color: #f4f8fb;
  border: 2px dashed #a1c9e6;
  padding: 1.5rem;
  margin: 3rem 0;
  text-align: center;
  font-style: italic;
  color: #789abc;
  border-radius: 10px;
  font-size: 1rem;
}

/* Related articles */
.related-articles {
  margin-top: 4rem;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

.related-articles h3 {
  font-size: 1.5rem;
  color: #2a6592;
  margin-bottom: 1.2rem;
}

/* Article main content */
article {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  margin-bottom: 60px;
}



/* Text block */
.text-block {
  margin: 1.8rem 0;
  line-height: 1.65;
  color: #333;
  font-size: 1.05rem;
}




.margin-top {
  margin-top: 60px; /* ou la valeur que tu souhaites */
}

.centered-2c-wrapper {
  width: 66%;
  margin: 2rem auto;
}

.custom-divider {
  width: 80%;
  height: 1.4rem;
  background-color: #ddd;
  margin: 2rem auto;
  border-radius: 1px;
}
/* Grille de critères */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin: 2rem 0;
  align-items: stretch; /* <-- ici */
}

.criteria-grid > div {
  background-color: #eaf4ff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 0 5px #bfd9ff;
  color: #1d3557;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column; /* pour bien répartir verticalement le contenu */
}

/* Responsive */
@media screen and (max-width: 768px) {
  .criteria-grid {
    grid-template-columns: 1fr;
  }
}

/* Grille de critères responsive à 3 colonnes */
.criteria-grid-3c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 2rem 0;
  align-items: stretch; /* <-- ici */
}

.criteria-grid-3c > div {
  background-color: #e0f0ff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 0 5px #aad2ff;
  color: #0b2545;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .criteria-grid-3c {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .criteria-grid-3c {
    grid-template-columns: 1fr;
  }
}












/* Tips list */
.tips-list {
  list-style: none;
  margin: 2rem 0;
  padding-left: 0;
  color: #264653;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Liste de conseils */
.tips-list ul {
  list-style: none;
  padding-left: 0;
}

.tips-list li {
  background-color: #eaf8e6;
  border-left: 4px solid #34a853;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
  border-radius: 4px;
}

.tips-list li .emoji {
  display: inline-block;
  margin-right: 8px; /* espace après l'emoji */
  font-size: 18px;   /* légèrement plus grand que le texte */
  vertical-align: middle;
}
.tips-list li strong {
  font-weight: 700;
}


















/* Blockquote with margin-top if preceded */
blockquote {
  border-left: 5px solid #457b9d;
  padding-left: 1.2rem;
  margin: 2rem 0 2rem 0;
  font-style: italic;
  color: #555;
  background-color: #f0f5fb;
  border-radius: 6px;
}

blockquote + blockquote {
  margin-top: 1.5em; /* as per user rule */
}
