/* ==========================================================================
   MP Young Academy (page /kids/). Reprend l'univers de l'ancienne page MPI Kids
   (kids.css : en-tête dessiné, couleurs douces, police manuscrite).
   Tablette et téléphone : même disposition que sur ordinateur, en plus petit.
   ========================================================================== */

.x-ya-over { margin: 0 0 12px; font: 800 13px/18px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.x-ya-over span { color: var(--sun); margin: 0 4px; }
.x-ya-hero .x-ya-lead2 { margin-top: -10px; }
.x-ya-hero h1 em { white-space: normal; }

/* ---------- Présentation ---------- */
.x-ya-intro { padding-bottom: 56px; }
.x-ya-sign { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; color: #E0882A; margin: 0 0 14px; transform: rotate(-1.5deg); }
.x-ya-intro .x-head { max-width: 860px; margin-left: auto; margin-right: auto; }
.x-ya-ideas { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.x-ya-ideas li { text-align: center; padding: 18px 12px; border-radius: 22px 22px 22px 8px; background: var(--kid-sky, #EAF4FF); }
.x-ya-ideas li:nth-child(2) { background: var(--kid-mint, #E1F5EF); }
.x-ya-ideas li:nth-child(3) { background: #FFF1D6; }
.x-ya-ideas li:nth-child(4) { background: var(--kid-pink, #FCE8E2); }
.x-ya-ideas svg { display: block; width: 58px; height: 58px; margin: 0 auto 8px; }
.x-ya-ideas b { display: block; font: 800 16px/22px var(--font); color: var(--navy); }

/* ---------- Fonds dessinés ---------- */
.x-ya-doodle { position: relative; background: linear-gradient(180deg, var(--kid-cream, #FFF7E8), #FFFFFF); }
.x-ya-doodle::before { content: ""; position: absolute; inset: 0; background: url("../images/illustrations/kids-doodles-bg.svg") repeat; background-size: 600px auto; opacity: .3; pointer-events: none; }
.x-ya-doodle > .x-wrap { position: relative; z-index: 1; }

/* ---------- Choisir son parcours ---------- */
.x-ya-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.x-ya-path { display: flex; flex-direction: column; padding: 24px 22px 20px; border-radius: 26px 26px 26px 8px; background: var(--kid-sky, #EAF4FF); color: var(--ink); text-decoration: none; box-shadow: 0 10px 26px rgba(15, 42, 74, .07); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.x-ya-path:nth-child(2) { background: var(--kid-pink, #FCE8E2); }
.x-ya-path:nth-child(3) { background: var(--kid-mint, #E1F5EF); }
.x-ya-path:nth-child(4) { background: #FFF1D6; }
.x-ya-path:nth-child(5) { background: var(--kid-lilac, #EFEAFB); }
.x-ya-path:nth-child(6) { background: #E6F7FB; }
.x-ya-path:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.x-ya-path h3 { margin: 0 0 8px; font: 800 19px/25px var(--font); color: var(--navy); }
.x-ya-path p { margin: 0 0 14px; font-size: 15px; line-height: 23px; color: #3E5068; }
.x-ya-path .x-more { margin-top: auto; font-weight: 700; color: var(--blue); }

/* ---------- Cartes d'offres ---------- */
.x-ya-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.x-ya-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 20px; border-radius: 22px 22px 22px 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink); }
.x-ya-card h3 { margin: 10px 0 8px; font: 800 19px/25px var(--font); color: var(--navy); }
.x-ya-desc { margin: 0 0 10px; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.x-ya-more { width: 100%; margin: 0 0 10px; font-size: 14.5px; }
.x-ya-more summary { cursor: pointer; font-weight: 700; color: var(--blue); list-style: none; }
.x-ya-more summary::-webkit-details-marker { display: none; }
.x-ya-more summary::after { content: " +"; }
.x-ya-more[open] summary::after { content: " −"; }
.x-ya-more ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); line-height: 22px; }
.x-ya-more li { margin-bottom: 4px; }
.x-ya-more p { margin: 0; }
.x-ya-facts { width: 100%; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.x-ya-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.x-ya-facts dt { font-weight: 700; color: var(--teal); }
.x-ya-facts dd { margin: 0; color: var(--ink); }
.x-ya-price { width: 100%; margin: auto 0 14px; padding-top: 12px; border-top: 1px dashed var(--line); font: 800 16px/22px var(--font); color: var(--navy); }
.x-ya-price.is-tbc { color: #8A5300; font-weight: 700; }
.x-ya-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; line-height: 20px; text-decoration: none; transition: background-color .2s, transform .25s var(--ease); }
.x-ya-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Statuts */
.x-ya-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 800 11px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--blue-soft); color: var(--blue); }
.x-ya-status.is-ouvert { background: var(--teal-soft); color: var(--teal); }
.x-ya-status.is-bientot { background: var(--sun-soft); color: #8A5300; }
.x-ya-status.is-preparation { background: #FCE8E2; color: #B4441B; }

/* ---------- Notes, encadrés, boutons sous les cartes ---------- */
.x-ya-after { margin-top: 26px; }
.x-ya-after.is-center, .x-ya-note.is-center { justify-content: center; text-align: center; margin-left: auto; margin-right: auto; }
.x-ya-note { max-width: 860px; margin: 22px 0 0; font-size: 14.5px; line-height: 22px; color: var(--ink-muted); font-style: italic; }
.is-navy .x-ya-note { color: #C9D6E6; }
.x-ya-notice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 20px 0 22px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 2px dashed #F2C38A; }
.x-ya-notice p { margin: 0; color: var(--ink); line-height: 25px; }
.x-ya-notice.is-center { align-items: center; text-align: center; max-width: 760px; margin: 26px auto 0; }
.x-ya-small { margin: 14px 0 0; font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.x-ya-subtitle { margin: 0 0 14px; font: 800 18px/24px var(--font); color: var(--navy); }

/* ---------- Vacances ---------- */
.x-ya-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.x-ya-week-title { margin: 6px 0 12px; font-size: 26px; line-height: 1.1; color: var(--teal); font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 700; }
.x-ya-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-ya-week li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 6px 18px rgba(15, 42, 74, .06); }
.x-ya-week b { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--kid-sky, #EAF4FF); color: var(--navy); font-size: 13.5px; text-align: center; }
.x-ya-week li:nth-child(2) b { background: var(--kid-pink, #FCE8E2); }
.x-ya-week li:nth-child(3) b { background: var(--kid-mint, #E1F5EF); }
.x-ya-week li:nth-child(4) b { background: #FFF1D6; }
.x-ya-week li:nth-child(5) b { background: var(--kid-lilac, #EFEAFB); }
.x-ya-week span { font-size: 14.5px; line-height: 22px; color: var(--ink-muted); }
.x-ya-week strong { display: block; color: var(--navy); font-size: 15.5px; }

/* ---------- Étapes ---------- */
.x-ya-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: ya; }
.x-ya-steps.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-ya-steps li { position: relative; padding: 46px 18px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 22px; color: var(--ink-muted); }
.x-ya-steps li::before { counter-increment: ya; content: counter(ya); position: absolute; left: 18px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--navy); font: 800 14px/26px var(--font); text-align: center; }
.x-ya-steps b { display: block; margin-bottom: 4px; color: var(--navy); font-size: 16px; }
.x-ya-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Ateliers ---------- */
.x-ya-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.x-ya-chips li { padding: 8px 14px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--navy); }
.x-ya-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px; border-radius: 22px 22px 22px 8px; background: var(--kid-cream, #FFF7E8); border: 2px dashed #F2C38A; }
.x-ya-empty p { margin: 0; max-width: 720px; line-height: 25px; color: var(--ink); }

/* ---------- Livres ---------- */
.x-ya-booklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.x-ya-book { display: flex; flex-direction: column; align-items: center; text-align: center; }
.x-ya-book img { display: block; width: 78%; height: auto; margin-bottom: 16px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)); transform: rotate(-3deg); transition: transform .4s var(--ease); }
.x-ya-book:nth-child(2) img { transform: rotate(2deg); }
.x-ya-book:hover img { transform: rotate(0) translateY(-6px) scale(1.03); }
.x-ya-book h3 { margin: 10px 0 6px; font: 800 20px/26px var(--font); color: #fff; }
.x-ya-book p { margin: 0; max-width: 320px; font-size: 15px; line-height: 23px; color: #C9D6E6; }

/* ---------- Formulaire ---------- */
.x-ya-formcard { max-width: 900px; margin: 0 auto; padding: 30px 32px 22px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lift); scroll-margin-top: 90px; }
.x-ya-formcard h3 { margin: 0 0 16px; font: 800 22px/28px var(--font); color: var(--navy); }
.x-ya-form fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.x-ya-form legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--navy); }
.x-ya-who, .x-ya-mod { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
.x-ya-who legend, .x-ya-mod legend { width: 100%; }
.x-ya-form fieldset label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); cursor: pointer; }
.x-ya-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); }
.x-ya-form .tc-field label small { font-weight: 400; color: var(--ink-muted); }
.x-ya-form .tc-field input, .x-ya-form .tc-field select, .x-ya-form .tc-field textarea { font-family: var(--font); font-size: 16px; }
.x-ya-form [data-only][hidden] { display: none; }
.x-ya-alert { max-width: 900px; margin: 0 auto 18px; }
#inscription { scroll-margin-top: 80px; }

/* ---------- Bouton fixe « Faire une demande » ---------- */
.x-ya-sticky { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; background: var(--sun); color: var(--navy); font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 10px 26px rgba(15, 42, 74, .25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.x-ya-sticky.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Tablette : même disposition, plus petit ---------- */
@media (max-width: 980px) {
	.x-ya-ideas { gap: 10px; }
	.x-ya-ideas svg { width: 44px; height: 44px; }
	.x-ya-ideas b { font-size: 14px; line-height: 19px; }
	.x-ya-paths, .x-ya-cards { gap: 12px; }
	.x-ya-path { padding: 16px 14px 14px; }
	.x-ya-path h3, .x-ya-card h3 { font-size: 16px; line-height: 21px; }
	.x-ya-path p, .x-ya-desc { font-size: 13.5px; line-height: 20px; }
	.x-ya-card { padding: 16px 14px 14px; }
	.x-ya-facts div { grid-template-columns: 1fr; gap: 0; }
	.x-ya-facts { font-size: 13px; }
	.x-ya-price { font-size: 14px; line-height: 19px; }
	.x-ya-btn { min-height: 36px; padding: 7px 11px; font-size: 13px; line-height: 18px; }
	.x-ya-split { gap: 24px; }
	.x-ya-week li { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
	.x-ya-week b { justify-self: start; }
	.x-ya-steps { gap: 10px; }
	.x-ya-steps li { padding: 40px 12px 12px; font-size: 13px; line-height: 19px; }
	.x-ya-steps li::before { left: 12px; top: 10px; }
	.x-ya-steps b { font-size: 14px; }
	.x-ya-formcard { padding: 22px 20px 14px; }
	.x-ya-booklist { gap: 14px; }
	.x-ya-book h3 { font-size: 16px; line-height: 21px; }
	.x-ya-book p { font-size: 13px; line-height: 19px; }
}

/* ---------- Téléphone : même disposition, textes secondaires masqués ---------- */
@media (max-width: 600px) {
	.x-ya-hide-sm, .x-ya-hero .x-ya-lead2 { display: none; }
	.x-ya-over { font-size: 8.5px; line-height: 12px; letter-spacing: .06em; margin-bottom: 6px; }
	.x-ya-sign { font-size: 24px; }
	.x-ya-intro { padding-bottom: 36px; }
	.x-ya-ideas { gap: 5px; margin-top: 18px; }
	.x-ya-ideas li { padding: 8px 4px; border-radius: 12px 12px 12px 4px; }
	.x-ya-ideas svg { width: 30px; height: 30px; margin-bottom: 4px; }
	.x-ya-ideas b { font-size: 9.5px; line-height: 12px; }
	.x-ya-paths, .x-ya-cards { gap: 6px; }
	.x-ya-path { padding: 10px 8px; border-radius: 14px 14px 14px 5px; }
	.x-ya-path p, .x-ya-desc, .x-ya-more, .x-ya-facts { display: none; }
	.x-ya-path h3, .x-ya-card h3 { font-size: 11.5px; line-height: 14px; margin: 6px 0 6px; }
	.x-ya-path .x-more { font-size: 10px; line-height: 13px; }
	.x-ya-card { padding: 9px 7px; border-radius: 14px 14px 14px 5px; }
	.x-ya-status { padding: 2px 6px; font-size: 7.5px; line-height: 11px; letter-spacing: .02em; }
	.x-ya-price { font-size: 10.5px; line-height: 13px; padding-top: 6px; margin-bottom: 8px; }
	.x-ya-btn { min-height: 28px; padding: 5px 7px; border-radius: 8px; font-size: 10px; line-height: 13px; }
	.x-ya-note { font-size: 11.5px; line-height: 16px; }
	.x-ya-split { gap: 10px; }
	.x-ya-notice { padding: 10px; margin: 10px 0 12px; }
	.x-ya-notice p { font-size: 11.5px; line-height: 16px; }
	.x-ya-week-title { font-size: 18px; margin: 0 0 6px; }
	.x-ya-week { gap: 5px; }
	.x-ya-week li { padding: 7px; border-radius: 10px 10px 10px 4px; }
	.x-ya-week b { font-size: 9.5px; padding: 2px 6px; }
	.x-ya-week span { font-size: 0; line-height: 0; }
	.x-ya-week strong { font-size: 10.5px; line-height: 13px; }
	.x-ya-small { font-size: 10.5px; line-height: 14px; }
	.x-ya-subtitle { font-size: 14px; }
	.x-ya-steps { gap: 5px; margin-bottom: 16px; }
	.x-ya-steps li { padding: 28px 6px 8px; font-size: 9.5px; line-height: 13px; border-radius: 10px; }
	.x-ya-steps li::before { left: 6px; top: 6px; width: 18px; height: 18px; font-size: 10px; line-height: 18px; }
	.x-ya-steps b { font-size: 10.5px; line-height: 13px; }
	.x-ya-steps.is-four li { font-size: 0; line-height: 0; }
	.x-ya-steps.is-four b { margin: 0; }
	.x-ya-two { gap: 6px; }
	.x-ya-two .x-callout { padding: 10px; }
	.x-ya-two .x-callout h3 { font-size: 12px; line-height: 15px; }
	.x-ya-two .x-callout p { font-size: 10.5px; line-height: 14px; }
	.x-ya-chips { gap: 5px; }
	.x-ya-chips li { padding: 4px 8px; font-size: 10.5px; }
	.x-ya-empty { padding: 12px; }
	.x-ya-empty p { font-size: 12px; line-height: 17px; }
	.x-ya-formcard { padding: 16px 12px 8px; border-radius: 16px; }
	.x-ya-formcard h3 { font-size: 17px; }
	.x-ya-form .tc-form-row { flex-wrap: nowrap; gap: 0 8px; }
	.x-ya-form .tc-form-row .tc-field { flex: 1 1 0; min-width: 0; }
	.x-ya-form .tc-field label, .x-ya-form legend, .x-ya-form fieldset label { font-size: 12px; }
	.x-ya-form .tc-field input, .x-ya-form .tc-field select, .x-ya-form .tc-field textarea { min-height: 40px; padding: 8px 10px; font-size: 16px; }
	.x-ya-form .tc-check { font-size: 11.5px; }
	.x-ya-booklist { gap: 6px; }
	.x-ya-book img { width: 92%; margin-bottom: 8px; }
	.x-ya-book h3 { font-size: 11.5px; line-height: 14px; margin: 6px 0 0; }
	.x-ya-book p { display: none; }
	.x-ya-sticky { left: 10px; bottom: 10px; min-height: 38px; padding: 8px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .x-ya-path, .x-ya-btn, .x-ya-sticky { transition: none; } }
