/*
 * Test Permis Théorique — page d'accueil (.tpt-home-*), chargée uniquement sur l'accueil après main.css.
 * Classes documentées dans HOME_CLASSES.md. Jetons : voir main.css (:root).
 */
/* Bandes pleine largeur sans débordement horizontal : ombre portée + découpe. */
/* Le bandeau d'accroche enchaîne : H1 (titre WordPress) → résumé (.tpt-page__header de l'extension) → .tpt-home-hero ou .tpt-home-section--hero. */
:is(.tptc-front .entry-header,.tptc-front .entry-content>.tpt-page__header,.tpt-home-hero,.tpt-home-section--hero,.tpt-home-section--alt,.tpt-home-section--exam,.tpt-home-section--signs,.tpt-home-section--why,.tpt-home-cta){background:var(--band);box-shadow:0 0 0 100vmax var(--band);clip-path:inset(0 -100vmax)}
.tptc-front .entry-header,.tptc-front .entry-content>.tpt-page__header,.tpt-home-hero,.tpt-home-section--hero{--band:var(--tpt-blue-50)}
.tptc-front .entry-header,.tptc-front .entry-content>.tpt-page__header{clip-path:inset(0 -100vmax -2px)}
.tptc-front .entry-header{margin:calc(-1 * var(--tptc-pad-top)) 0 0;padding:var(--tpt-s6) 0 var(--tpt-s3)}
.tptc-front .entry-content>.tpt-page__header{margin:0;padding:0 0 var(--tpt-s4)}
.tptc-front .entry-content>.tpt-page__header>*{max-width:46rem}
.tpt-home-section.tpt-home-section--hero{padding-block:0 var(--tpt-s7)}
.tpt-home-section>p{max-width:var(--tpt-measure)}
.tptc-front .entry-title{max-width:22ch;font-size:clamp(2rem,1.4rem + 3vw,3.25rem);line-height:1.08;letter-spacing:-.025em}
.tpt-home-hero{display:grid;gap:var(--tpt-s6);align-items:center;padding-block:var(--tpt-s3) var(--tpt-s7)}
.tpt-home-hero>*{min-width:0}
.tpt-home-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 var(--tpt-s3);padding:4px 12px;border:1px solid var(--tpt-blue-100);border-radius:999px;background:#fff;color:var(--tpt-blue);font-size:.8125rem;font-weight:700}
.tpt-home-highlight{background:linear-gradient(transparent 62%,rgba(255,199,44,.6) 0);color:inherit;font-style:normal}
.tpt-home-lead{max-width:38em;margin:0 0 var(--tpt-s5);color:var(--tpt-text);font-size:clamp(1.0625rem,1rem + .4vw,1.25rem)}
.tpt-home-actions{display:flex;flex-wrap:wrap;gap:var(--tpt-s3);margin:0 0 var(--tpt-s4)}
@media (max-width:599.98px){
	.tpt-home-actions .tpt-btn{flex:1 1 100%}
}
.tpt-home-note{margin:0;color:var(--tpt-text);font-size:.875rem}
.tpt-home-demo{padding:var(--tpt-s5);border:1px solid var(--tpt-line);border-radius:var(--tpt-r-lg);background:#fff;box-shadow:var(--tpt-sh-2)}
.tpt-home-demo__q{margin:0 0 var(--tpt-s3);color:var(--tpt-ink);font-weight:700}
.tpt-home-demo__a{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;padding:10px 12px;border:2px solid var(--tpt-line-2);border-radius:var(--tpt-r);color:var(--tpt-ink);font-size:.9375rem}
.tpt-home-demo__a.is-correct{border-color:var(--tpt-ok);background:var(--tpt-ok-bg)}
.tpt-home-demo__a.is-correct::after{content:"✓ Bonne réponse";margin-left:auto;padding:3px 8px;border-radius:999px;background:var(--tpt-ok);color:#fff;font-size:.75rem;font-weight:700;white-space:nowrap}
.entry-content .tpt-home-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:var(--tpt-s3);margin:var(--tpt-s6) 0 0;padding:0;list-style:none}
.tpt-home-trust>*{margin:0;padding:var(--tpt-s4);border:1px solid var(--tpt-line);border-radius:var(--tpt-r);background:#fff;font-size:.9375rem;line-height:1.45}
.tpt-home-trust__value,.tpt-home-trust li>strong:first-child{display:block;color:var(--tpt-ink);font-size:1.0625rem;font-weight:800;line-height:1.3}
.tpt-home-trust__value{font-size:1.25rem}
.tpt-home-trust__label{display:block;margin-top:4px;color:var(--tpt-text);font-size:.875rem;line-height:1.4}
.tpt-home-section,.tpt-home-cta{padding-block:var(--tpt-s7)}
.tpt-home-section--alt{--band:var(--tpt-bg)}
.tpt-home-section__head{max-width:46rem;margin:0 0 var(--tpt-s5)}
.entry-content .tpt-home-section__head h2,.tpt-home-cta h2{margin:0 0 var(--tpt-s2);font-size:clamp(1.5rem,1.25rem + 1.2vw,2.125rem)}
.tpt-home-section__head p{margin:0}
.tpt-home-grid{display:grid;gap:var(--tpt-s4)}
.tpt-home-card{position:relative;height:100%;padding:var(--tpt-s5);border:1px solid var(--tpt-line);border-radius:var(--tpt-r-lg);background:#fff;transition:border-color .15s,box-shadow .15s}
.entry-content .tpt-home-card h3{margin:0 0 6px;font-size:1.125rem}
.tpt-home-card p{margin:0;font-size:.9375rem}
.tpt-home-card__icon{display:grid;place-items:center;width:44px;height:44px;margin:0 0 var(--tpt-s3);border-radius:var(--tpt-r);background:var(--tpt-blue-50);color:var(--tpt-blue);font-weight:800}
.tpt-home-card--link a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.tpt-home-card--link:hover{border-color:var(--tpt-blue);box-shadow:var(--tpt-sh-2)}
.tpt-home-card--link:focus-within{outline:3px solid var(--tpt-focus);outline-offset:2px}
.tpt-home-card--link a:focus-visible{outline:none}
/* Chapitres : chaque li est une carte numérotée ; titre en strong, puis liens vers les leçons (ou un lien unique). */
.entry-content .tpt-home-chapters{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:var(--tpt-s3);margin:0 0 var(--tpt-s5);padding:0;list-style:none;counter-reset:tpt-chap}
.tpt-home-chapters>li{position:relative;margin:0;padding:14px 16px 14px 60px;border:1px solid var(--tpt-line);border-radius:var(--tpt-r);background:#fff;font-size:.9375rem;line-height:1.5;counter-increment:tpt-chap}
.tpt-home-chapters>li::before{content:counter(tpt-chap);content:counter(tpt-chap) / "";position:absolute;top:14px;left:16px;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--tpt-blue-50);color:var(--tpt-blue);font-size:.875rem;font-weight:800}
.tpt-home-chapters strong,.tpt-home-chapters>li>a:only-child{display:block;color:var(--tpt-ink);font-size:1rem;font-weight:700}
.tpt-home-chapters small{display:block;color:var(--tpt-muted);font-size:.8125rem;font-weight:500}
.entry-content .tpt-home-steps{display:grid;gap:var(--tpt-s4);margin:0;padding:0;list-style:none;counter-reset:tpt-step}
.tpt-home-steps>li{position:relative;margin:0;padding:var(--tpt-s5) var(--tpt-s5) var(--tpt-s5) 76px;border:1px solid var(--tpt-line);border-radius:var(--tpt-r-lg);background:#fff;counter-increment:tpt-step}
.tpt-home-steps>li::before{content:counter(tpt-step);content:counter(tpt-step) / "";position:absolute;top:var(--tpt-s5);left:var(--tpt-s5);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--tpt-blue);color:#fff;font-weight:800}
.tpt-home-steps>li>strong:first-child,.entry-content .tpt-home-steps h3{display:block;margin:0 0 6px;color:var(--tpt-ink);font-size:1.125rem}
.tpt-home-steps p{margin:0 0 8px;font-size:.9375rem}
.tpt-home-steps>li>:last-child{margin-bottom:0}
/* Raisons de confiance : liste de cartes */
.entry-content .tpt-home-reasons{display:grid;gap:var(--tpt-s3);margin:0 0 var(--tpt-s5);padding:0;list-style:none}
.tpt-home-reasons>li{margin:0;padding:var(--tpt-s4);border:1px solid var(--tpt-line);border-radius:var(--tpt-r);background:#fff;font-size:.9375rem}
.tpt-home-reasons strong{display:block;margin-bottom:4px;color:var(--tpt-ink);font-size:1rem}
.tpt-home-offer{display:grid;gap:var(--tpt-s6);align-items:center}
.tpt-home-offer .tpt-offer{margin:0 auto}
.tptc-front .entry-content>.tpt-faq,.tpt-home-faq{max-width:52rem;margin-inline:auto}
.tptc-front .entry-content>.tpt-faq{padding-block:var(--tpt-s7) 0}
.tpt-home-cta{--band:var(--tpt-blue);--tpt-focus:var(--tpt-yellow);color:#fff;text-align:center}
.tptc-front .entry-content>.tpt-home-cta:last-child{margin-bottom:calc(-1 * var(--tptc-pad-bottom))}
.tpt-home-cta h2{color:#fff}
.tpt-home-cta p{max-width:40em;margin-inline:auto;color:var(--tpt-blue-50)}
.tpt-home-cta .tpt-home-actions{justify-content:center;margin:var(--tpt-s5) 0 0}
.tpt-home-cta .tpt-btn--primary{--b-bg:#fff;--b-fg:var(--tpt-blue);--b-bd:#fff;box-shadow:none}
.tpt-home-cta .tpt-btn--primary:hover{--b-bg:var(--tpt-blue-50);--b-bd:var(--tpt-blue-50)}
.tpt-home-cta .tpt-btn:not(.tpt-btn--primary){--b-bg:transparent;--b-fg:#fff;--b-bd:rgba(255,255,255,.75)}
.tpt-home-cta .tpt-btn:not(.tpt-btn--primary):hover{--b-bg:rgba(255,255,255,.12)}
@media (min-width:600px){
	.tpt-home-grid--2,.tpt-home-grid--3,.tpt-home-grid--4,.entry-content .tpt-home-reasons{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
	.tptc-front .entry-header{padding-top:var(--tpt-s8)}
	.tpt-home-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--tpt-s7);padding-bottom:var(--tpt-s8)}
	.tpt-home-trust{grid-template-columns:repeat(4,minmax(0,1fr))}
	.tpt-home-section,.tpt-home-cta{padding-block:var(--tpt-s8)}
	.tpt-home-grid--3,.entry-content .tpt-home-reasons{grid-template-columns:repeat(3,minmax(0,1fr))}
	.tpt-home-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
	.entry-content .tpt-home-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
	.tpt-home-steps>li{padding:76px var(--tpt-s5) var(--tpt-s5)}
	.tpt-home-offer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--tpt-s7)}
}
