:root {
            --primary-color: #EA2027;
            --secondary-color: #2f3542;
            --text-color: #2f3542;
            --light-bg: #F5F6FA;
            --font-main: 'Helvetica', sans-serif;
        }

/* CSS JM */

/* Styles pour la version desktop */
.articles-pdp .card {
  border-radius: 0rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Prend toute la hauteur de la ligne */
  display: flex;
  flex-direction: column;
}

.articles-pdp .card-img-container {
  overflow: hidden;
  height: 200px; /* Hauteur fixe pour l'image */
  flex-shrink: 0; /* Empêche le rétrécissement */
}

.articles-pdp .card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Couvre l'espace sans déformation */
  transition: transform 0.5s ease;
}

.articles-pdp .card:hover img {
  transform: scale(1.05);
}

.articles-pdp .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.articles-pdp .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.articles-pdp .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.badge-category {
  background-color: #f70806 !important;
  color: #fff !important;
  position: relative;
  z-index: 1; 
  font-size: 0.75rem;
}




        

/* CSS EDOUARD */
        

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 15px;
            width: 100%;
        }

        .h2 a {
            font-size: 1.4rem !important;
            text-decoration: none;
            color: black;
            font-weight: bold;
            font-family: var(--font-main);
        }

        h2, .h2 {
            font-size: 2rem !important;
            color: black;
            line-height: 1;
            font-weight: bold;
            font-family: var(--font-main);
        }

        h2.wp-block-heading {
            line-height: 1.1;
            font-size: 1.8rem;
            text-align: center;
            margin-bottom: 15px;
            color: var(--primary-color);
            font-family: var(--font-main);
            font-weight: bold;
        }

        .titre-actu {
            background-color: white;
            border-bottom: 2px solid #FF0000;
            padding: 15px;
            text-decoration: none;
            color: red;
        }

        h1.page-title {
            font-size: 3rem;
            font-family: var(--font-main);
            font-weight: bold;
        }

        h1.entry-title {
            font-size: 3rem !important;
            color: black;
            font-weight: bold !important;
            font-family: var(--font-main) !important;
        }

        .btn-danger {
            background-color: red;
            font-weight: bold;
        }

        /* SUPPRESSION TITRE PAGE */
        .page-id-353 .entry-title,
        .page-id-217 .entry-title {
            display: none;
        }

        /* SUPPRESSION SLOGAN */
        .site-description{
            display: none;
        }

        /* PAGINATION BAS DE PAGE */
        .pagination li {
            list-style: none;
        }

        /* DESCRIPTION ARTICLE */
        .article p {
            font-size: small;
            color: #666;
        }

        /* STICKY ARTICLES HOME */

    
        .sticky-articles p {
            font-size: small;            
        }

        .sticky-articles a {
            color: white;
        }

        .sticky-thumb{
          position: relative;
          width: 100%;
          aspect-ratio: 16 / 9;
          overflow: hidden;
        }

        /* L'image remplit le conteneur et est recadrée proprement */
        .sticky-thumb img{
          position: absolute; /* clé ! */
          inset: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;     /* pas de déformation */
          object-position: 50% 50%;
          display: block;
        }

        .sticky-article-card .sticky-thumb img {
          transition: transform 0.4s ease; /* animation douce */
        }

        .sticky-article-card:hover .sticky-thumb img {
          transform: scale(1.05); /* zoom léger au survol */
        }

        .sticky-article-card .badge,
        .article .badge {
          position: relative;
          z-index: 2;
        }

        .sticky-grid .col-md-6 {
          border-bottom: 1px solid #dee2e6; /* gris clair type Bootstrap */
          margin-bottom: 1.5rem;
          padding-bottom: 1.5rem;
        }



        p {
            color: var(--text-color);
        }

        .autres-articles {
            padding-top: 20px;
        }

        .articles-pdp {
            background-color: var(--light-bg);
        }

        ul.wp-block-list {
            line-height: 2;
            padding-left: 2rem;
            color: var(--text-color);
        }

        .article:hover {
            background-color: var(--light-bg);
        }

        .article {
            border-bottom: 1px solid #F0F0F0;
            padding-bottom: 20px;
            transition: background-color 0.3s ease;
        }

        .article img {
            border-radius: 4px;
            transition: transform 0.3s ease, filter 0.3s ease;
        }       

        .article img {
          transition: transform 0.4s ease; /* animation douce */
        }

        .article:hover img {
          transform: scale(1.05); /* zoom léger au survol */
          filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(5);
          transform: scale(1.02);
        }

        .article-title {
            font-size: 2rem;
            font-family: var(--font-main);
            font-weight: bold;
            color: black;
        }

        .date {
            font-size: 0.9rem;
            font-weight: thin;
        }

        .site-branding,
        .category-une {
            display: none;
        }

        .DS-gratuit {
            background-color: red;
            font-weight: bold;
        }

        footer a {
            text-decoration: none;
            color: white;
            transition: color 0.3s ease;
        }

        footer a:hover {
            color: red;
        }

        footer li {
            color: white;
            list-style: none;
        }

        .footer-2 {
            background-color: black;
        }

        .bg-secondary {
            background-color: #EBEDED !important;
            color: black;
            border-radius: 0px;
            font-size: 1rem;
            font-weight: normal;
        }

        .badge {
            color: white !important;
            background-color: #ff0000 !important;
            border-radius: 0px;
            font-size: 1rem;
            font-weight: normal;
            text-decoration: none;
        }
        
        .badge:hover{
            color:black;
        }

        .me-2:hover {
            color: red;
        }

        /* CATEGORIE PAGE */
        .article-row {
            border-bottom: 1px solid #eee;
            padding-bottom: 20px;
            transition: background-color 0.3s ease;
        }

        .article-row:hover {
            background-color: #f8f9fa;
        }

        .article-image img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }

        .article-title a {
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .article-title a:hover {
            color: #0073aa;
        }

        .article-excerpt {
            margin: 10px 0;
        }

        .article-meta {
            font-size: 0.8rem;
            color: #666;
        }



        /* Section Hero */
        .hero-section {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0px;            
        }

        .hero-section img {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: filter 0.3s ease;
        }

        .hero-section:hover img {
            filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(5);
        }

        #hero-overlay {
            color: red;
            background-color: #FFF6F6;
            border: 2px solid #FF0000;
            padding: 15px;
            text-decoration: none;
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            max-width: 90%;
            text-align: center;
            box-shadow: 0 4px 6px rgba(40, 0, 0, 0.2);
            font-weight: 700;
            font-family: var(--font-main);
        }

        #hero-overlay a {
            color: red !important;
        }

        h1, .h1 {
            color: red;
            font-family: var(--font-main);
            font-weight: bold;
            font-size: 1.8rem;
            line-height: 1.1;
        }

        /* Enquêtes Exclusives */
        .exclusive-surveys {
            background-color: #ff0000;
        }

        .btn-DS {
            background-color: black;
            color: white;
            padding: 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .btn-DS:hover {
            background-color: black;
            color: red;
            padding: 15px;
            border-radius: 5px;
            transform: translateY(-2px);
        }

        /* PAGE Enquêtes exclusive */
        .ds-gratuit {
            max-width: 500px;
            margin: auto;
        }

        /* Sondage */
        .survey-section form input[type="radio"] {
            margin-right: 10px;
        }

        /* Newsletter */
        .newsletter-section .input-group {
            max-width: 600px;
            margin: auto;
        }

        .more-link {
            display: none;
        }

        /* PAGE CATEGORIES */
        .article-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: inherit;
            width: 100%;
        }

        .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .article-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .article-row img {
          transition: transform 0.4s ease, filter 0.4s ease; /* animation douce pour zoom + filtre */
        }

        .article-row:hover img {
          transform: scale(1.05); /* mini zoom */
          filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(5); /* rouge en transparence */
        }


        /* FORMULAIRE EN PIED DE PAGE */
        .newsletter-block {
            background-color: #333;
            padding: 30px 15px;
            color: white;
        }

        .newsletter-title {
            font-size: 2rem;
            color: #fff;
            font-weight: bold;
        }

        .newsletter-subtitle {
            font-size: 16px;
            color: #ccc;
            margin-bottom: 10px;
        }

        .newsletter-offer {
            font-size: 1rem;
            color: #fff;
            margin-bottom: 15px;
        }

        .newsletter-form {
            display: flex;
            justify-content: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .newsletter-form .form-control {
            width: 60%;
            margin-right: 10px;
            border-radius: 5px;
        }

        .newsletter-form .btn {
            border-radius: 5px;
        }

        .newsletter-consent,
        .newsletter-confidentiality {
            font-size: 12px;
            color: #ccc;
        }

        .newsletter-consent {
            margin-bottom: 5px;
        }

        .newsletter-confidentiality a {
            color: #ccc;
            text-decoration: underline;
        }

        .btn-custom {
            color: white !important;
            background-color: red !important;
            font-weight: bold;
        }

        .wp-block-buttons {
            margin-bottom: 25px;
        }

        /* METADONNEES ARTICLES */
        .post-meta {
            margin-top: 10px !important;
            margin-bottom: 20px !important;
            font-weight: lighter;
            color: black;
        }

        .wp-caption-text {
            font-size: 0.7rem;
        }

        /* BOUTON PARTAGE ARTICLE */
        .share-buttons {
            margin-top: 15px;
            display: flex;            
            flex-wrap: wrap;
        }

        .share-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            text-decoration: none;
            font-size: 1.9rem;
            transition: transform 0.3s ease;
        }

        .share-button:hover {
            transform: scale(1.1);
        }

        .share-button i {
            margin-right: 5px;
            color: red;
            size: large;
        }

        .copy-link {
            background-color: red !important;
            color: white !important;
            border-radius: 50px;
        }

        .copy-link:hover {
            background-color: black;
        }

        #native-share-btn {
            background: white;
            cursor: pointer;
            color: red;
        }

        /*CUSTOM LE FIL D'ARIANE ARTICLE */
        #breadcrumbs {
            font-size: 1rem;
            color: #a4b0be;
            font-weight: normal;
            text-decoration: none;
            font-family: var(--font-main);
        }

        #breadcrumbs a {
            color: #a4b0be;
            text-decoration: none;
            font-weight: normal;
            font-family: var(--font-main);
            transition: color 0.3s ease;
        }

        #breadcrumbs a:hover {
            color: red;
        }

        /* Sidebar Articles Desktop */
        .sidebar-article {
            max-width: 90% !important;
            align-items: center;
            margin: auto;
        }

        .sidebar-article a {
            font-size: 1rem !important;
            margin-bottom: 20px !important;
        }

        .sidebar-custom {
            background-color: #f5f6f8;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            width: 100%;
            height: auto !important;
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        .sidebar-custom img {
            max-height: 100%;
        }

        .sidebar-custom ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-custom ul li {
            padding: 10px 0;
            border-bottom: 1px solid #f1f1f1;
            transition: background-color 0.3s ease;
        }

        .sidebar-custom ul li:hover {
            background-color: #e9ecef;
        }

        .sidebar-custom ul li:last-child {
            border-bottom: none;
        }

        .sidebar-custom ul li a {
            text-decoration: none;
            line-height: 1rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .sidebar-custom ul li a:hover {
            text-decoration: underline;
            color: var(--primary-color);
        }



        /* ----- Sidebar: dernier articles en ligne ----- */

        #block-6 .wp-block-latest-posts__list{          
          padding: 0 !important;
          margin: 0;
          list-style: none;
        }

        #block-6 .wp-block-latest-posts__list li{
          display: grid;
          grid-template-columns: 75px 1fr; 
          grid-template-rows: auto auto;  
          gap: 8px 12px;                      
          align-items: start;
          list-style: none;
          margin: 0 0 12px 0;
        }

        #block-6 .wp-block-latest-posts__featured-image{
          grid-column: 1;
          grid-row: 1 / span 2;          
          width: 75px;                      
          flex: 0 0 75px;
        }

        #block-6 .wp-block-latest-posts__featured-image img{
          width: 100% !important;
          height: 100% !important;
          max-width: none !important;
          max-height: none !important;
          object-fit: cover;                  
          display: block;
        }

        /* Titre à droite, sur la 1re ligne */
        #block-6 .wp-block-latest-posts__post-title{
          grid-column: 2;
          grid-row: 1;
          display: block;
          font-weight: 600;                    
          line-height: 1.25;
          text-decoration: none;          
          overflow: hidden;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        #block-6 .wp-block-latest-posts__post-title:hover{
          text-decoration: underline;
        }

        /* Date à droite, sous le titre */
        #block-6 .wp-block-latest-posts__post-date{
          grid-column: 2;
          grid-row: 2;
          display: block;
          font-size: 0.85em;
          opacity: 0.7;
        }

        /* Dernier item sans marge basse */
        #block-6 .wp-block-latest-posts__list li:last-child{
          margin-bottom: 0;
        }

        /* Sécurité si une image est absente : on retire la colonne gauche */
        #block-6 .wp-block-latest-posts__featured-image:empty{
          display: none;
        }
        #block-6 .wp-block-latest-posts__list li:has(.wp-block-latest-posts__featured-image:empty){
          grid-template-columns: 1fr;
        }


        /* COMMENTAIRES ARTICLES */
        #wpdcom .wpd-form-head,
        .wpd-field-icon,
        #wc_email-0_0 {
            display: none !important;
        }

        /* Ajoute une marge au contenu pour éviter qu'il ne soit masqué par le menu */
        .content {
            padding-top: 80px;
        }

        /* Styles généraux du contenu */
        .content h1 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .content p {
            font-size: 1.2rem;
            line-height: 1.6;
        }

        /* PAGE CONTACT */
        .yoast-breadcrumbs a {
            color: red;
            text-decoration: none;
        }

        .gkit-accordion-title {
            color: black;
        }

        .gkit_accordion_icon_group,
        .gkit_accordion_active_icon,
        .gkit-icon {
            fill: red !important;
        }

        #scrollTopBtn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            background-color: var(--primary-color);
            color: white;
            border: none;
            cursor: pointer;
        }

        #scrollTopBtn.show {
            opacity: 1;
            visibility: visible;
        }

        /* ORGANISATION MENU DESKTOP */
        /* ========= LOGO ========= */
        .site-logo {
            margin-bottom: 2rem !important;
            text-align: center;
            order: -1;
        }

        .site-logo img {
            max-width: 100px;
            height: auto;
        }

        /* ========= NAVIGATION CUTSOM EVA ========= */
        #nav-custom {
            position: sticky;
            top: 0;
            z-index: 999;
            background: linear-gradient(45deg, red, #c0392b);
            display: flex;
            width: 100%;
            margin: auto;
            color: white;
            font-weight: bold;
            justify-content: center;
        }

        #site-navigation a:hover {
            text-decoration: underline;
        }

        /* S'assurer que le parent est positionné */
        .menu-item-has-children {
            position: relative;
        }

        /* Le sous-menu doit s'ouvrir sous le parent et être large */
        .menu-item-has-children > .sub-menu {
            position: absolute;            
            left: 0;
            background: #fff;
            padding: 1rem !important;            
            display: none;
            z-index: 1000;
            min-width: 200px;
        }

        /* Montrer le sous-menu quand on survole le parent */
        .menu-item-has-children:hover > .sub-menu {
            display: block;
        }

        .menu-item-has-children > .sub-menu li a {
            display: block;
            margin-bottom: 0.7rem;
            padding-bottom: 0.3rem;
            font-weight: bold;
            color: #111;
            border-bottom: solid 1px lightgrey;
            transition: all 0.3s ease;
        }

        .menu-item-has-children > .sub-menu li a:hover {
            text-decoration: none;
            transform: scale(1.08);
            color: #e60000;
        }

        /* ESPACEMENT entre les items du menu */
        .primary-navigation ul.menu-wrapper > li {
            margin-right: 2rem;
        }

        /* ✅ Correction du bouton de recherche */
        .search-button {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* ✅ Rond rouge centré */
        #search-toggle {
            width: 60px !important;
            height: 60px !important;
            background: red !important;
            border-radius: 50% !important;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: -50px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: background 0.3s ease;
        }

        #search-toggle:hover {
            background: #c0392b !important;
        }

        /* ✅ Icône loupe blanche */
        #search-toggle svg {
            width: 30px;
            height: 30px;
            fill: white;
            position: absolute;
            top: 15px;
            left: 18px;
        }

        /*  WIDGET DS GRATUIT */
        .carousel-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            padding-top: 20px;
        }

        .e-con {
            max-width: 2000px !important;
        }

        .elementor-kit-58 button,
        .elementor-kit-58 input[type="button"],
        .elementor-kit-58 input[type="submit"],
        .elementor-kit-58 .elementor-button {
            background-color: black !important;
            font-family: "Helvetica", Sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: #FFFFFF;
            margin: 10px;
        }

        .carousel {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 1rem;
        }

        .carousel::-webkit-scrollbar {
            display: none;
        }

        .carousel-item {
            min-width: 100%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            background-color: white;
            border-radius: 5px;
            margin-right: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 0 0 calc(25% - 20px);
        }

        .carousel-item img {
            max-width: 100%;
        }

        .carousel-text {
            text-align: left;
            padding-bottom: 20px;
            padding-top: 20px;
        }

        .carousel-text h3 {
            color: black;
            font-size: 1.6rem;
            margin-bottom: 10px;
            font-family: var(--font-main);
            font-weight: bold;
        }

        .carousel-text a {
            padding: 10px 20px;
            background-color: red;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .carousel-text a:hover {
            background-color: #c0392b;
        }

        .carousel-indicators {
            position: static !important;
            text-align: center;
            margin-top: 10px;
        }

        .dot {
            margin-top: 20px;
            height: 15px;
            width: 15px;
            background-color: white;
            border-radius: 50%;
            display: inline-block;
            margin: 0 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .dot.active {
            background-color: black;
        }

        /* Styles des modals */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            font-family: var(--font-main);
            font-weight: 400;
        }

        .modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 20px;
            width: 50%;
            box-shadow: 0px 0px 10px 0px #000;
            border-radius: 8px;
            position: relative;
        }

        .close {
            text-align: right;
            font-size: 2rem;
            color: red;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: var(--primary-color);
        }

        /* BARRE DE RECHERCHE */
        .header-search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
        }

        .header-search-form {
            display: none;
            position: absolute;
            top: 120%;
            right: -50px;
            background: white;
            padding: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            white-space: nowrap;
            color: black;
        }

        .header-search-form.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .header-search-form .search-form {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .header-search-form input[type="search"] {
            padding: 5px 10px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }

        .header-search-form input[type="submit"] {
            padding: 5px 10px;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* NOUVELLES AMÉLIORATIONS RESPONSIVE */

        /* Grille responsive pour les articles */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        /* Images responsives */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Améliorations pour les écrans tactiles */
        @media (hover: none) {
            .article:hover {
                background-color: transparent;
            }
            
            .menu-item-has-children > .sub-menu {
                position: static;
                display: none;
            }
            
            .menu-item-has-children.active > .sub-menu {
                display: block;
            }
        }

        /* Styles pour la version mobile */
        @media (max-width: 1024px) {
          .articles-pdp .card-img-container {
            height: 180px; /* Hauteur légèrement réduite sur mobile */
          }
          
          .autres-articles {
            font-size: 1.5rem; /* Taille de titre réduite sur mobile */
          }
          
          .articles-pdp .card {
            margin-bottom: 1.5rem; /* Espacement entre les cartes sur mobile */
          }
          
          /* Ajustement de l'affichage date/catégorie sur mobile */
          .articles-pdp .d-flex.justify-content-between.align-items-center {
            flex-direction: column;
            align-items: flex-start !important;
          }
          
          .articles-pdp .d-flex.justify-content-between.align-items-center .z-index-1 {
            margin-top: 0.5rem;
          }
          
          .badge-category {
            font-size: 0.7rem; /* Taille de badge réduite sur mobile */
            margin-bottom: 0.25rem;
          }

          #nav-custom .primary-navigation .menu-wrapper > li > a {
              color: black !important; text-decoration: none; font-weight: 700;
            }

            .dropdown-icon.close{
                color: red !important;
            }
        }

        /* Pour les très petits écrans */
        @media (max-width: 576px) {
          .articles-pdp .card-img-container {
            height: 160px;
          }
          
          .articles-pdp .card-body {
            padding: 1rem;
          }
          
          .articles-pdp .h5 {
            font-size: 1.1rem;
          }

          .primary-menu-container{
                max-width: 80% !important;
                color: black !important;
                max-height: 100vh !important;
            }   
        }

        .z-index-1 {
          position: relative;
          z-index: 1;
        }




/* Desktop: masquer les toggles + dropdown propre */
@media (min-width: 1025px) {
  .primary-navigation .sub-menu-toggle { display: none !important; }
  .primary-navigation .menu-item-has-children { position: relative; }
  .primary-navigation .menu-item-has-children > .sub-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    background: #fff; padding: 1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
    display: none; z-index: 1000;
  }
  .primary-navigation .menu-item-has-children:hover > .sub-menu { display: block; }
  .primary-navigation .menu-item-has-children > .sub-menu li a {
    display: block; padding: .35rem 0; color: black; text-decoration: none; border-bottom: 1px solid #eee;
  }
  .primary-navigation .menu-item-has-children > .sub-menu li:last-child a { border-bottom: 0; }  
}

/* Mobile: ouverture via la classe body.primary-navigation-open (logique T21) */

@media (max-width: 1024px) {
    .menu-button-container {
        display: block !important;
        position: relative !important;
    } 

    .modal-content{
        width: 90% !important;
    }    

  #primary-mobile-menu { display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 0; color:#fff; }

  .primary-navigation { position: relative; }
  .primary-navigation .primary-menu-container {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transition: max-height .3s ease, opacity .2s ease, visibility .2s ease;
    z-index: 1000;
  }

  body.primary-navigation-open .primary-navigation .primary-menu-container {
    max-height: 100vh; opacity: 1; visibility: visible; overflow: auto;
  }

  .primary-navigation .menu-wrapper { list-style: none; margin: 0; padding: .75rem 1rem 1rem; }
  .primary-navigation .menu-wrapper > li { border-bottom: 1px solid rgba(0,0,0,.06); }
  .primary-navigation .menu-wrapper > li > a { display: flex; justify-content: space-between; padding: .85rem 0; color: black; text-decoration: none; }

  /* Sous-menus mobiles ouverts via aria-expanded du bouton */
  .primary-navigation .menu-item-has-children > .sub-menu { display: none; padding-left: .75rem; }
  .primary-navigation .menu-item-has-children > button.sub-menu-toggle[aria-expanded="true"] + .sub-menu { display: block; }
}

/* Bloque le scroll derrière le menu ouvert */
.lock-scrolling, .lock-scroll { overflow: hidden; }

/* Harmonise le menu principal sur fond rouge de #nav-custom */
#nav-custom .primary-navigation .menu-wrapper {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem;
}
#nav-custom .primary-navigation .menu-wrapper > li > a {
  color: white; text-decoration: none; font-weight: 700;
}
#nav-custom .primary-navigation .menu-wrapper > li > a:hover { text-decoration: underline; }



