/* Page « Mon histoire » (36716, ex « Commencez ici ») : portrait et chiffres du héros, frise verticale du parcours. */

.wk-histoire-portrait { margin: 0; }
.wk-histoire-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--wk-rayon-grand); box-shadow: 0 20px 50px rgba(0, 0, 0, .14); }

.wk-histoire-chiffres { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin-top: 2rem; }
.wk-section .wk-histoire-chiffres > *, .wk-section .wk-histoire-chiffre > * { margin-block: 0; }
.wk-histoire-chiffre__nombre { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--wk-or-texte); }
.wk-section .wk-histoire-chiffre .wk-histoire-chiffre__legende { margin-top: .4rem; font-size: var(--wp--preset--font-size--s); font-weight: 600; color: var(--wk-taupe); }
.wk-histoire-chiffre__etoile { font-size: .6em; vertical-align: .35em; margin-left: .1em; }

/* Frise : l'année à gauche, un point sur l'axe, le récit à droite. */
.wk-histoire { --annee: 7.5rem; --axe: calc(var(--annee) + 1.5rem); max-width: 54rem; margin: var(--wp--preset--spacing--60) auto 0; }
.wk-section .wk-histoire > *, .wk-section .wk-histoire__moment > * { margin-block: 0; }
.wk-histoire__moment { position: relative; display: grid; grid-template-columns: var(--annee) minmax(0, 1fr); column-gap: 3rem; padding-bottom: 2.75rem; }
.wk-histoire__moment:last-child { padding-bottom: 0; }
.wk-histoire__moment::before { content: ""; position: absolute; left: var(--axe); top: 1rem; bottom: -1rem; width: 2px; translate: -1px 0; background: rgba(184, 121, 47, .32); }
.wk-histoire__moment:last-child::before { display: none; }
.wk-histoire__moment::after { content: ""; position: absolute; left: var(--axe); top: .7rem; width: .9rem; height: .9rem; translate: -50% 0; border-radius: 50%; background: var(--wk-or); box-shadow: 0 0 0 5px rgba(184, 121, 47, .18); }
.wk-histoire__annee { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; text-align: right; color: var(--wk-or-texte); font-variant-numeric: tabular-nums; }
.wk-section .wk-histoire__contenu > * + * { margin-top: .6rem; }
.wk-histoire__contenu h3.wp-block-heading { margin-top: .2rem; font-size: var(--wp--preset--font-size--l); line-height: 1.2; }
.wk-histoire__contenu p { color: var(--wk-taupe); }
.wk-section .wk-histoire__contenu .wp-block-image { margin-top: 1.1rem; }
.wk-histoire__contenu .wp-block-image img { width: 100%; max-width: 30rem; height: auto; border-radius: var(--wk-rayon); }

/* Jalons des formations : petite pastille à la couleur du cours (classes wk-vente-cycle--* de vente.css), sans grande année. */
.wk-histoire__moment--jalon { padding-bottom: 1.15rem; }
.wk-histoire__moment--jalon::after { top: .5rem; width: .6rem; height: .6rem; background: var(--couleur, var(--wk-or)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--couleur, var(--wk-or)) 22%, transparent); }
.wk-histoire__moment--jalon + .wk-histoire__moment:not(.wk-histoire__moment--jalon) { padding-top: 1.6rem; }
.wk-histoire__moment--jalon + .wk-histoire__moment:not(.wk-histoire__moment--jalon)::after { top: 2.3rem; }
.wk-histoire__jalon { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; font-size: var(--wp--preset--font-size--s); color: var(--wk-taupe); }
.wk-histoire__jalon strong { color: var(--wk-ecorce); font-weight: 800; }
.wk-histoire__jalon a { color: inherit; text-decoration-color: color-mix(in srgb, var(--couleur, var(--wk-or)) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.wk-histoire__jalon a:hover { text-decoration-color: var(--couleur, var(--wk-or)); }
.wk-histoire__jalon-annee { font-weight: 800; color: var(--wk-or-texte); font-variant-numeric: tabular-nums; }
.wk-histoire__cycle { padding: .1rem .6rem; border-radius: var(--wk-rayon-bouton); font-size: var(--wp--preset--font-size--xs); font-weight: 700; color: var(--couleur, var(--wk-or-texte)); background: color-mix(in srgb, var(--couleur, var(--wk-or)) 12%, transparent); }
@media (prefers-color-scheme: dark) {
	body.wk-sombre .wk-histoire__jalon strong { color: inherit; }
	body.wk-sombre .wk-histoire__cycle { color: color-mix(in srgb, var(--couleur, var(--wk-or)) 55%, #fff); }
}
@media (max-width: 47.9rem) { .wk-histoire__jalon { grid-column: auto; } }

/* Place réservée aux images avant leur chargement : sinon elles poussent la page pendant le défilement vers une ancre (#ma-musique, #interview). */
.wk-histoire__image img { aspect-ratio: 16 / 9; object-fit: cover; }
.wk-histoire__app img { aspect-ratio: 560 / 1214; object-fit: cover; }
.wk-histoire-portrait img { height: auto; }

/* L'app Wakatoo : une capture d'écran de téléphone, petite. */
.wk-section .wk-histoire__contenu .wk-histoire__app { max-width: 12rem; }
.wk-histoire__app img { border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }

/* Le moment de la peur : une carte sombre, le cœur du récit. */
.wk-histoire__moment--sombre .wk-histoire__contenu { padding: 1.6rem 1.75rem 1.75rem; border-radius: var(--wk-rayon-grand); background: var(--bande-fond); color: var(--bande-texte); }
.wk-histoire__moment--sombre .wk-histoire__contenu :is(h3, p) { color: inherit; }
.wk-histoire__moment--sombre .wk-histoire__contenu h3.wp-block-heading { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; color: var(--bande-accent); }
.wk-histoire__moment--sombre .wk-histoire__contenu p { opacity: .88; }
.wk-histoire__moment--sombre .wk-histoire__contenu a { color: var(--bande-accent); }
.wk-histoire__moment--sombre .wk-histoire__annee { color: var(--wk-taupe); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); padding-top: .35rem; }
.wk-histoire__moment--sombre .wk-histoire__contenu h3.wp-block-heading { text-wrap: balance; line-height: 1.1; }
.wk-histoire__moment--sombre::after { background: var(--bande-fond); box-shadow: 0 0 0 5px rgba(0, 0, 0, .1); }

@media (max-width: 47.9rem) {
	.wk-histoire-chiffres { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 1.5rem; }
	.wk-histoire-chiffre__nombre { font-size: 1.9rem; }
	.wk-histoire { --axe: .45rem; }
	.wk-histoire__moment { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; padding-left: 2rem; padding-bottom: 2.25rem; }
	.wk-histoire__annee { text-align: left; font-size: 2rem; }
	.wk-histoire__moment::after { top: .55rem; }
	.wk-histoire__moment::before { top: .9rem; bottom: -.6rem; }
	.wk-histoire__moment--sombre .wk-histoire__contenu { padding: 1.3rem 1.25rem 1.4rem; }
}

/* Vidéo dans la frise (Volte) : même largeur que les images. */
.wk-section .wk-histoire__contenu .wp-block-embed { max-width: 30rem; margin-top: 1.1rem; }
.wk-histoire__contenu .wp-block-embed figcaption { margin-top: .5rem; font-size: var(--wp--preset--font-size--xs); color: var(--wk-taupe); text-align: left; }

/* Héros : les boutons avant les chiffres. */
.wk-hero-accueil .wp-block-buttons + .wk-histoire-chiffres { margin-top: 2.25rem; }

/* Mes albums : pochette, titre, année, où écouter. */
.wk-histoire-albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2rem 2.5rem; max-width: var(--wk-largeur-encadre, 56rem); margin-top: var(--wp--preset--spacing--50); }
.wk-section .wk-histoire-albums > *, .wk-section .wk-histoire-album > * { margin-block: 0; }
.wk-histoire-album .wp-block-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--wk-rayon); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.wk-section .wk-histoire-album h3.wp-block-heading { margin-top: 1rem; font-size: var(--wp--preset--font-size--l); line-height: 1.2; }
.wk-section .wk-histoire-album .wk-histoire-album__annee { margin-top: .15rem; font-size: var(--wp--preset--font-size--s); opacity: .7; }
.wk-section .wk-histoire-album .wk-histoire-album__ecouter { margin-top: .6rem; font-size: var(--wp--preset--font-size--s); font-weight: 700; }
.wk-section--bande .wk-histoire-album__ecouter a { color: var(--bande-accent); }
.wk-histoire-albums + .wk-histoire-avis { margin-top: var(--wp--preset--spacing--70); }
@media (max-width: 47.9rem) {
	/* Téléphone : une ligne compacte par album (petite pochette à gauche). */
	.wk-histoire-albums { gap: 1.25rem; }
	.wk-histoire-album { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.1rem; align-content: center; }
	.wk-histoire-album .wp-block-image { grid-row: 1 / span 3; align-self: center; }
	.wk-section .wk-histoire-album h3.wp-block-heading { margin-top: 0; align-self: end; }
}

/* Ce que disent élèves et auditeurs de ma musique : cartes d'avis en grille. */
.wk-histoire-avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; max-width: var(--wk-largeur-encadre, 56rem); margin-top: var(--wp--preset--spacing--60); }
.wk-section .wk-histoire-avis > * { margin-block: 0; }
/* Ouverts, sans cadre, en italique : le style commun des citations d'élèves est dans site.css (16/09, sans grand guillemet). */
.wk-section .wk-histoire-avis { gap: 2.5rem 3.5rem; }
.wk-section .wk-histoire-avis .wk-avis-carte { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wk-histoire-avis .wk-avis-carte__auteur { margin-top: auto; padding-top: .9rem; }

/* Vidéos : les trois morceaux sur une ligne dès que la place le permet ; légendes lisibles sur le bandeau sombre. */
.wk-histoire-videos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.wk-histoire-videos .wp-block-embed figcaption, .wk-histoire-entretien figcaption { margin-top: .6rem; font-size: var(--wp--preset--font-size--s); text-align: left; }
.wk-section--bande .wk-histoire-videos figcaption { color: var(--bande-texte); opacity: .8; }
.wk-histoire-entretien figcaption { color: var(--wk-taupe); }
.wk-section .wk-histoire-entretien { margin: 0; }
