/* Base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background-color: #f7f9fc;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
/* PAGE D ACCEUIL */
/* Responsive Card Section */
.presentation-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f3f3f3;
}

.card {
  max-width: 1300px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.card-image {
  flex: 1 1 300px;
  max-width: 300px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  flex: 2 1 500px;
  padding: 20px 30px;
}

.card-text h2 {
  margin-top: 0;
  color: #2c3e50;
}

.card-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0055aa;
}

/* 🔁 Responsive */
@media screen and (max-width: 768px) {
  .card-content {
    flex-direction: column;
  }

  .card-image,
  .card-text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .card-text {
    padding: 20px;
  }

  .page-a-propos h1 {
    font-size: 15px;
  }

  .page-a-propos p {
    font-size: 15px;
  }
}


/* section programme */
.programme-section {
  background: rgba(0, 51, 102, 0.5);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.programme-header {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.programme-header h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
}

.programme-header p {
  font-size: 16px;
  line-height: 1.8;
  color: #f0f0f0;
}

.programme-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.programme-card {
  background: rgba(0, 51, 102, 0.5);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.programme-card:hover {
  transform: translateY(-8px);
}

.programme-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid white;
}

.programme-card h3 {
  margin-bottom: 10px;
  font-size: 27px;
  color: #f0f0f0;
}

.programme-card p {
  font-size: 15px;
  line-height: 1.6;
}

.programme-card .live {
  color: #e43838;
  font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .programme-cards {
    flex-direction: column;
    align-items: center;
  }

  .programme-header h2 {
    font-size: 28px;
  }
}

/* FIN section programme */

/* FIN PAGE D ACCEUIL */


/* DEBUT DE LA PAGE à propos */
.page-a-propos {
  padding: 30px 20px;
  background-color: #fdfdfd;
}

.page-a-propos .container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.page-a-propos h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #003366;
}

.page-a-propos p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 5px;
}

/* FIN PAGE à propos */


main {
  max-width: 960px;
  margin: auto;
  padding: 100px 30px 30px; /* espace pour ne pas passer sous le header */
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

/* Titres */
h1 {
  text-align: center;
  color: #005b96;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

h2 {
  color: #003f5c;
  margin-top: 40px;
  border-bottom: 2px solid #005b96;
  padding-bottom: 5px;
  font-size: 1.6rem;
}

h3 {
  color: #005b96;
  margin-top: 25px;
  font-size: 1.3rem;
}

/* Paragraphes */
p {
  margin-bottom: 16px;
}

/* Listes */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 20px;
}

ul li, ol li {
  margin-bottom: 8px;
}

/* Blockquote pour versets */
blockquote {
  font-style: italic;
  background-color: #eef4fc;
  border-left: 4px solid #005b96;
  margin: 20px 0;
  padding: 12px 18px;
  color: #2a2a2a;
}

/* Mise en valeur */
em {
  color: #0073e6;
  font-weight: bold;
}

strong {
  color: #222;
  font-weight: 600;
}

/* Barre de navigation */
nav {
  background-color: #003370;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #004080;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.navbar .logo a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}


.logo img {
  height: 50px;
  width: auto;
}

.logo a {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}


.nav-links a:hover {
  background-color: #0059b3;
  border-radius: 4px;
}

/* Menu déroulant */
/* Sous-menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003370;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1001;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: white;
  white-space: nowrap;
}

.dropdown-menu a {
  padding: 10px 16px;
  white-space: nowrap;
}

.dropdown.open .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Mobile hamburger menu ----- */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  margin-top: 80px;
  overflow: hidden;
  z-index: 1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
 .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: #003370;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .slide {
    background-position: center center;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    background: #00245c;
  }


  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 20px;
    color: white;
    display: block;
  }
}

/* ----- DEBUT FOOTER----- */
.footer {
  background-color: #0f0f11;
  color: #fff;
  padding: 40px 20px;
  font-family: sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 280px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 80px;
  margin-bottom: 10px;
}

.slogan {
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 20px;
}

.live {
  color: red;
  font-weight: bold;
}

.footer-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.footer-section p {
  margin: 5px 0;
  font-size: 15px;
}

.social-icons {
  margin-top: 20px;
  font-size: 22px;
}

.social-icons a {
  margin-right: 15px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #888;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-section {
    width: 100%;
  }

  .footer-logo {
    height: 60px;
  }
}


.partenariat-container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.partenariat-container h1,
.partenariat-container h2 {
  color: #003366;
}

.intro p {
  font-size: 18px;
  line-height: 1.6;
}

section {
  margin-bottom: 40px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #003366;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #001d3d;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 15px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  width: 100%;
}

form button {
  margin-top: 20px;
}


/* ----- PAGE PARTENARIAT ----- */

.partenariat-container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.partenariat-container h1,
.partenariat-container h2 {
  color: #003366;
}

.intro p {
  font-size: 18px;
  line-height: 1.6;
}

section {
  margin-bottom: 40px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #003366;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #001d3d;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 15px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  width: 100%;
}

form button {
  margin-top: 20px;
}
/* ----- FIN PAGE PARTENARIAT ----- */

/* ----- PAGE CONTACT ----- */
.contact-container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.contact-container h1,
.contact-container h2 {
  color: #003366;
}

.contact-intro p {
  font-size: 18px;
  line-height: 1.6;
}

section {
  margin-bottom: 40px;
}

.coordonnees p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  width: 100%;
}

.contact-form button {
  margin-top: 20px;
}
/* ----- FIN PAGE CONTACT ----- */

/* ----- LIVRES ----- */
/* Section Livres */
.books-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.books-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.books-section .section-header h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.books-section .section-header p {
  font-size: 1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.books-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.book-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.book-card img {
  width: 80%;
  height: 320px;
  object-fit: cover;
}

.book-card h3 {
  margin: 15px 0 10px;
  font-size: 1.2em;
  color: #222;
}

.book-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 10px;
  min-height: 50px; /* garde la hauteur uniforme */
}

.book-card .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: #0056b3;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.book-card .btn:hover {
  background-color: #004494;
}

/* Responsive */
@media (max-width: 1024px) {
  .books-cards {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .book-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .book-card {
    width: 100%;
  }
}
