/* ----------- BASE & RESET ----------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 17px;
  color: #222;
  background: #f8fafb;
  line-height: 1.6;
}

/* ----------- HEADER HERO ----------- */
.header-hero {
  position: relative;
  min-height: 55vh; /* Corrigé : hauteur augmentée pour éviter le chevauchement */
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.header-hero nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px 0 32px; /* Corrigé : padding réduit */
  background: rgba(24,56,90,0.85); /* Fond plus transparent */
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 24px rgba(12,108,168,0.07);
  position: relative;
  z-index: 10;
}

.nav__logo {
  height: 60px; /* Corrigé : logo moins haut */
  width: auto;
  max-width: 160px;
}

/* Bouton retour à l’accueil */
.home-btn {
  display: inline-block;
  background: #ffd700;
  color: #18385a;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(240,180,41,0.08);
}

.home-btn:hover {
  background: #18385a;
  color: #fff;
}

/* ----------- HEADER OVERLAY ----------- */
.header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 56, 90, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 2;
  padding-top: 90px; /* Corrigé : décale le texte sous le menu */
  box-sizing: border-box;
}

.header-overlay h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.header-overlay p {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* ----------- RESSOURCES ----------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 3.5rem auto;
  padding: 0 24px;
}

.resource-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(12,108,168,0.08);
  border-top: 4px solid #ffd700;
  padding: 28px;
}

.resource-card h2 {
  color: #18385a;
  font-size: 1.25rem;
  margin: 0 0 14px 0;
}

.resource-card p {
  color: #333;
  margin: 0 0 18px 0;
}

.resource-card ul {
  margin: 0;
  padding-left: 20px;
}

.resource-card li {
  margin-bottom: 8px;
}

.resources-cta-section {
  background: #18385a;
  color: #fff;
  padding: 3rem 24px;
  text-align: center;
}

.resources-cta-section h2 {
  color: #fff;
  max-width: 820px;
  margin: 0 auto 14px auto;
  font-size: 1.6rem;
}

.resources-cta-section p {
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
}

.resource-cta-link {
  display: inline-block;
  background: #ffd700;
  color: #18385a;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.resource-cta-link:hover {
  background: #fff;
  color: #18385a;
}

/* ----------- FOOTER ----------- */
footer {
  background: linear-gradient(120deg, #0c6ca8 0%, #18385a 100%);
  color: #fff;
  padding: 0;
  font-size: 1rem;
  box-shadow: 0 -2px 24px rgba(12,108,168,0.08);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 36px 20px;
  justify-content: center;
  align-items: stretch;
}

.footer-section {
  background: rgba(255,255,255,0.07);
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(12,108,168,0.09);
  padding: 36px 26px 28px 26px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.footer-section:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(12,108,168,0.18);
  background: rgba(255,255,255,0.13);
}

.footer-title {
  color: #ffd700;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section ul {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7em;
  text-align: center;
}

.footer-section a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.18s;
  border-bottom: 1px solid transparent;
}

.footer-section a:hover {
  color: #fff;
  border-bottom: 1px solid #ffd700;
}

.social-icons a {
  color: #ffd700;
  font-size: 2rem;
  margin: 0 8px;
  transition: transform 0.18s, color 0.18s;
}

.social-icons a:hover {
  transform: scale(1.15) rotate(-6deg);
  color: #fff;
}

.footer-bottom {
  background: #12273e;
  color: #fff;
  text-align: center;
  padding: 18px 10px 10px;
  font-size: 0.98rem;
  border-top: 1.5px solid #ffd70033;
}

.footer-bottom a {
  color: #ffd700;
  margin: 0 8px;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.18s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 991px) {
  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .footer-content {
    flex-direction: column;
    gap: 18px;
    padding: 36px 10px 24px 10px;
  }
}

@media (max-width: 700px) {
  .header-overlay h1 {
    font-size: 1.4rem;
  }
  .header-overlay p {
    font-size: 1rem;
  }
  .resources-grid {
    margin: 2.5rem auto;
    padding: 0 16px;
  }
  .resource-card {
    padding: 22px;
  }
}

@media (max-width: 500px) {
  .header-hero nav {
    padding: 8px 2px 0 2px;
  }
  .footer-title {
    font-size: 1rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    padding: 10px 4px 6px;
  }
}
/*bouton remonté vers le haut */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: #ffd700;
  color: #18385a;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(24,56,90,0.09);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.18s, color 0.18s, transform 0.19s;
}

#back-to-top:hover,
#back-to-top:focus {
  background: #18385a;
  color: #fff;
  outline: none;
  transform: translateY(-4px) scale(1.07);
}
