/* ═══════════════════════════════════════════════════════════════
   skill-pages.css — Accueil + pages Compréhension / Expression
   S'appuie sur la charte de style.css :
   bleu #1E5EA8 · orange #E1602F · teal #14B8A6 · gris #F4F5F8
   Toutes les classes sont préfixées "tcp-" pour éviter les collisions.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --tcp-blue: #1E5EA8;
  --tcp-blue-l: #EAF1FA;
  --tcp-orange: #E1602F;
  --tcp-orange-l: #FDEFE9;
  --tcp-teal: #14B8A6;
  --tcp-teal-l: #E6F7F5;
  --tcp-ink: #1D292E;
  --tcp-text: #535967;
  --tcp-muted: #8A90A0;
  --tcp-gray: #F4F5F8;
  --tcp-border: #E6E9F0;
  --tcp-radius: 14px;
  --tcp-shadow: 0 6px 24px rgba(30, 94, 168, .08);
  --tcp-shadow-h: 0 14px 34px rgba(30, 94, 168, .14);
}

/* ── Hero ─────────────────────────────────────────────── */
.tcp-hero { padding: 80px 0 70px; }
.tcp-hero .banner-content { position: relative; z-index: 1; }
.tcp-hero .banner-content h1 { line-height: 1.25; font-size: 40px; }
.tcp-hero .banner-content h1 .tcp-accent { color: #FFB38F; }
.tcp-hero .banner-content p { line-height: 1.6; font-size: 18px; }
.tcp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tcp-hero-actions .btn { margin: 0; }

.tcp-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem;
  margin-top: 2rem; padding: 0; list-style: none;
}
.tcp-trust li {
  color: #fff; font-size: 14px; line-height: 1.4; opacity: .92;
  display: inline-flex; align-items: center; gap: .45rem;
}
.tcp-trust li i { color: #FFB38F; }

.tcp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.tcp-chips li {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: 30px; padding: .3rem .9rem; font-size: 14px; line-height: 1.5;
  display: inline-flex; align-items: center; gap: .4rem;
}

.tcp-tests-label { color: #fff; font-family: "Kumbh Sans", sans-serif; font-weight: 700; font-size: 15px; margin: 1.5rem 0 .75rem; opacity: .9; }
.tcp-tests { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tcp-tests .btn { margin: 0; }

/* ── Carte d'appel à l'action abonnement ─────────────── */
.tcp-cta-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--tcp-radius); box-shadow: var(--tcp-shadow);
  padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.5rem;
}
.tcp-cta-card .tcp-cta-icon {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px;
  background: var(--tcp-orange-l); color: var(--tcp-orange);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.tcp-cta-card h3 { font-size: 19px; margin: 0 0 .35rem; line-height: 1.35; }
.tcp-cta-card p { margin: 0; }
.tcp-cta-card .tcp-cta-body { flex: 1; }
.tcp-cta-card .btn { white-space: nowrap; margin: 0; }

/* ── Titres de section ────────────────────────────────── */
.tcp-section .section-heading h3,
.tcp-section .section-heading h2 { font-size: 28px; line-height: 1.3; margin: 10px 0 12px; }
.tcp-section .section-heading p { line-height: 1.65; }
.tcp-section .subheading { color: var(--tcp-orange); }
.tcp-lead { font-size: 16px; line-height: 1.7; }

/* ── Grille de chiffres clés ─────────────────────────── */
.tcp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tcp-stat {
  background: #fff; border: 1px solid var(--tcp-border); border-radius: var(--tcp-radius);
  padding: 1.25rem 1rem; text-align: center; transition: .3s;
}
.tcp-stat:hover { box-shadow: var(--tcp-shadow-h); transform: translateY(-3px); }
.tcp-stat .tcp-stat-value { font-family: "Kumbh Sans", sans-serif; font-weight: 700; font-size: 28px; color: var(--tcp-blue); line-height: 1.2; }
.tcp-stat .tcp-stat-label { font-size: 14px; color: var(--tcp-text); line-height: 1.4; margin-top: .25rem; }
.tcp-stat i { color: var(--tcp-orange); font-size: 20px; margin-bottom: .5rem; display: block; }

/* ── Cartes génériques ───────────────────────────────── */
.tcp-card {
  background: #fff; border: 1px solid var(--tcp-border); border-radius: var(--tcp-radius);
  padding: 1.6rem; height: 100%; transition: .3s; position: relative;
}
.tcp-card:hover { box-shadow: var(--tcp-shadow-h); transform: translateY(-4px); border-color: transparent; }
.tcp-card h4 { font-size: 18px; margin: .9rem 0 .5rem; }
.tcp-card p { margin: 0; line-height: 1.6; }
.tcp-card .tcp-card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; color: var(--tcp-blue); font-size: 15px; }
.tcp-card .tcp-card-link:hover { color: var(--tcp-orange); text-decoration: none; }

.tcp-ico {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--tcp-blue-l); color: var(--tcp-blue); flex-shrink: 0;
}
.tcp-ico.is-orange { background: var(--tcp-orange-l); color: var(--tcp-orange); }
.tcp-ico.is-teal { background: var(--tcp-teal-l); color: var(--tcp-teal); }
.tcp-ico.is-solid { background: var(--tcp-blue); color: #fff; }

/* Carte épreuve (accueil) */
.tcp-skill-card .tcp-skill-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.tcp-skill-card .tcp-skill-meta li { background: var(--tcp-gray); border-radius: 20px; padding: .15rem .7rem; font-size: 13px; line-height: 1.6; color: var(--tcp-ink); }
.tcp-skill-card .tcp-badge-new {
  position: absolute; top: 1rem; right: 1rem; background: var(--tcp-orange); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: .1rem .55rem; border-radius: 20px; line-height: 1.8;
}

/* ── Liste à coches ──────────────────────────────────── */
.tcp-check { list-style: none; padding: 0; margin: 0; }
.tcp-check li { position: relative; padding-left: 2rem; margin-bottom: .8rem; line-height: 1.6; color: var(--tcp-text); }
.tcp-check li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--tcp-teal-l); color: var(--tcp-teal); font-size: 11px; line-height: 1.35rem; text-align: center;
}
.tcp-check li strong { color: var(--tcp-ink); }

/* ── Étapes numérotées (timeline) ────────────────────── */
.tcp-steps { counter-reset: tcpstep; list-style: none; padding: 0; margin: 0; }
.tcp-steps > li { position: relative; padding: 0 0 1.6rem 4rem; }
.tcp-steps > li::before {
  counter-increment: tcpstep; content: counter(tcpstep);
  position: absolute; left: 0; top: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--tcp-blue); color: #fff; font-family: "Kumbh Sans", sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 17px; z-index: 1;
}
.tcp-steps > li::after {
  content: ""; position: absolute; left: 1.38rem; top: 2.8rem; bottom: 0; width: 2px; background: var(--tcp-border);
}
.tcp-steps > li:last-child { padding-bottom: 0; }
.tcp-steps > li:last-child::after { display: none; }
.tcp-steps h4 { font-size: 18px; margin: .4rem 0 .35rem; }
.tcp-steps p { margin: 0; line-height: 1.6; }

/* ── Maquettes d'interface (simulateur, rapport, plan) ─ */
.tcp-mock {
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(29, 41, 46, .12);
  border: 1px solid var(--tcp-border); overflow: hidden;
}
.tcp-mock-bar {
  display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--tcp-gray); border-bottom: 1px solid var(--tcp-border);
}
.tcp-mock-bar span.dot { width: 10px; height: 10px; border-radius: 50%; background: #D5D9E2; }
.tcp-mock-bar .tcp-mock-title { margin-left: .6rem; font-size: 13px; color: var(--tcp-muted); line-height: 1.4; }
.tcp-mock-body { padding: 1.4rem; }
.tcp-mock-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tcp-mock-label { font-size: 13px; color: var(--tcp-muted); line-height: 1.4; }
.tcp-mock-strong { font-family: "Kumbh Sans", sans-serif; font-weight: 700; color: var(--tcp-ink); line-height: 1.3; }

.tcp-timer {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--tcp-orange-l); color: var(--tcp-orange);
  font-family: "Kumbh Sans", sans-serif; font-weight: 700; border-radius: 30px; padding: .25rem .8rem; font-size: 15px; line-height: 1.5;
}

.tcp-exam-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.1rem 0; }
.tcp-exam-steps div {
  border-radius: 10px; padding: .6rem .4rem; text-align: center; font-size: 12px; line-height: 1.35;
  background: var(--tcp-gray); color: var(--tcp-muted); border: 1px solid transparent;
}
.tcp-exam-steps div b { display: block; font-family: "Kumbh Sans", sans-serif; font-size: 14px; color: var(--tcp-ink); }
.tcp-exam-steps div.is-done { background: var(--tcp-teal-l); color: var(--tcp-teal); }
.tcp-exam-steps div.is-current { background: #fff; border-color: var(--tcp-blue); color: var(--tcp-blue); box-shadow: 0 4px 14px rgba(30, 94, 168, .15); }

.tcp-progress { height: 8px; background: var(--tcp-gray); border-radius: 10px; overflow: hidden; }
.tcp-progress > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--tcp-blue), var(--tcp-teal)); }

.tcp-qcm { list-style: none; padding: 0; margin: .9rem 0 0; }
.tcp-qcm li {
  border: 1px solid var(--tcp-border); border-radius: 10px; padding: .45rem .8rem; margin-bottom: .45rem;
  font-size: 14px; line-height: 1.5; display: flex; align-items: center; gap: .6rem; color: var(--tcp-ink);
}
.tcp-qcm li span { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--tcp-gray); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.tcp-qcm li.is-selected { border-color: var(--tcp-blue); background: var(--tcp-blue-l); }
.tcp-qcm li.is-selected span { background: var(--tcp-blue); color: #fff; }

/* Rapport IA */
.tcp-score-ring {
  --pct: 72;
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--tcp-teal) calc(var(--pct) * 1%), var(--tcp-gray) 0);
  display: flex; align-items: center; justify-content: center;
}
.tcp-score-ring > div {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Kumbh Sans", sans-serif; font-weight: 700; color: var(--tcp-ink); font-size: 18px; line-height: 1.1;
}
.tcp-score-ring > div small { font-size: 10px; color: var(--tcp-muted); font-weight: 400; }
.tcp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tcp-tags li { font-size: 12px; line-height: 1.6; border-radius: 20px; padding: .1rem .65rem; }
.tcp-tags li.ok { background: var(--tcp-teal-l); color: #0E8A7C; }
.tcp-tags li.ko { background: var(--tcp-orange-l); color: #B8461C; }
.tcp-tags li.info { background: var(--tcp-blue-l); color: var(--tcp-blue); }
.tcp-report-block { border-top: 1px dashed var(--tcp-border); padding-top: .9rem; margin-top: .9rem; }
.tcp-report-block h6 { font-family: "Kumbh Sans", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--tcp-muted); margin-bottom: .5rem; }

.tcp-crit { margin: 0; padding: 0; list-style: none; }
.tcp-crit li { margin-bottom: .55rem; }
.tcp-crit .tcp-mock-row { font-size: 13px; line-height: 1.4; color: var(--tcp-ink); margin-bottom: .25rem; }

/* Plan d'apprentissage */
.tcp-plan-item {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--tcp-border);
  margin-bottom: .5rem; font-size: 14px; line-height: 1.4; color: var(--tcp-ink);
}
.tcp-plan-item .tcp-plan-check {
  width: 1.4rem; height: 1.4rem; border-radius: 6px; border: 2px solid #CBD2DE; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff;
}
.tcp-plan-item.is-done { background: var(--tcp-gray); color: var(--tcp-muted); }
.tcp-plan-item.is-done .tcp-plan-check { background: var(--tcp-teal); border-color: var(--tcp-teal); }
.tcp-plan-item .tcp-plan-skill { margin-left: auto; font-size: 11px; font-weight: 700; padding: .05rem .5rem; border-radius: 20px; background: var(--tcp-blue-l); color: var(--tcp-blue); }
.tcp-plan-item .tcp-plan-skill.is-orange { background: var(--tcp-orange-l); color: var(--tcp-orange); }

/* Conversation (expression orale) */
.tcp-chat { display: flex; flex-direction: column; gap: .6rem; }
.tcp-bubble { max-width: 85%; padding: .6rem .9rem; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.tcp-bubble small { display: block; font-size: 11px; font-weight: 700; margin-bottom: .15rem; opacity: .75; }
.tcp-bubble.is-examiner { background: var(--tcp-gray); color: var(--tcp-ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.tcp-bubble.is-user { background: var(--tcp-blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.tcp-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.tcp-wave span { width: 3px; background: var(--tcp-orange); border-radius: 3px; animation: tcpwave 1s ease-in-out infinite; }
.tcp-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.tcp-wave span:nth-child(2) { height: 80%; animation-delay: .15s; }
.tcp-wave span:nth-child(3) { height: 55%; animation-delay: .3s; }
.tcp-wave span:nth-child(4) { height: 95%; animation-delay: .45s; }
.tcp-wave span:nth-child(5) { height: 50%; animation-delay: .6s; }
@keyframes tcpwave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .tcp-wave span { animation: none; } }

/* ── Bandeau "accompagnement" sombre ─────────────────── */
.tcp-band { background: var(--tcp-ink); }
.tcp-band .section-heading h3, .tcp-band .section-heading h2, .tcp-band h4 { color: #fff; }
.tcp-band .section-heading p, .tcp-band p { color: rgba(255, 255, 255, .72); }
.tcp-band .subheading { color: #FFB38F; }
.tcp-band .tcp-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.tcp-band .tcp-card:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.tcp-band .tcp-ico { background: rgba(255, 255, 255, .1); color: #FFB38F; }
.tcp-band .tcp-when { display: inline-block; font-size: 12px; font-weight: 700; color: var(--tcp-teal); text-transform: uppercase; letter-spacing: 1px; margin-top: .9rem; }

/* ── Tableau barème NCLC ─────────────────────────────── */
.tcp-table-wrap { overflow-x: auto; border-radius: var(--tcp-radius); border: 1px solid var(--tcp-border); background: #fff; }
.tcp-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 420px; }
.tcp-table th { background: var(--tcp-blue); color: #fff; font-family: "Kumbh Sans", sans-serif; font-weight: 700; padding: .65rem .9rem; text-align: left; }
.tcp-table td { padding: .55rem .9rem; border-top: 1px solid var(--tcp-border); color: var(--tcp-ink); font-variant-numeric: tabular-nums; }
.tcp-table tr.is-target td { background: var(--tcp-orange-l); font-weight: 700; }
.tcp-note { font-size: 13px; color: var(--tcp-muted); line-height: 1.5; margin-top: .6rem; }

/* ── Encadré / alerte ────────────────────────────────── */
.tcp-callout {
  display: flex; gap: 1rem; align-items: flex-start; border-radius: var(--tcp-radius); padding: 1.1rem 1.3rem;
  background: var(--tcp-blue-l); border-left: 4px solid var(--tcp-blue);
}
.tcp-callout i { color: var(--tcp-blue); font-size: 20px; margin-top: .2rem; }
.tcp-callout p { margin: 0; line-height: 1.6; color: var(--tcp-ink); }
.tcp-callout.is-orange { background: var(--tcp-orange-l); border-left-color: var(--tcp-orange); }
.tcp-callout.is-orange i { color: var(--tcp-orange); }

/* ── Tâches (expression) ─────────────────────────────── */
.tcp-task { border-top: 4px solid var(--tcp-blue); }
.tcp-task.is-2 { border-top-color: var(--tcp-teal); }
.tcp-task.is-3 { border-top-color: var(--tcp-orange); }
.tcp-task .tcp-task-num { font-family: "Kumbh Sans", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--tcp-muted); }
.tcp-task .tcp-task-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .9rem; padding: 0; list-style: none; }
.tcp-task .tcp-task-meta li { background: var(--tcp-gray); border-radius: 20px; padding: .1rem .7rem; font-size: 13px; line-height: 1.7; color: var(--tcp-ink); }

/* ── FAQ ─────────────────────────────────────────────── */
.tcp-faq { max-width: 860px; margin: 0 auto; }
.tcp-faq details {
  background: #fff; border: 1px solid var(--tcp-border); border-radius: 12px; margin-bottom: .7rem; transition: .3s;
}
.tcp-faq details[open] { box-shadow: var(--tcp-shadow); border-color: transparent; }
.tcp-faq summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-family: "Kumbh Sans", sans-serif; font-weight: 700; color: var(--tcp-ink); line-height: 1.45;
}
.tcp-faq summary::-webkit-details-marker { display: none; }
.tcp-faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tcp-blue-l); color: var(--tcp-blue);
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.tcp-faq details[open] summary::after { content: "−"; background: var(--tcp-orange); color: #fff; }
.tcp-faq summary:focus-visible { outline: 2px solid var(--tcp-blue); outline-offset: 2px; border-radius: 12px; }
.tcp-faq .tcp-faq-a { padding: 0 1.25rem 1.1rem; }
.tcp-faq .tcp-faq-a p { margin: 0; line-height: 1.65; }

/* ── CTA final ───────────────────────────────────────── */
.tcp-final {
  background: linear-gradient(120deg, var(--tcp-blue) 0%, #174A86 60%, var(--tcp-ink) 100%);
  border-radius: 20px; padding: 2.6rem 2.2rem; text-align: center; color: #fff;
}
.tcp-final h3 { color: #fff; font-size: 26px; line-height: 1.3; }
.tcp-final p { color: rgba(255, 255, 255, .8); line-height: 1.6; font-size: 16px; }
.tcp-final .btn-main { background: var(--tcp-orange); border-color: var(--tcp-orange); }
.tcp-final .btn-main:hover { background: #fff; color: var(--tcp-blue); border-color: #fff; }

/* ── Divers ──────────────────────────────────────────── */
.tcp-img { border-radius: var(--tcp-radius); box-shadow: var(--tcp-shadow); }
.tcp-mt-lg { margin-top: 3rem; }
.tcp-gap-row { row-gap: 1.5rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991px) {
  .tcp-stats { grid-template-columns: repeat(2, 1fr); }
  .tcp-mock { margin-top: 2rem; }
}
@media (max-width: 767px) {
  .tcp-hero { padding: 55px 0 50px; }
  .tcp-hero .banner-content h1 { font-size: 28px; }
  .tcp-hero .banner-content p { font-size: 16px; }
  .tcp-section .section-heading h3, .tcp-section .section-heading h2 { font-size: 22px; }
  .center-heading p { padding: 0; }
  .tcp-cta-card { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; }
  .tcp-cta-card .btn { white-space: normal; }
  .tcp-exam-steps { grid-template-columns: repeat(2, 1fr); }
  .tcp-final { padding: 2rem 1.25rem; }
  .tcp-final h3 { font-size: 21px; }
  .tcp-hero-actions .btn, .tcp-tests .btn { width: 100%; }
}
