/* ============================================
   MÉTHODOLOGIES VIEWER - STYLE
   ============================================ */
.page-template-page-methodologies .container{
    width:100% !important;
    max-width:1405px;
}
.methodologies-viewer {
    width:100% !important;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ========== CONTRÔLES DE VUE ========== */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-buttons {
    display: flex;
    gap: 1rem;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #faf8f3;
    color: #e85048;
}

.view-btn.active {
    background: #e85048;
    color: white;
    
}

.view-btn:hover {
    transform: translateY(-2px);
}

.results-count {
    color: #e85048;
    font-weight: 600;
    font-size: 1rem;
}

/* ========== LAYOUT PARTAGÉ : sidebar + zone principale (cartes OU tableau) ========== */
.methodologies-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.methodologies-main {
    flex: 1;
    min-width: 0; /* Essentiel pour permettre au tableau de bien se responsiver dans le flex */
}

/* ========== SIDEBAR FILTRES ========== */

.reset-filters {
    width: 100%;
    padding: 0.8rem;
    background: #f9f7f4;
    color: #e85048;
    border: 2px solid #e85048;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: #e85048;
    color: white;
    border-color: #e85048;
}

/* ========== GRID CARTES ========== */
.cards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ========== CARTE MÉTHODOLOGIE ========== */
.method-card {
    background: #f9f7f4;
    
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.method-card-clickarea {
    display: block;
    color: inherit;
    text-decoration: none;
}

.method-card-clickarea:focus {
    outline: 2px solid rgba(232, 80, 72, 0.6);
    outline-offset: 3px;
}

.method-card-clickarea:hover {
    text-decoration: none;
}



.method-card:hover {
 border-color: #e85048;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.method-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-logo-createur {
    position: absolute;
    top: 2Opx;
    right: 12px;
    width: 100px;
  
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 2;
    pointer-events: none;
}

.card-logo-createur img {

    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.card-badges {
    padding-right: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Couleurs des badges selon le type d'effet */
.badge-effets-sociaux {
    background-color: #3498db !important; /* Bleu pour social */
    color: white;
}

.badge-effets-economiques {
    background-color: #f39c12 !important; /* Orange pour économique */
    color: white;
}

.badge-effets-environnementaux {
    background-color: #27ae60 !important; /* Vert pour environnemental */
    color: white;
}

/* Style général des badges avec tooltip */
.card-badges .badge {
    cursor: help;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Dans le tableau : badges sur une seule ligne (sinon ils se cassent en 2 lignes) */
.methods-table .card-badges .badge {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-ease {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.3);
}

.card-title {

    font-size: 1.15rem !important;
    color: #000000;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.card-desc {
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(79,121,66,0.1);
    margin: 1rem 0;
}
.card-tag {
    padding-bottom: 1rem;
  
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e85048;
    font-weight: 600;
    line-height:1em;
}

.meta-value {
    font-size: 0.9rem;
    color: #1e2738;
    font-weight: 500;
}

.dots {
    display: flex;
    gap: 0.3rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(144,198,149,0.3);
}

.dot.filled {
    background: #1a4d2e;
}

.card-link {
    display: inline-block;
    color: #e85048;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #e85048;
    transform: translateX(5px);
}

/* ========== TABLEAU ========== */
.table-wrapper {
    background: white;
    border-radius: 20px;
   
    box-shadow: 0 4px 20px rgba(26,77,46,0.08);
    overflow-x: auto;
}

.methods-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    padding:20px;
}

.methods-table thead {
    background: #e85048;
    color: white !important;
}

.methods-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white !important;
    line-height: 1.2em;
    vertical-align: middle;
}

.methods-table th:first-child {
    border-radius: 12px 0 0 0;
}

.methods-table th:last-child {
    border-radius: 0 12px 0 0;
    
}

.methods-table tbody tr {
    border-bottom: 1px solid rgba(79,121,66,0.1);
    transition: all 0.3s ease;
}

.methods-table tbody tr:hover {
    background: rgba(144,198,149,0.05);
}

.methods-table td {
    padding: 15px 12px;
    font-size: 0.9rem;
    color: #1e2738;
    vertical-align: top;
    line-height: 1.2em !important;
    vertical-align: middle;
}

.methods-table td:first-child {
    font-weight: 600;
    color: #e85048;
}

.methods-table td:first-child strong a {
    font-size: 1.05rem;
    line-height: 1.25;
    display: inline-block;
}

.methods-table td a {
    color: #e85048;
    text-decoration: none;
}

.methods-table td a:hover {
    text-decoration: underline;
}

.table-badges {
    margin-top: 8px;
}

.tb-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.tb-badge.tb-social {
    background: rgba(0,217,255,0.2);
    color: #0088aa;
}

.tb-badge.tb-environnemental {
    background: rgba(144,198,149,0.2);
    color: #1a4d2e;
}

.tb-badge.tb-esg {
    background: rgba(255,167,38,0.2);
    color: #d97700;
}

.tb-badge.tb-mixte {
    background: rgba(128,90,213,0.2);
    color: #6b46c1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .methodologies-layout {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: static;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }


    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-buttons {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-meta {
        flex-direction: column;
    }
    
    .table-wrapper {
        padding: 1rem;
    }
    
    .methods-table {
        font-size: 0.85rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.method-card {
    animation: fadeIn 0.4s ease-out;
}

/* ========== FILTRES AVEC ICÔNES DE NIVEAU ========== */
/* ========== SIDEBAR FILTRES ========== */
.filters-sidebar {
   /* width: 280px;*/
    flex-shrink: 0;
    background: #f9f7f4;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    z-index: 100;
}

/* En vue Tableau, les filtres passent au-dessus (meilleure UX sur contenu long) */
.methodologies-viewer.is-table-view .methodologies-layout {
    flex-direction: column;
}

.methodologies-viewer.is-table-view .filters-sidebar {
    position: static;
    top: auto;
    width: 100%;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0 1.5rem;
    padding: 0.75rem 1rem;
    align-items: start;
    border-radius: 8px;
}

.methodologies-viewer.is-table-view .filters-sidebar h3 {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.methodologies-viewer.is-table-view .filters-sidebar .reset-filters {
    grid-column: 1 / -1;
    width: auto;
    justify-self: end;
    padding: 0.35rem 1.1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.methodologies-viewer.is-table-view .filter-block {
    margin-bottom: 0;
    padding-bottom: 0;
    padding-right: 1.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(79, 121, 66, 0.12);
}

.methodologies-viewer.is-table-view .filter-block:last-of-type {
    border-right: none;
    padding-right: 0;
    margin-bottom: 0;
}

.methodologies-viewer.is-table-view .filter-block > span,
.methodologies-viewer.is-table-view .filter-block .filter-label {
    margin: 0 0 0.4rem 0;
    font-size: 0.78rem;
    line-height: 1.2;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.methodologies-viewer.is-table-view .filter-group {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 80, 72, 0.3) transparent;
}

.methodologies-viewer.is-table-view .filter-group::-webkit-scrollbar {
    width: 4px;
}

.methodologies-viewer.is-table-view .filter-group::-webkit-scrollbar-track {
    background: transparent;
}

.methodologies-viewer.is-table-view .filter-group::-webkit-scrollbar-thumb {
    background: rgba(232, 80, 72, 0.3);
    border-radius: 4px;
}

.methodologies-viewer.is-table-view .filter-opt {
    padding: 0.2rem 0;
}

.methodologies-viewer.is-table-view .cards-grid {
    margin-top: 0;
}

.filters-sidebar h3 {
    color: #000;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
}

.filter-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(79,121,66,0.1);
}

.filter-block:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.filter-block > span {
    font-size: 0.9rem;
    color: #e85048;
    display: block;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height:1.2em;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;

    transition: all 0.2s ease;
}

.filter-opt:hover {
    padding-left: 0.3rem;
    color: #1a4d2e;
}

.filter-opt input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #000;
    cursor: pointer;
}

.filter-opt > span {
    font-size: 0.95rem;
}

/* Filtres avec icônes de niveau - tout aligné à gauche */
.filter-opt-with-levels {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.8rem !important;
    width: 100% !important;
    
}

/* Partie gauche : checkbox */
.filter-opt-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.filter-opt-left input[type="checkbox"] {
    margin: 0 !important;
}

.filter-opt-left .fas {
    font-size: 1rem !important;
    color: #4f7942 !important;
}

/* Partie droite : icônes de niveau (à gauche maintenant) */
.filter-opt-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

/* Icônes de niveau */
.icon-level {
    font-size: 0.85rem !important;
    line-height: 1 !important;
    padding:2px;
}

/* Icône remplie */
.icon-level.icon-filled {
    color: #1a4d2e !important;
    opacity: 1 !important;
}

/* Icône vide */
.icon-level.icon-empty {
    color: #1a4d2e !important;
    opacity: 0.2 !important;
}

/* Hover */
.filter-opt-with-levels:hover .icon-level.icon-filled {
    color: #4f7942 !important;
}

.filter-opt-with-levels:hover {
    background: rgba(144,198,149,0.05) !important;
    padding-left: 0.5rem !important;
}

/* Tooltips personnalisés - style uniforme */
.meta-icons,
.badge-with-tooltip {
    position: relative;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 10px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    max-width: 250px;
    min-width: 150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.meta-icons:hover .tooltip-text,
.badge-with-tooltip:hover .tooltip-text,
.meta-icons:focus-within .tooltip-text,
.badge-with-tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Tooltip fixe JS pour le tableau — positionné via JS, échappe au overflow du scroll container */
#mv-fixed-tooltip {
    display: none;
    position: fixed;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 280px;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: normal;
}

/* Tips section dans les cards */
.card-tips {
    background: #ffffff;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}
.card-tips p{
    font-size:14px;
    line-height:1.2em;
}
.tips-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #e85048;
    margin-bottom: 6px;
}

.tips-text {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Tips en mode "lettrine" dans le tableau */
.methods-table .tips-table-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* Lettrine icône bulle (Font Awesome 4 via ::before) */
.methods-table .tips-table-text::before {
    content: "\f075"; /* fa-comment */
    font-family: "FontAwesome";
    font-weight: 900;
    font-style: normal;
    float: left;
    font-size: 2em;
    line-height: 0.85;
    color: #e85048;
    padding: 2px 10px 4px 0;
}

/* Tags rouge et bleu */
.tag-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 20px;
    margin: 2px 0;
}

.tag-rouge {
    background-color: #e85048 !important;
    color: white !important;
}

.tag-bleu {
    background-color: #3498db !important;
    color: white !important;
}

.tag-orange {
    background-color: #e67e22 !important;
    color: white !important;
}

/* ============================================
   TABLEAU RESPONSIVE
   ============================================ */

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    
}

.methods-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Force un minimum pour garder la lisibilité */
}

.methods-table thead {
    background-color: #e85048;
}

.methods-table th,
.methods-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.methods-table th {
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: #e85048;
    z-index: 10;
}

/* Quand l'icône "i" d'un <th> est survolée/active, on élève ce <th>
   au-dessus des voisins pour que le tooltip ne passe pas dessous */
.methods-table th:has(.info-tooltip:hover),
.methods-table th:has(.info-tooltip:focus-within) {
    z-index: 50;
}

/* (optionnel) Sticky colonne retiré : vue tableau cachée sur mobile */

/* Largeurs des colonnes */
.methods-table th:nth-child(1), /* Méthode */
.methods-table td:nth-child(1) {
    min-width: 200px;
    max-width: 250px;
}

.methods-table th:nth-child(2), /* Objectifs */
.methods-table td:nth-child(2) {
    min-width: 180px;
    max-width: 220px;
}

.methods-table th:nth-child(3), /* Effets */
.methods-table td:nth-child(3) {
    min-width: 200px;
    max-width: 250px;
}

.methods-table th:nth-child(4), /* Expertise */
.methods-table th:nth-child(5), /* Ampleur */
.methods-table th:nth-child(6), /* Mobilisation */
.methods-table td:nth-child(4),
.methods-table td:nth-child(5),
.methods-table td:nth-child(6) {
    min-width: 120px;
    text-align: center;
}

.methods-table th:nth-child(7), /* Tips */
.methods-table td:nth-child(7) {
    min-width: 250px;
    max-width: 300px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 10px -15px; /* Compense le padding du container */
        padding: 0 15px;
        max-width: 100%;
    }
    
    .methods-table {
        font-size: 14px;
        min-width: 800px;
    }
    
    .methods-table th,
    .methods-table td {
        padding: 8px;
    }
    
    /* Indicateur de scroll */
    .table-wrapper::after {
        content: "← Faites défiler →";
        display: block;
        text-align: center;
        color: #666;
        font-size: 12px;
        padding: 10px;
        font-style: italic;
    }

    /* Mobile : on masque la vue Tableau (UX + lisibilité) */
    #btn-table {
        display: none !important;
    }

    #table-section {
        display: none !important;
    }

    #cards-section {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.05rem !important;
    }

    .methods-table td:first-child strong a {
        font-size: 1rem;
    }

    .methods-table {
        min-width: 700px;
        font-size: 13px;
    }
    
    .methods-table th,
    .methods-table td {
        padding: 6px;
    }
}

/* Divi affiche parfois un titre de page supplémentaire : on le masque sur mobile pour ce template */
@media (max-width: 768px) {
    body.page-template-page-methodologies .entry-title.main_title {
        display: none !important;
    }
}


/* =============================================
   ICÔNE "i" + TOOLTIP "Comment lire"
   (sidebar filtres + en-têtes de tableau)
   ============================================= */

.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    cursor: help;
    color: #6e9d75;
    font-size: 0.9em;
    vertical-align: middle;
    outline: none;
}

.info-tooltip i {
    transition: color 0.2s ease, transform 0.2s ease;
}

.info-tooltip:hover i,
.info-tooltip:focus i,
.info-tooltip:focus-within i {
    color: #4f7555;
    transform: scale(1.1);
}

.info-tooltip-text {
    position: absolute;
    left: 50%;
    background: #2c2c2c;
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    width: 300px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    pointer-events: none;
    white-space: normal;
    text-align: left;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.info-tooltip--top .info-tooltip-text {
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
}

.info-tooltip--bottom .info-tooltip-text {
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-6px);
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text,
.info-tooltip:focus-within .info-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.info-tooltip-text::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
}

.info-tooltip--top .info-tooltip-text::after {
    top: 100%;
    border-top-color: #2c2c2c;
}

.info-tooltip--bottom .info-tooltip-text::after {
    bottom: 100%;
    border-bottom-color: #2c2c2c;
}

.info-tooltip-title {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    font-size: 13px;
}

.info-tooltip-body {
    display: block;
    color: #e8e8e8;
    font-weight: 400;
}

.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.methods-table th {
    position: relative;
}

tr.methods-row-clickable {
    cursor: pointer;
}

tr.methods-row-clickable:hover td {
    background: rgba(232, 80, 72, 0.06);
}

@media (max-width: 640px) {
    .info-tooltip-text {
        width: 240px;
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* =============================================
   ICÔNE "i" + TOOLTIP "Comment lire"
   (sidebar filtres + en-têtes de tableau)
   ============================================= */

.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    cursor: help;
    color: #6e9d75;
    font-size: 0.9em;
    vertical-align: middle;
    outline: none;
}

.info-tooltip i {
    transition: color 0.2s ease, transform 0.2s ease;
}

.info-tooltip:hover i,
.info-tooltip:focus i,
.info-tooltip:focus-within i {
    color: #4f7555;
    transform: scale(1.1);
}

.info-tooltip-text {
    position: absolute;
    left: 50%;
    background: #2c2c2c;
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    width: 300px;
    max-width: 90vw;        
}


/* =============================================
   SHORTCODES MÉTHODOLOGIE
   [methodo_expertise] [methodo_ampleur] [methodo_mobilisation]
   ============================================= */

/* Shortcode : ligne compacte icônes + "i" */
.methodo-meta-shortcode {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-right: 1.5rem;
    vertical-align: top;
}

.methodo-meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    line-height: 1.2;
}

.methodo-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.methodo-meta-shortcode .icon-level {
    font-size: 1.1rem;
}

.methodo-meta-shortcode .icon-filled {
    color: #4f7942;
}

.methodo-meta-shortcode .icon-empty {
    color: #d0d8cf;
}

.methodo-meta-info {
    margin-left: 4px;
    font-size: 0.8em;
}

/* ======================================================
   Template single-methodologies.php
   ====================================================== */
.single-methodo-article {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.single-methodo-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.single-methodo-back:hover {
    color: #e85048;
}

.single-methodo-back--bottom {
    display: block;
    margin: 2.5rem 0 0 0;
}
.single-methodo-back--bottom a {
    color: #666;
    text-decoration: none;
}
.single-methodo-back--bottom a:hover {
    color: #e85048;
}

.single-methodo-header {
   
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  
}

.single-methodo-title-row--top {
    margin-bottom: 1.25rem;
}

.single-methodo-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 2rem;
    align-items: start;
    background: linear-gradient(180deg, #f9f7f4 0%, #f2efea 100%);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
}

.single-methodo-thumb {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25),
                0 4px 10px -4px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.single-methodo-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-methodo-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.single-methodo-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.single-methodo-icone {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.single-methodo-title {
    flex: 1;
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #222;
}

.single-methodo-logo {
    max-width: 200px;

    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.single-methodo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.single-methodo-tags--in-hero {
    margin: 0;
}
.single-methodo-tags .card-badges,
.single-methodo-tags .card-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.single-methodo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    background: #fafafa;
    border-radius: 10px;
}

.single-methodo-meta--in-hero {
    margin: 0;
    padding: 1rem 1.15rem;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.single-methodo-meta--in-hero .methodo-meta-shortcode {
    margin-right: 0;
}

.single-methodo-meta--in-hero .methodo-meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #666;
}


/* Hero single : réutilise les styles de la card ; ajustements locaux seulement. */
.single-methodo-enbref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}
.single-methodo-enbref-row h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}
.single-methodo-enbref-row .card-badges {
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.single-methodo-enbref-row .badge {
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.single-methodo-card-badges {
    margin: 0;
}

.single-methodo-card-desc {
    color: #222;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.single-methodo-objectif {
    margin: 0;
}
.single-methodo-objectif p {
    margin: 0.25rem 0 0 0;
    line-height: 1.55;
}

.single-methodo-card-tag {
    padding-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.single-methodo-card-tips {
    margin: 0;
    border-left: 3px solid #e85048;
}

.single-methodo-card-tips .tips-label i {
    color:  #e85048;
    margin-right: 0.4rem;
}

.single-methodo-effets {
    margin: 0;
}
.single-methodo-effets > div p {
    margin: 0.25rem 0 0 0;
    line-height: 1.55;
}
.single-methodo-content {
    margin-top: 4rem;
}
/* Sections ACF sous le header (Origine, Description longue) */
.single-methodo-section {
    margin-top: 6rem;
}
.single-methodo-section + .single-methodo-section {
    margin-top: 2.5rem;
}

.single-methodo-h3 {
    font-size: 26px !important;
    font-style: normal;
    font-weight: bold;
    line-height: 1.2;
   
    color: #e85048;
    text-align: center;
}

.single-methodo-section p {
    line-height: 1.6;
    color: #333;
    margin: 0 0 2rem 0;
}

.single-methodo-cta {
    text-align: center;
    margin-top: 2.5rem;
}
.single-methodo-cta-link {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #27ae60;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.single-methodo-cta-link:hover {
    background: #219150;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .single-methodo-hero {
        grid-template-columns: 1fr;
    }
    .single-methodo-title-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .single-methodo-icone {
        order: 1;
        font-size: 2rem;
    }
    .single-methodo-logo {
        order: 2;
        margin-left: auto;
        max-width: 90px;
        max-height: 55px;
    }
    .single-methodo-title {
        order: 3;
        flex-basis: 100%;
        font-size: 1.4rem;
        line-height: 1.25;
        word-break: break-word;
        hyphens: auto;
    }
    .single-methodo-meta--in-hero {
        gap: 1rem;
        padding: 0.85rem 0.9rem;
    }
}