/* H1-H8 : composants limités aux ajouts pédagogiques désignés. */
.hg-content .atelier-card{border-radius:20px;box-shadow:inset 0 2px 0 rgba(255,255,255,.95),inset 0 -2px 0 rgba(16,42,67,.05),0 5px 0 rgba(6,27,95,.12),0 12px 26px rgba(16,42,67,.12);position:relative;transition:box-shadow .18s ease;transform:none}
.hg-content .atelier-card:hover,.hg-content .atelier-card:focus-within{box-shadow:inset 0 2px 0 rgba(255,255,255,.95),inset 0 -2px 0 rgba(16,42,67,.05),0 9px 0 rgba(6,27,95,.13),0 16px 30px rgba(16,42,67,.17);transform:none}
.hg-content .atelier-card>img{width:min(100%,200px);height:140px;object-fit:contain;margin:0 auto 1rem;display:block}
.hg-content .atelier-card>.btn{width:min(100%,250px);min-height:52px;max-width:100%;margin-top:auto;text-align:center}
.hg-content .atelier-intro{display:grid;grid-template-columns:190px minmax(0,1fr);gap:1.6rem;align-items:center}
.hg-content .atelier-intro>img{display:block;width:min(100%,190px);height:150px;object-fit:contain;margin:0 auto}
.hg-content .hg-intro-copy{min-width:0}
.hg-content .hg-heading{display:inline-flex;align-items:center;gap:.75rem;max-width:100%;vertical-align:middle}
.hg-content .hg-heading-text{min-width:0}
.hg-content .hg-title-icon{display:block;width:38px;height:38px;object-fit:contain;flex:0 0 38px;margin:0}
.hg-content .hg-icon-action{gap:.55rem}
.hg-content .hg-action-icon{display:inline-block;width:25px;height:25px;object-fit:contain;flex:0 0 25px;margin:0;vertical-align:middle}
.hg-content .hg-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;list-style:none;padding:0;margin:1rem 0}
.hg-content .hg-toc li{margin:0;padding:0;min-width:0}
.hg-content .hg-toc a{display:flex;gap:.75rem;align-items:center;min-height:60px;padding:.65rem .8rem;border:1px solid #bdcde1;border-radius:12px;background:#f7faff;color:#17334c;text-decoration:none;line-height:1.4;font-weight:600}
.hg-content .hg-toc a:hover{background:#e7f0ff}
.hg-content .hg-number{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;min-width:36px;border-radius:50%;background:linear-gradient(#2f6aa9,#123c72);color:#fff;font-size:1rem;line-height:1;font-weight:700;box-shadow:inset 0 2px 2px #ffffff80,0 3px 0 #102e55,0 5px 8px #17385e30}
.hg-content .hg-number.hg-n2{background:linear-gradient(#c5edf0,#75bec9);color:#061b5f}
.hg-content .hg-number.hg-n3{background:linear-gradient(#f3d78f,#d2a244);color:#061b5f}
.hg-content .hg-number.hg-n4{background:linear-gradient(#bfe0b4,#7eac76);color:#061b5f}
.hg-content .hg-number.hg-n5{background:linear-gradient(#e1cdef,#b69acc);color:#061b5f}
.hg-content .hg-step-card>.hg-number{position:absolute;top:.9rem;left:.9rem}
.hg-content .hg-step-card>img{width:90px;height:90px;margin:.1rem auto 1rem}
.hg-content .hg-step-card>.btn{min-height:80px}
.hg-content .hg-downloads{gap:.8rem}
.hg-content .hg-downloads>li{margin:0;min-width:0}
.hg-content .hg-downloads>li>a{display:flex;align-items:center;gap:.85rem;padding:.8rem 1rem;border:1px solid #d4b77d;border-radius:12px;background:white;box-shadow:inset 0 1px 0 #fff,0 3px 0 #d8e0ed;min-width:0;width:100%;text-decoration:none;line-height:1.45;color:#17334c}
.hg-content .hg-downloads>li>a:hover{background:#f4f8fe}
.hg-content .hg-download-icon{display:block;width:47px;height:47px;object-fit:contain;flex:0 0 47px;margin:0}
.hg-content .hg-download-copy{display:block;min-width:0;flex:1}
.hg-content .hg-download-label{display:block;font-weight:700;overflow-wrap:anywhere}
.hg-content .hg-download-kind{display:block;font-weight:400;color:#52677c;font-size:.9rem;margin-top:.2rem}
.hg-content .hg-download-action{width:22px;height:22px;flex:0 0 22px;margin:0}
.hg-content .atelier-feedback{position:relative;padding-left:3.75rem;min-height:56px}
.hg-content .atelier-feedback::before{content:"";display:block;width:30px;height:30px;position:absolute;top:.85rem;left:.85rem;background:center/contain no-repeat url("../img/embellissements/expliquer.svg");pointer-events:none}
.hg-content .atelier-feedback.success::before{background-image:url("../img/embellissements/verifier.svg")}
.hg-content .atelier-feedback.error::before{background-image:url("../img/embellissements/alerte.svg")}
.hg-content #quiz-resultat.success::before{background-image:url("../img/embellissements/evaluer.svg")}
.hg-content .hg-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:1.3rem;margin:1.5rem 0}
.hg-content .hg-guide-card>img{width:min(100%,180px);height:110px}
.hg-content .hg-guide-card h3{font-size:1.15rem;line-height:1.4;margin:.2rem 0 1.1rem;text-align:center}
.hg-content .hg-diagram{margin:1.4rem 0 1.7rem;padding:1.1rem;background:#f5f9ff;border:1px solid #d4b77d;border-radius:14px}
.hg-content .hg-diagram figcaption{font-size:1.05rem;font-weight:700;color:#061b5f;margin-bottom:1rem;text-align:center}
.hg-content .hg-diagram-nodes{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.hg-content .hg-diagram-nodes>li{padding:1rem;background:white;border:1px solid #c6d3e4;border-radius:12px;text-align:center;min-width:0;line-height:1.5;margin:0}
.hg-content .hg-diagram-nodes img{display:block;width:68px;height:68px;object-fit:contain;margin:0 auto .65rem}
.hg-content .hg-diagram-nodes strong{display:block;color:#17334c;font-size:1rem}
.hg-content .hg-diagram-nodes p{font-size:1rem;margin:.5rem 0 0}
.hg-content .hg-diagram-note{font-size:1rem;color:#52677c;margin:.9rem 0 0}
@media(max-width:750px){.hg-content .atelier-intro{grid-template-columns:150px minmax(0,1fr);gap:1rem}.hg-content .atelier-intro>img{width:150px;height:125px}.hg-content .hg-diagram-nodes{grid-template-columns:1fr}.hg-content .hg-diagram-nodes>li{padding:.9rem}}
@media(max-width:600px){.hg-content .atelier-intro{grid-template-columns:1fr}.hg-content .atelier-intro>img{width:175px;height:135px}.hg-content .hg-title-icon{width:32px;height:32px;flex-basis:32px}.hg-content .hg-heading{gap:.6rem}.hg-content .hg-toc,.hg-content .hg-guide-grid{grid-template-columns:1fr}.hg-content .hg-downloads>li>a{padding:.75rem;gap:.6rem}.hg-content .hg-download-icon{width:40px;height:40px;flex-basis:40px}.hg-content .atelier-feedback{padding-left:3.35rem}.hg-content .atelier-feedback::before{width:27px;height:27px;left:.7rem}.hg-content .hg-diagram{padding:.9rem}.hg-content .atelier-card>img{height:135px}.hg-content .hg-step-card>img{height:90px}}
@media(prefers-reduced-motion:reduce){.hg-content .atelier-card{transition:none}}
@media print{.hg-content .hg-title-icon,.hg-content .hg-action-icon,.hg-content .hg-number,.hg-content .atelier-feedback::before{display:none}.hg-content .atelier-feedback{padding-left:1rem}.hg-content .hg-diagram-nodes{grid-template-columns:repeat(3,minmax(0,1fr))}}
