/* ============================================================
   FICHE FORMATION — single
   Réf. maquette Figma : node 9087:949 (Fiche-formation).
   Tokens : framework Kakao (--color-*, --shk-*, --font-*).
   Layout : .shk-fform__layout (flex, align-items:stretch) — colonne titre +
   contenu à gauche, colonne carte à droite. Comme les deux colonnes sont
   étirées à la même hauteur, la carte (position:sticky) reste épinglée sur
   toute la hauteur du contenu, pas seulement sur le hero. Corps rédigé en
   the_content (.shk-fform__main).
   ============================================================ */
.shk-fform {
    position: relative;
    background: var(--color-paper);
}

/* Motif décoratif : cantonné à la zone visuelle du hero (pas toute la page) */
.shk-fform__grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(480px, 46vw, 640px);
    z-index: 0;
    background-image:
        linear-gradient(var(--shk-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--shk-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 72% 26%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 72% 26%, #000, transparent 78%);
    opacity: .4;
    pointer-events: none;
}

/* --- Layout : colonne titre+contenu / colonne carte --- */
.shk-fform__layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: clamp(32px, 4.5vw, 64px);
    /* padding-top/bottom seulement : l'élément est aussi un .shk-wrap, un
       raccourci « padding: X 0 Y » écraserait la gouttière latérale --shk-pad */
    padding-top: 150px;
    padding-bottom: clamp(60px, 9vw, 120px);
}
.shk-fform__col-main { flex: 1 1 auto; min-width: 0; }
.shk-fform__col-aside { flex: 0 0 360px; }

.shk-fform__hero-top { padding-bottom: 44px; }

/* Fil d'Ariane : .shk-bread (assets/css/custom.css) */

/* Picto (ACF, décoratif) au-dessus du titre */
.shk-fform__picto {
    display: inline-grid;
    place-items: center;
    width: clamp(56px, 6vw, 72px);
    height: clamp(56px, 6vw, 72px);
    margin-bottom: 20px;
    border: 1px solid var(--shk-line);
    border-radius: 12px;
    background: var(--color-paper);
    color: var(--color-secondaire);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.shk-fform__picto img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.shk-fform__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.shk-fform__tag {
    font-family: var(--font-1);
    font-size: .82rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: 8px 16px;
    border-radius: 30px;
}

/* --- Corps Gutenberg (the_content) --- */
.shk-fform__main { max-width: 860px; }
.shk-fform__main > * { margin-top: 0; margin-bottom: 0; }
.shk-fform__main > * + * { margin-top: clamp(14px, 1.6vw, 20px); }
/* Intertitres H3 (étapes du programme) : respiration au-dessus */
.shk-fform__main > h3:not(:first-child) { margin-top: clamp(32px, 3.5vw, 48px); }
.shk-fform__main > h3 { font-style: italic; font-family: var(--font-2) !important; }
.shk-fform__num { color: var(--color-secondaire) !important; font-style: italic; font-family: var(--font-2) !important; }

/* --- Encart tarif/durée/formation : sticky sur toute la hauteur de .shk-fform__col-aside --- */
.shk-fform__card {
    position: sticky;
    top: 96px;
    border: .75px solid rgba(5, 30, 38, .2);
    border-radius: 8px;
    padding: 24px 32px;
    background: var(--color-paper);
}
.shk-fform__rows { display: grid; }
.shk-fform__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: .75px solid rgba(5, 30, 38, .2);
}
.shk-fform__row:first-child { padding-top: 0; }
.shk-fform__row .l {
    font-family: var(--font-1);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(5, 30, 38, .7);
}
.shk-fform__row .v { font-size: .92rem; color: var(--color-dark); }
.shk-fform__row .v--strong { font-weight: 700; }

.shk-fform__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    background: var(--color-dark);
    color: var(--color-paper);
    font-family: var(--font-1);
    font-weight: 500;
    font-size: .85rem;
    padding: 16px;
    border-radius: 4px;
    transition: background .3s;
}
.shk-fform__btn:hover { background: var(--color-secondaire); }

/* --- Related : réutilise .shk-fcat__grid-cards / .shk-fcat__card (archive.css)
   et .shk-related-head/-num/-title (assets/css/custom.css) --- */
.shk-fform__related-sec { background: var(--color-paper-2); padding: var(--shk-sec) 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .shk-fform__layout { flex-direction: column; }
    .shk-fform__col-aside { flex-basis: auto; width: 100%; }
    .shk-fform__card { position: static; }
}
