@import url(https://fonts.googleapis.com/css?family=Montserrat:300,400,400i,500,500i,600,600i,700,700i,800|Open+Sans:400,400i,600,600i,700,700i,800&display=swap);

/* Basic Reset */

/* Body Styling */
body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}
body,
p {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased !important;
  line-height: 26px;
  font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #212121;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased !important;
}

h1 {
  font-size: 36px;
  line-height: 48px;
}

h2 {
  font-size: 28px;
  line-height: 36px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -.5px;
}

h4 {
  font-size: 18px;
  line-height: 28px;
  text-transform: uppercase;
  letter-spacing: -.2px;
}

h5 {
  font-size: 14px;
  line-height: 24px;
}


/* Header Styling */
.header-two {
    background-color: #fff; /* Couleur de fond blanche pour le menu de navigation */
    color: #000; /* Couleur de texte noire pour le menu de navigation */
    padding: 15px;
}

.header-two .navbar {
    padding: 10px 0;
    display: flex;
    justify-content: space-between; /* Espace entre le logo et le menu */
    align-items: center; /* Alignement vertical des éléments */
}

.header-two .navbar .logo {
    margin-right: 20px; /* Espace entre le logo et les éléments du menu */
    left: 0; 
}

.header-two .navbar-nav {
    display: flex; /* Aligner les éléments du menu en ligne */
    flex-grow: 1;
    justify-content: flex-end; /* Aligner les éléments du menu à droite */
}

.header-two .navbar-nav .nav-item {
    margin-right: 10px; /* Réduire l'espace entre les éléments du menu */
}

.header-two .navbar-nav .nav-item:last-child {
    margin-right: 0; /* Pas de marge à droite pour le dernier élément */
}

.header-two .navbar .nav-link {
    color: #000; /* Couleur du texte noir pour les liens de navigation */
    text-transform: uppercase; /* Texte en majuscules */
    font-weight: bold;
    font-size: 0.9rem; /* Réduire la taille de la police */
    padding: 8px 12px;
}

.header-two .navbar .nav-link:hover, 
.header-two .navbar .nav-link:focus {
    color: #ffe600; /* Couleur du texte au survol du menu */
}

.header-two .navbar .dropdown-menu {
    background-color: #ece6e6; /* Couleur de fond blanche pour le menu déroulant */
    top: 250x;
}

.header-two .navbar .dropdown-menu .dropdown-item {
    color: #000; /* Couleur du texte noir pour les éléments du menu déroulant */
    text-transform: uppercase; /* Texte en majuscules */
    padding: 10px 20px; /* Ajouter du padding autour des éléments du sous-menu */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Séparation transparente entre les éléments */
}

.header-two .navbar .dropdown-menu .dropdown-item:last-child {
    border-bottom: none; /* Pas de bordure pour le dernier élément */
}

.header-two .navbar .dropdown-menu .dropdown-item:hover,
.header-two .navbar .dropdown-menu .dropdown-item:focus {
    background-color: #ff0505; /* Couleur de fond jaune au survol du menu déroulant */
    color: #000; /* Couleur du texte au survol du menu déroulant */
}

/* Logo Styling */
.header-two .logo img {
    width: 200px;
    height: auto;
}


/* Responsive Navbar */
.navbar-collapse {
    flex-grow: 0;
}



.navbar-toggler {
  background-color: #ffb700; /* Change to desired color */
  border: none; /* Optional: remove border */
}

.navbar-toggler-icon {
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba%280, 0, 0, 1%29" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
  /* Optional: customize the icon color */
}
/* Dropdown Styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -2px;
    border-radius: 0;
}

.dropdown-submenu > a:after {
    display: block;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    float: right;
    margin-top: 0;
    margin-right: -5px;
    border: 0;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

.dropdown-menu {
    text-align: left;
    background: #fff;
    z-index: 100;
    min-width: 200px;
    border-radius: 0;
    border: 0;
    padding: 0 20px;
    margin: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dropdown-menu li a {
    font-family: "Montserrat", sans-serif;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    padding: 15px 0;
    letter-spacing: .3px;
    border-bottom: 1px solid #e5e5e5;
    color: #333333;
}



.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    color: #ffb600;
}

.dropdown-item {
    padding: 10px 20px; /* Ajouter du padding autour des éléments du sous-menu */
    border-bottom: 1px solid rgba(228, 10, 10, 0.1); /* Séparation transparente entre les éléments */
}

.dropdown-item:last-child {
    border-bottom: none; /* Pas de bordure pour le dernier élément */
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #ffeb3b; /* Couleur de fond jaune au survol */
    color: #000; /* Couleur du texte au survol */
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: .25rem .25rem .25rem .25rem;
}

/* Responsive Dropdown for Mobile */


/* Hero Section Styling */
.hero {
  height: 140vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/services/ecole-enej-facade.jpg') no-repeat center center/cover;
  z-index: -1; /* L'image reste derrière le contenu */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 42, 116, 0.4); /* Overlay bleu avec transparence */
  z-index: 0; /* L'overlay bleu sera sur l'image */
}

.hero-title {
  font-family: 'Lucida Bright', serif;
  color: #ffffff;
  font-size: 4.3rem;
  line-height: 1.2;
  font-weight: bold;
  margin-top: -160px;
  position: relative;
  z-index: 1;
}

/* Styles spécifiques aux appareils mobiles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem; /* Taille plus petite pour les écrans moyens */
    margin-top: 200px; /* Ajustement du positionnement pour les petits écrans */
  }
  .hero::before {
    background-size: cover;
    background-position: center center;
  }
}

/* Styles pour les très petits appareils (smartphones en portrait) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem; /* Taille plus petite pour les petits écrans */
    margin-top: 150px; /* Ajuster la position pour les très petits écrans */
  }
  .hero::before {
    background-size: cover;
    background-position: center center;
  }
}

/* Animation pour les autres images

@keyframes slideBackground {
  25% {
      background-image: url('../images/Palais-de-justice-12-nouveaux-magistrats-pretent-serment-devant-la-cour-.jpg');
  }
  /* Vous pouvez ajouter d'autres étapes pour inclure plus d'images si nécessaire 
}
*/
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Légère ombre pour améliorer la lisibilité */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: bold;
  font-size: 3.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Ombre pour le texte */
}

.hero .btn {
  font-size: 1.2rem;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #0056b3;
}

/* Media Query pour les petits écrans */
@media (max-width: 768px) {
  .hero {
      height: 60vh;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .hero p {
      font-size: 1rem;
  }

  .hero .btn {
      font-size: 1rem;
      padding: 0.5rem 1rem;
  }
}



/* Footer */
.footer {
    background-color: #000000;
    color: #999;
  }
  
  .footer-main {
    padding: 10px 0 10px;
  }
  .widget-titles {
    font-family: Arial, sans-serif; /* Choisissez une police élégante */
    font-size: 24px; /* Ajustez la taille selon vos besoins */
    font-weight: bold;
    color: #333; /* Couleur du texte */
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    margin: 20px 0;
  }
  
  .widget-titles::after {
    content: "";
    display: block;
    width: 50px; /* Longueur de la ligne sous le texte */
    height: 3px; /* Épaisseur de la ligne */
    background-color: #007BFF; /* Couleur de la ligne (par exemple, bleu) */
    margin: 0 auto;
    margin-top: 8px;
    border-radius: 5px; /* Coins arrondis pour la ligne */
  }
  
  .footer .widget-title {
    font-size: 16px;
    font-weight: 700;
    position: relative;
    margin: 0 0 30px;
    padding-left: 15px;
    text-transform: uppercase;
    color: #fff;
    border-left: 3px solid #ffb600;
  }
  
.footer-social {
    margin-top: 15px;
  }
  
  .footer-social .widget-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .footer-social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: -13px;
  }
  
  .footer-social ul li {
    display: inline-block;
  }
  
  .footer-social ul li a i {
    display: block;
    font-size: 16px;
    color: #0093f5;
    border-style: solid;
    border-radius: 50%; /* Transformation en cercle */
    border-width: 1px 1px 1px 1px;
    border-color: #FFFFFF;
    transition: 400ms;
    padding: 10px 13px;
  
  }
  .footer-social ul li a i:hover {
    transform: scale(1.2); /* Agrandit l'icône au survol */
  }
  .footer-social ul li:hover {
    color: #743232;
  }
  
  /* Links */
  .footer-widget ul.list-arrow li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 0;
  }
  
  .footer-widget ul.list-arrow li:last-child {
    border-bottom: 0;
  }
  
  .footer-widget ul.list-arrow li a,
  .footer-widget ul.list-arrow li:before {
    color: #747474;
  }
  
  .footer-widget ul.list-arrow li:hover a,
  .footer-widget ul.list-arrow li:hover {
    color: #ffb600;
  }
  
.copyright {
    background: #ffb600;
    color: #111;
    padding: 10px 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 12px;
  }
  
  .footer-menu ul li {
    display: inline-block;
    line-height: 12px;
    padding-left: 15px;
  }
  
  .footer-menu ul.nav li a {
    background: none;
    color: #111;
    padding: 0;
  }
  
  .footer-menu ul li a:hover {
    color: #fff;
  }
  .dropdown-menu li:hover > .dropdown-menu > li > a {
    display: block;
}

/* Initially hide the "Toi" menu item */
.dropdown-menu li > .dropdown-menu > li > a {
    display: none;
}

.icon-with-border {
    font-size: 4em; /* Ajustez la taille selon vos besoins */
    color: #ffb600; /* Couleur du contour */
}
/* back to top */
#back-to-top {
    right: 40px;
    top: auto;
    z-index: 10;
    display: none;
  }
  
  #back-to-top .btn:focus {
    outline: 0;
    box-shadow: none;
  }
  
  @media (max-width: 767px) {
    #back-to-top {
      right: 15px;
    }
  }
  
  #back-to-top.position-fixed {
    bottom: 20px;
  }
  
  #back-to-top .btn.btn-primary {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 3px;
    color: #ffb600;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
  }
  
  @media (max-width: 767px) {
    #back-to-top .btn.btn-primary {
      width: 32px;
      height: 32px;
      line-height: 32px;
      font-size: 14px;
    }
  }
  
  #back-to-top .btn.btn-primary:hover {
    color: #fff;
  }
  
 /* photo ouverture*/
    
 .containerz {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1500px;
  background-color: #E2F0F6;
  margin: 0 auto;
  height: 80vh;
  border-radius: 8px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* Ombre légère */
  margin-bottom: 30px;
 
  
}

.image-containerz {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Masque les images qui dépassent */
  border-radius: 8px;
}

.image-containerz img {
  width: 80%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.9) contrast(1.1); /* Applique le filtre initial */
  transition: transform 0.3s ease, filter 0.3s ease; /* Effet de transition */
}

.image-containerz:hover img {
  transform: scale(1.05); /* Agrandit légèrement l'image au survol */
  filter: brightness(1) contrast(1.2); /* Augmente la luminosité et le contraste au survol */
}

.text-containerz {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.animated-textz {
  font-size: 1rem; /* Taille du texte par défaut pour mobile */
  line-height: 1.5; /* Espace entre les lignes pour une meilleure lisibilité */
  color: #333; /* Couleur du texte */
  margin-bottom: 15px; /* Espace sous le texte */
}

@media (max-width: 768px) {
  .containerz {
    flex-direction: column; /* Empile les éléments sur les petits écrans */
    height: auto;
    align-items: center; /* Centre la disposition verticale */
  }

  
  

  .image-containerz img {
    width: 100%;
    border-radius: 5px;
  }

  .animated-textz {
    font-size: 0.9rem; /* Ajuste la taille du texte pour mobile */
}
}

@media (max-width: 480px) {
  .containerz {
    padding: 10px;
  }

  
}
    .ts-service-info {
        margin-left: 30px;
      }
      
      .ts-service-info h3 {
        font-size: 16px;
      }
      
      .ts-service-info .learn-more {
        text-transform: uppercase;
        font-size: 14px;
        font-weight: 600;
      }
      
      .ts-service-info .learn-more:hover {
        color: #ffb600;
      }
      /* Styles pour la section des fonctionnalités */
#ts-features {
    background-color: #f8f9fa; /* Couleur de fond de la section */
    padding: 50px 0; /* Espacement intérieur de la section */
}

.ts-service-box {
    background-color: #fff; /* Couleur de fond des boîtes de service */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* Ombre légère */
    margin-bottom: 30px;
}

.ts-service-image-wrapper {
    overflow: hidden; /* Masque les images qui dépassent */
    border-radius: 8px;
    margin-bottom: 20px;
}

.ts-service-box-img {
    margin-right: 20px; /* Espacement entre l'icône et le texte */
}

.ts-service-box-img i {
    font-size: 40px; /* Taille de l'icône */
    color:#ffb600; /* Couleur de l'icône */
}

.image-containerz img {
  transition: transform 0.3s ease;
}

.image-containerz:hover img {
  transform: scale(1.1);
}

.service-box-title {
    font-size: 24px; /* Taille du titre */
    font-weight: bold;
    margin-bottom: 10px;
}

.ts-service-info p {
    font-size: 16px; /* Taille du texte */
    color: #333; /* Couleur du texte */
    margin-bottom: 20px;
}

/* Media queries pour la réactivité */
@media (max-width: 768px) {
    .ts-service-box-img {
        margin-right: 0; /* Ajustement pour les petits écrans */
        margin-bottom: 20px;
        text-align: center; /* Centrer l'icône */
    }

    .ts-service-box-img i {
        font-size: 36px; /* Taille de l'icône réduite pour les petits écrans */
    }
}
.btn-primary {
    background-color: #ffb600; /* Couleur d'arrière-plan personnalisée */
    border-color: #ffb600; /* Couleur de la bordure personnalisée */
    text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #000000; /* Couleur d'arrière-plan au survol/focus */
    border-color: #000000; /* Couleur de la bordure au survol/focus */
    color: #fff; /* Couleur du texte au survol/focus */
}
/* Stylisation de la section des partenaires */

.partners-container {
  display: flex;
    background: linear-gradient(to bottom,  rgba(255, 255, 255, 0.2),rgba(238, 188, 23, 0.7)); /* Transparent blue and white gradient */
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    backdrop-filter: blur(100px); /* Adds a blur effect */
}

.partners-container p {
  display: block;
  width: 100%; /* Each image will fill the available width of the container */
  margin-right: 0; /* Removes right margin for full alignment */
  transition: transform 0.3s ease;
}

.partners-container img {
  width: 50%; /* Full width for each image */
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partners-container a:hover {
  transform: scale(1.1); /* Zoom effect on hover */
}

@media only screen and (max-width: 600px) {
    .partners-container {
        justify-content: center; /* Centrer les éléments sur une ligne */
    }

    .partners-container p {
      display: block;
        width: 100px; /* 50% de largeur pour afficher 2 éléments par ligne */
        margin-right: 20px; /* Espacement entre les logos */
    }
    .partners-container img {
        max-width: 100%; /* Image à largeur maximale */
        height: auto; /* Hauteur automatique pour conserver les proportions */
        max-height: 60px; /* Hauteur maximale ajustée pour les logos sur mobile */
        width: 100%;
    }
}



/* Stylisation du formulaire de contact */
.contact-form {
    padding: 80px 0;
    background-color: #f9f9f9;
    margin-top: 100px;
  }
  
  .contact-form-wrapper {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  }
  
  .contact-form h2 {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .form-control {
    border-radius: 5px;
    margin-bottom: 20px;
  }
  
  textarea.form-control {
    resize: vertical; /* Permet de redimensionner la zone de texte verticalement */
  }
  
  
  @media (max-width: 768px) {
    .contact-form-wrapper {
      padding: 20px;
    }
  }
  

  /*  actualite  */
  /* Section d'actualités principale */
.news-section {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 1.5s ease;
    position: relative;
    background: linear-gradient(135deg, #b3e5fc, #f7dd6e);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Titre de la section */
.news-section h3 {
    font-size: 1.8rem; /* Taille ajustée */
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Conteneur des actualités */
.news-content {
    display: flex;
    flex-wrap: wrap; /* Permet de mieux gérer les petits écrans */
    gap: 15px;
    align-items: stretch;
}

/* Grande actualité */
.large-news {
    flex: 2 1 60%; /* Ajustement flexible */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: auto; /* Supprime la hauteur fixe */
    min-height: 300px; /* Hauteur minimale */
}
.large-news img {
    width: 100%;
    height: auto; /* Ajustement automatique des images */
    border-radius: 10px;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.large-news:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}
.large-news .text-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}
.large-news .text-overlay p {
    font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: rgb(233, 223, 223); /* Couleur centrale du texte */
  font-weight: bold; /* Texte en gras */
  text-shadow: 
    -1px -1px 0 #000,  /* Ombre vers le haut gauche (noire) */
    1px -1px 0 #000,   /* Ombre vers le haut droite (noire) */
    -1px 1px 0 #000,   /* Ombre vers le bas gauche (noire) */
    1px 1px 0 #000;    /* Ombre vers le bas droite (noire) */
}

/* Petites actualités */
.small-news {
    flex: 1 1 35%; /* Ajustement flexible */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.small-news div {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 150px; /* Hauteur minimale */
}
.small-news img {
    width: 100%;
    height: 100%; /* Ajustement automatique des images */
    border-radius: 10px;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.small-news div:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}
.small-news .text-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}
.small-news .text-overlay p {
     font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
    color: rgb(233, 223, 223); /* Couleur centrale du texte */
    font-weight: bold; /* Texte en gras */
    text-shadow: 
      -1px -1px 0 #000,  /* Ombre vers le haut gauche (noire) */
      1px -1px 0 #000,   /* Ombre vers le haut droite (noire) */
      -1px 1px 0 #000,   /* Ombre vers le bas gauche (noire) */
      1px 1px 0 #000;    /* Ombre vers le bas droite (noire) */
}

/* Bouton pour plus d'actualités */
.more-news {
    text-align: center;
    margin-top: 20px;
}
.more-news a {
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
    background-color: #ffb600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.more-news a:hover {
    background-color: #000;
}

/* Animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .large-news {
        flex: 1 1 100%;
    }
    .small-news {
        flex: 1 1 100%;
        flex-direction: row;
        gap: 10px;
    }
    .small-news div {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .large-news {
        min-height: 250px;
    }
    
    .news-section h3 {
        font-size: 1.5rem;
    }
   .small-news {
    flex-direction: column; /* Empile les éléments */
}
.small-news div {
    width: 100%; /* Prend toute la largeur */
    min-height: 200px; /* Taille commune */
}
.large-news .text-overlay p {
  font-size: 1.1rem; /* Ajuster la taille du titre */
}

.small-news .text-overlay p {
  font-size: 1rem; /* Ajuster la taille du titre des petites actualités */
}
    
}

@media (max-width: 480px) {
    .large-news {
        min-height: 200px;
    }
    
    .news-section h3 {
        font-size: 1.2rem;
    }
    .more-news a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
   .small-news {
    flex-direction: column; /* Empile les éléments */
}
.small-news div {
    width: 100%; /* Prend toute la largeur */
    min-height: 150px; /* Taille adaptée pour écrans plus petits */
}

.large-news .text-overlay p {
  font-size: 1rem; /* Plus petit pour s'adapter aux petits écrans */
}

.small-news .text-overlay p {
  font-size: 1rem; /* Réduire la taille du titre */
}

}
