/* ==========================================================================
   Famille « pro » : maquettes 04 (français des affaires et hub français professionnel,
   même gabarit pour diplomatie et cuisine) et 06 (hubs /cours/ et préparation aux examens).
   Variables du socle (assets/css/maquettes.css). Point de rupture unique : 768px.
   ========================================================================== */

.tfm-page .tfm { --tf-pro-filet: #A7F3D0; }

/* Le socle efface le conteneur intérieur des blocs Groupe (display: contents) : les sélecteurs « enfant »
   ci-dessous passent quand même par .wp-block-group__inner-container, qui reste dans le DOM. */

/* ---------- En-tête : fil d'Ariane + date ---------- */
.tfm .tfm-pro-entete { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; }
.tfm .tfm-pro-entete .tfm-fil a { color: var(--tf-emeraude-fonce); }
.tfm p.tfm-pro-date { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tf-encre-secondaire); margin: 0; white-space: nowrap; }

/* ---------- Héros ---------- */
.tfm .tfm-pro-heros { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.tfm .tfm-pro-heros-texte { display: flex; flex-direction: column; gap: 32px; }
.tfm h1.tfm-pro-h1 { font-size: 68px; line-height: 68px; }
.tfm .tfm-pro-vert { color: var(--tf-emeraude); }
.tfm .tfm-pro-bref { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tfm .tfm-pro-bref .tfm-surtitre { font-size: 14px; line-height: 18px; }
.tfm p.tfm-pro-enbref { max-width: 640px; font-size: 21px; line-height: 32px; font-weight: 500; color: var(--tf-encre); margin: 0; }
.tfm .tfm-pro-actions { display: flex; align-items: center; gap: 24px; }
.tfm .tfm-pro-actions p { margin: 0; }
.tfm p.tfm-pro-sous-bouton { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--tf-encre-secondaire); }
.tfm p.tfm-pro-lien-sec { font-size: 18px; line-height: 24px; }
.tfm p.tfm-pro-lien-sec a { font-weight: 800; }

/* Carte « Le cours en bref » et encart « Quel est mon niveau ? » */
.tfm .tfm-pro-recap { background: var(--tf-emeraude-pale); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.tfm p.tfm-pro-recap-titre, .tfm h2.tfm-pro-encart-titre { margin: 0 0 6px; font-size: 24px; line-height: 28px; font-weight: 900; letter-spacing: -0.03em; color: var(--tf-marine); }
.tfm p.tfm-pro-recap-ligne { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--tf-pro-filet); margin: 0; }
.tfm .tfm-pro-recap-lib { font-size: 13px; line-height: 17px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-recap-val { font-size: 18px; line-height: 25px; font-weight: 700; color: var(--tf-marine); }
.tfm p.tfm-pro-recap-note { margin: 10px 0 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-encart { gap: 12px; }
.tfm .tfm-pro-encart p { margin: 0; font-size: 18px; line-height: 27px; }
.tfm p.tfm-pro-encart-icone { width: 48px; height: 48px; border-radius: 999px; background: var(--tf-emeraude); position: relative; }
.tfm p.tfm-pro-encart-icone::after { content: "?"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 24px; font-weight: 900; }

/* ---------- Titres de section, intros ---------- */
.tfm .tfm-pro .tfm-wrap > .wp-block-group__inner-container > * + * { margin-top: 36px; }
.tfm .tfm-pro .tfm-wrap > .wp-block-group__inner-container > h2 + p { margin-top: 18px; }
.tfm p.tfm-pro-intro { max-width: 820px; }
.tfm .tfm-pro-tete-bloc { display: flex; flex-direction: column; gap: 14px; }
.tfm .tfm-pro-tete-bloc p { margin: 0; }
.tfm p.tfm-pro-note { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--tf-encre-secondaire); }
.tfm p.tfm-pro-accroche { font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--tf-emeraude) !important; }

/* ---------- Capsule de 4 chiffres ---------- */
.tfm .tfm-pro-capsule { background: var(--tf-emeraude); border-radius: 24px; padding: 40px 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; justify-items: center; text-align: center; }
.tfm .tfm-pro-capsule-case { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tfm .tfm-pro-capsule-gros { font-size: 52px; line-height: 56px; font-weight: 900; letter-spacing: -0.05em; color: #FFFFFF; white-space: nowrap; }
.tfm .tfm-pro-capsule-petit { font-size: 19px; line-height: 25px; font-weight: 700; color: #FFFFFF; }

/* ---------- Cartes numérotées (profils, étapes) ---------- */
.tfm .tfm-pro-cartes-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tfm .tfm-pro-cartes-num--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tfm .tfm-pro-num { background: var(--tf-fond); border: 3px solid var(--tf-emeraude); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tfm .tfm-pro-num-corps { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tfm .tfm-pro-num-corps p { margin: 0; font-size: 18px; line-height: 27px; }
.tfm p.tfm-pro-num-rond, .tfm .tfm-pro-puce { flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--tf-emeraude); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; font-weight: 900; margin: 0; }
.tfm p.tfm-pro-etiquette { background: var(--tf-emeraude-pale); color: var(--tf-emeraude-fonce); border-radius: 999px; padding: 6px 14px; font-size: 14px !important; line-height: 18px !important; font-weight: 800; margin: 0; }
.tfm-section--marine .tfm-pro-num { background: transparent; }
.tfm-section--marine .tfm-pro-num h3 { color: #FFFFFF; }

/* ---------- Programme : tableau des sessions ---------- */
.tfm .tfm-pro-programme table { border-collapse: collapse; width: 100%; }
.tfm .tfm-pro-programme thead tr { border-bottom: 2px solid var(--tf-marine); }
.tfm .tfm-pro-programme th { background: none; padding: 0 24px 14px 0; font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-emeraude-fonce); border: 0; }
.tfm .tfm-pro-programme th:first-child { width: 100px; }
.tfm .tfm-pro-programme th:nth-child(2) { width: 400px; }
.tfm .tfm-pro-programme td { padding: 20px 24px 20px 0; vertical-align: top; font-size: 18px; line-height: 27px; color: var(--tf-encre); border: 0; border-bottom: 1px solid var(--tf-bordure); }
.tfm .tfm-pro-programme td strong { display: block; font-size: 19px; line-height: 25px; }
.tfm .tfm-pro-session-info { display: block; margin-top: 4px; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--tf-encre-secondaire); }
.tfm .tfm-pro-niveau { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--tf-emeraude); color: #FFFFFF; font-size: 17px; font-weight: 900; }

/* Parcours de l'application (bloc sous le tableau) */
.tfm .tfm-pro-parcours { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; border-top: 2px solid var(--tf-marine); }
.tfm .tfm-pro-parcours-tete { display: flex; flex-direction: column; gap: 12px; }
.tfm .tfm-pro-parcours-tete p { margin: 0; }
.tfm p.tfm-pro-parcours-chapo { font-size: 17px; line-height: 26px; font-weight: 500; color: var(--tf-encre-secondaire); }
.tfm ul.tfm-pro-fleches { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.tfm ul.tfm-pro-fleches li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tf-bordure); font-size: 18px; line-height: 25px; font-weight: 600; color: var(--tf-marine); }
.tfm ul.tfm-pro-fleches li::before { content: "→"; color: var(--tf-emeraude-fonce); font-weight: 900; }

/* Citation */
.tfm .tfm-pro-citation { margin: 32px auto 0; max-width: 960px; border: 0; padding: 0; text-align: center; }
.tfm .tfm-pro-citation p { font-size: 38px; line-height: 46px; font-weight: 900; letter-spacing: -0.03em; color: var(--tf-emeraude-fonce); font-style: normal; }

/* ---------- Section marine (prof) ---------- */
.tfm .tfm-pro-marine { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; align-items: start; }
.tfm .tfm-pro-marine--egal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tfm .tfm-pro-marine-texte, .tfm .tfm-pro-marine-droite { display: flex; flex-direction: column; gap: 28px; }
.tfm .tfm-pro-marine-texte > .wp-block-group__inner-container > *, .tfm .tfm-pro-marine-droite > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm-section--marine p.tfm-pro-lien-blanc a, .tfm p.tfm-pro-lien-blanc a { color: #FFFFFF; font-size: 18px; line-height: 24px; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.tfm ul.tfm-pro-coches { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tf-pied-filet); }
.tfm ul.tfm-pro-coches li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--tf-pied-filet); }
.tfm ul.tfm-pro-coches li::before { content: "✓"; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 999px; background: var(--tf-emeraude); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; }
.tfm ul.tfm-pro-coches li strong { grid-column: 2; font-size: 21px; line-height: 27px; font-weight: 800; color: #FFFFFF; padding-top: 2px; }
.tfm ul.tfm-pro-coches li span { grid-column: 2; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--tf-pied-texte); margin-top: 4px; }
.tfm ul.tfm-pro-coches--num li::before { display: none; }
.tfm ul.tfm-pro-coches--num li .tfm-pro-puce { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; width: 34px; height: 34px; font-size: 17px; }
.tfm ul.tfm-pro-coches--num li span:not(.tfm-pro-puce) { grid-column: 2; }

/* ---------- Cartes cliquables (guides, autres domaines, hub) ---------- */
.tfm .tfm-pro-guides, .tfm .tfm-pro-domaines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tfm .tfm-pro-domaines--hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tfm a.tfm-pro-carte-lien, .tfm span.tfm-pro-carte-lien { box-sizing: border-box; border-radius: 24px; background: var(--tf-fond); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.tfm .tfm-pro-domaines .tfm-pro-carte-lien { border: 3px solid var(--tf-emeraude); padding: 26px 28px; }
.tfm .tfm-pro-domaines--hub .tfm-pro-carte-lien { padding: 30px; gap: 12px; }
.tfm a.tfm-pro-carte-lien:hover { box-shadow: 0 6px 24px rgba(15, 23, 42, .10); }
.tfm .tfm-pro-guides .tfm-pro-carte-lien { min-height: 180px; }
.tfm .tfm-pro-carte-sur { font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-carte-titre { font-size: 23px; line-height: 28px; font-weight: 900; letter-spacing: -0.03em; color: var(--tf-marine); }
.tfm .tfm-pro-domaines--hub .tfm-pro-carte-titre { font-size: 28px; line-height: 32px; }
.tfm .tfm-pro-carte-sous { font-size: 15px; line-height: 20px; font-weight: 800; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-carte-texte { font-size: 17px; line-height: 25px; font-weight: 500; color: var(--tf-encre-secondaire); }
.tfm .tfm-pro-carte-pied, .tfm .tfm-pro-voir { margin-top: auto; font-size: 16px; font-weight: 800; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-voir { display: block; margin-top: 8px; }
.tfm .tfm-pro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tfm .tfm-pro-tags span { background: var(--tf-emeraude-pale); color: var(--tf-emeraude-fonce); border-radius: 999px; padding: 6px 12px; font-size: 14px; line-height: 18px; font-weight: 800; }
.tfm .tfm-pro-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.tfm .tfm-pro-tete p { margin: 0; flex: none; }
.tfm p.tfm-pro-tete-lien a, .tfm p.tfm-pro-famille-lien a { font-size: 18px; line-height: 24px; min-height: 44px; display: inline-flex; align-items: center; }
.tfm .tfm-pro-section-domaines { padding-top: 0; }

/* ---------- Auteur ---------- */
.tfm .tfm-pro-section-auteur { padding-bottom: 0; }
.tfm .tfm-pro-auteur { display: flex; gap: 28px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--tf-bordure); }
.tfm p.tfm-pro-auteur-icone { flex: none; width: 72px; height: 72px; border-radius: 999px; border: 3px solid var(--tf-emeraude); margin: 0; background: radial-gradient(circle at 50% 38%, var(--tf-emeraude) 0 13px, transparent 14px), radial-gradient(ellipse 22px 15px at 50% 92%, var(--tf-emeraude) 0 100%, transparent 101%); }
.tfm .tfm-pro-auteur-texte { display: flex; flex-direction: column; gap: 6px; }
.tfm .tfm-pro-auteur-texte h2 { font-size: 26px; line-height: 30px; letter-spacing: -0.03em; }
.tfm .tfm-pro-auteur-texte p { margin: 0; max-width: 900px; }
.tfm .tfm-pro-auteur-texte a { font-weight: 700; }

/* ---------- FAQ en deux colonnes ---------- */
.tfm .tfm-pro-faq { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; }
.tfm .tfm-pro-faq-liste { border-top: 2px solid var(--tf-marine); }
.tfm .tfm-pro-faq-liste .tfm-faq-item p a { font-weight: 600; }

/* ---------- Bande finale émeraude ---------- */
.tfm .tfm-pro-section-bande { background: var(--tf-emeraude); }
.tfm .tfm-pro-bande { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.tfm .tfm-pro-bande-texte-bloc { display: flex; flex-direction: column; gap: 18px; }
.tfm .tfm-pro-bande h2 { font-size: 60px; line-height: 62px; letter-spacing: -0.045em; color: #FFFFFF; }
.tfm p.tfm-pro-bande-texte { margin: 0; font-size: 22px; line-height: 29px; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.tfm p.tfm-pro-bande-texte a { color: #FFFFFF; }
.tfm p.tfm-pro-bande-bouton { margin: 0; flex: none; }
.tfm a.tfm-btn.tfm-btn--clair { background: #FFFFFF; color: var(--tf-emeraude-fonce); font-weight: 900; min-height: 64px; padding: 0 38px; font-size: 20px; }
.tfm a.tfm-btn.tfm-btn--clair:hover { background: var(--tf-marine); color: #FFFFFF; }

/* ---------- Hub /cours/ : trois questions ---------- */
.tfm .tfm-pro-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tfm .tfm-pro-question { background: var(--tf-fond); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tfm .tfm-pro-question-tete { display: flex; align-items: center; gap: 14px; }
.tfm .tfm-pro-question-tete .tfm-pro-num-rond { width: 44px; height: 44px; font-size: 22px; }
.tfm .tfm-pro-question-tete h3 { font-size: 22px; line-height: 27px; }
.tfm .tfm-pro-choix-liste { display: flex; flex-direction: column; gap: 10px; }
.tfm a.tfm-pro-choix, .tfm span.tfm-pro-choix { display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; border: 2px solid var(--tf-bordure-claire); border-radius: 14px; text-decoration: none; color: inherit; position: relative; min-height: 44px; }
.tfm a.tfm-pro-choix::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--tf-emeraude-fonce); font-weight: 900; font-size: 18px; }
.tfm a.tfm-pro-choix:hover { border-color: var(--tf-emeraude); }
.tfm .tfm-pro-choix-lib { font-size: 17px; line-height: 23px; font-weight: 800; color: var(--tf-marine); }
.tfm .tfm-pro-choix-dest { font-size: 14px; line-height: 19px; font-weight: 700; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-question p.tfm-pro-note { margin: 0; }

/* Familles de cours */
.tfm .tfm-pro-section-familles .tfm-wrap > .wp-block-group__inner-container > * + * { margin-top: 56px; }
.tfm .tfm-pro-famille { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; padding-top: 48px; border-top: 2px solid var(--tf-marine); }
.tfm .tfm-pro-famille-texte { display: flex; flex-direction: column; gap: 18px; }
.tfm .tfm-pro-famille-texte > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm .tfm-pro-lignes { display: flex; flex-direction: column; border-top: 1px solid var(--tf-bordure); }
.tfm a.tfm-pro-ligne, .tfm span.tfm-pro-ligne { display: flex; align-items: center; gap: 16px; padding: 14px 32px 14px 0; border-bottom: 1px solid var(--tf-bordure); text-decoration: none; color: inherit; position: relative; min-height: 44px; }
.tfm a.tfm-pro-ligne::after { content: "→"; position: absolute; right: 4px; color: var(--tf-emeraude-fonce); font-weight: 900; }
.tfm .tfm-pro-ligne-badge { flex: none; min-width: 52px; height: 36px; border-radius: 999px; background: var(--tf-emeraude); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.tfm .tfm-pro-ligne-texte { display: flex; flex-direction: column; }
.tfm .tfm-pro-ligne-nom { font-size: 18px; line-height: 24px; font-weight: 800; color: var(--tf-marine); }
.tfm .tfm-pro-ligne-info { font-size: 14px; line-height: 19px; font-weight: 700; color: var(--tf-encre-secondaire); }

/* « Comment choisir » et « DELF ou TCF » : titre à gauche, contenu à droite */
.tfm .tfm-pro-choisir { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 64px; align-items: start; }
.tfm .tfm-pro-choisir-tete { display: flex; flex-direction: column; gap: 18px; }
.tfm .tfm-pro-choisir-tete > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm .tfm-pro-criteres { border-top: 2px solid var(--tf-marine); }
.tfm .tfm-pro-critere { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--tf-bordure); }
.tfm .tfm-pro-critere .tfm-pro-num-rond { width: 40px; height: 40px; font-size: 19px; }
.tfm .tfm-pro-critere-texte h3 { font-size: 21px; line-height: 27px; }
.tfm .tfm-pro-critere-texte p { margin: 6px 0 0; font-size: 17px; line-height: 26px; }
.tfm p.tfm-pro-criteres-fin { margin-top: 22px; font-weight: 700; color: var(--tf-emeraude-fonce); }

/* ---------- Hub examens ---------- */
.tfm .tfm-pro-projets th[scope="row"], .tfm .tfm-pro-compare th[scope="row"] { background: none; color: var(--tf-marine); font-weight: 800; }
.tfm .tfm-pro-projets table, .tfm .tfm-pro-compare table { font-size: 16px; }
.tfm .tfm-pro-projets thead tr, .tfm .tfm-pro-compare thead tr { border-bottom: 2px solid var(--tf-marine); }
.tfm .tfm-pro-projets thead th, .tfm .tfm-pro-compare thead th { background: none; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
.tfm .tfm-pro-projets td, .tfm .tfm-pro-projets th { border-bottom-color: var(--tf-pro-filet); }
.tfm .tfm-pro-projets thead th:first-child { width: 210px; }
.tfm .tfm-pro-projets thead th:last-child { width: 170px; }
.tfm .tfm-pro-compare thead th:first-child { width: 190px; }
.tfm .tfm-pro-liens-cellule { display: flex; flex-direction: column; gap: 6px; }
.tfm .tfm-pro-liens-cellule a { font-weight: 800; white-space: nowrap; }
.tfm p.tfm-pro-sources { font-size: 14px !important; line-height: 21px !important; }
.tfm .tfm-pro-examens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tfm .tfm-pro-examen { border: 3px solid var(--tf-emeraude); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tfm .tfm-pro-examen > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm .tfm-pro-examen p { font-size: 17px; line-height: 26px; }
.tfm .tfm-pro-examen p.tfm-pro-note { font-size: 14px; line-height: 20px; }
.tfm .tfm-pro-examen p.tfm-pro-carte-bas { margin-top: auto !important; }
.tfm .tfm-pro-examen p.tfm-pro-carte-bas a { font-weight: 800; }
.tfm p.tfm-pro-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.tfm p.tfm-pro-pastilles a { background: var(--tf-emeraude-pale); color: var(--tf-emeraude-fonce); border-radius: 999px; padding: 8px 14px; font-size: 15px; line-height: 18px; font-weight: 800; text-decoration: none; }
.tfm p.tfm-pro-liens-groupe { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }
.tfm p.tfm-pro-liens-groupe a, .tfm p.tfm-pro-liens-groupe .tfm-sans-lien { font-weight: 800; }
.tfm .tfm-pro-section-deroule .tfm-pro-cartes-num { margin-top: 32px; }
.tfm .tfm-pro-section-deroule .tfm-pro-num-corps p { color: var(--tf-pied-texte); }

/* ==========================================================================
   Mobile (planches 390px)
   ========================================================================== */
@media (max-width: 767px) {
  .tfm .tfm-pro-entete { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 18px; }
  .tfm p.tfm-pro-date { font-size: 13px; line-height: 18px; white-space: normal; }
  .tfm .tfm-pro-heros { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 56px; }
  .tfm .tfm-pro-heros-texte { gap: 24px; }
  .tfm h1.tfm-pro-h1 { font-size: 35px; line-height: 37px; }
  .tfm h1.tfm-pro-h1 .tfm-pro-vert br { display: none; }
  .tfm p.tfm-pro-enbref { font-size: 19px; line-height: 29px; }
  .tfm .tfm-pro-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .tfm p.tfm-pro-sous-bouton { text-align: center; font-size: 15px; line-height: 20px; }
  .tfm p.tfm-pro-lien-sec { text-align: center; }
  .tfm .tfm-pro-recap { border-radius: 20px; padding: 22px 20px; }
  .tfm p.tfm-pro-recap-titre, .tfm h2.tfm-pro-encart-titre { font-size: 21px; line-height: 26px; }
  .tfm p.tfm-pro-recap-ligne { padding: 12px 0; }
  .tfm .tfm-pro-recap-val { font-size: 17px; line-height: 24px; }
  .tfm .tfm-pro .tfm-wrap > .wp-block-group__inner-container > * + * { margin-top: 24px; }

  .tfm .tfm-pro-capsule { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px 12px; gap: 26px 10px; border-radius: 20px; }
  .tfm .tfm-pro-capsule-gros { font-size: 30px; line-height: 34px; }
  .tfm .tfm-pro-capsule-petit { font-size: 16px; line-height: 21px; }

  .tfm .tfm-pro-cartes-num, .tfm .tfm-pro-cartes-num--4 { grid-template-columns: 1fr; gap: 16px; }
  .tfm .tfm-pro-num { flex-direction: row; gap: 16px; padding: 20px; border-radius: 20px; }
  .tfm p.tfm-pro-num-rond { width: 44px; height: 44px; font-size: 22px; }
  .tfm .tfm-pro-num-corps { gap: 8px; }
  .tfm .tfm-pro-num-corps h3 { font-size: 21px; line-height: 26px; }
  .tfm .tfm-pro-num-corps p { font-size: 17px; line-height: 26px; }
  .tfm .tfm-pro-num-corps p.tfm-pro-etiquette { display: none; }

  /* Tableau du programme → liste */
  .tfm .tfm-pro-programme { overflow: visible; }
  .tfm .tfm-pro-programme table { min-width: 0; }
  .tfm .tfm-pro-programme thead { display: none; }
  .tfm .tfm-pro-programme tbody, .tfm .tfm-pro-programme tr, .tfm .tfm-pro-programme td { display: block; width: auto; }
  .tfm .tfm-pro-programme tr { padding: 18px 0; border-bottom: 1px solid var(--tf-bordure); }
  .tfm .tfm-pro-programme td { padding: 0; border: 0; font-size: 17px; line-height: 26px; }
  .tfm .tfm-pro-programme td + td { margin-top: 8px; }

  .tfm .tfm-pro-parcours { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .tfm ul.tfm-pro-fleches { grid-template-columns: 1fr; }
  .tfm ul.tfm-pro-fleches li { font-size: 17px; }
  .tfm .tfm-pro-citation p { font-size: 26px; line-height: 32px; }
  .tfm .tfm-pro-citation p br { display: none; }

  .tfm .tfm-pro-marine, .tfm .tfm-pro-marine--egal { grid-template-columns: 1fr; gap: 32px; }
  .tfm .tfm-pro-marine-texte, .tfm .tfm-pro-marine-droite { gap: 20px; }
  .tfm p.tfm-pro-accroche { font-size: 19px; line-height: 26px; }
  .tfm ul.tfm-pro-coches li strong { font-size: 19px; line-height: 25px; }

  .tfm .tfm-pro-guides, .tfm .tfm-pro-domaines, .tfm .tfm-pro-domaines--hub { grid-template-columns: 1fr; gap: 16px; }
  .tfm a.tfm-pro-carte-lien, .tfm span.tfm-pro-carte-lien { padding: 22px; border-radius: 20px; }
  .tfm .tfm-pro-guides .tfm-pro-carte-lien { min-height: 0; }
  .tfm .tfm-pro-carte-titre, .tfm .tfm-pro-domaines--hub .tfm-pro-carte-titre { font-size: 21px; line-height: 26px; }
  .tfm .tfm-pro-tete { flex-direction: column; align-items: flex-start; gap: 8px; }

  .tfm .tfm-pro-auteur { align-items: flex-start; gap: 16px; }
  .tfm p.tfm-pro-auteur-icone { width: 56px; height: 56px; }
  .tfm .tfm-pro-auteur-texte h2 { font-size: 22px; line-height: 27px; }

  .tfm .tfm-pro-faq { grid-template-columns: 1fr; gap: 24px; }

  .tfm .tfm-pro-bande { flex-direction: column; align-items: stretch; gap: 28px; }
  .tfm .tfm-pro-bande h2 { font-size: 36px; line-height: 40px; }
  .tfm p.tfm-pro-bande-texte { font-size: 19px; line-height: 26px; }
  .tfm a.tfm-btn.tfm-btn--clair { min-height: 56px; font-size: 18px; }

  .tfm .tfm-pro-questions { grid-template-columns: 1fr; gap: 16px; }
  .tfm .tfm-pro-question { padding: 20px; border-radius: 20px; }
  .tfm .tfm-pro-famille { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .tfm .tfm-pro-section-familles .tfm-wrap > .wp-block-group__inner-container > * + * { margin-top: 40px; }
  .tfm .tfm-pro-choisir { grid-template-columns: 1fr; gap: 24px; }
  .tfm .tfm-pro-examens { grid-template-columns: 1fr; gap: 16px; }
  .tfm .tfm-pro-examen { padding: 22px; border-radius: 20px; }
  /* Tableau « Quel examen pour quel projet ? » → cartes */
  .tfm .tfm-pro-projets { overflow: visible; }
  .tfm .tfm-pro-projets table { min-width: 0; }
  .tfm .tfm-pro-projets thead { display: none; }
  .tfm .tfm-pro-projets tbody, .tfm .tfm-pro-projets tr, .tfm .tfm-pro-projets td, .tfm .tfm-pro-projets th { display: block; width: auto; }
  .tfm .tfm-pro-projets tr { padding: 16px 0; border-bottom: 1px solid var(--tf-pro-filet); }
  .tfm .tfm-pro-projets td, .tfm .tfm-pro-projets th { padding: 0; border: 0; }
  .tfm .tfm-pro-projets td + td { margin-top: 6px; }
  .tfm .tfm-pro-projets th[scope="row"] { font-size: 18px; margin-bottom: 6px; }
  .tfm .tfm-pro-liens-cellule { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
}
