        /* CONTAINER FILTRES */
        #container {
            width: 100vw;
            margin-inline: calc(50% - 50vw);
            max-width: 100vw;
        }

        /* BUTTON */

        button.parent-btn{
            color:rgb(255, 255, 255);
            padding: 10px;
        }
        button.parent-btn:focus{
            color:rgb(255, 255, 255);
        }
         button.parent-btn:hover {
            background-color:#e6007e;
            color:white;
        }

        /* IMAGE ET TITRE */
        .canva-article {
            height: auto;
            overflow: hidden;
            text-align: center;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 10% 10%;
            box-sizing: border-box;
            text-decoration: none;
            color: inherit;
        }
        .canva-article .page-content a {
            text-decoration: none;
        }
        .wp-block-post-featured-image {
            position: absolute;
            top: 15%;
            left: 10%;
            width: clamp(180px, 50%, 300px);
            max-width: 80%;
            margin: 0;
        }
        .wp-block-post-featured-image img {
            width: 70%;
            margin-top: 30px;
            object-fit: contain;
        }

        .wp-block-post-title {
            position: absolute;
            top: 80%;
            left: 20%;
            font-size: 17px;
            font-weight: bold;
            color: #333;
            text-align: left;
        }
        .wp-block-post-title a {
            text-decoration: none;
        }

        .wp-block-post-categories {
            font-size: clamp(0.7rem, 2vw, 0.5rem);
			font-weight: 900;
			transform: rotate(17deg);
			max-width: 90px;
			display: inline-block;
			position: absolute;
			bottom: 42%;
			left: 65%;
			z-index: 5;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
        }

        /* Section Nut */
        .nut-section {
            padding: 5%;
        }

        .nut-section .container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2%;
            width: 100%;
            align-items: stretch;
        }

        .card {
            flex-wrap: wrap;
            aspect-ratio: 307 / 299; /* Ratio constant pour tous les blocs */
            background-size: cover;
            background-repeat: no-repeat;
            display: flex;
            flex-direction: column;
            align-content: center;
        }

        .card:hover {
            cursor: pointer;
        }

        /* Styles pour les boutons des sous-catégories */
        .child-btn.ecologie-environnement {
            background-color: #FBF8CC;
        }
        .child-btn.physique {
            background-color: #FDE4CF;
        }
        .child-btn.chimie {
            background-color: #FFCFD2;
        }
        .child-btn.mathematiques-informatique {
            background-color: #F1C0E8;
        }
        .child-btn.intelligence-artificielle {
            background-color: #CFBAF0;
        }
        .child-btn.geosciences {
            background-color: #A3C4F3;
        }
        .child-btn.sciences-sociales {
            background-color: #D6CCC2;
        }
        .child-btn.biologie-moleculaire-sante {
            background-color: #8EECF5;
        }
        .child-btn.biologie-animale-vegetale {
            background-color: #EDEDE9;
        }
        .child-btn.evolution {
            background-color: #B9FBC0;
        }

        /* Hover effect for child categories */
        .child-btn {
            transition: all 0.3s ease;
        }

        .child-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

         /* Images spécifiques pour les catégories enfants */

        .card.cat-physique {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/physique.webp');
        }
        .card.cat-physique:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.physique.webp');
        }
        .card.cat-ecologie-environnement {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/ecologie-environnement.webp');
        }
        .card.cat-ecologie-environnement:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.ecologie-environnement.webp');
        }
        .card.cat-chimie {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/chimie.webp');
        }
        .card.cat-chimie:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.chimie.webp');
        }
        .card.cat-evolution {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/evolution.webp');
        }
        .card.cat-evolution:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.evolution.webp');
        }
         .card.cat-biologie-animale-vegetale {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/biologie-animale-vegetale.webp');
        }
        .card.cat-biologie-animale-vegetale:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.biologie-animale-vegetale.webp');
        }
          .card.cat-biologie-moleculaire-sante {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/biologie-moleculaire-sante.webp');
        }
        .card.cat-biologie-moleculaire-sante:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.biologie-moleculaire-sante.webp');
        }
           .card.cat-geosciences {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/geosciences.webp');
        }
        .card.cat-geosciences:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.geosciences.webp');
        }
             .card.cat-sciences-sociales {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/sciences-sociales.webp');
        }
        .card.cat-sciences-sociales:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.sciences-sociales.webp');
        }
            .card.cat-intelligence-artificielle {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/intelligence-artificielle.webp');
        }
        .card.cat-intelligence-artificielle:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.intelligence-artificielle.webp');
        }
            .card.cat-mathematiques-informatique {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/mathematiques-informatique.webp');
        }
        .card.cat-mathematiques-informatique:hover {
            background-image: url('https://bidule.umontpellier.fr/wp-content/uploads/2025/05/on.mathematiques-informatique.webp');
        }

         /* Styles pour les filtres */
        #category-filters {
            margin-bottom: 20px;
            margin-left: 1%;
            margin-top: 5%;
        }
        #category-filters .filter-btn {
            border:1px solid #E6007E;
        }
        .filter-btn {
            font-family:'jost';
            margin: 2px;
            padding: 8px 8px;
            cursor: pointer;
            border-radius: 4px;
            font-size: 0.8rem;
            color: #4D40A2;
            border: none;
            font-weight: 600;
        }
        .parent-category-wrapper {
            position: relative;
            display: inline-block;
        }
       .child-dropdown { 
		   display: none; 
		   position: absolute; 
		   z-index: 1000; width: 
		   max-content; max-width: 900px; 
		   flex-wrap: wrap; /* permet de passer sur plusieurs lignes */ 
		   background: #fff; /* fond blanc */ 
		   padding: 10px; /* espace intérieur */ 
		   border: 1px solid #ddd; /* petite bordure grise */ 
		   border-radius: 6px; /* coins arrondis */ 
		   box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* ombre douce */ 
		   gap: 6px; /* espace entre les boutons */ 
       	} 
		.child-dropdown .child-btn { 
			flex: 8 3 15%; /* 2 colonnes sur mobile */ 
			min-width: 120px; 
			text-align: center; 	
		}
        #category-filters .child-btn {
            border:none;
        }
        #category-filters .child-btn:hover {
            color:#4D40A2;
        }
        .article-card {
            border: 1px solid #ddd;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 6px;
        }

        /* Pagination styles */
        .pagination {
            margin-top: 20px;
            text-align: center;
        }

        .pagination a, .pagination span {
            display: inline-block;
            padding: 8px 16px;
            margin: 0 4px;
            border: 1px solid #ddd;
            color: #4D40A2;
            text-decoration: none;
            border-radius: 4px;
        }

        .pagination a:hover {
            background-color: #e6007e;
            color: white;
            border-color: #e6007e;
        }

        .pagination .current {
            background-color: #e6007e;
            color: white;
            border-color: #e6007e;
        }

        /* Ajoutez des règles similaires pour les autres catégories */

        /* Responsivité */
        @media (max-width: 1200px) {
            .nut-section .container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nut-section .container {
                grid-template-columns: 1fr;
            }
        }

        /*Filtres enfants*/ 

        @media (max-width: 1024px) {
             .child-dropdown {
				display: none; /* Toujours masqué par défaut */
				flex-wrap: wrap;
				max-width: 280px;
			}
			.child-dropdown.active {
				display: flex; /* S'affiche uniquement si une classe active est ajoutée */
			}
            .child-btn {
                flex: 1 1 45%; /* Ajustez la largeur selon vos besoins */
                margin: 2px;
            }
        }
        @media (max-width: 768px) {
            .child-btn {
                flex: 1 1 45%; /* Ajustez la largeur selon vos besoins */
            }
        }

        /* LES TITRES 1024px */

        @media (max-width: 1024px) {
            .wp-block-post-title {
                top: 75%;
                left: 37%;
                transform: translateX(-50%);
                text-align: center;
            }
        }

        /* image et du titre en 768px */

            @media (max-width: 768px) {
            .wp-block-post-featured-image {
                top: 30%;
                width: auto;
                max-width: 100%;
                height: auto;
            }

            .wp-block-post-title {
                text-align: center;
                font-size: clamp(1rem, 4vw, 2rem); /* Ajustez la taille selon vos besoins */
            }

            .wp-block-post-categories {
                font-size: clamp(0.8rem, 3vw, 1.2rem); /* Ajustez la taille selon vos besoins */
            }
        }

            /* image et du titre en 425px */

            @media (max-width: 425px) {
            .wp-block-post-featured-image {
                top: 5%;
                width: 50%;
                max-width: 100%;
                height: auto;
                margin-top: 0;
            }

            .wp-block-post-categories {
                font-size: clamp(0.8rem, 4vw, 1.2rem); /* Ajustez la taille selon vos besoins */
            }

            .wp-block-post-title {
                width: 90%;
                font-size: clamp(0.9rem, 4vw, 1.3rem); /* Ajustez la taille selon vos besoins */
            }
        }
      