/* ==========================================================================
   Famille « examens » : gabarit de la maquette 03 (TCF Canada), repris pour
   DELF, DELF A1 à B2, DALF C1, TEF Canada, TCF Québec, TCF IRN.
   Planches : Documentation/SEO/refonte-2026/maquettes/validees/03-gabarit-examen/
   Variables du socle (maquettes.css) uniquement. Point de rupture : 768px.
   ========================================================================== */

/* ---------- Haut de page : fil d'Ariane + date ---------- */
.tfm-examens-haut { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; }
.tfm-examens-haut > p, .tfm-examens-haut > .wp-block-group__inner-container > p, .tfm-examens-haut > .tfm-fil, .tfm-examens-haut > .wp-block-group__inner-container > .tfm-fil { margin: 0; }
.tfm-examens-date { font-size: 15px !important; line-height: 20px !important; font-weight: 600; color: var(--tf-encre-secondaire); }

/* ---------- Héros ---------- */
.tfm-examens-heros { padding-top: 40px; }
.tfm-examens-heros-grille { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.tfm-examens-heros-texte { display: flex; flex-direction: column; gap: 32px; }
.tfm-examens-accent { color: var(--tf-emeraude); }
.tfm-examens-enbref { display: flex; flex-direction: column; gap: 10px; }
.tfm-examens-enbref .tfm-chapo { max-width: 640px; color: var(--tf-encre); font-weight: 500; margin: 0; }
.tfm-examens-enbref .tfm-surtitre { font-size: 14px; }
.tfm-examens-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tfm-examens-cta > p, .tfm-examens-cta > .wp-block-group__inner-container > p { margin: 0 !important; }
.tfm-examens-mention { font-size: 16px !important; line-height: 22px !important; font-weight: 600; color: var(--tf-encre-secondaire); }

/* Carte « Votre préparation en bref » */
.tfm-examens-carte { background: var(--tf-emeraude-pale); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.tfm-examens-carte p { margin: 0; }
.tfm-examens-carte-titre { font-size: 14px !important; line-height: 18px !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
.tfm-examens-carte dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.tfm-examens-carte dl > div, .tfm-examens-carte dl > .wp-block-group__inner-container > div { position: relative; padding-left: 60px; min-height: 44px; }
.tfm-examens-carte dl > div::before, .tfm-examens-carte dl > .wp-block-group__inner-container > div::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: var(--tf-rayon-pilule); background: var(--tf-emeraude); box-shadow: inset 0 0 0 14px var(--tf-emeraude), inset 0 0 0 22px #FFFFFF; }
.tfm-examens-carte dt { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--tf-encre-secondaire); }
.tfm-examens-carte dd { margin: 2px 0 0; font-size: 19px; line-height: 25px; font-weight: 800; color: var(--tf-marine); }
.tfm-examens-carte dd a { font-size: 16px; font-weight: 700; margin-left: 4px; }
.tfm-examens-carte dd span { display: block; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--tf-encre-secondaire); }
.tfm-examens-carte-pied { border-top: 1px solid var(--tf-bordure); padding-top: 20px; font-size: 16px !important; font-weight: 800; color: var(--tf-emeraude-fonce); }

/* ---------- Intros de section ---------- */
.tfm .tfm-examens-intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.tfm-examens-intro > p, .tfm-examens-intro > .wp-block-group__inner-container > p { max-width: 820px; margin: 0 !important; }
.tfm-section .tfm-wrap > h2, .tfm-section .tfm-wrap > .wp-block-group__inner-container > h2 { margin-bottom: 32px; }

/* Bandeau des chiffres clés */
.tfm-examens-chiffres { 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; text-align: center; margin-bottom: 40px; }
.tfm-examens-chiffres--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tfm-examens-chiffres > div, .tfm-examens-chiffres > .wp-block-group__inner-container > div { display: flex; flex-direction: column; gap: 8px; align-items: center; color: #FFFFFF; font-size: 19px; line-height: 25px; font-weight: 700; }
.tfm-examens-chiffre { font-size: 52px; line-height: 56px; font-weight: 900; letter-spacing: -0.05em; white-space: nowrap; }

/* Tableaux */
.tfm .tfm-examens-epreuves-section .tfm-tableau th, .tfm .tfm-examens-epreuves-section .tfm-tableau td { background: transparent; }
.tfm .tfm-tableau thead th { background: transparent; font-size: 14px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
.tfm .tfm-tableau tbody th { background: transparent; font-size: 18px; line-height: 24px; }
.tfm .tfm-tableau td { font-size: 17px; line-height: 26px; }
.tfm-tableau { margin: 0; }
.tfm .tfm-examens-nclc tr:has(.tfm-examens-badge) th, .tfm .tfm-examens-nclc tr:has(.tfm-examens-badge) td { background: var(--tf-emeraude-pale); }
.tfm .tfm-examens-nclc tr:has(.tfm-examens-badge) th { color: var(--tf-emeraude-fonce); }
.tfm-examens-badge { display: inline-block; margin-left: 8px; background: var(--tf-emeraude-fonce); color: #FFFFFF; border-radius: var(--tf-rayon-pilule); padding: 4px 10px; font-size: 13px; line-height: 17px; font-weight: 800; vertical-align: middle; }
.tfm-examens-niv { font-size: 30px; line-height: 34px; font-weight: 900; letter-spacing: -0.04em; color: var(--tf-emeraude); margin-right: 8px; }
.tfm-examens-titres td strong { font-size: 24px; color: var(--tf-emeraude); }
.tfm-examens-source { margin-top: 16px !important; }
.tfm-examens-bareme { margin-top: 20px !important; font-weight: 600; }
.tfm .tfm-examens-deux-para { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.tfm-examens-deux-para > p, .tfm-examens-deux-para > .wp-block-group__inner-container > p { margin: 0 !important; }
.tfm .tfm-examens-citation { margin: 48px auto 0 !important; max-width: 960px; text-align: center; font-size: 38px !important; line-height: 46px !important; font-weight: 900; letter-spacing: -0.03em; color: var(--tf-emeraude-fonce); }

/* ---------- Programme (section marine) ---------- */
.tfm-examens-programme h2 { font-size: 52px; line-height: 54px; letter-spacing: -0.045em; }
.tfm-examens-programme .tfm-chapo { color: var(--tf-pied-texte); }
.tfm-examens-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tfm-examens-prog { border: 3px solid var(--tf-emeraude); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tfm-examens-prog > *, .tfm-examens-prog > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm-examens-prog p { font-size: 18px; line-height: 27px; color: var(--tf-pied-texte); }
.tfm .tfm-examens-num { width: 56px; height: 56px; border-radius: var(--tf-rayon-pilule); background: var(--tf-emeraude); color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; font-size: 28px !important; font-weight: 900; }
.tfm-section--marine .tfm-examens-prog a { color: #FFFFFF; font-weight: 700; }
.tfm .tfm-examens-bas { margin-top: 24px; }
.tfm-examens-app { border: 2px dashed var(--tf-encre-tertiaire); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tfm-examens-app > p, .tfm-examens-app > .wp-block-group__inner-container > p { margin: 0 !important; }
.tfm-section--marine .tfm-examens-app .tfm-surtitre { color: #6EE7B7; }
.tfm-section--marine .tfm-examens-app-texte { font-size: 20px; line-height: 28px; font-weight: 700; color: #FFFFFF; }

/* ---------- Seul ou avec un prof ---------- */
.tfm-examens-seul-prof-grille { display: block; }
.tfm-examens-seul-prof-texte { display: flex; flex-direction: column; gap: 40px; max-width: 880px; }
.tfm-examens-seul-prof-texte > p, .tfm-examens-seul-prof-texte > .wp-block-group__inner-container > p { margin: 0 !important; }
.tfm-examens-duo { position: relative; padding-left: 76px; display: flex; flex-direction: column; gap: 10px; }
.tfm-examens-duo > *, .tfm-examens-duo > .wp-block-group__inner-container > * { margin: 0 !important; }
.tfm-examens-duo::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: var(--tf-rayon-pilule); background: var(--tf-emeraude); box-shadow: inset 0 0 0 18px var(--tf-emeraude), inset 0 0 0 28px #FFFFFF; }

/* ---------- Auteur et FAQ (titre à gauche, texte à droite) ---------- */
.tfm-examens-auteur { padding-bottom: 0; }
.tfm-examens-deux-col { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; }
.tfm-examens-auteur-texte { max-width: 760px; margin: 0 !important; position: relative; padding-left: 76px; }
.tfm-examens-auteur-texte::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: var(--tf-rayon-pilule); background: var(--tf-emeraude); box-shadow: inset 0 0 0 18px var(--tf-emeraude), inset 0 0 0 28px #FFFFFF; }
.tfm-examens-faq-liste { border-top: 2px solid var(--tf-marine); }

/* ---------- Autres examens ---------- */
.tfm-examens-autres { border-top: 1px solid var(--tf-bordure-claire); padding-top: 72px; }
.tfm-examens-autres h2 { font-size: 34px; line-height: 38px; margin-bottom: 28px; }
.tfm .tfm-examens-autres-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.tfm-examens-autres-grille > p, .tfm-examens-autres-grille > .wp-block-group__inner-container > p { margin: 0 !important; }
.tfm .tfm-examens-autre { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 3px solid var(--tf-emeraude); text-decoration: none; }
.tfm .tfm-examens-autre strong { font-size: 21px; line-height: 27px; font-weight: 900; color: var(--tf-marine); }
.tfm .tfm-examens-autre span { font-size: 16px; line-height: 23px; font-weight: 500; color: var(--tf-encre-secondaire); }
.tfm a.tfm-examens-autre:hover strong { color: var(--tf-emeraude-fonce); }

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

/* ---------- Mobile (planche 390px) ---------- */
@media (max-width: 767px) {
  .tfm-examens-haut { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; }
  .tfm-examens-heros { padding-top: 24px; }
  .tfm-examens-heros-grille { grid-template-columns: 1fr; gap: 32px; }
  .tfm-examens-heros-texte { gap: 24px; }
  .tfm-examens-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .tfm-examens-mention { text-align: center; }
  .tfm-examens-carte { padding: 24px; border-radius: 20px; gap: 18px; }
  .tfm-examens-carte dd { font-size: 17px; line-height: 23px; }
  .tfm .tfm-examens-intro { margin-bottom: 28px; }
  .tfm-examens-chiffres, .tfm-examens-chiffres--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 16px; }
  .tfm-examens-chiffre { font-size: 34px; line-height: 38px; white-space: normal; }
.tfm-examens-chiffres > div, .tfm-examens-chiffres > .wp-block-group__inner-container > div { font-size: 15px; line-height: 20px; }
  .tfm .tfm-tableau td { font-size: 15px; line-height: 22px; }
  .tfm .tfm-tableau tbody th { font-size: 16px; }
  .tfm-examens-epreuves table, .tfm-examens-niveaux table { min-width: 0; }
  .tfm .tfm-examens-deux-para { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .tfm .tfm-examens-citation { font-size: 26px !important; line-height: 32px !important; margin-top: 32px !important; }
  .tfm-examens-programme h2 { font-size: 32px; line-height: 36px; }
  .tfm-examens-cartes { grid-template-columns: 1fr; gap: 16px; }
  .tfm-examens-prog { padding: 22px; border-radius: 20px; }
  .tfm .tfm-examens-num { width: 44px; height: 44px; font-size: 22px !important; }
  .tfm-examens-app { padding: 22px; }
  .tfm-section--marine .tfm-examens-app-texte { font-size: 17px; line-height: 25px; }
  .tfm-examens-seul-prof-texte { gap: 28px; }
  .tfm-examens-duo, .tfm-examens-auteur-texte { padding-left: 0; padding-top: 60px; }
  .tfm-examens-duo::before, .tfm-examens-auteur-texte::before { width: 44px; height: 44px; box-shadow: inset 0 0 0 14px var(--tf-emeraude), inset 0 0 0 22px #FFFFFF; }
  .tfm-examens-deux-col { grid-template-columns: 1fr; gap: 24px; }
  .tfm-examens-autres { padding-top: 48px; }
  .tfm-examens-autres h2 { font-size: 26px; line-height: 30px; }
  .tfm .tfm-examens-autres-grille { grid-template-columns: 1fr; gap: 18px; }
  .tfm-examens-final-grille { flex-direction: column; align-items: stretch; gap: 28px; }
  .tfm-examens-final h2 { font-size: 36px; line-height: 40px; }
  .tfm-examens-final p { font-size: 18px; line-height: 26px; }
  .tfm .tfm-btn--clair, .tfm a.tfm-btn--clair { min-height: 56px; font-size: 18px; }
}

/* ---------- Tableaux sur mobile : listes empilées (planche Mobile de la maquette 03) ---------- */
@media (max-width: 767px) {
  .tfm .tfm-examens-epreuves, .tfm .tfm-examens-heures, .tfm .tfm-examens-titres, .tfm .tfm-examens-niveaux, .tfm .tfm-examens-difference { overflow: visible; }
  .tfm .tfm-examens-epreuves table, .tfm .tfm-examens-heures table, .tfm .tfm-examens-titres table, .tfm .tfm-examens-niveaux table, .tfm .tfm-examens-difference table { min-width: 0; display: block; }
  .tfm .tfm-examens-epreuves thead, .tfm .tfm-examens-heures thead, .tfm .tfm-examens-titres thead, .tfm .tfm-examens-niveaux thead, .tfm .tfm-examens-difference thead { display: none; }
  .tfm .tfm-examens-epreuves tbody, .tfm .tfm-examens-heures tbody, .tfm .tfm-examens-titres tbody, .tfm .tfm-examens-niveaux tbody, .tfm .tfm-examens-difference tbody { display: block; }
  .tfm .tfm-examens-epreuves tr, .tfm .tfm-examens-heures tr, .tfm .tfm-examens-titres tr, .tfm .tfm-examens-niveaux tr, .tfm .tfm-examens-difference tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--tf-bordure); }
  .tfm .tfm-examens-epreuves th, .tfm .tfm-examens-epreuves td, .tfm .tfm-examens-heures th, .tfm .tfm-examens-heures td,
  .tfm .tfm-examens-titres th, .tfm .tfm-examens-titres td, .tfm .tfm-examens-niveaux th, .tfm .tfm-examens-niveaux td,
  .tfm .tfm-examens-difference th, .tfm .tfm-examens-difference td { display: block; border: 0; padding: 0; }
  .tfm .tfm-examens-epreuves tbody th, .tfm .tfm-examens-heures tbody th, .tfm .tfm-examens-titres tbody th, .tfm .tfm-examens-niveaux tbody th, .tfm .tfm-examens-difference tbody th { font-size: 19px; line-height: 25px; margin-bottom: 6px; }
  .tfm .tfm-examens-epreuves td + td { display: inline; font-weight: 700; color: var(--tf-marine); }
  .tfm .tfm-examens-epreuves td:nth-child(2) { margin-bottom: 6px; }
  .tfm .tfm-examens-epreuves td:nth-child(3)::before { content: ""; display: block; height: 6px; }
  .tfm .tfm-examens-epreuves td:nth-child(4)::before { content: " · "; }
  .tfm .tfm-examens-epreuves td:nth-child(3) br { display: none; }
  .tfm .tfm-examens-heures td + td, .tfm .tfm-examens-niveaux td + td { margin-top: 6px; }
  .tfm .tfm-examens-titres td + td, .tfm .tfm-examens-difference td + td { margin-top: 8px; }
  .tfm .tfm-examens-titres td::before, .tfm .tfm-examens-difference td::before, .tfm .tfm-examens-niveaux td:nth-child(3)::before {
    display: block; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-emeraude-fonce); }
  .tfm .tfm-examens-titres td:nth-child(2)::before { content: "Niveau"; }
  .tfm .tfm-examens-titres td:nth-child(3)::before { content: "Test ou diplôme accepté"; }
  .tfm .tfm-examens-titres td:nth-child(4)::before { content: "Validité"; }
  .tfm .tfm-examens-titres td:nth-child(5)::before { content: "Dispenses"; }
  .tfm .tfm-examens-difference td:nth-child(2)::before { content: "TCF Canada"; }
  .tfm .tfm-examens-difference td:nth-child(3)::before { content: "TCF Québec"; }
  .tfm .tfm-examens-niveaux td:nth-child(3)::before { content: "Examen blanc"; }
  .tfm .tfm-examens-titres td strong { font-size: 20px; }
  .tfm-examens-niv { font-size: 26px; }

  /* Tableau NCLC : resserré pour tenir dans la largeur (5 colonnes). */
  .tfm .tfm-examens-nclc table { min-width: 0; table-layout: fixed; }
  .tfm .tfm-examens-nclc th, .tfm .tfm-examens-nclc td { padding: 10px 4px; font-size: 13px !important; line-height: 17px !important; }
  .tfm .tfm-examens-nclc thead th { font-size: 10px !important; letter-spacing: 0.02em; text-transform: none; }
  .tfm .tfm-examens-nclc .tfm-examens-badge { display: none; }
}

.tfm .tfm-tableau table { border: 0; }
.tfm .tfm-tableau th, .tfm .tfm-tableau td { border-left: 0; border-right: 0; }
@media (max-width: 767px) { .tfm-examens-chiffres--3 > div:last-child { grid-column: 1 / -1; } }
