/* ARES – cours interactifs */
.ares-cours, .ac-liste, .ac-liste-note {
	--navy: #1d1a6e; --blue: #0b45d6; --green: #5fb80b; --red: #e8230e; --yellow: #ffc400;
	--ink: #17173a; --muted: #5d5d7a; --tint: #f4f5fc; --line: #e3e5f2; --c: #0b45d6;
	font-family: "Nunito", system-ui, sans-serif; color: var(--ink);
}
.ares-cours * , .ac-liste * { box-sizing: border-box; }

/* ---------- liste des cours ---------- */
.ac-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ac-liste .ac-carte {
	display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
	box-shadow: 0 10px 30px rgba(29, 26, 110, .12); border-top: 6px solid var(--c);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.ac-liste .ac-carte:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(29, 26, 110, .2); color: inherit; }
.ac-carte__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ac-carte__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ac-carte:hover .ac-carte__img img { transform: scale(1.07); }
.ac-carte__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.ac-carte__meta { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ac-carte__titre { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.25; }
.ac-carte__resume { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.ac-carte__prog { height: 8px; border-radius: 8px; background: var(--tint); overflow: hidden; }
.ac-carte__prog span { display: block; height: 100%; background: var(--c); border-radius: 8px; }
.ac-carte__go { font-weight: 900; color: var(--c); }
/* cours en préparation (« Bientôt disponible ») */
.ac-carte__img { position: relative; }
.ac-carte__ruban {
	position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 13px;
	padding: 6px 12px; border-radius: 30px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.ac-liste .ac-carte--bientot { cursor: default; }
.ac-liste .ac-carte--bientot:hover { transform: none; box-shadow: 0 10px 30px rgba(29, 26, 110, .12); }
.ac-carte--bientot .ac-carte__img img { filter: grayscale(.85) brightness(.9); }
.ac-carte--bientot:hover .ac-carte__img img { transform: none; }
.ac-carte--bientot .ac-carte__go { color: var(--muted); }
.ac-verrou { text-align: center; background: #fff; border-radius: 24px; padding: 40px 24px; box-shadow: 0 10px 30px rgba(29, 26, 110, .12); }
.ac-verrou p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 auto 14px; }
.ac-badge--bientot { background: var(--yellow) !important; color: var(--navy) !important; }
.ac-apercu-admin {
	max-width: 900px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 14px; background: #fff6d6; border-left: 6px solid #ffc400;
	color: #1d1a6e; font-family: "Nunito", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}
/* chaîne « Ton histoire → … → Un client qui agit » */
.ac-chaine { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.ac-chaine span { background: var(--c); color: #fff; font-weight: 900; padding: 10px 16px; border-radius: 30px; }
.ac-chaine i { font-style: normal; font-weight: 900; color: var(--navy); font-size: 20px; }
@media (max-width: 600px) {
	.ac-chaine { flex-direction: column; align-items: flex-start; gap: 4px; }
	.ac-chaine i { transform: rotate(90deg); margin-left: 24px; }
}

/* formulaire sans aperçu + notes d'aide sous les champs */
.ac-formule.ac-formule--seul { grid-template-columns: 1fr; max-width: 760px; }
.ac-champ-aide { display: block; margin-top: 3px; font-weight: 600; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* tableaux chiffrés (business plan) */
.ac-table-wrap { overflow-x: auto; margin: 6px 0 8px; }
.ac-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.ac-table th { text-align: left; font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); padding: 0 6px; }
.ac-table td { padding: 0 6px; vertical-align: middle; }
.ac-table .is-num, .ac-table .is-num .ac-input { text-align: right; }
.ares-cours .ac-table .ac-input { margin: 0; padding: 10px 12px; min-width: 90px; }
.ac-table-calc { font-weight: 900; color: var(--navy); white-space: nowrap; }
.ac-table-x { width: 36px; }
.ac-table-del { border: 0; background: var(--tint); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.ac-table-del:hover { background: #fde4e1; color: var(--red); }
.ac-table-total { margin: 10px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff6d6; font-weight: 900; color: var(--navy); font-size: 17px; }
@media (max-width: 640px) {
	.ac-table thead { display: none; }
	.ac-table, .ac-table tbody, .ac-table tr, .ac-table td { display: block; width: 100%; }
	.ac-table tr { position: relative; padding: 12px 44px 12px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--tint); }
	.ac-table td { padding: 4px 0; }
	.ac-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
	.ac-table .is-num, .ac-table .is-num .ac-input { text-align: left; }
	.ac-table-x { position: absolute; top: 10px; right: 8px; width: auto !important; }
}

/* synthèse financière et document final */
.ac-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.ac-tuile { padding: 14px 16px; border-radius: 14px; background: var(--tint); }
.ac-tuile span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ac-tuile strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 900; color: var(--navy); }
.ac-tuile.is-ok strong { color: #2f7d05; }
.ac-tuile.is-ko strong { color: var(--red); }
.ac-synthese-msg { font-weight: 700; color: var(--navy); }
.ac-apercu.ac-apercu--doc { position: static; }
.ac-apercu-doc .ac-doc-meta { color: var(--muted); font-size: 14px; }
.ac-apercu-doc .ac-doc-sec { margin: 26px 0 4px; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 17px; }
.ac-doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.ac-doc-table th, .ac-doc-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.ac-doc-table th { background: var(--tint); }
.ac-doc-table .is-num { text-align: right; white-space: nowrap; }
.ac-doc-table tfoot td { font-weight: 900; background: #fff6d6; }

.ac-liste-note { text-align: center; color: var(--muted); font-weight: 700; margin-top: 22px; }
.ac-liste-note a { color: var(--blue); font-weight: 900; }

/* ---------- lecteur ---------- */
.ares-cours { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(29, 26, 110, .14); padding: clamp(20px, 4vw, 44px); position: relative; }
.ac-loading { text-align: center; color: var(--muted); font-weight: 800; }
.ac-head { margin-bottom: 26px; }
.ac-steps { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.ac-steps li { margin: 0; }
.ares-cours .ac-step {
	width: 40px; height: 40px; border-radius: 50% 50% 50% 14%; border: 2px solid var(--line); background: #fff; color: var(--muted);
	font-family: inherit; font-weight: 900; font-size: 16px; cursor: pointer; padding: 0; line-height: 1;
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}
.ares-cours .ac-step:hover { transform: translateY(-2px); background: var(--tint); color: var(--navy); }
.ares-cours .ac-step.is-done { background: color-mix(in srgb, var(--c) 18%, #fff); border-color: var(--c); color: var(--navy); }
.ares-cours .ac-step.is-current { background: var(--c); border-color: var(--c); color: #fff; transform: scale(1.1); }
.ac-bar { height: 8px; border-radius: 8px; background: var(--tint); overflow: hidden; }
.ac-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--green)); border-radius: 8px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ac-save { margin: 8px 0 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.ac-save.is-ok { color: #2e6b00; } .ac-save.is-err { color: #b3261e; }
.ac-save a { color: var(--blue); }

.ac-chap, .ac-end { animation: ac-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ac-in { from { opacity: 0; transform: translateY(16px); } }
.ac-kicker { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ares-cours .ac-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--navy); margin: 0 0 18px; line-height: 1.2; }

.ac-bloc { margin: 0 0 26px; }
.ac-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.ac-q { font-weight: 900; font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.ac-lecon { font-size: 17px; line-height: 1.7; }
.ac-lecon p { margin: 0 0 12px; }
.ac-lecon ul, .ac-lecon ol { margin: 0 0 12px; padding-left: 22px; }
.ac-lecon li { margin: 4px 0; }
.ac-lecon blockquote { margin: 14px 0; padding: 14px 18px; border-left: 5px solid var(--c); background: var(--tint); border-radius: 0 12px 12px 0; font-size: 16px; color: var(--ink); }
.ac-pyramide li::marker, .ac-piliers li::marker { color: var(--c); font-weight: 900; }
.ac-retenir { margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: #fff4dc; border-left: 6px solid var(--yellow); }
.ac-retenir strong { display: block; color: var(--navy); font-weight: 900; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; margin-bottom: 6px; }
.ac-retenir ul { margin: 0; padding-left: 20px; }
.ac-retenir li { margin: 4px 0; font-weight: 700; }

/* options & boutons */
.ac-options { display: grid; gap: 10px; }
.ares-cours .ac-opt {
	display: block; width: 100%; text-align: left; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff;
	font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.4;
	transition: border-color .2s, background .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.ares-cours .ac-opt:hover { border-color: var(--c); transform: translateX(3px); background: #fff; color: var(--ink); }
.ares-cours .ac-opt.is-sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.ares-cours .ac-opt.is-good { border-color: var(--green); background: #e9f6dc; }
.ares-cours .ac-opt.is-bad { border-color: var(--red); background: #fdecea; }
.ares-cours .ac-opt.is-hint { border-style: dashed; border-color: var(--green); }
.ares-cours .ac-opt--small { display: inline-block; width: auto; padding: 8px 14px; font-size: 14px; }
.ac-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ares-cours .ac-btn, .ares-cours a.ac-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border: 2px solid var(--navy); border-radius: 999px;
	background: var(--navy); color: #fff; font-family: inherit; font-weight: 900; font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1.2;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background .3s;
}
.ares-cours .ac-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(29, 26, 110, .25); background: #2c27a3; color: #fff; }
.ares-cours .ac-btn--ghost { background: #fff; color: var(--navy); }
.ares-cours .ac-btn--ghost:hover { background: var(--tint); color: var(--navy); }
.ares-cours .ac-btn--small { padding: 9px 18px; font-size: 14px; }
.ares-cours .ac-link { background: none; border: 0; padding: 4px 0; color: var(--blue); font-family: inherit; font-weight: 900; font-size: 14px; cursor: pointer; text-decoration: underline; }
.ares-cours .ac-link:hover { background: none; color: var(--navy); }
.ac-fb { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 700; line-height: 1.5; animation: ac-in .35s; }
.ac-fb.is-ok { background: #e9f6dc; color: #245800; }
.ac-fb.is-ko { background: #fdecea; color: #8f1d12; }
.ac-fb.is-info { background: #e8eefc; color: var(--navy); }
.ac-score { margin: 10px 0 0; font-weight: 900; color: var(--navy); }

/* vrai/faux et tri */
.ac-vf, .ac-tri { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .2s; }
.ac-tri.is-answered, .ac-vf:has(.is-ok), .ac-vf:has(.is-ko) { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.ac-vf-t, .ac-tri-t { margin: 0 0 10px; font-weight: 800; }
.ac-vf-b, .ac-tri-b { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-vf-fb { margin: 8px 0 0; font-size: 14.5px; font-weight: 700; }
.ac-vf-fb.is-ok { color: #2e6b00; } .ac-vf-fb.is-ko { color: #a3190a; }

/* chips */
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ares-cours .ac-chip {
	padding: 9px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy);
	font-family: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: all .2s;
}
.ares-cours .ac-chip:hover { border-color: var(--c); background: #fff; color: var(--navy); }
.ares-cours .ac-chip.is-sel { background: var(--c); border-color: var(--c); color: #fff; }
.ares-cours .ac-chip:disabled { opacity: .35; cursor: default; }
.ac-chips-msg { margin: 8px 0 0; font-weight: 800; color: #2e6b00; min-height: 1em; }

/* champs */
.ares-cours .ac-input {
	width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--tint);
	font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; height: auto; line-height: 1.5; resize: vertical;
}
.ares-cours .ac-input:focus { border-color: var(--c); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.ac-aide { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); font-style: italic; }
.ac-label { display: block; font-weight: 800; font-size: 14.5px; color: var(--navy); margin-bottom: 12px; }
.ac-label .ac-input { margin-top: 6px; }

/* documents (CV, lettre, fiche projet) */
.ac-formule { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ac-apercu { position: sticky; top: 100px; padding: 20px; border-radius: 16px; background: #fff; border: 2px dashed color-mix(in srgb, var(--c) 40%, var(--line)); }
.ac-apercu-titre { margin: 0 0 10px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.ac-apercu-doc { font-size: 15px; line-height: 1.6; margin-bottom: 12px; overflow-wrap: anywhere; }
.ac-apercu-doc h3 { margin: 0 0 2px; font-size: 22px; color: var(--navy); }
.ac-apercu-doc h4 { margin: 14px 0 4px; font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.ac-apercu-doc p { margin: 0 0 8px; }
.ac-apercu-doc ul { margin: 0; padding-left: 18px; }
.ac-ph { color: #a6a8c0; font-style: italic; }

/* flashcards, checklists, échelles, ordre */
.ac-card { padding: 16px 18px; border-radius: 16px; background: var(--tint); margin-bottom: 14px; border-left: 6px solid var(--c); }
.ac-card-q { margin: 0 0 10px; font-weight: 900; font-size: 17px; color: var(--navy); }
.ac-card-tip { margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: #fff; font-weight: 700; color: var(--navy); }
.ac-card-tip[hidden] { display: none; }
.ares-cours .ac-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.ac-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c); flex: none; }
.ac-check--big { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin: 0 0 8px; font-size: 16px; }
.ac-check--big:has(input:checked) { border-color: var(--green); background: #f3fbea; }
.ac-echelle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ac-echelle-t { display: grid; }
.ac-echelle-t strong { color: var(--navy); font-size: 16px; }
.ac-echelle-t span { color: var(--muted); font-size: 14px; }
.ac-echelle-b { display: flex; gap: 6px; }
.ares-cours .ac-dot { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); font-family: inherit; font-weight: 900; cursor: pointer; padding: 0; transition: all .2s; }
.ares-cours .ac-dot:hover { border-color: var(--c); background: #fff; color: var(--navy); }
.ares-cours .ac-dot.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.ac-seq { margin: 10px 0; padding-left: 26px; min-height: 10px; }
.ac-seq li { margin: 6px 0; padding: 8px 12px; border-radius: 10px; font-weight: 800; }
.ac-seq li.is-good { background: #e9f6dc; } .ac-seq li.is-bad { background: #fdecea; }

/* navigation */
.ac-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 2px solid var(--line); }
.ac-nav[hidden] { display: none; }

/* fin */
.ac-end { position: relative; text-align: left; }
.ac-recap { margin-top: 22px; padding: 22px; border-radius: 18px; background: var(--tint); }
.ac-recap h3 { margin: 0 0 10px; color: var(--navy); font-weight: 900; }
.ac-end-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ac-note { margin-top: 18px; color: var(--muted); font-weight: 700; }
.ac-note a { color: var(--blue); font-weight: 900; }
.ac-confetti { position: absolute; left: 0; top: 0; width: 100%; height: 320px; pointer-events: none; }

@media (max-width: 760px) {
	.ac-formule { grid-template-columns: 1fr; }
	.ac-apercu { position: static; }
	.ac-nav .ac-btn { padding: 12px 18px; font-size: 15px; }
	.ac-echelle { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ares-cours *, .ac-liste * { animation: none !important; transition: none !important; } }
