@font-face {
  font-family: 'Blatant';
  src: url('/Polices/Blatant.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;  
}

@font-face {
  font-family: 'Blatant Italic';
  src: url('/Polices/Blatant_Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;  
}

@font-face {
  font-family: 'Blatant Bold';
  src: url('/Polices/Blatant_Bold.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;  
}

@font-face {
  font-family: 'Blatant Bold Italic';
  src: url('Porte-Folio/Polices/Blatant_Bold_Italic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Gabarito Black';
  src: url('/Polices/Gabarito_Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito Extra Bold';
  src: url('/Polices/Gabarito_Extra_Bold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito Bold';
  src: url('/Polices/Gabarito_Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito Medium';
  src: url('/Polices/Gabarito_Medium.woff') format('woff');
  font-weight: 500; 
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito Regular';
  src: url('/Polices/Gabarito_Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gabarito Regular', sans-serif;
  background-color: #121212;
}


.grostitre {
  font-size: 46px;
  font-weight: bold;
  color: #e6e6e6;
  font-family: 'Blatant', sans-serif;
}

.titre {
  font-size: 36px;
  font-weight: bold;
  color: #e6e6e6;
  font-family: 'Blatant', sans-serif;
}

.titre-centre{
  margin-top: 50px;
  margin-bottom: 0px;
  text-align: center;
}

.sous-titre{
  font-size: 26px;
  font-weight: bold;
  color: #e6e6e6;
  text-align: center;
  font-family: 'Blatant';
}

.petittitre{
  font-size: 24px;
  color: #e6e6e6;
  font-family: 'Blatant';
}

.petittitredoux{
  font-size: 24px;
  color: #e6e6e6;
  font-family: 'Gabarito Regular';
}

.ppp{
  max-width: 750px;
  text-align: center;
  font-size: 20px;
  font-weight: lighter;
  color: #e6e6e6;
}


p a {
  color: #e6e6e6;
  text-decoration: underline;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #2b2b2b;
  background-color: transparent;
}

.navbar-nav {
  display: flex;
  gap: 20px;
  align-items: center; 
}

.navbar-nav a {
  text-decoration: none;
  color: #e6e6e6;
  font-family: 'Blatant';
  min-width: 120px;
  padding: 10px 20px; 
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.3s ease;
}

.navbar-nav a:hover {
  background-color: #2b2b2b;
  color: #ffffff;
}

.navbar-nav .active {
  background-color: #2a2a2a;
  color: #f5f5f5;
}

.navbar-nav .nav-link.active {
border-color: transparent !important;
color: #f5f5f5 !important;
}


.navbar-nav .espace-academique {
  font-family: 'Blatant';
  color: #9e9e9e;
  background-color: transparent;
}

.navbar-nav .espace-academique:hover {
  color: #e6e6e6;
  background-color: transparent; 
  transition: color 0.3s ease;
}

.espace-academique.active {
  color: #fff;
  font-weight: bold;
}

.navbar-brand{
  font-family: 'Blatant';
  font-size: 26px;
  color: #e6e6e6;
}

.navbar-brand:hover{
  color: #9E9E9E;
  transition: color 0.3s ease;
}



@media (max-width: 767.98px) {
  .navbar-nav.ms-auto {
    justify-content: center !important;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
  }


.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("/icones/menu.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
}


  .navbar-nav.ms-auto .nav-item {
    text-align: center;
    width: 100%;
  }

  .navbar-nav.ms-auto .nav-link,
  .navbar-nav.ms-auto .espace-academique {
    display: block;
    margin: 0 auto;
    text-align:center;
  }
}

.navbar-nav .icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-custom p{
  font-family: 'Blatant';
  color: #9e9e9e;
}

.footer-custom a,
.footer-custom img {
  color: #9e9e9e;
  fill: #9e9e9e;
  filter: brightness(0) saturate(100%) invert(62%) sepia(0%) saturate(0%) hue-rotate(185deg) brightness(95%) contrast(89%);
}

footer img {
  transition: opacity 0.3s ease;
}

footer img:hover {
  opacity: 0.6;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

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

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  border-top: 1px solid #2b2b2b;
}

.container {
  color: #e6e6e6;
}

.container .cardarticle,
.container .card-title {
  text-align: center;
  color: #e6e6e6;
  font-family: 'Blatant';
}

.container .card-text{
  text-align: center;
  color: #e6e6e6;
  font-family: 'Gabarito Regular';
}

.full-screen-row {
  height: 100vh;
}

.main-col {
  padding: 130px;
}

@media (max-width: 768px) {
  .main-col {
    padding: 20px;
  }
}

.custom-button {
  background-color: #2b2b2b;
  color: #e6e6e6;
  font-weight: bold;
  border-radius: 15px;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  border: none;
  font-family: 'Blatant';
}

.custom-button:hover {
  background-color: #3a3a3a;
  opacity: 0.9;
}

.custom-button img {
  width: 24px;
  height: 24px;
}

.filtres-categories {
  margin-bottom: 2rem;
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filtres-categories::-webkit-scrollbar {
  display: none;
}

.filtre-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #e6e6e6;
  font-family: Blatant;
  text-decoration: none;
  border-radius: 15px;
  transition: background-color 0.3s, color 0.3s;
  border: 0px;
}

.filtre-btn:hover {
  background-color: #2b2b2b;
  color: #ffffff;
  border: 0px;
}

.filtre-btn.actif {
  background-color: #2b2b2b;
  color: #ffffff;
  border: 0px;
}

.sticky-barre {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #121212;
  padding: 1rem 0;
  border-bottom: 1px solid #2b2b2b;
}

.card,
.card-body,
.cardarticle{
  border-radius: 15px;
  border: none;
  background-color: transparent !important;
  width: 100%;
}

form input.form-control,
form textarea.form-control,
.textarea-custom {
  background-color: #121212;
  border-radius: 15px;
  border-color: #2b2b2b;
  border-width: 2px;
  transition: border-width 0.3s ease, border-color 0.3s, background-color 0.3s;
  color: #e6e6e6 !important;
}

form input.form-control:focus,
form textarea.form-control:focus,
.textarea-custom:focus {
  box-shadow: none;
  outline: none;
  border-color: #444;
  background-color: #121212;
  border-width: 4px;
  color: #e6e6e6 !important;
}

input::placeholder,
textarea::placeholder {
color: #cccccc !important;
opacity: 1;
}

.boutonarticle,
.boutonlien {
  text-align: center;
  color: #e6e6e6;
  text-decoration: none;
  font-family: 'Blatant';
}

.boutonarticle:hover,
.boutonlien:hover {
  color: #9e9e9e;
  transition: color 0.3s ease;
}

.cardarticle {
  text-align: center;
  border-radius: 45px;
  justify-content: flex-start;
}

.card-img-top {
  border-radius: 15px !important;
  object-fit: cover;
}

.card-title{
  font-weight: bolder;
  color: #e6e6e6;
}

.contenu-article img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 60px auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contenu-article img:hover {
  transform: scale(1.05);
}

.commentaire {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border: 2px solid #2b2b2b;
  border-radius: 15px;
  color: #e6e6e6;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.commentaire p {
  margin: 0;
}

textarea[name="commentaire"] {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border-radius: 15px;
  border: 2px solid #2b2b2b;
  font-family: inherit;
  font-size: 1rem;
  color: #e6e6e6 !important;
  background-color: #121212;
}

.commentaire .commentaire-texte {
  flex-grow: 1;
  margin-right: 1rem;
}

.commentaire form {
  flex-shrink: 0;
  margin: 0;
}

.commentaires-article {
  text-align: left;
  padding-left: 15px;
  padding-right: 15px;
  max-width: 700px;
  margin: 0 auto;  
  margin-bottom: 1.5rem;    
  padding: 1rem;              
  background-color: transparent;
  color: #e6e6e6;
}

.commentaires-article h3 {
  text-align: left;
  margin-bottom: 1rem;
}

.commentaires-article .commentaire {
  margin-bottom: 1.5rem;
}

.btn-supprimer {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-supprimer img {
  width: 24px;
  height: 24px;
  transition: ease 0.3s;
}

.btn-supprimer :hover {
  opacity: 0.5;
}

@media (max-width: 480px) {
  .article-info-card {
    padding: 12px 15px;
    max-width: 100%;
  }

  .article-info-card .info-item {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .article-info-card .icon-img {
    margin-bottom: 6px;
  }

  .article-info-card .info-label {
    margin-right: 0;
    min-width: auto;
    align-items: center;
    text-align: center;
  }
}

.article-info-card {
  border: 2px solid #2b2b2b;
  padding: 15px 25px;
  padding-top: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  background-color: #1a1a1a;
  max-width: 700px;
  font-family: 'Gabarito Regular', sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
margin-top: 50px;
margin-bottom: 100px;
}


.article-info-card .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  color: #e6e6e6;
}

.article-info-card .icon-img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  object-fit: contain;
  display: block;
}

.article-info-card .info-label {
  font-weight: bold;
  margin-right: 6px;
  min-width: 140px;
  color: #e6e6e6;
  text-align: left;
}

.article-info-card .info-value {
  color: #9e9e9e;
  font-weight: 100;
  text-align: left;
}

@media (max-width: 767.98px) {
    .article-info-card .info-item {
        flex-direction: column; /* Empile les éléments verticalement */
        align-items: center; /* Centre les éléments horizontalement */
        text-align: center; /* Centre le texte */
    }

    .article-info-card .icon-img {
        margin-right: 0; /* Supprime la marge à droite pour le centrage */
        margin-bottom: 8px; /* Ajoute une marge en bas pour séparer l'icône du texte */
    }

    .article-info-card .info-label,
    .article-info-card .info-value {
        text-align: center; /* Centre le texte */
        margin-right: 0; /* Supprime la marge à droite */
        min-width: auto; /* Désactive la largeur minimale fixe */
        width: 100%; /* Prend toute la largeur disponible */
        display: block; /* Chaque élément sur une nouvelle ligne */
    }
}


.couverture{
  border-radius: 15px;
}

main h2 {
  font-size: 36px;
  font-weight: bold;
  color: #e6e6e6;
  font-family: 'Blatant';
}

h1, h3 {
  color: #e6e6e6;
  font-family: 'Blatant';
}

.carousel .card {
  border-radius: 20px;
  overflow: hidden;
  background-color: transparent;
}

.carousel .card-img-top {
  max-height: 350px;
  max-width: 600px;
  object-fit: cover;
  margin-top: 30


}

.custom-carousel-btn {
  background-color: #2b2b2b;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: background-color 0.3s;
  z-index: 10;
}

.carousel-control-prev.custom-carousel-btn {
  left: 15%;
}

.carousel-control-next.custom-carousel-btn {
  right: 15%;
}

.custom-carousel-btn:hover {
  background-color: #3a3a3a;
}

.custom-carousel-btn img {
  width: 32px;
  height: 32px;
}

@media (max-width: 767.98px) {
  .carousel-control-prev.custom-carousel-btn,
  .carousel-control-next.custom-carousel-btn {
    display: none !important;
  }
    /* Réduire la largeur des images du carousel et ajouter des marges */
  .carousel .card {
    max-width: 90% !important;
    margin: 0 auto;
  }

  /* Assurer que l'image ne dépasse pas de la carte */
  .carousel .card-img-top {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}


.vedette-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* === Palette sombre : texte clair global === */
body, p, li, span, a, h1, h2, h3, h4, h5, h6 {
  color: #e6e6e6;
}

/* Texte dans les cartes d'articles */
.cardarticle, .cardarticle p, .container .card-text, .article-info-card .info-value {
  color: #e6e6e6;
}

/* Liens normaux */
a {
  color: #f5f5f5;
}

a:hover {
  color: #ffffff;
}

/* Spécifique aux paragraphes de la page d'accueil */
.home p {
  color: #e6e6e6;
}

/* Spécifique aux descriptions d'articles */
.article-description, .contenu-article p {
  color: #e6e6e6;
}

.bistou{
    color: #e6e6e6 !important;
}



/*MOBILE*/

@media (max-width: 767.98px) {
  /* Réduction des gouttières */
  .container-fluid, .row {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .main-col {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adaptation des tailles de texte */
  .grostitre { font-size: 32px; }
  .titre { font-size: 28px; }
  .sous-titre { font-size: 20px; }
  .petittitre, .petittitredoux { font-size: 18px; }
  .ppp { font-size: 16px; }

  /* Optimisation du carousel et des boutons */
  #carouselAccueil { max-width: 90% !important; }
  .custom-button { padding: 8px 12px !important; font-size: 14px !important; }
  .card { max-width: 100% !important; }
}
