/* ==========================================================================
   Méthodologies TCF Canada — expression écrite et orale ([tcf_ee_methodologie], [tcf_eo_methodologie])
   Refonte du 2026-10-10 : en-tête bleu pleine largeur, sommaire des 3 tâches, barre d'ancres collante
   (#tache-1 à #tache-3, #conseils ; les anciennes ancres #task1 à #task3 restent valables), cartes de
   tâche, bandeau « M'entraîner sur la tâche N ».
   Tout est limité à .tcf-mth (l'ancienne feuille stylait aussi :root, html et tous les h3 du site).
   Bordures complètes uniquement : aucun trait sur un seul côté, aucun séparateur.
   methodologie-eo.css est une copie de ce fichier (une poignée de style par page).
   ========================================================================== */

/* L'en-tête bleu remplace l'espace haut de la zone de page du thème */
.tcf-mth-page .tg-page-area.section-py-120 {
    padding-top: 0 !important;
}

/* Le thème met overflow: hidden sur main.main-area, ce qui empêche la barre d'ancres de coller :
   clip coupe toujours ce qui dépasse (en-tête pleine largeur) sans créer de zone de défilement. */
.tcf-mth-page main.main-area {
    overflow: clip;
}

.tcf-methodologie-container.tcf-mth {
    --mth-blue: #1363DF;
    --mth-blue-dark: #0F4FB0;
    --mth-blue-soft: #EEF4FF;
    --mth-blue-line: #CDDDF7;
    --mth-navy: #082A5E;
    --mth-navy-soft: #F0F4FA;
    --mth-navy-line: #D3DCEB;
    --mth-green: #12BB6A;
    --mth-green-dark: #0B8A4D;
    --mth-green-soft: #ECFDF5;
    --mth-green-line: #BBF7D0;
    --mth-ink: #0F172A;
    --mth-text: #334155;
    --mth-muted: #64748B;
    --mth-line: #E2E8F0;
    --mth-soft: #F8FAFC;
    --mth-font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mth-pad: 18px;
    --mth-sticky: calc(var(--wp-admin--admin-bar--height, 0px) + 84px);
    max-width: 1100px;
    margin: 0 auto 8px;
    padding: 0;
    font-family: var(--mth-font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--mth-text);
}

.tcf-mth *,
.tcf-mth *::before,
.tcf-mth *::after {
    box-sizing: border-box;
}

.tcf-mth h1,
.tcf-mth h2,
.tcf-mth h3,
.tcf-mth h4,
.tcf-mth p,
.tcf-mth ul,
.tcf-mth ol {
    font-family: inherit;
}

.tcf-mth a {
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.tcf-mth) {
        scroll-behavior: smooth;
    }
}

/* ── En-tête bleu ─────────────────────────────────────────── */
.tcf-mth-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
}

.tcf-mth-hero::before,
.tcf-mth-hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -2;
    width: 100vw;
    margin-left: -50vw;
    pointer-events: none;
}

.tcf-mth-hero::before {
    background:
        radial-gradient(ellipse 60% 90% at 90% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
        radial-gradient(ellipse 55% 80% at 0% 100%, rgba(8, 42, 94, 0.32), transparent 70%),
        var(--mth-blue);
}

/* Trame légère de points, estompée vers le bas */
.tcf-mth-hero::after {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.tcf-mth-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 0 92px;
}

.tcf-mth-hero-text {
    min-width: 0;
}

.tcf-mth .tcf-mth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.tcf-mth-eyebrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--mth-blue);
}

.tcf-mth .tcf-mth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.tcf-mth-title-mark {
    padding: 0 2px;
    background: linear-gradient(transparent 76%, rgba(143, 216, 255, 0.42) 76%, rgba(143, 216, 255, 0.42) 94%, transparent 94%);
    white-space: nowrap;
}

.tcf-mth .tcf-mth-lead {
    max-width: 580px;
    margin: 12px 0 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.tcf-mth .tcf-mth-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tcf-mth .tcf-mth-facts li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.tcf-mth-facts svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.tcf-mth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ── Boutons ──────────────────────────────────────────────── */
.tcf-mth .tcf-mth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: var(--mth-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tcf-mth .tcf-mth-btn svg {
    flex-shrink: 0;
}

.tcf-mth .tcf-mth-btn.is-light {
    background: #fff;
    color: var(--mth-blue-dark);
}

.tcf-mth .tcf-mth-btn.is-light:hover {
    background: var(--mth-blue-soft);
    color: var(--mth-blue-dark);
    transform: translateY(-1px);
}

.tcf-mth .tcf-mth-btn.is-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.tcf-mth .tcf-mth-btn.is-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.tcf-mth .tcf-mth-btn.is-primary {
    background: var(--mth-blue);
    color: #fff;
}

.tcf-mth .tcf-mth-btn.is-primary:hover {
    background: var(--mth-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.tcf-mth .tcf-mth-btn.is-wa {
    background: #fff;
    border-color: var(--mth-green-line);
    color: var(--mth-green-dark);
}

.tcf-mth .tcf-mth-btn.is-wa:hover {
    border-color: var(--mth-green);
    color: #065F46;
}

.tcf-mth .tcf-mth-btn:focus-visible,
.tcf-mth .tcf-mth-toc a:focus-visible,
.tcf-mth .tcf-mth-summary a:focus-visible {
    outline: 2px solid var(--mth-blue);
    outline-offset: 2px;
}

/* ── Sommaire des 3 tâches (dans l'en-tête) ───────────────── */
.tcf-mth-summary {
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tcf-mth .tcf-mth-summary-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.tcf-mth .tcf-mth-summary-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcf-mth .tcf-mth-summary-list li {
    margin: 0;
    list-style: none; /* le thème numérote les li */
}

.tcf-mth .tcf-mth-summary a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 12px;
    color: var(--mth-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tcf-mth .tcf-mth-summary a:hover {
    box-shadow: 0 10px 24px -14px rgba(8, 42, 94, 0.55);
    transform: translateY(-1px);
    color: var(--mth-ink);
}

.tcf-mth-summary-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--mth-blue-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--mth-blue);
    font-variant-numeric: tabular-nums;
}

.tcf-mth-summary a.is-t2 .tcf-mth-summary-num {
    background: var(--mth-green-soft);
    color: var(--mth-green-dark);
}

.tcf-mth-summary a.is-t3 .tcf-mth-summary-num {
    background: var(--mth-navy-soft);
    color: var(--mth-navy);
}

.tcf-mth-summary-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tcf-mth-summary-text b {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mth-ink);
}

.tcf-mth-summary-text small {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--mth-muted);
}

.tcf-mth-summary-arrow {
    color: #94A3B8;
    transition: color 0.15s ease, transform 0.15s ease;
}

.tcf-mth .tcf-mth-summary a:hover .tcf-mth-summary-arrow {
    color: var(--mth-blue);
    transform: translateX(2px);
}

/* ── Barre d'ancres collante, qui chevauche l'en-tête ─────── */
.tcf-mth-toc {
    position: sticky;
    top: var(--mth-sticky);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -52px 0 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mth-line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tcf-mth-toc-links {
    display: flex;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tcf-mth-toc-links::-webkit-scrollbar {
    display: none;
}

.tcf-mth .tcf-mth-toc-links a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--mth-text);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tcf-mth .tcf-mth-toc-links a:hover {
    background: var(--mth-soft);
    color: var(--mth-ink);
}

.tcf-mth .tcf-mth-toc-links a.is-current {
    background: var(--mth-blue-soft);
    border-color: var(--mth-blue-line);
    color: var(--mth-blue-dark);
}

.tcf-mth .tcf-mth-toc-practice {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--mth-blue);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
    transition: background 0.15s ease;
}

.tcf-mth .tcf-mth-toc-practice:hover {
    background: var(--mth-blue-dark);
    color: #fff;
}

/* Ancres : la section s'arrête sous l'en-tête du site et la barre d'ancres */
.tcf-mth .tcf-task-section,
.tcf-mth-alias {
    scroll-margin-top: calc(var(--mth-sticky) + 76px);
}

.tcf-mth-alias {
    display: block;
    height: 0;
}

/* ── Cartes des tâches ────────────────────────────────────── */
.tcf-mth .tcf-task-section {
    --task: var(--mth-blue);
    --task-soft: var(--mth-blue-soft);
    --task-line: var(--mth-blue-line);
    margin: 0 0 24px;
    background: #fff;
    border: 1px solid var(--mth-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.tcf-mth .tcf-task-section[data-task="2"] {
    --task: var(--mth-green-dark);
    --task-soft: var(--mth-green-soft);
    --task-line: var(--mth-green-line);
}

.tcf-mth .tcf-task-section[data-task="3"],
.tcf-mth .tcf-task-section--tips {
    --task: var(--mth-navy);
    --task-soft: var(--mth-navy-soft);
    --task-line: var(--mth-navy-line);
}

.tcf-mth .tcf-task-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 16px var(--mth-pad);
    background: linear-gradient(180deg, var(--task-soft) 0%, #fff 100%);
}

.tcf-mth .tcf-task-num {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--task);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px -8px var(--task);
}

.tcf-mth .tcf-task-header h2 {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--mth-ink);
    text-wrap: balance;
}

.tcf-mth .tcf-task-meta {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: #fff;
    border: 1px solid var(--task-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--task);
}

.tcf-mth .tcf-task-content {
    padding: 4px var(--mth-pad) 22px;
}

/* Titres de rubrique : pastille de couleur de la tâche, sans soulignement */
.tcf-mth .tcf-task-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 10px;
    padding: 0;
    border: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mth-ink);
}

.tcf-mth .tcf-task-content h3::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--task);
    box-shadow: 0 0 0 4px var(--task-soft);
}

.tcf-mth .tcf-task-content h3 i,
.tcf-mth .tcf-task-content h3 svg {
    display: none;
}

.tcf-mth .tcf-task-content h4 {
    margin: 18px 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--mth-muted);
}

.tcf-mth .tcf-task-content p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--mth-text);
}

.tcf-mth .tcf-task-content strong {
    font-weight: 600;
    color: var(--mth-ink);
}

.tcf-mth .tcf-task-content ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.tcf-mth .tcf-task-content li {
    margin: 0 0 6px;
    line-height: 1.6;
}

.tcf-mth .tcf-methode-intro {
    max-width: none;
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    color: var(--mth-text);
}

/* Encadrés « Important » / « Attention » (bleu et bleu nuit, pas de jaune) */
.tcf-mth .tcf-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid var(--mth-blue-line);
    border-radius: 12px;
    background: var(--mth-blue-soft);
    font-size: 14.5px;
    line-height: 1.6;
    color: #0B3C8C;
}

.tcf-mth .tcf-alert strong {
    color: inherit;
}

.tcf-mth .tcf-alert-warning {
    border-color: var(--mth-navy-line);
    background: var(--mth-navy-soft);
    color: var(--mth-navy);
}

.tcf-mth .tcf-alert > i,
.tcf-mth .tcf-alert > svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Types de sujets (accordéons) */
.tcf-mth .tcf-accordion {
    margin: 0 0 10px;
    background: #fff;
    border: 1px solid var(--mth-line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcf-mth .tcf-accordion[open] {
    border-color: var(--task-line);
    box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.4);
}

.tcf-mth .tcf-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mth-ink);
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.tcf-mth .tcf-accordion-summary::-webkit-details-marker {
    display: none;
}

.tcf-mth .tcf-accordion-summary::after {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat,
        var(--mth-soft);
    color: var(--mth-muted);
    transition: transform 0.2s ease, color 0.15s ease;
}

.tcf-mth .tcf-accordion-summary:hover {
    background: var(--mth-soft);
}

.tcf-mth .tcf-accordion[open] > .tcf-accordion-summary {
    background: var(--task-soft);
    color: var(--task);
}

.tcf-mth .tcf-accordion[open] > .tcf-accordion-summary::after {
    color: var(--task);
    transform: rotate(45deg);
}

.tcf-mth .tcf-accordion-content {
    padding: 16px;
    background: #fff;
}

.tcf-mth .tcf-subject-description h4:first-child {
    margin-top: 0;
}

/* Conduite à tenir */
.tcf-mth .tcf-tips-box {
    margin: 12px 0 0;
    padding: 14px 16px;
    background: var(--mth-soft);
    border: 1px solid var(--mth-line);
    border-radius: 12px;
    font-size: 14.5px;
}

.tcf-mth .tcf-tips-box > strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--mth-ink);
}

.tcf-mth .tcf-tips-box ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

/* Structure : cartes numérotées */
.tcf-mth .tcf-structure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.tcf-mth .tcf-structure-card {
    min-width: 0;
    height: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--mth-line);
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    transition: border-color 0.15s ease;
}

.tcf-mth .tcf-structure-card:hover {
    border-color: var(--task-line);
}

.tcf-mth .tcf-structure-card::before {
    display: none;
}

.tcf-mth .tcf-item-title {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mth-font);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--task);
}

.tcf-mth .tcf-structure-card p {
    margin: 0 0 6px;
    font-size: 14.5px;
}

.tcf-mth .tcf-structure-card em {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--mth-soft);
    border-radius: 8px;
    font-size: 13.5px;
    font-style: italic;
    line-height: 1.55;
    color: var(--mth-muted);
}

/* Exemples de copie */
.tcf-mth .tcf-example-section {
    margin-top: 6px;
}

.tcf-mth .tcf-example-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--task-soft);
    border: 1px solid var(--task-line);
    border-radius: 14px;
}

.tcf-mth .tcf-example-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--task);
}

.tcf-mth .tcf-example-title i,
.tcf-mth .tcf-example-title svg {
    width: 16px;
    height: 16px;
}

.tcf-mth .tcf-example-content {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--task-line);
    border-radius: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--mth-text);
}

.tcf-mth .tcf-example-content strong {
    font-family: var(--mth-font);
    font-style: normal;
}

.tcf-mth .tcf-example-citation-titre {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--task-line);
    border-radius: 10px;
}

.tcf-mth .tcf-example-citation-titre strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--task);
}

.tcf-mth .tcf-example-citation-titre span {
    font-weight: 600;
    color: var(--mth-ink);
}

/* Conseils : deux colonnes (gestion du temps, clés de la réussite) */
.tcf-mth .tcf-methode-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.tcf-mth .tcf-column {
    min-width: 0;
    padding: 16px;
    background: var(--mth-soft);
    border: 1px solid var(--mth-line);
    border-radius: 14px;
}

.tcf-mth .tcf-column > h3 {
    margin-top: 0;
}

.tcf-mth .tcf-structure-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.tcf-mth .tcf-structure-item {
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--mth-line);
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.55;
}

/* ── Bandeau « M'entraîner sur la tâche N » ───────────────── */
.tcf-mth .tcf-mth-practice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    margin: 0 var(--mth-pad) var(--mth-pad);
    padding: 16px;
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(19, 99, 223, 0.08), transparent 70%),
        var(--mth-blue-soft);
    border: 1px solid var(--mth-blue-line);
    border-radius: 14px;
}

.tcf-mth-practice-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mth-blue) 0%, var(--mth-navy) 100%);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(19, 99, 223, 0.6);
}

.tcf-mth-practice-text {
    min-width: 0;
}

.tcf-mth .tcf-mth-practice-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mth-ink);
}

.tcf-mth .tcf-mth-practice-sub {
    margin: 2px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--mth-muted);
}

.tcf-mth-practice-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Fin de page ──────────────────────────────────────────── */
.tcf-mth .tcf-mth-next {
    margin: 8px 0 0;
}

/* ── Tablettes ────────────────────────────────────────────── */
@media (min-width: 640px) {
    .tcf-methodologie-container.tcf-mth {
        --mth-pad: 24px;
    }

    .tcf-mth .tcf-structure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcf-mth .tcf-structure-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .tcf-mth .tcf-mth-title {
        font-size: 32px;
    }
}

@media (min-width: 900px) {
    .tcf-mth-hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: 40px 0 112px;
    }

    .tcf-mth-hero-text {
        flex: 1 1 auto;
    }

    .tcf-mth-summary {
        flex: 0 0 360px;
        padding: 18px;
    }

    .tcf-mth .tcf-mth-title {
        font-size: 36px;
    }

    .tcf-mth-toc {
        margin-top: -64px;
    }

    .tcf-mth .tcf-methode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcf-mth .tcf-mth-practice {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 18px 20px;
    }

    .tcf-mth-practice-actions {
        grid-column: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 479px) {
    .tcf-mth .tcf-mth-btn {
        width: 100%;
    }

    .tcf-mth .tcf-mth-toc-practice {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tcf-mth .tcf-mth-btn,
    .tcf-mth .tcf-mth-summary a,
    .tcf-mth .tcf-accordion-summary::after {
        transition: none;
    }
}

/* Le thème enfant (methodologies.css, chargé sur toute adresse contenant « methodologie ») impose
   p { font-size: 18px !important } : tailles de la page rétablies */
.tcf-mth p {
    font-size: 15px !important;
}

.tcf-mth .tcf-mth-eyebrow,
.tcf-mth .tcf-mth-summary-title {
    font-size: 12px !important;
}

.tcf-mth .tcf-mth-lead,
.tcf-mth .tcf-mth-practice-title {
    font-size: 15.5px !important;
}

.tcf-mth .tcf-mth-practice-sub {
    font-size: 14.5px !important;
}

.tcf-mth .mci-next-title {
    font-size: 15px !important;
}

/* En-tête du site plus bas sur téléphone (66 px) : la barre d'ancres colle juste dessous */
@media (max-width: 1023px) {
    .tcf-methodologie-container.tcf-mth {
        --mth-sticky: calc(var(--wp-admin--admin-bar--height, 0px) + 72px);
    }
}
