/* ── Design tokens (reprend le site) ── */
:root {
    --blue:    #0173B2;
    --orange:  #DE8F05;
    --pink:    #CC78BC;
    --brown:   #CA9161;
    --lblue:   #56B4E9;
    --bg:      #f9f9f9;
    --white:   #ffffff;
    --text:    #1a1a1a;
    --muted:   #4f4f4f;   /* assombri pour projection */
    --radius:  20px;
    --shadow:  0 4px 18px rgba(0,0,0,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 17px;   /* base augmentée pour lisibilité en projection */
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Slideshow container ── */
#deck {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    padding: 34px 52px;   /* légèrement réduit pour maximiser l'espace contenu */
    overflow-y: auto;
    overflow-x: hidden;
}
.slide.active { display: flex; }

/* ── Nav bar ── */
#navbar {
    background: var(--white);
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
#navbar button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
}
#navbar button:hover { background: var(--orange); }
#navbar button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
#navbar button:disabled { background: #ccc; cursor: default; }
#counter { color: var(--text); font-size: 1rem; font-weight: 600; letter-spacing: 0.5px; }

.navbar-links { display: flex; align-items: center; gap: 10px; }
.navbar-link {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: background 0.2s, color 0.2s;
}
.navbar-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.navbar-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (max-width: 600px) { .navbar-links { display: none; } }

/* ── Mouvement réduit ── */
@media (prefers-reduced-motion: reduce) {
    #navbar button { transition: none; }
}

@media (max-width: 600px) {
    #navbar { padding: 10px 16px; }
    #navbar button {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ── Responsive mobile ── */
@media (max-width: 700px) {
    .slide {
        padding: 20px 16px;
    }
    .slide-title { font-size: 1.35rem; }
    .slide-subtitle { font-size: 0.88rem; margin-bottom: 16px; }

    /* Cover */
    #s1 h1 { font-size: 1.5rem; }
    #s1 p  { font-size: 0.92rem; }

    /* Two-column → single column */
    .two-col { grid-template-columns: 1fr; gap: 14px; }

    /* Tables scroll horizontalement */
    table { font-size: 0.78rem; }
    td, th { padding: 7px 8px; }
    .slide .chart-wrap + table,
    .slide > table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Cartes */
    .cards { gap: 12px; }
    .card { padding: 14px 16px; }
    .card .card-num { font-size: 1.8rem; }

    /* Programmes */
    .prog-row { flex-wrap: wrap; gap: 6px; }
    .prog-note { flex: 1 1 100%; }

    /* Method list */
    .method-list li { padding: 10px 12px; gap: 10px; }
    .method-list .icon { font-size: 1.2rem; }

    /* Chart */
    .chart-wrap { padding: 12px; }
    .chart-wrap[style*="max-height"] { max-height: 220px !important; }

    /* Commentaires */
    .comment-block { padding: 10px 12px; }
    .comment-block p { font-size: 0.82rem; }

    /* Conclusion */
    .conclu-list li { font-size: 0.88rem; padding: 10px 12px; }
}

/* ── Pill badge ── */
.pill {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: rgba(1,115,178,0.07);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ── Slide titles ── */
.slide-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.slide-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 24px;
}

/* ── Cover slide ── */
#s1 {
    background: linear-gradient(145deg, #0173B2 0%, #014f7e 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}
#s1 .logo-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-bottom: 8px;
}
#s1 .logo-wrap img { width: 120px; display: block; }
#s1 h1 { font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1.2; }
#s1 p  { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 640px; }
#s1 .tag {
    background: var(--orange);
    color: #fff;
    border-radius: 30px;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}
#s1 .date { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ── Card grid ── */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    flex: 1 1 200px;
    border-top: 4px solid var(--blue);
}
.card.orange { border-top-color: var(--orange); }
.card.pink   { border-top-color: var(--pink); }
.card.brown  { border-top-color: var(--brown); }
.card .card-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}
.card.orange .card-num { color: var(--orange); }
.card.pink   .card-num { color: var(--pink); }
.card.brown  .card-num { color: var(--brown); }
.card .card-label { font-size: 0.95rem; color: var(--muted); margin-top: 4px; }

/* ── Score table ── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 8px;
}
th {
    background: var(--blue);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
th:first-child { border-radius: 10px 0 0 0; }
th:last-child  { border-radius: 0 10px 0 0; }
td { padding: 10px 14px; border-bottom: 1px solid #ececec; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f5f8fc; }

.badge {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border-radius: 20px;
    padding: 3px 14px;
    font-weight: 700;
    font-size: 0.95rem;
}
.badge.first { background: var(--orange); }

/* ── Chart wrapper ── */
.chart-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 8px;
    flex: 1;
}

/* ── Two-col layout ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

/* ── Method list ── */
.method-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 8px;
}
.method-list li {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.method-list .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.method-list strong { display: block; color: var(--blue); margin-bottom: 2px; font-size: 1rem; }
.method-list span { font-size: 1rem; color: var(--muted); line-height: 1.45; }

/* ── Programme mention table ── */
.prog-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ececec; }
.prog-row:last-child { border-bottom: none; }
.prog-name { font-weight: 600; flex: 1; }
.prog-badge { font-size: 1.1rem; }
.prog-note  { font-size: 0.93rem; color: var(--muted); flex: 2; }

/* ── Questionnaire : questions et réponses pondérées ── */
.q-block {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
.q-block:last-child { border-bottom: none; margin-bottom: 0; }

.q-texte {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.q-prec {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.88rem;
}

.q-reponses {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
}
.q-reponse {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}
.q-rep-texte { flex: 1; }

.q-pond {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    background: var(--blue);
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.q-pond-empty {
    background: #e0e0e0;
    color: #999;
}
.q-pond-zero {
    background: #f5f5f5;
    color: #bbb;
    font-weight: 600;
}

/* ── Commentaires analytiques sur les slides graphiques ── */
.comment-block {
    margin-top: 14px;
    background: #f5f8fc;
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comment-block p {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.55;
}
.comment-block p strong { color: var(--blue); }

/* ── Conclusion bullets ── */
.conclu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.conclu-list li {
    background: var(--white);
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    padding: 11px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1.02rem;
    line-height: 1.5;
}
.conclu-list li.orange { border-left-color: var(--orange); }
.conclu-list li.pink   { border-left-color: var(--pink); }
.conclu-list li strong { color: var(--blue); }
.conclu-list li.orange strong { color: var(--orange); }
