/* ---------------------- */
/* Variables de couleurs */
:root {
  --bg-dark: #0b1320;
  --text-light: #e6eef7;
  --text-muted: #9fb3c8;
  --accent: #4fa3d1;
  --banner-gradient: linear-gradient(90deg, #0d3b66, #3da5d9, #f95738, #ff9f1c);
}

/* ---------------------- */
/* Reset simple */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background: var(--bg-dark);
  color: var(--text-light);
}

/* ---------------------- */
/* Bandeau haut - coloré */
.top-banner {
  background: var(--banner-gradient);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.top-banner h1 {
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.top-banner .subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ---------------------- */
/* Container principal */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ---------------------- */
/* Textes et blockquote */
h2 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.text {
  margin: 2rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

/* ---------------------- */
/* Carrousel responsive */
.carousel-section {
  margin: 3rem 0;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
}

/* Flèches desktop */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  display: block;
}

.prev { left: 0; }
.next { right: 0; }

/* Caption sous carrousel */
.caption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------------- */
/* Texte de fin */
.ending {
  font-size: 1.05rem;
}

/* ---------------------- */
/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer p {
  width: 50%;
}

.footer-text {
  width: 60%;
  margin: 0 auto;      /* centre le bloc horizontalement */
  text-align: center;  /* centre le texte à l’intérieur */
}

/* Image plein largeur dans le footer */
.footer-image {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover; /* recadre proprement si le ratio ne correspond pas */
  object-position: center 30%;  /* ← montre davantage le bas de l’image */
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* ---------------------- */
/* Responsive mobile-first */
@media (max-width: 768px) {
  .top-banner h1 {
    font-size: 1.6rem;
  }

  .top-banner .subtitle {
    font-size: 0.9rem;
  }

  .carousel-track img {
    max-height: 300px;
  }

  /* Flèches masquées sur mobile, on met des points */
  .nav {
    display: none;
  }
  .footer-text {
    width: 80%;
  }

}

/* ---------------------- */
/* Points de navigation mobile */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots button.active {
  background-color: var(--accent);
}
