/*
Theme Name: Horizon Numérique – Apprendre
Theme URI: https://apprendre.horizon-numerique.ch
Author: Studio Horizon Numérique
Description: Thème du site de formation apprendre.horizon-numerique.ch : charte Horizon Numérique (bleu nuit, soleil), pages prêtes à l'emploi et mise en forme des cours Tutor LMS.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: horizon-apprendre
*/

:root {
	--tutor-color-primary: #14213D;
	--tutor-color-primary-rgb: 20, 33, 61;
	--tutor-color-primary-hover: #24365F;
	--hn-soleil: #F2A541;
	--hn-nuit: #14213D;
	--hn-creme: #FAF6EE;
}

body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }

/* En-tête */
.hn-header .wp-block-navigation a { text-decoration: none; }
.hn-header .wp-block-navigation a:hover { color: var(--hn-soleil); }
.hn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

/* Cartes et sections */
.hn-card { border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.hn-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,33,61,.10); }
.hn-num { font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; color: var(--hn-soleil); font-size: 34px; line-height: 1; }
.hn-kicker { letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-size: 14px; }
.hn-price { font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; font-size: 44px; line-height: 1; }
.hn-check ul, ul.hn-check { list-style: none; padding-left: 0; }
.hn-check li, ul.hn-check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.hn-check li::before, ul.hn-check li::before { content: "✓"; position: absolute; left: 0; color: var(--hn-soleil); font-weight: 700; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid #E4DED2; padding: 14px 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--hn-nuit); }
.wp-block-details[open] summary { margin-bottom: 8px; }

/* Encadrés de prompts (pages et leçons) */
pre.hn-prompt, .hn-lecon pre, .wp-block-code {
	background: #14213D; color: #F4F1EA; border-radius: 12px; padding: 18px 20px;
	font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-x: auto; border: 0;
}
.hn-lecon pre code, pre.hn-prompt code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* Contenu des leçons Tutor LMS (lisible en mode clair et en mode sombre de Tutor) */
.hn-lecon {
	--hn-l-texte: #1F2937; --hn-l-titre: #14213D; --hn-l-lien: #14213D; --hn-l-bord: #E4DED2;
	--hn-l-zebre: #FBF8F2; --hn-l-encadre: #FFF6E8; --hn-l-code-fond: #F1ECE2; --hn-l-code: #14213D;
	font-size: 17px; line-height: 1.7; color: var(--hn-l-texte); max-width: 760px;
}
[data-tutor-theme=dark] .hn-lecon {
	--hn-l-texte: #E6E9EF; --hn-l-titre: #FFFFFF; --hn-l-lien: #F2A541; --hn-l-bord: #3A4150;
	--hn-l-zebre: rgba(255,255,255,.04); --hn-l-encadre: rgba(242,165,65,.12); --hn-l-code-fond: #2D3039; --hn-l-code: #F4F1EA;
}
@media (prefers-color-scheme: dark) {
	[data-tutor-theme=system] .hn-lecon {
		--hn-l-texte: #E6E9EF; --hn-l-titre: #FFFFFF; --hn-l-lien: #F2A541; --hn-l-bord: #3A4150;
		--hn-l-zebre: rgba(255,255,255,.04); --hn-l-encadre: rgba(242,165,65,.12); --hn-l-code-fond: #2D3039; --hn-l-code: #F4F1EA;
	}
}
.hn-lecon p, .hn-lecon li, .hn-lecon td, .hn-lecon strong, .hn-lecon em, .hn-lecon blockquote { color: var(--hn-l-texte); }
.hn-lecon h2, .hn-lecon h3, .hn-lecon h4 { color: var(--hn-l-titre); }
.hn-lecon a { color: var(--hn-l-lien); }
.hn-lecon h3 { font-family: var(--wp--preset--font-family--space-grotesk); font-size: 21px; margin: 28px 0 10px; }
.hn-lecon p { margin: 0 0 14px; }
.hn-lecon ul, .hn-lecon ol { margin: 0 0 16px; padding-left: 22px; }
.hn-lecon li { margin-bottom: 6px; }
.hn-lecon code { background: var(--hn-l-code-fond); color: var(--hn-l-code); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.hn-lecon blockquote { margin: 20px 0; padding: 14px 18px; background: var(--hn-l-encadre); border-left: 4px solid var(--hn-soleil); border-radius: 0 10px 10px 0; }
.hn-lecon blockquote p { margin: 0; }
.hn-lecon table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.hn-lecon th { background: var(--hn-nuit); color: #fff; text-align: left; font-weight: 600; }
.hn-lecon th, .hn-lecon td { padding: 10px 12px; border: 1px solid var(--hn-l-bord); vertical-align: top; }
.hn-lecon tr:nth-child(even) td { background: var(--hn-l-zebre); }
.hn-lecon pre { border: 1px solid var(--hn-l-bord); }
.hn-lecon pre, .hn-lecon pre code { color: #F4F1EA; }

/* Check-list d'avancement et boîte à outils (Exercices guidés) */
.hn-checklist-bloc, .hn-outils { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--hn-l-bord); border-radius: 14px; }
.hn-checklist-bloc { border-left: 4px solid var(--hn-soleil); }
.hn-checklist-bloc h3, .hn-outils h3 { margin-top: 0; }
.hn-checklist-aide { font-size: 15px; opacity: .85; }
.hn-lecon ul.hn-checklist { list-style: none; padding-left: 0; }
.hn-checklist li { margin-bottom: 8px; }
.hn-checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.hn-checklist input[type=checkbox] { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; accent-color: #F2A541; cursor: pointer; }
.hn-checklist li.hn-fait span { text-decoration: line-through; opacity: .65; }
.hn-checklist-compteur { margin: 6px 0 14px; }
.hn-barre { display: block; height: 8px; margin-top: 6px; border-radius: 99px; background: var(--hn-l-bord); overflow: hidden; }
.hn-barre span { display: block; height: 100%; background: #F2A541; transition: width .2s ease; }
.hn-outil { border-top: 1px solid var(--hn-l-bord); padding: 10px 0; }
.hn-outil:last-of-type { border-bottom: 1px solid var(--hn-l-bord); }
.hn-outil summary { cursor: pointer; font-weight: 600; color: var(--hn-l-titre); list-style-position: outside; }
.hn-outil[open] summary { margin-bottom: 10px; }
.hn-outil-type { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #F2A541; color: #14213D; border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.hn-outil-lecon { font-weight: 400; font-size: 14px; opacity: .7; margin-left: 4px; }

/* ===== v1.3 : en-tête de leçon, titres, listes ===== */
.hn-lecon { --hn-l-carte: #FFFFFF; --hn-l-doux: #FAF6EE; }
[data-tutor-theme=dark] .hn-lecon { --hn-l-carte: #262B36; --hn-l-doux: #1F242F; }
@media (prefers-color-scheme: dark) { [data-tutor-theme=system] .hn-lecon { --hn-l-carte: #262B36; --hn-l-doux: #1F242F; } }
.hn-lecon-entete { margin: 0 0 26px; padding: 0 0 18px; border-bottom: 3px solid var(--hn-soleil); }
.hn-lecon .hn-lecon-repere { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hn-soleil); }
.hn-lecon .hn-lecon-titre { margin: 0; font-family: var(--wp--preset--font-family--space-grotesk); font-size: 30px; line-height: 1.2; color: var(--hn-l-titre); }
.hn-lecon h3 { position: relative; padding-left: 14px; }
.hn-lecon h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--hn-soleil); }
.tutor-lesson-content .tutor-lesson-wrapper .hn-lecon ul:not(.hn-checklist):not(.hn-arbo-enfants):not(.hn-flux-etapes), .hn-lecon ul:not(.hn-checklist):not(.hn-arbo-enfants):not(.hn-flux-etapes) { padding-left: 1.4em; list-style: disc; }
.hn-lecon ul li::marker { color: var(--hn-soleil); }
.tutor-lesson-content .tutor-lesson-wrapper .hn-lecon ol, .hn-lecon ol { list-style: none; padding-inline-start: 0; counter-reset: hn-etape; padding-left: 0; }
.hn-lecon ol > li { counter-increment: hn-etape; position: relative; padding-left: 40px; margin-bottom: 10px; min-height: 28px; }
.hn-lecon ol > li::before { content: counter(hn-etape); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--hn-nuit); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
[data-tutor-theme=dark] .hn-lecon ol > li::before { background: var(--hn-soleil); color: #14213D; }
@media (prefers-color-scheme: dark) { [data-tutor-theme=system] .hn-lecon ol > li::before { background: var(--hn-soleil); color: #14213D; } }
.hn-lecon ul.hn-checklist, .hn-lecon ol.hn-parcours { padding-left: 0; }

/* ===== Encadré « Dans le projet réel » ===== */
.hn-exemple { margin: 30px 0 10px; padding: 18px 20px; background: var(--hn-l-doux); border: 1px solid var(--hn-l-bord); border-radius: 14px; }
.hn-lecon .hn-exemple-titre { margin: 0 0 8px; font-weight: 700; color: var(--hn-l-titre); font-size: 18px; }
.hn-exemple-pastille { display: inline-block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; background: #C0392B; color: #fff; border-radius: 6px; padding: 2px 8px; margin-right: 6px; vertical-align: 2px; }
.hn-galerie { display: grid; gap: 12px; margin: 14px 0 6px; grid-template-columns: repeat(var(--hn-cols, 3), minmax(0, 1fr)); }
.hn-col-1 { --hn-cols: 1; max-width: 560px; } .hn-col-2 { --hn-cols: 2; } .hn-col-3 { --hn-cols: 3; } .hn-col-4 { --hn-cols: 4; }
.hn-fig { margin: 0; background: var(--hn-l-carte); border-radius: 12px; overflow: hidden; border: 1px solid var(--hn-l-bord); }
.hn-fig img { display: block; width: 100%; height: 220px; object-fit: contain; background: #F4EFE6; }
.hn-col-1 .hn-fig img { height: auto; max-height: 420px; object-fit: contain; }
.hn-fig-haute img { height: auto; max-height: 520px; object-fit: contain; }
.hn-fig figcaption { padding: 8px 10px; font-size: 14px; line-height: 1.4; color: var(--hn-l-texte); }
.hn-liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hn-lecon a.hn-lien { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; min-width: 200px; flex: 1 1 200px; max-width: 320px; border-radius: 10px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); border-left: 4px solid var(--hn-soleil); text-decoration: none; transition: transform .12s ease; }
.hn-lecon a.hn-lien:hover { transform: translateY(-1px); }
.hn-lien-texte { font-weight: 700; color: var(--hn-l-titre); }
.hn-lien-texte::after { content: " ↗"; color: var(--hn-soleil); }
.hn-lien-detail { font-size: 14px; color: var(--hn-l-texte); opacity: .85; }
.hn-lien-url { font-size: 12px; color: var(--hn-l-texte); opacity: .6; word-break: break-all; }

/* ===== Schéma : arborescence des sites ===== */
.hn-arbo { margin: 18px 0 6px; }
.hn-arbo-carte { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); border-top: 5px solid var(--hn-c, #14213D); }
.hn-arbo-racine { max-width: 420px; margin: 0 auto; text-align: center; background: var(--hn-nuit); border: 0; }
.hn-arbo-racine .hn-arbo-dom, .hn-arbo-racine .hn-arbo-dom a, .hn-arbo-racine .hn-arbo-role { color: #fff !important; }
.hn-arbo-dom { font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; font-size: 16px; color: var(--hn-l-titre); word-break: break-word; }
.hn-lecon .hn-arbo-dom a { color: inherit; text-decoration: underline; text-decoration-color: var(--hn-soleil); }
.hn-arbo-role { font-size: 14px; line-height: 1.4; color: var(--hn-l-texte); }
.hn-lecon ul.hn-arbo-enfants { list-style: none; padding: 26px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.hn-arbo-enfants::before { content: ""; position: absolute; top: 12px; left: 12.5%; right: 12.5%; border-top: 2px solid var(--hn-l-bord); }
.hn-arbo-enfants::after { content: ""; position: absolute; top: 0; left: 50%; height: 12px; border-left: 2px solid var(--hn-l-bord); }
.hn-lecon ul.hn-arbo-enfants > li { position: relative; margin: 0; padding: 0; }
.hn-arbo-enfants > li::before { content: ""; position: absolute; top: -14px; left: 50%; height: 14px; border-left: 2px solid var(--hn-l-bord); }
.hn-arbo-enfants .hn-arbo-carte { height: 100%; }
.hn-lecon .hn-schema-note { font-size: 14px; opacity: .8; margin-top: 8px; text-align: center; }

/* ===== Schéma : parcours en étapes ===== */
.hn-lecon ol.hn-parcours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.hn-lecon ol.hn-parcours > li { padding: 12px 14px 12px; margin: 0; min-height: 0; border-radius: 12px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); display: flex; flex-direction: column; gap: 4px; position: relative; }
.hn-lecon ol.hn-parcours > li::before { content: none; }
.hn-lecon ol.hn-parcours > li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--hn-soleil); font-weight: 700; font-size: 18px; z-index: 1; }
.hn-etape-num { width: 26px; height: 26px; border-radius: 50%; background: var(--hn-soleil); color: #14213D; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hn-etape-titre { font-weight: 700; color: var(--hn-l-titre); line-height: 1.3; }
.hn-lecon .hn-etape-titre a { color: inherit; text-decoration: underline; text-decoration-color: var(--hn-soleil); }
.hn-etape-detail { font-size: 14px; line-height: 1.4; color: var(--hn-l-texte); }

/* ===== Maquette du profil Instagram ===== */
.hn-ig { max-width: 420px; margin: 16px 0; padding: 18px; border-radius: 18px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); box-shadow: 0 8px 24px rgba(20,33,61,.08); }
.hn-ig-haut { display: flex; align-items: center; gap: 14px; }
.hn-ig-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; padding: 3px; background: linear-gradient(45deg,#F2A541,#C0392B,#8E44AD); }
.hn-ig-stats { display: flex; flex-direction: column; color: var(--hn-l-titre); }
.hn-ig-stats span { font-size: 13px; opacity: .7; color: var(--hn-l-texte); }
.hn-lecon .hn-ig-nom { margin: 12px 0 2px; font-weight: 700; color: var(--hn-l-titre); }
.hn-lecon .hn-ig-bio { margin: 0 0 6px; line-height: 1.55; }
.hn-lecon .hn-ig-lien { margin: 0 0 12px; font-size: 15px; }
.hn-lecon a.hn-ig-bouton { display: block; text-align: center; padding: 9px; border-radius: 10px; background: var(--hn-nuit); color: #fff; font-weight: 600; text-decoration: none; }

@media (max-width: 781px) {
	.hn-lecon .hn-lecon-titre { font-size: 24px; }
	.hn-col-3, .hn-col-4 { --hn-cols: 2; }
	.hn-fig img { height: 170px; }
	.hn-lecon ul.hn-arbo-enfants { grid-template-columns: 1fr 1fr; }
	.hn-arbo-enfants::before, .hn-arbo-enfants::after, .hn-arbo-enfants > li::before { display: none; }
	.hn-lecon ol.hn-parcours > li:not(:last-child)::after { content: none; }
}

/* ===== v1.4 : cahier d'exercices ===== */
.hn-travail-champs { margin: 10px 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--hn-l-doux); border: 1px dashed var(--hn-soleil); }
.hn-lecon .hn-travail-titre { margin: 0 0 8px; font-weight: 700; color: var(--hn-l-titre); font-size: 15px; }
.hn-champ { display: block; margin: 0 0 12px; }
.hn-champ-libelle { display: block; font-size: 14px; font-weight: 600; color: var(--hn-l-titre); margin-bottom: 4px; }
.hn-champ textarea { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hn-l-bord); background: var(--hn-l-carte); color: var(--hn-l-texte); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.hn-champ textarea:focus { outline: 2px solid var(--hn-soleil); outline-offset: 1px; border-color: transparent; }
.hn-travail-bloc { margin: 28px 0; padding: 18px 20px; border-radius: 14px; background: var(--hn-nuit); color: #fff; }
.hn-lecon .hn-travail-bloc p { color: #E6E9EF; }
.hn-lecon .hn-travail-bloc-titre { margin: 0 0 6px; font-family: var(--wp--preset--font-family--space-grotesk); font-size: 21px; font-weight: 700; color: #fff; }
.hn-lecon .hn-travail-statut { font-size: 14px; color: #F2A541; margin: 6px 0 12px; }
.hn-travail-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hn-travail-boutons button, .hn-lecon a.hn-travail-pdf { font: inherit; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 2px solid #F2A541; text-decoration: none; }
.hn-travail-enregistrer { background: transparent; color: #fff; }
.hn-travail-valider { background: #F2A541; color: #14213D; }
.hn-lecon a.hn-travail-pdf { background: #fff; color: #14213D; border-color: #fff; display: inline-block; }
.hn-lecon a.hn-travail-pdf[hidden] { display: none; }
.hn-travail-tout { margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--hn-l-doux); border: 1px solid var(--hn-l-bord); }
.hn-travail-tout a.hn-travail-pdf { background: var(--hn-nuit); color: #fff; border-color: var(--hn-nuit); }

/* ===== v1.5 : prompts bilingues, traduction, vérification ===== */
.hn-lecon .hn-langue { margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--hn-l-titre); }
.hn-langue-code { display: inline-block; min-width: 26px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .05em; border-radius: 6px; padding: 2px 6px; margin-right: 6px; background: var(--hn-soleil); color: #14213D; }
.hn-langue + .hn-copy pre, .hn-langue + pre { margin-top: 0; }
.hn-astuce { margin: 26px 0; padding: 16px 20px; border-radius: 14px; background: var(--hn-l-encadre); border-left: 4px solid var(--hn-soleil); }
.hn-verif { background: var(--hn-l-doux); border-left-color: #2E7D6B; }
.hn-lecon .hn-astuce-titre { margin: 0 0 6px; font-weight: 700; font-size: 18px; color: var(--hn-l-titre); }
.hn-lecon .hn-astuce-titre::before { content: "💡 "; }
.hn-lecon .hn-verif .hn-astuce-titre::before { content: "✅ "; }
.hn-cloud { border-left-color: #3B82C4; }
.hn-lecon .hn-cloud .hn-astuce-titre::before { content: "☁️ "; }
.hn-essais { border-left-color: #C4572E; }
.hn-lecon .hn-essais .hn-astuce-titre::before { content: "🔁 "; }
.hn-attente { border-left-color: #7A5BC4; }
.hn-methode { border-left-color: #14213D; }
.hn-lecon .hn-methode .hn-astuce-titre::before { content: "🧭 "; }
.hn-lecon .hn-methode ul { margin-bottom: 0; }
.hn-lecon .hn-attente .hn-astuce-titre::before { content: "⏳ "; }

/* Bouton copier */
.hn-copy { position: relative; }
.hn-copy pre { padding-top: 40px; }
.hn-copy-btn { position: absolute; top: 10px; right: 10px; background: var(--hn-soleil); color: #14213D; border: 0; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Tutor LMS : boutons et cartes */
.tutor-btn-primary, .tutor-btn.tutor-btn-primary { background-color: var(--hn-nuit) !important; border-color: var(--hn-nuit) !important; }
.tutor-btn-primary:hover { background-color: var(--tutor-color-primary-hover) !important; }
.tutor-course-card, .tutor-card { border-radius: 14px !important; }

@media (max-width: 781px) {
	.hn-price { font-size: 36px; }
	.hn-lecon { font-size: 16px; }
}

/* Pas d'espace entre l'en-tête, le contenu et le pied de page */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* v2.1 – Typographie de formation : texte justifié, césure française, encadrés pédagogiques. */
.hn-lecon p, .hn-lecon li, .hn-lecon blockquote p {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
	line-height: 1.7;
}
.hn-lecon td p, .hn-lecon th, .hn-lecon td, .hn-lecon figcaption, .hn-lecon .hn-langue, .hn-lecon .hn-lecon-repere,
.hn-lecon .hn-exemple-titre, .hn-lecon a.hn-lien *, .hn-lecon .hn-checklist li, .hn-lecon .hn-checklist-aide, .hn-lecon .hn-travail p { text-align: left; hyphens: manual; }
.hn-lecon .hn-objectifs, .hn-lecon .hn-criteres {
	margin: 18px 0 24px; padding: 16px 20px 6px; border-radius: 12px;
	background: var(--hn-l-encadre); border: 1px solid var(--hn-l-bord);
}
.hn-lecon .hn-objectifs h3, .hn-lecon .hn-criteres > p:first-child { margin-top: 0; }
.hn-lecon .hn-objectifs h3 { font-size: 18px; }
.hn-lecon .hn-criteres { border-left: 4px solid #3BA55C; }
.hn-lecon .hn-criteres > p:first-child strong { color: var(--hn-l-titre); }

/* Pages du site : paragraphes de texte courant justifiés (hors colonnes, cartes et textes centrés). */
.wp-block-post-content > p:not([class*="text-align"]),
.wp-block-post-content > ul li, .wp-block-post-content > ol li,
.wp-block-post-content .wp-block-group > p:not([class*="text-align"]),
.wp-block-post-content .wp-block-details p {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
}

/* v2.4 – Parcours du visiteur : trois cartes (Instagram, site, boutique), étapes en colonne. */
.hn-lecon .hn-flux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 18px 0 8px; }
.hn-lecon .hn-flux-zone { position: relative; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); border-top: 4px solid var(--hn-soleil); border-radius: 12px; padding: 14px 16px 6px; }
.hn-lecon .hn-flux-zone:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--hn-soleil); font-size: 22px; font-weight: 700; }
.hn-lecon .hn-flux-lieu { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hn-soleil); text-align: left; }
.hn-lecon ul.hn-flux-etapes { list-style: none; padding: 0; margin: 0; }
.hn-lecon ul.hn-flux-etapes > li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 0; text-align: left; hyphens: manual; }
.hn-lecon ul.hn-flux-etapes > li::marker { content: none; }
.hn-lecon .hn-flux .hn-etape-num { flex: 0 0 26px; }
.hn-lecon .hn-etape-texte { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 780px) {
	.hn-lecon .hn-flux { grid-template-columns: 1fr; gap: 22px; }
	.hn-lecon .hn-flux-zone:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
}

/* v2.4 – Exercices guidés : une carte par exercice, avec sa case « Terminé ». */
.hn-lecon .hn-exercices-tete { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); border-left: 4px solid var(--hn-soleil); }
.hn-lecon .hn-exercices-tete p { margin: 0; text-align: left; }
.hn-lecon .hn-exercices-tete .hn-checklist-aide { font-size: 14px; opacity: .85; margin-top: 4px; }
.hn-lecon .hn-exo { margin: 0 0 22px; padding: 16px 18px 4px; border-radius: 12px; background: var(--hn-l-carte); border: 1px solid var(--hn-l-bord); }
.hn-lecon .hn-exo-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hn-l-bord); }
.hn-lecon .hn-exo-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hn-soleil); }
.hn-lecon .hn-exo-titre { font-family: var(--wp--preset--font-family--space-grotesk); font-size: 19px; font-weight: 700; color: var(--hn-l-titre); flex: 1 1 auto; }
.hn-lecon .hn-exo-duree { font-size: 13px; font-weight: 600; color: var(--hn-l-texte, #555); white-space: nowrap; }
.hn-lecon .hn-exo-fait { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hn-l-bord); }
.hn-lecon .hn-exo-fait:has(input:checked) { background: #3BA55C; border-color: #3BA55C; color: #fff; }
.hn-lecon .hn-exo .hn-travail-champs { margin-top: 6px; }
.hn-lecon .hn-exercices .hn-criteres ul.hn-checklist { margin-top: 8px; }
.hn-lecon .hn-exo.hn-exo-termine { border-color: #3BA55C; }
.hn-lecon a.hn-lien-fichier { max-width: 460px; border-left-color: #3BA55C; }
.hn-lecon .hn-support { margin-bottom: 18px; }

/* v2.15 : page Ateliers, bloc formateur. */
.hn-repartez { font-size: 15px; border-top: 1px solid rgba(20,33,61,.12); padding-top: 12px; margin-top: 16px; }
ul.hn-emporte { list-style: none; padding-left: 0; }
ul.hn-emporte li { margin-bottom: 8px; }
.hn-formateur-bloc { margin-top: 48px; }
.hn-formateur { align-items: center !important; }
.hn-formateur-photo img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; box-shadow: 0 8px 24px rgba(20,33,61,.12); }
.hn-formateur-titres { font-size: 14px; line-height: 1.6; }
.hn-formateur-mail { font-size: 14px; margin-top: 8px; }
.hn-formateur .wp-block-buttons { margin-top: 8px; }
