/* ===== Déclic : culture générale illustrée (js/jeux/declic.js) =====
   Registre plus sobre que le reste du site : peu d'arrondis, typographie éditoriale, aucun emoji. */
.dc, .dc-voile {
  --dc-acc: var(--pink-deep);
  --dc-surface: var(--card);
  --dc-sous: color-mix(in srgb, var(--bg-2) 70%, var(--card));
  --dc-trait: var(--line);
  --dc-r: 14px;
  --dc-c0: #c2577a; --dc-c1: #c98f1e; --dc-c2: #4f8a5e; --dc-c3: #7a5c9e; --dc-c4: #3d7d8a; --dc-c5: #b06a4c;
  --dc-bon: #2f7d4f; --dc-bon-f: color-mix(in srgb, #2f7d4f 12%, var(--card));
  --dc-non: #b4384f; --dc-non-f: color-mix(in srgb, #b4384f 10%, var(--card));
}
:root[data-theme="dark"] .dc, :root[data-theme="dark"] .dc-voile { --dc-c0: #ef8fae; --dc-c1: #f0c35a; --dc-c2: #8cc79a; --dc-c3: #b79be0; --dc-c4: #7cc3cf; --dc-c5: #e3a184; --dc-bon: #7fd19c; --dc-non: #f08a9c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dc, :root:not([data-theme="light"]) .dc-voile { --dc-c0: #ef8fae; --dc-c1: #f0c35a; --dc-c2: #8cc79a; --dc-c3: #b79be0; --dc-c4: #7cc3cf; --dc-c5: #e3a184; --dc-bon: #7fd19c; --dc-non: #f08a9c; } }

.dc { max-width: 760px; margin: 0 auto; }
.dc-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.dc .btn, .dc-voile .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 12px; }
.dc .btn:not(.ghost), .dc-voile .btn:not(.ghost) { box-shadow: 0 3px 0 color-mix(in srgb, var(--pink-deep) 60%, #000); }
.dc .btn:not(.ghost):active { box-shadow: none; transform: translateY(3px); }
.dc-lien { font: inherit; font-weight: 700; color: var(--dc-acc); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dc-lien:hover { text-decoration-thickness: 2px; }
.dc-note { color: var(--ink-soft); font-size: .92rem; margin: .4em 0; }
.dc-h { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.dc-entree { animation: dc-entree .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dc-entree { from { opacity: 0; transform: translateY(8px); } }

/* barre d'outils */
.dc-barre-outils { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.dc-barre-outils .dc-lien[hidden] { display: block; visibility: hidden; }
.dc-outils-d { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dc-xp { font-size: .86rem; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dc-icbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--dc-trait); background: var(--dc-surface); color: var(--ink); cursor: pointer; padding: 0; }
.dc-icbtn:hover { border-color: var(--ink-soft); }
.dc-icbtn.plein { background: var(--dc-acc); border-color: var(--dc-acc); color: #fff; }
.dc-icbtn[disabled] { opacity: .5; cursor: default; }

/* accueil */
.dc-tete { padding: 8px 0 18px; }
.dc-surtitre { margin: 0 0 6px; color: var(--dc-acc); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.dc-tete h2 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); margin: 0 0 .35em; letter-spacing: -.01em; }
.dc-tete h2 em { color: var(--dc-acc); }
.dc-chapo { margin: 0; color: var(--ink-soft); max-width: 52ch; font-size: 1.02rem; line-height: 1.55; }
.dc-saisie { display: flex; gap: 8px; }
.dc-saisie input, .dc-ql input { font: inherit; font-size: 16px; color: var(--ink); background: var(--dc-surface); border: 1.5px solid var(--dc-trait); border-radius: 12px; padding: 12px 14px; flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; }
.dc-saisie input:focus, .dc-ql input:focus { outline: 2px solid color-mix(in srgb, var(--dc-acc) 55%, transparent); outline-offset: 1px; border-color: var(--dc-acc); }
.dc-saisie .btn { flex: none; padding-inline: 20px; }
.dc-etat { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); margin: 12px 0 22px; }
.dc-pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); opacity: .5; flex: none; }
.dc-etat.on .dc-pastille { background: var(--dc-bon); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--dc-bon) 20%, transparent); }
.dc-prets { display: grid; gap: 14px; margin-bottom: 28px; }
.dc-grille { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dc-grille { grid-template-columns: repeat(2, 1fr); } }
.dc-tuile { font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 76px 1fr; gap: 0; padding: 0; overflow: hidden; background: var(--dc-surface); border: 1px solid var(--dc-trait); border-radius: var(--dc-r); transition: border-color .15s, transform .15s; min-height: 92px; }
.dc-tuile:hover { border-color: color-mix(in srgb, var(--dc-acc) 50%, var(--dc-trait)); transform: translateY(-2px); }
.dc-tuile-img { position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--dc-acc) 22%, var(--card)), color-mix(in srgb, var(--gold) 22%, var(--card))); display: grid; place-items: center; overflow: hidden; }
.dc-tuile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-tuile-ini { font-family: var(--font-title); font-size: 2rem; color: var(--dc-acc); }
.dc-tuile-txt { padding: 12px 14px; display: grid; gap: 3px; align-content: center; }
.dc-tuile-txt b { font-family: var(--font-title); font-weight: 600; font-size: 1.04rem; line-height: 1.25; }
.dc-tuile-txt span { color: var(--ink-soft); font-size: .86rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-tuile-txt small { color: var(--dc-acc); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.dc-tuile.une { grid-template-columns: 1fr; }
.dc-tuile.une .dc-tuile-img { aspect-ratio: 16 / 7; }
.dc-tuile.une .dc-tuile-txt { padding: 16px 18px 18px; }
.dc-tuile.une .dc-tuile-txt b { font-size: clamp(1.25rem, 4.6vw, 1.6rem); }
.dc-tuile.une .dc-tuile-txt span { -webkit-line-clamp: 3; font-size: .95rem; }
@media (min-width: 700px) { .dc-tuile.une { grid-template-columns: 1.1fr 1fr; } .dc-tuile.une .dc-tuile-img { aspect-ratio: auto; min-height: 220px; } .dc-tuile.une .dc-tuile-txt { padding: 24px; } }
.dc-squel { height: 92px; border-radius: var(--dc-r); background: linear-gradient(90deg, var(--dc-sous) 0%, var(--card) 50%, var(--dc-sous) 100%); background-size: 200% 100%; animation: dc-lueur 1.4s linear infinite; }
@keyframes dc-lueur { to { background-position: -200% 0; } }
.dc-bloc { margin: 26px 0; }
.dc-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-puces.centre { justify-content: center; }
.dc-puce { font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--dc-surface); border: 1px solid var(--dc-trait); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 40px; }
.dc-puce:hover { border-color: var(--dc-acc); color: var(--dc-acc); }
.dc-moi { padding: 16px 18px; border: 1px solid var(--dc-trait); border-radius: var(--dc-r); background: var(--dc-surface); }
.dc-palier > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dc-palier b { font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; }
.dc-palier span { color: var(--ink-soft); font-size: .86rem; font-variant-numeric: tabular-nums; }
.dc-jauge { height: 6px; border-radius: 99px; background: var(--dc-sous); overflow: hidden; }
.dc-jauge i { display: block; height: 100%; width: 0; background: var(--dc-acc); border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.dc-hist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.dc-hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--dc-trait); padding: 6px 0; }
.dc-hist li .dc-lien { text-align: left; color: var(--ink); text-decoration-color: var(--dc-trait); }
.dc-hist li span { color: var(--ink-soft); font-weight: 800; font-variant-numeric: tabular-nums; }

/* attente */
.dc-attente { text-align: center; padding: 48px 8px; max-width: 460px; margin: 0 auto; }
.dc-attente h3 { font-size: clamp(1.3rem, 5vw, 1.7rem); margin: 18px 0 6px; }
.dc-phase { color: var(--ink-soft); min-height: 1.5em; margin: 0 0 14px; }
.dc-jauge.att i { width: 8%; }
.dc-anneau { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--dc-sous); border-top-color: var(--dc-acc); animation: dc-tour 0.9s linear infinite; }
@keyframes dc-tour { to { transform: rotate(1turn); } }

/* partie */
.dc-entete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.dc-entete > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dc-entete small { min-width: 0; font-weight: 800; color: var(--ink); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-entete span { color: var(--ink-soft); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc-progres { display: flex; gap: 4px; }
.dc-progres i { flex: 1; height: 4px; border-radius: 99px; background: var(--dc-sous); }
.dc-progres i.cour { background: var(--ink-soft); }
.dc-progres i.ok { background: var(--dc-bon); }
.dc-progres i.ko { background: var(--dc-non); }
.dc-carte { background: var(--dc-surface); border: 1px solid var(--dc-trait); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(74, 44, 58, .35); }
.dc-carte-corps { padding: 20px 18px 22px; }
@media (min-width: 640px) { .dc-carte-corps { padding: 28px 32px 30px; } }
.dc-photo { margin: 0; position: relative; background: var(--dc-sous); }
.dc-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dc-photo figcaption { position: absolute; right: 8px; bottom: 8px; font-size: .7rem; }
.dc-photo figcaption a { color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.dc-photo.cours { border-radius: var(--dc-r); overflow: hidden; margin: 6px 0 16px; }
.dc-titre { font-size: clamp(1.4rem, 5.4vw, 1.9rem); margin: 0 0 .35em; letter-spacing: -.01em; }
.dc-explic { font-size: 1.05rem; line-height: 1.6; margin: 0 0 18px; }
.dc-avant { text-align: center; margin: 14px 0 0; }

/* schémas */
.dc-schema { background: var(--dc-sous); border-radius: var(--dc-r); padding: 18px 16px; margin: 0 0 22px; overflow: hidden; }
.dc .c0, .dc-voile .c0 { --c: var(--dc-c0); } .dc .c1, .dc-voile .c1 { --c: var(--dc-c1); } .dc .c2, .dc-voile .c2 { --c: var(--dc-c2); }
.dc .c3, .dc-voile .c3 { --c: var(--dc-c3); } .dc .c4, .dc-voile .c4 { --c: var(--dc-c4); } .dc .c5, .dc-voile .c5 { --c: var(--dc-c5); }
.dc-gc { text-align: center; padding: 10px 0 4px; }
.dc-gc-v { font-family: var(--font-title); font-size: clamp(2.8rem, 13vw, 4.4rem); line-height: 1; color: var(--dc-acc); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dc-gc-u { font-weight: 800; margin-top: 6px; }
.dc-gc-l { color: var(--ink-soft); margin: 10px auto 0; max-width: 42ch; line-height: 1.5; }
.dc-barres { display: grid; gap: 12px; }
.dc-barre-t { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 5px; }
.dc-barre-t span { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-piste { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.dc-piste i { display: block; height: 100%; width: 0; background: var(--c); border-radius: inherit; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.dc-echelle svg { width: 100%; height: auto; display: block; overflow: visible; }
.dc-echelle text { font-family: var(--font-body); font-size: 15px; fill: var(--ink); }
.dc-echelle .dc-m { fill: var(--ink-soft); font-size: 13px; }
.dc-echelle .dc-et { font-weight: 800; }
.dc-axe { stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.dc-tick { stroke: var(--ink-soft); opacity: .6; }
.dc-pt { animation: dc-apparait .5s both; }
.dc-pt circle { fill: var(--c); stroke: var(--dc-sous); stroke-width: 3; }
.dc-tige { stroke: var(--c); stroke-width: 1.5; }
@keyframes dc-apparait { from { opacity: 0; } }
.dc-echelle .dc-note { text-align: center; font-size: .8rem; margin: 4px 0 0; }
@media (max-width: 520px) { .dc-echelle text { font-size: 19px; } .dc-echelle .dc-m { font-size: 16px; } }
.dc-frise { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid color-mix(in srgb, var(--dc-acc) 40%, transparent); display: grid; gap: 14px; }
.dc-frise li { position: relative; display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 12px; animation: dc-entree .4s both; }
.dc-frise li::before { content: ""; position: absolute; left: -25px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--dc-acc); box-shadow: 0 0 0 3px var(--dc-sous); }
.dc-frise b { font-family: var(--font-title); font-weight: 600; color: var(--dc-acc); font-variant-numeric: tabular-nums; }
.dc-frise p, .dc-pas p { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.dc-pas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dc-pas li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; animation: dc-entree .4s both; }
.dc-n { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: .85rem; background: var(--dc-acc); color: #fff; flex: none; }
.dc-vs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .dc-vs { grid-template-columns: 1fr 1fr; } }
.dc-vs > div { background: var(--dc-surface); border-radius: 12px; padding: 14px 16px; border-top: 3px solid var(--c); }
.dc-vs .c0 { --c: var(--dc-c0); } .dc-vs .c1 { --c: var(--dc-c4); }
.dc-vs h4 { margin: 0 0 8px; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.dc-vs ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; line-height: 1.45; }
.dc-radial { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.dc-radial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dc-rayon { stroke: var(--ink-soft); stroke-width: .5; stroke-dasharray: 1.6 1.4; opacity: .7; }
.dc-arc { fill: none; stroke: var(--dc-acc); stroke-width: .9; opacity: .8; }
.dc-fl { fill: var(--dc-acc); }
.dc-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; text-align: center; font-family: var(--font-title); font-weight: 600; font-size: clamp(.85rem, 3.4vw, 1.05rem); line-height: 1.2; }
.dc-nd { position: absolute; transform: translate(-50%, -50%); max-width: 36%; font: inherit; font-weight: 800; font-size: clamp(.68rem, 2.9vw, .84rem); line-height: 1.2; color: var(--ink); background: var(--dc-surface); border: 1.5px solid var(--dc-trait); border-radius: 10px; padding: 6px 8px; cursor: pointer; animation: dc-apparait .4s both; min-height: 34px; }
.dc-nd.sel { border-color: var(--dc-acc); background: var(--dc-acc); color: #fff; }
.dc-detail { min-height: 3em; margin: 12px 0 0; text-align: center; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.dc-detail b { color: var(--ink); }

/* question */
.dc-q h4 { font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 0 0 12px; }
.dc-choix { display: grid; gap: 8px; }
@media (min-width: 640px) { .dc-choix { grid-template-columns: 1fr 1fr; } }
.dc-choix button { font: inherit; text-align: left; color: var(--ink); background: var(--dc-surface); border: 1.5px solid var(--dc-trait); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; min-height: 54px; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.dc-choix button:hover:not([disabled]) { border-color: var(--dc-acc); }
.dc-choix button[disabled] { cursor: default; }
.dc-choix button[disabled]:not(.bon):not(.mauvais) { opacity: .55; }
.dc-lettre { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--dc-sous); font-weight: 900; font-size: .85rem; color: var(--ink-soft); }
.dc-choix .bon { border-color: var(--dc-bon); background: var(--dc-bon-f); }
.dc-choix .bon .dc-lettre { background: var(--dc-bon); color: #fff; }
.dc-choix .mauvais { border-color: var(--dc-non); background: var(--dc-non-f); }
.dc-choix .mauvais .dc-lettre { background: var(--dc-non); color: #fff; }
.secoue { animation: dc-secoue .35s; }
@keyframes dc-secoue { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.dc-retour { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--dc-bon); background: var(--dc-bon-f); }
.dc-retour.non { border-left-color: var(--dc-non); background: var(--dc-non-f); }
.dc-retour b { display: block; margin-bottom: 4px; }
.dc-retour p { margin: 0; line-height: 1.5; }
.dc-src { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; }
.dc-src a { color: inherit; }
.dc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dc-actions:empty { display: none; }
.dc-actions .btn { flex: 1 1 160px; }
.dc-actions.centre { justify-content: center; }
.dc-actions.centre .btn { flex: 0 1 auto; }

/* question libre */
.dc-ql-zone { margin-top: 18px; border-top: 1px solid var(--dc-trait); padding-top: 16px; }
.dc-ql { display: flex; gap: 8px; align-items: center; position: relative; }
.dc-ql-i { position: absolute; left: 13px; color: var(--ink-soft); pointer-events: none; }
.dc-ql input { padding-left: 40px; }
.dc-rep { display: grid; gap: 10px; margin-top: 10px; }
.dc-rep-b { background: var(--dc-sous); border-radius: 12px; padding: 12px 14px; animation: dc-entree .3s both; }
.dc-rep-b p { margin: 0; line-height: 1.55; }
.dc-rep-b .dc-rep-q { font-weight: 800; margin-bottom: 4px; }
.dc-points { display: inline-flex; gap: 4px; }
.dc-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: dc-point 1s infinite; }
.dc-points i:nth-child(2) { animation-delay: .15s; } .dc-points i:nth-child(3) { animation-delay: .3s; }
@keyframes dc-point { 50% { opacity: .25; transform: translateY(-2px); } }

/* fin */
.dc-fin { text-align: center; padding: 10px 0 20px; }
.dc-score { position: relative; width: 140px; height: 140px; margin: 8px auto 14px; }
.dc-score-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dc-score-svg circle { fill: none; stroke-width: 8; }
.dc-score-svg .fond { stroke: var(--dc-sous); }
.dc-score-svg .val { stroke: var(--dc-acc); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.dc-score-v { position: absolute; inset: 0; display: grid; place-content: center; }
.dc-score-v b { font-family: var(--font-title); font-size: 2.8rem; line-height: 1; }
.dc-score-v span { color: var(--ink-soft); font-size: .86rem; }
.dc-fin > h3 { font-size: clamp(1.3rem, 5vw, 1.7rem); margin: 0 0 4px; }
.dc-recap { list-style: none; margin: 22px auto 8px; padding: 0; max-width: 520px; text-align: left; display: grid; gap: 6px; }
.dc-recap li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--dc-surface); border: 1px solid var(--dc-trait); border-left: 3px solid var(--dc-bon); }
.dc-recap li.ko { border-left-color: var(--dc-non); }
.dc-recap li span { font-weight: 700; line-height: 1.3; }
.dc-recap .dc-lien { flex: none; font-size: .88rem; }

/* cours : panneau plein écran sur téléphone, fenêtre centrée sur ordinateur */
body.dc-fige { overflow: hidden; }
.dc-voile { position: fixed; inset: 0; z-index: 400; background: rgba(30, 14, 22, .5); display: flex; align-items: flex-end; justify-content: center; animation: dc-apparait .2s both; }
.dc-cours { background: var(--bg); color: var(--ink); width: 100%; max-height: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 18px calc(28px + env(safe-area-inset-bottom)); animation: dc-monte .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dc-monte { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 760px) { .dc-voile { align-items: center; padding: 32px; } .dc-cours { max-width: 760px; height: auto; max-height: calc(100vh - 64px); border-radius: 20px; padding: 0 36px 32px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); } }
.dc-cours-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: var(--bg); border-bottom: 1px solid var(--dc-trait); margin-bottom: 16px; }
.dc-cours-h small { font-weight: 800; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-cours h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); margin: 0 0 10px; }
.dc-intro { font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.dc-section { margin: 26px 0; }
.dc-section h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; margin: 0 0 8px; }
.dc-section > p { line-height: 1.6; margin: 0 0 14px; }
.dc-retenir { background: var(--dc-surface); border: 1px solid var(--dc-trait); border-left: 3px solid var(--dc-acc); border-radius: 12px; padding: 14px 18px; margin: 24px 0 8px; }
.dc-retenir h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dc-acc); margin: 0 0 8px; }
.dc-retenir ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.5; }
.dc-cours .dc-attente { padding-top: 60px; }

@media (prefers-reduced-motion: reduce) { .dc *, .dc-voile * { animation: none !important; transition: none !important; } }

/* question d'abord, fait révélé ensuite */
.dc-qnum { margin: 0 0 6px; color: var(--dc-acc); font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.dc-enonce { font-size: clamp(1.3rem, 5.2vw, 1.7rem); line-height: 1.3; margin: 0 0 16px; letter-spacing: -.005em; }
.dc-revele:not(.ouvert) { display: none; }
.dc-revele.ouvert { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--dc-trait); animation: dc-entree .45s cubic-bezier(.2, .8, .2, 1) both; }
.dc-revele .dc-titre { font-size: clamp(1.25rem, 4.8vw, 1.6rem); }

/* Illustrations Déclic : claire ou sombre selon le thème du site */
.dc-illu { display: contents; }
.dc-tuile-img .dc-illu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-illu .sombre { display: none; }
:root[data-theme="dark"] .dc-illu .clair { display: none; }
:root[data-theme="dark"] .dc-illu .sombre { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dc-illu .clair { display: none; }
  :root:not([data-theme="light"]) .dc-illu .sombre { display: block; }
}
.dc-illu-etat img { width: min(260px, 70%); height: auto; margin: 0 auto 8px; border-radius: 18px; }
img.dc-tile-mark { width: 52px; height: 52px; display: block; }
.dc-encore { margin: 14px auto 0; display: flex; }

/* Attente d'un thème : l'illustration se « peint » puis flotte doucement, un trait se dessine dessous (sobre, coupé si mouvement réduit). */
.dc-attente { max-width: 520px; }
.dc-illu-etat.dc-peint img { width: min(380px, 94%); margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); animation: dc-peindre 2.6s cubic-bezier(.3, .6, .2, 1) both, dc-flotte 5s ease-in-out 2.6s infinite; }
.dc-trait { width: min(240px, 62%); height: 5px; margin: 4px auto 0; border-radius: 99px; background: linear-gradient(var(--dc-acc), var(--dc-acc)) left / 0% 100% no-repeat; animation: dc-trace 2.6s ease-in-out infinite; }
@keyframes dc-peindre { from { clip-path: inset(0 0 100% 0); filter: saturate(0) blur(2px); opacity: .5; } to { clip-path: inset(0 0 0 0); filter: none; opacity: 1; } }
@keyframes dc-flotte { 50% { transform: translateY(-5px); } }
@keyframes dc-trace { 0% { background-size: 0% 100%; opacity: 1; } 70% { background-size: 100% 100%; opacity: 1; } 100% { background-size: 100% 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dc-illu-etat.dc-peint img { animation: none; } .dc-trait { animation: none; background-size: 100% 100%; } }
