/* --- Style global des encarts de citation et sommaires --- */
blockquote {
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #FFD700 !important; /* Rappel jaune signature en bordure gauche */
    background-color: #f7fafc !important; /* Fond gris/bleu très clair cohérent avec la sidebar */
    padding: 1.15rem 1.5rem !important;
    margin: 1.5em 0 !important;
    border-radius: 0 6px 6px 0;
    line-height: 1.75;
}

/* --- Style du texte général de la citation --- */
blockquote p,
blockquote span {
    color: #2d3748 !important;
    margin-bottom: 0.4em;
}

blockquote p:last-child {
    margin-bottom: 0 !important;
}

/* --- 1. Style sobre des liens dans les citations (Sommaires, topos, tarifs, récits) --- */
blockquote a[style*="color"],
blockquote a {
    color: #0b2a43 !important; /* Bleu nuit signature */
    font-weight: 700 !important;
    background-color: transparent !important; /* Fini les gros pavés jaunes ! */
    border-bottom: 2px solid #FFD700 !important; /* Soulignement Or identique aux titres de la sidebar */
    padding: 0.05em 0.15em;
    border-radius: 0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* --- Survol des liens standards dans les citations --- */
blockquote a[style*="color"]:hover,
blockquote a:hover {
    background-color: #FFD700 !important; /* Surlignage Or uniquement au passage de la souris */
    color: #0b2a43 !important;
    border-radius: 3px;
    text-decoration: none !important;
}

/* --- 2. Style "Bouton" réservé uniquement au lien "Contactez-moi" dans les citations --- */
blockquote a[href*="/contact"] {
    background-color: #0b2a43 !important; /* Bouton Bleu Nuit élégant et pas criard */
    color: #ffffff !important;
    border: 1px solid #0b2a43 !important;
    border-left: 3px solid #FFD700 !important; /* Petit liseré Or à gauche du bouton */
    padding: 0.15em 0.55em !important;
    border-radius: 4px !important;
    display: inline-block;
    line-height: 1.35;
}

blockquote a[href*="/contact"]:hover {
    background-color: #FFD700 !important;
    color: #0b2a43 !important;
    border-color: #0b2a43 !important;
}

/* --- Style global de la barre latérale --- */
.widget-area {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

/* --- Titres des widgets dans la barre latérale --- */
.widget-area .widget-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #0b2a43;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Liens à l'intérieur des widgets --- */
.widget-area a {
    color: #2d3748;
    text-decoration: none;
}

.widget-area a:hover {
    color: #0b2a43;
    text-decoration: underline;
}

/* --- Masquer la grande image à la une en haut des articles (évite le doublon avec le schéma du topo) --- */
.single-post .article-post-thumbnail {
    display: none !important;
}

/* --- Tableaux lisibles dans le contenu (charte Passion Alpes) --- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0 2em;
    border: 1px solid #cbd5e0;
    background-color: #ffffff;
    font-size: 0.96em;
    line-height: 1.55;
}

.entry-content table thead th {
    background-color: #0b2a43;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.8rem 1rem;
    border: 1px solid #0b2a43;
    border-bottom: 3px solid #FFD700;
}

.entry-content table th,
.entry-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    vertical-align: top;
    color: #2d3748;
}

.entry-content table tbody tr:nth-child(even) {
    background-color: rgba(11, 42, 67, 0.05);
}

.entry-content table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.15);
    transition: background-color 0.15s ease;
}

/* --- Colonne des grades centrée sur la page Cotations uniquement --- */
.page-id-14228 .entry-content table tbody td:first-child {
    white-space: nowrap;
    font-weight: 700;
    color: #0b2a43;
    text-align: center;
    width: 95px;
}

/* --- Tableaux de la page Tarifs : en-tête collant + colonnes de prix propres --- */
.entry-content table.pa-tarifs-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -3px 0 #FFD700;
}

.entry-content table.pa-tarifs-table th:not(:first-child),
.entry-content table.pa-tarifs-table td:not(:first-child) {
    text-align: center;
    width: 115px;
}

.entry-content table.pa-tarifs-table td small,
.entry-content table.pa-tarifs-table td em {
    font-size: 0.88em;
    color: #4a5568;
}

/* --- Adaptation mobile des tableaux --- */
@media screen and (max-width: 767px) {
    .entry-content table th,
    .entry-content table td {
        padding: 0.6rem 0.65rem;
        font-size: 0.92em;
    }

    .page-id-14228 .entry-content table tbody td:first-child {
        width: auto;
    }

    .entry-content table.pa-tarifs-table th:not(:first-child),
    .entry-content table.pa-tarifs-table td:not(:first-child) {
        width: auto;
        min-width: 72px;
    }
}
/* --- Page Topos : barre de recherche + tableaux avec bandeaux de massifs --- */
.pa-topo-filter-box {
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    border-left: 4px solid #0b2a43;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin: 1.5em 0;
}

.pa-topo-filter-box label {
    display: block;
    color: #0b2a43;
    margin-bottom: 0.5rem;
}

.pa-topo-search-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#pa-topo-search {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #1a202c;
}

#pa-topo-search:focus {
    outline: none;
    border-color: #0b2a43;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.45);
}

#pa-topo-reset {
    background-color: #0b2a43;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#pa-topo-reset:hover {
    background-color: #FFD700;
    color: #0b2a43;
}

.pa-topo-count {
    margin: 0.5rem 0 0 !important;
    font-size: 0.88em;
    color: #4a5568;
}

.pa-topo-empty {
    background-color: #fffaf0;
    border: 1px solid #FFD700;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    color: #0b2a43;
}

.entry-content table.pa-topos-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -3px 0 #FFD700;
}

.entry-content table.pa-topos-table th:not(:first-child),
.entry-content table.pa-topos-table td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
    width: 115px;
}

.entry-content table.pa-topos-table tr.pa-massif-row td {
    background-color: #e6edf3 !important;
    color: #0b2a43;
    font-weight: 700;
    font-style: italic;
    font-size: 0.98em;
    text-align: left !important;
    padding: 0.55rem 1rem;
    border-top: 2px solid #0b2a43;
}

.entry-content table.pa-topos-table tr.pa-massif-row:hover td {
    background-color: #e6edf3 !important;
}

.pa-back-sommaire {
    text-align: right;
    font-size: 0.9em;
    margin-top: -1rem !important;
}

@media screen and (max-width: 767px) {
    .entry-content table.pa-topos-table th:not(:first-child),
    .entry-content table.pa-topos-table td:not(:first-child) {
        width: auto;
        min-width: 68px;
        font-size: 0.86em;
    }
}
/* --- Mise en page d'impression "Fiche Topo A4" --- */
@media print {
    /* 1. Masquer tout le superflu (menu, sidebar livre d'or, articles similaires, commentaires, encadrés pub, footer) */
    #masthead, #mobile-header, #secondary, .entry-related, #comments, .entry-meta,
    .post-navigation, .sharedaddy, #colophon, .entry-footer,
    .entry-taxonomies, blockquote, .tiled-gallery, .no-print {
        display: none !important;
    }

    /* 2. Forcer le topo à occuper 100 % de la largeur de la feuille A4 sans marges ni ombres */
    body, #wrapper, #primary, .content-container, #main, .entry, .entry-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        display: block !important;
    }

    /* 3. Typographie compacte spécial "Fiche Topo A4" */
    body {
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }
    h1.entry-title {
        font-size: 16pt !important;
        margin-bottom: 6pt !important;
        text-align: left !important;
    }
    h2.topo-h2 {
        font-size: 13pt !important;
        margin-top: 10pt !important;
        border-bottom: 1px solid #000;
        page-break-after: avoid;
    }
    h3.topo-h3-block, h3.topo-h3-inline {
        font-size: 11pt !important;
        page-break-after: avoid;
    }

    /* 4. Empêcher que le schéma du topo soit coupé entre 2 pages et limiter sa hauteur */
    figure, img {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        max-height: 11cm !important;
        width: auto !important;
        margin: 8pt auto !important;
    }

    /* 5. Désactiver le mode collant des en-têtes de tableaux à l'impression */
    .entry-content table.pa-tarifs-table thead th {
        position: static !important;
    }
}