@charset "UTF-8";
/* Style général */
/* Mode sombre */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}
/* Par défaut (mode clair) */
body {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 400; /* Poids standard du texte */
  font-size: 16px; /* Taille de police par défaut */
  color: #333; /* Couleur du texte */
  background-color: #f1f1f1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
a {
  color: #930a4d;
  font-weight: bold;
  text-decoration: none;
}
a:hover {
  color: #410422;
  font-weight: bold;
  text-decoration: none;
}
hr {
  margin-top: 30px;
  border: 1px solid #d9d9d9;
  width: 60%;
  border-radius: 50px;
}
.logo-lalibre {
  width: 150px;
}
/* Styles des titres */
.article__title, h1, h2 {
  font-family: 'Manuale', serif;
  font-weight: 700; /* Gras pour les titres */
  font-size: 3.5em;
  text-align: center;
  letter-spacing: 0.1rem;
  line-height: 1em;
}
.article__title, h3, h4, h5, h6 {
  font-family: 'Manuale', serif;
  font-weight: 700; /* Gras pour les titres */
  font-size: 2.5em;
  text-align: center;
  letter-spacing: 0.1rem;
  line-height: 1em;
}
/* Styles des sous-titres et descriptions */
.article__desc, .meta__authors, .meta__date-reading, .ministere {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300; /* Poids plus léger */
  font-size: 18px;
  text-align: center;
}
.section-title {
  font-size: 35px;
  font-weight: bold;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 5px solid #000;
  padding-bottom: 10px;
  width: 320px;
  margin-right: auto;
  margin-left: auto;
}
.age {
  font-size: 0.8rem;
  margin-top: 15px;
  color: #989898;
}
/* Section de l'en-tête */
.article__heading {
  background-color: #ffffff;
  width: 80%;
  max-width: 900px;
  padding: 25px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 25px;
}
/* Titre principal */
.article__title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}
/* Auteur et date */
.meta__authors {
  font-size: 14px;
  color: #666;
}
.meta__date-reading {
  font-size: 13px;
  color: #c1c1c1;
}
/* Description */
.article__desc {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
  margin: 15px auto;
  padding: 10px;
}
/* Ligne de séparation */
.article__separator {
  content: " ";
  display: block;
  width: 100%;
  max-width: 900px;
  height: .1rem;
  background-color: #e8eaee;
  margin-bottom: 2rem;
  margin-top: 2.4rem;
}
/* Conteneur des cartes */
.contenant_min {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 1340px;
}
/* Cartes des profils */
.carte {
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .1);
  width: 19%;
  min-width: 150px; /* Empêche que les cartes deviennent trop petites */
  max-width: 250px; /* Définit une largeur maximale */
  margin: 1rem .5%;
  border-radius: 4px;
  padding: 1rem;
  font-size: 1.2rem;
  background: white;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  cursor: pointer;
  position: relative;
  box-shadow: 0px 8px 14px rgba(14, 39, 87, 0.06);
  transition: transform 0.2s ease-in-out;
}
.carte:hover {
  transform: translateY(-5px);
}
/* Photo */
.ganache {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}
.ganache img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Carré bleu (par défaut) */
.carte::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
/* 🟢 Carré vert */
.carte.verte::before {
  background-color: #0AEF7A;
}
/* Carré bleu */
.carte.bleu::before {
  background-color: #0F28E5;
}
/* Carré jaune */
.carte.jaune::before {
  background-color: #F0AB0A;
}
/* legende */
.legende {
  font-size: 12px;
  color: #333;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fff;
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0px 8px 14px rgba(14, 39, 87, 0.06);
}
.legende-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.cercle {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.cercle.bleu {
  background-color: #0F28E5;
}
.cercle.vert {
  background-color: #0AEF7A;
}
.cercle.jaune {
  background-color: #F0AB0A;
}
.carre {
  display: inline-block;
  height: 15px;
  width: 15px;
  border-radius: 20%;
  margin-right: 8px;
}
.carre.bleu {
  background-color: #0F28E5;
}
.carre.vert {
  background-color: #0AEF7A;
}
.carre.jaune {
  background-color: #F0AB0A;
}
/* Carré rouge (Refusé) */
.carte.rouge::before {
  background-color: #ed0934;
}
/* Carré gris (Retrait) */
.carte.gris::before {
  background-color: #9a9a9a;
}
/* Légende pour les nouvelles couleurs */
.carre.rouge {
  background-color: #ed0934;
}
.carre.gris {
  background-color: #9a9a9a;
}
/* Nom et ministère */
.nom {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
}
.ministere {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}
/* Style du modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 85%;
  max-width: 500px;
  text-align: center;
  position: absolute;
  top: 15px;
}
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}
.close:hover {
  color: red;
}
.modal-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}
#modal-bio {
  text-align: left;
}
.footer {
  margin-top: 15px;
  margin-bottom: 15px;
}
/* Ajustement header */
/* ----- HEADER SPLIT ----- */
.logo-lalibre-header {
  margin-top: 20px;
}
.header-full {
  margin-top: 20px;
  background-color: #121336;
  border-radius: 5px;
  box-shadow: 0px 8px 14px rgba(28, 8, 63, 0.39);
}
.bloc-share {
  margin-top: 20px;
  margin-bottom: 10px;
}
.header-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}
/* ----- PARTIE GAUCHE (TEXTE) ----- */
.header-left {
  flex: 1;
  padding-right: 30px;
}
.header-left .rubric a {
  font-size: 16px;
  text-transform: uppercase;
  color: #930a4d;
  font-weight: bold;
  text-decoration: none;
}
.header-title {
  font-family: 'Manuale', serif;
  font-weight: 700; /* Gras pour les titres */
  font-size: 3.0em;
  text-align: center;
  letter-spacing: 0.1rem;
  line-height: 1em;
  margin-top: 10px;
  color: #fff;
}
.header-description {
  font-size: 18px;
  color: #eee;
  margin-top: 15px;
  line-height: 1.5;
}
.header-author {
  font-size: 14px;
  margin-top: 10px;
  color: #eee;
  text-align: center;
}
.header-author a {
  text-decoration: none;
  color: #930a4d;
  font-weight: bold;
}
.header-date {
  font-size: 13px;
  color: #eee;
  display: block;
  margin-top: 5px;
  text-align: center;
}
/* ----- BOUTONS DE PARTAGE ----- */
.header-share {
  margin-top: 20px;
}
.share-button {
  display: inline-block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-right: 10px;
}
.share-button.facebook {
  background-color: #1877F2;
}
.share-button.twitter {
  background-color: #1DA1F2;
}
.share-button.email {
  background-color: #D44638;
}
/* ----- PARTIE DROITE (IMAGE) ----- */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.header-right img {
  width: 100%;
  max-width: 500px;
  border-radius: 5px;
}
/* fin Ajustement header */
/* ----- BOUTON MODE SOMBRE/CLAIR ----- */
.theme-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #222;
  color: #fff;
  transition: background 0.3s ease-in-out;
}
.theme-button:hover {
  background-color: #444;
}
/* ----- MODE SOMBRE ----- */
.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}
.dark-mode .header-full {
  background-color: #1a1a1a;
}
.dark-mode .header-title {
  color: #fff;
}
.dark-mode .header-description, .dark-mode .header-author, .dark-mode .header-date {
  color: #ccc;
}
.dark-mode .carte {
  background: #222;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark-mode .carte.bleu::before {
  background-color: #0F28E5;
}
.dark-mode .carte.verte::before {
  background-color: #0AEF7A;
}
.dark-mode .carte.jaune::before {
  background-color: #F0AB0A;
}
/* ----- Mode sombre pour bouton switch ----- */
.dark-mode .theme-button {
  background-color: #f1f1f1;
  color: #121212;
}
.dark-mode .theme-button:hover {
  background-color: #ddd;
}
/* MODE SOMBRE POUR LES MODALS */
.dark-mode .modal-content {
  background-color: #1a1a1a;
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark-mode .modal-header img {
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.dark-mode .modal a.modal-button {
  background-color: #444;
  color: #fff;
}
.dark-mode .modal a.modal-button:hover {
  background-color: #666;
}
.dark-mode .close {
  color: #fff;
}
.dark-mode .close:hover {
  color: #ff6b6b;
}
/* Ajustement pour les écrans plus petits */
@media screen and (max-width: 1024px) {
  .carte {
    width: 30%;
  }
  .header-split {
    flex-direction: column;
    text-align: center;
  }
  .header-left {
    padding-right: 0;
  }
  .header-right {
    justify-content: center;
    margin-top: 20px;
  }
  .header-right img {
    max-width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .carte {
    width: 45%;
  }
  .article__title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
  }
  .legende {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-full {
    background-color: #121336;
    border-radius: 0px;
    top: -20px;
    position: relative;
  }
}
@media screen and (min-width: 350px) {
  .carte {
    width: 25%;
  }

  .legende {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* Rendre les images pleinement responsives */
.ganache {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}
.ganache img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}