/* ============================================================
   pages.css — pages dédiées (référencement) : ceintures, cartes, évaluations, livret.
   Elles reprennent les blocs de l'accueil (.product-row, .stack, .feat, .faq, .cta-final) ;
   ce fichier n'ajoute que leur en-tête et ce que l'accueil n'a pas.
   ============================================================ */

.page-hero {
    padding: 72px 0 24px;
    text-align: center;
}
.page-hero .wrap { max-width: 860px; }
.page-hero h1 {
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.08;
    font-weight: 400;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.page-hero .lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 auto 30px;
    max-width: 680px;
    text-wrap: pretty;
}
.page-hero .hero-cta { justify-content: center; }
@media (max-width: 640px) {
    .page-hero { padding: 44px 0 8px; }
    .page-hero .lead { font-size: 17px; }
}

/* Sur une page dédiée, le titre d'un bloc est un h2 (le h1 est en tête) : même allure que le h3 de l'accueil. */
.product-text h2 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
@media (max-width: 640px) {
    .product-text h2 { font-size: 25px; }
}

/* Texte suivi, entre deux blocs à captures. */
.prose {
    max-width: 808px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 17px;
    line-height: 1.65;
}
.prose h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px;
    text-wrap: balance;
}
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* L'échelle des sept ceintures, nommées. */
.belt-ladder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.belt-ladder li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 14px;
}
.belt-ladder i {
    width: 22px;
    height: 8px;
    border-radius: 3px;
    display: block;
}
.belt-ladder .white { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.belt-ladder .yellow { background: var(--belt-yellow); }
.belt-ladder .orange { background: var(--belt-orange); }
.belt-ladder .green { background: var(--belt-green); }
.belt-ladder .blue { background: var(--belt-blue); }
.belt-ladder .black { background: var(--belt-black); }
.belt-ladder .red { background: var(--belt-red); }

/* Les générateurs, par domaine. */
.gen-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.gen-group {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
}
.gen-group h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px;
}
.gen-group ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}
@media (max-width: 1000px) {
    .gen-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .gen-groups { grid-template-columns: 1fr; }
}

/* « Découvre aussi » : les autres pages, en cartes cliquables. */
a.feat {
    display: block;
    color: inherit;
    text-decoration: none;
}
.feat .feat-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--primary);
}
.feat .feat-more .material-symbols-rounded { font-size: 16px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
    .features.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .features.four { grid-template-columns: 1fr; }
}

/* Lien « En savoir plus » sous un bloc de l'accueil. */
.product-text .more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
}
.product-text .more:hover { text-decoration: underline; }
.product-text .more .material-symbols-rounded { font-size: 18px; }

/* ============================================================
   PAGE INTROUVABLE (Views/Shared/NotFound.cshtml) : la carte auto-corrective
   « 400 + 4 = ? » à retourner (.flip-card de sections.css), puis les raccourcis
   ============================================================ */
.notfound {
    display: grid;
    justify-items: center;
    text-align: center;
    padding-top: 72px;
    padding-bottom: 96px;
}
.notfound-card {
    width: 320px;
    max-width: 100%;
    cursor: pointer;
}
/* Les faces sont dessinées ici (les cartes de l'accueil sont des images) : la carte reste blanche
   comme une carte imprimée, avec le bandeau de la ceinture en haut. */
.notfound-face {
    display: grid;
    place-content: center;
    gap: 2px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-card);
    color: var(--text);
}
.notfound-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--belt-yellow);
}
.notfound-face.is-back::before { background: var(--belt-green); }
.notfound-question { font-size: 38px; }
.notfound-answer {
    font-family: var(--font);
    font-size: 76px;
    line-height: 1;
    background: var(--grad-belts);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notfound-answer-label { font-size: 17px; color: var(--text-muted); }
.notfound .flip-hint { margin: 18px 0 40px; }
.notfound h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    margin: 0 0 12px;
}
.notfound-lead {
    max-width: 540px;
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 17px;
}
.notfound-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 860px;
    text-align: left;
}
.notfound-links a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.notfound-links a:hover,
.notfound-links a:focus-visible {
    border-color: var(--primary-medium);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.notfound-links a:hover b { color: var(--primary); }
.notfound-links .material-symbols-rounded { font-size: 22px; color: var(--primary); }
.notfound-links b { display: block; font-weight: 400; font-size: 15px; }
.notfound-links small { color: var(--text-muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
    .notfound-links a:hover,
    .notfound-links a:focus-visible { transform: none; }
}
@media (max-width: 760px) {
    .notfound { padding-top: 48px; }
    .notfound-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .notfound-links { grid-template-columns: 1fr; }
}
