/* ═══════════════════════════════════════════════════════════════
   Quiz Ayiti — PAGES INTERNES (hubs 9e / NS4 / Concours, À propos)
   Style clair & moderne, cohérent avec la page d'accueil.
   Tout est préfixé « .qp » — n'affecte ni la navbar ni les quiz.
   ═══════════════════════════════════════════════════════════════ */
.qp {
    --qp-blue:      #1b53f0;
    --qp-blue-dark: #1443cc;
    --qp-blue-soft: #eef2fe;
    --qp-tint:      #f4f7ff;
    --qp-ink:       #0e1a33;
    --qp-muted:     #5a6478;
    --qp-line:      #e8ebf3;
    --qp-red:       #d21034;
    --qp-green:     #12b76a;
    --qp-gold:      #d98a00;
    --qp-indigo:    #4b3fd1;
    --qp-white:     #fff;

    font-family: 'Inter', system-ui, sans-serif;
    color: var(--qp-ink);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.qp h1, .qp h2, .qp h3 {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--qp-ink);
}
.qp .hl { color: var(--qp-blue); }

/* révélation douce */
.qp [data-rv] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.qp [data-rv].shown { opacity: 1; transform: none; }

/* ── En-tête de page ────────────────────────────────────────── */
.qp-header { text-align: center; padding: 2.75rem 0 2.25rem; }
.qp-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--qp-blue-soft); color: var(--qp-blue);
    font-size: .78rem; font-weight: 700; letter-spacing: .03em;
    padding: .45rem .95rem; border-radius: 999px; margin-bottom: 1rem;
    max-width: 100%;
}
.qp-eyebrow .ico { width: 15px; height: 15px; flex-shrink: 0; }
.qp-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .6rem; }
.qp-header .qp-sub { color: var(--qp-muted); font-size: 1.05rem; max-width: 40rem; margin: 0 auto; }
.qp-welcome {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #eafaf2; color: #0b7a4b; font-weight: 600;
    padding: .5rem 1rem; border-radius: 999px; margin-top: 1rem; font-size: .95rem;
}
.qp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.1rem; }
.qp-tag {
    background: var(--qp-tint); color: var(--qp-muted);
    font-size: .74rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--qp-line);
}

/* ── Grille de types d'exercices (cartes) ───────────────────── */
.qp-section-title {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.5rem 0 1.4rem;
}
.qp-section-title .qp-st-ico {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--qp-blue-soft); color: var(--qp-blue);
    display: flex; align-items: center; justify-content: center;
}
.qp-section-title .qp-st-ico .ico { width: 22px; height: 22px; }
.qp-section-title h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.qp-section-title p { margin: 0; color: var(--qp-muted); font-size: .9rem; }

.qp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.qp-card {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
    background: var(--qp-white);
    border: 1.5px solid var(--qp-line);
    border-radius: 20px;
    padding: 1.6rem 1.5rem;
    text-decoration: none; color: inherit;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .22s ease;
}
.qp-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(14,26,51,.12); }
.qp-card-ico {
    width: 54px; height: 54px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    background: var(--qp-blue-soft); color: var(--qp-blue);
}
.qp-card-ico .ico { width: 27px; height: 27px; }
.qp-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .35rem; }
.qp-card p { color: var(--qp-muted); font-size: .88rem; line-height: 1.5; margin-bottom: 1.1rem; flex: 1; }
.qp-card-cta {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 700; font-size: .9rem; color: var(--qp-blue);
}
.qp-card-cta .ico { width: 15px; height: 15px; transition: transform .2s ease; }
.qp-card:hover .qp-card-cta .ico { transform: translateX(4px); }
.qp-badge {
    position: absolute; top: 1.2rem; right: 1.2rem;
    font-size: .66rem; font-weight: 800; letter-spacing: .04em;
    padding: .28rem .6rem; border-radius: 999px;
    background: var(--qp-blue); color: #fff;
}

/* accents par carte */
.qp-a-indigo .qp-card-ico { background: #eeecfb; color: var(--qp-indigo); }
.qp-a-indigo:hover { border-color: var(--qp-indigo); }
.qp-a-indigo .qp-card-cta { color: var(--qp-indigo); }
.qp-a-indigo .qp-badge { background: var(--qp-indigo); }

.qp-a-red .qp-card-ico { background: #fdeaee; color: var(--qp-red); }
.qp-a-red:hover { border-color: var(--qp-red); }
.qp-a-red .qp-card-cta { color: var(--qp-red); }

.qp-a-green .qp-card-ico { background: #eafaf2; color: var(--qp-green); }
.qp-a-green:hover { border-color: var(--qp-green); }
.qp-a-green .qp-card-cta { color: var(--qp-green); }

.qp-a-gold .qp-card-ico { background: #fff4e2; color: var(--qp-gold); }
.qp-a-gold:hover { border-color: var(--qp-gold); }
.qp-a-gold .qp-card-cta { color: var(--qp-gold); }

.qp-a-slate .qp-card-ico { background: #eef1f6; color: #475467; }
.qp-a-slate:hover { border-color: #475467; }
.qp-a-slate .qp-card-cta { color: #475467; }

/* ── Statistiques ───────────────────────────────────────────── */
.qp-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem; margin-top: 2rem;
}
.qp-stat {
    background: var(--qp-tint); border: 1px solid var(--qp-line);
    border-radius: 16px; padding: 1.3rem 1rem; text-align: center;
}
.qp-stat-value { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--qp-blue); line-height: 1; }
.qp-stat-label { display: block; margin-top: .35rem; font-size: .82rem; color: var(--qp-muted); }

/* ── Bloc SEO / texte ───────────────────────────────────────── */
.qp-prose {
    background: var(--qp-white); border: 1.5px solid var(--qp-line);
    border-radius: 20px; padding: 1.9rem 2rem; margin-top: 2rem;
}
.qp-prose h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .7rem; }
.qp-prose p { color: var(--qp-muted); font-size: .95rem; line-height: 1.75; }
.qp-prose p + p { margin-top: .7rem; }
.qp-prose strong { color: var(--qp-ink); }

/* ── À propos ───────────────────────────────────────────────── */
.qp-about-hero { text-align: center; padding: 2.5rem 0 2rem; }
.qp-about-hero img { height: 74px; width: auto; margin-bottom: 1rem; }
.qp-about-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: .6rem; }
.qp-about-hero .hl-blue { color: var(--qp-blue); }
.qp-about-hero .hl-red  { color: var(--qp-red); }
.qp-about-hero .qp-tagline { color: var(--qp-muted); font-size: 1.05rem; display: inline-flex; align-items: center; gap: .4rem; }
.qp-about-hero .qp-tagline .ico { width: 18px; height: 18px; }
.qp-about-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.qp-pill { font-size: .82rem; font-weight: 700; padding: .4rem .9rem; border-radius: 999px; }
.qp-pill-blue  { background: var(--qp-blue-soft); color: var(--qp-blue); }
.qp-pill-green { background: #eafaf2; color: #0b7a4b; }
.qp-pill-red   { background: #fdeaee; color: var(--qp-red); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
    .qp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .qp { padding: 0 1.1rem 3rem; }
    .qp-section-title { justify-content: center; text-align: center; flex-direction: column; gap: .5rem; }
    /* textes centrés dans les cartes sur petits écrans */
    .qp-card { align-items: center; text-align: center; }
    .qp-card-ico { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
    .qp-grid { grid-template-columns: 1fr; }
    .qp-header { padding: 1.75rem 0 1.5rem; }
    .qp-prose { padding: 1.5rem 1.3rem; }
    .qp-stat-value { font-size: 1.5rem; }
}
@media (max-width: 380px) {
    .qp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .qp [data-rv] { opacity: 1; transform: none; transition: none; }
}

/* ── À propos : chiffres, mission, auteur ───────────────────── */
.qp-mission { background: var(--qp-tint); border: 1.5px solid var(--qp-line); border-radius: 20px; padding: 1.9rem 2rem; margin-top: 2rem; }
.qp-mission h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .7rem; }
.qp-mission p { color: var(--qp-muted); font-size: .97rem; line-height: 1.85; }
.qp-mission strong { color: var(--qp-ink); }
.qp-mission .ico { width: 16px; height: 16px; vertical-align: -.15em; color: var(--qp-blue); }

.qp-author {
    display: grid; grid-template-columns: auto 1fr; gap: 1.75rem;
    align-items: start;
    background: var(--qp-white); border: 1.5px solid var(--qp-line);
    border-radius: 20px; padding: 2rem; margin-top: 2rem;
}
.qp-author-photo { position: relative; flex-shrink: 0; }
.qp-author-photo img { width: 116px; height: 116px; border-radius: 20px; object-fit: cover; display: block; }
.qp-author-status { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--qp-green); border: 3px solid #fff; }
.qp-author h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .3rem; }
.qp-author-role { display: inline-flex; align-items: center; gap: .4rem; color: var(--qp-blue); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.qp-author-role .ico { width: 16px; height: 16px; }
.qp-author-bio { color: var(--qp-muted); font-size: .95rem; line-height: 1.75; margin-bottom: 1.1rem; }
.qp-author-bio strong { color: var(--qp-ink); }
.qp-author-bio .ico { width: 15px; height: 15px; vertical-align: -.12em; }
.qp-skills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.qp-skill { background: var(--qp-blue-soft); color: var(--qp-blue); font-size: .78rem; font-weight: 600; padding: .32rem .75rem; border-radius: 999px; }
.qp-author-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.qp-alink {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
    text-decoration: none; border: 1.5px solid var(--qp-line); color: var(--qp-ink);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.qp-alink:hover { transform: translateY(-2px); border-color: var(--qp-blue); color: var(--qp-blue); }
.qp-alink .ico { width: 16px; height: 16px; }
.qp-alink-primary { background: var(--qp-blue); color: #fff; border-color: var(--qp-blue); }
.qp-alink-primary:hover { background: var(--qp-blue-dark); color: #fff; border-color: var(--qp-blue-dark); }

@media (max-width: 560px) {
    .qp-author { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1.6rem 1.3rem; }
    .qp-author-role { justify-content: center; }
    .qp-skills, .qp-author-links { justify-content: center; }
    .qp-mission { padding: 1.5rem 1.3rem; }
}
