/*
 * Espace Microsoudure v2 (includes/microsoudure-v2.php) : la page
 * /micro-soudures et l'encart des pages Réparation Mac et Ordinateurs portables.
 *
 * Préfixe : .cjms-. Même rythme que la page Nettoyage v3 (css/nettoyage-livre.css).
 */

/* ── Le bandeau du haut ──────────────────────────────────────────────────
 * Nuit violette, halo qui dérive lentement, étincelles qui partent de la
 * pointe du fer, titre et boutons qui apparaissent en douceur. CSS seul :
 * aucune image ni script de plus. Seules transform et opacity sont animées
 * (aucun décalage de mise en page) ; tout s'arrête avec prefers-reduced-motion.
 * Le moteur des bandeaux (includes/bandeaux-atelier.php, scène « ciel »), s'il
 * est allumé, ajoute ses étoiles par-dessus et garde la main sur le fond. */

html body .cjs .cjs-entete.cjms-entete {
	position: relative; isolation: isolate; overflow: hidden;
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(143, 21, 255, .45), rgba(143, 21, 255, 0) 70%),
		linear-gradient(135deg, #0d0218 0%, #1d0638 48%, #3a0a73 100%);
	border-color: #2c1250;
}
/* Le halo : une couche plus grande que le bandeau, qui glisse et respire. */
html body .cjs .cjs-entete.cjms-entete::after {
	content: ""; position: absolute; z-index: -1; inset: -30% -15%; pointer-events: none;
	background:
		radial-gradient(30% 40% at 74% 62%, rgba(255, 166, 77, .18), rgba(255, 166, 77, 0) 70%),
		radial-gradient(40% 55% at 18% 30%, rgba(143, 21, 255, .42), rgba(143, 21, 255, 0) 70%),
		radial-gradient(36% 50% at 86% 18%, rgba(199, 155, 255, .3), rgba(199, 155, 255, 0) 70%);
	animation: cjms-halo 16s ease-in-out infinite alternate;
}

/* Les écritures : blanc forcé sur le violet. */
html body .cjs .cjms-entete .cjs-titre { color: #fff !important; }
html body .cjs .cjms-entete .cjs-chapeau { color: #dccfee !important; }
html body .cjs .cjms-entete .cjs-surtitre {
	display: inline-flex; padding: 5px 12px; border: 0; border-radius: 999px;
	background: #fff !important; color: #4a0b8f !important;
}
html body .cjs .cjms-entete .cjs-bouton:not(.cjs-bouton-clair) { box-shadow: 0 16px 34px -14px rgba(183, 102, 255, .95); }
html body .cjs .cjms-entete .cjs-bouton-clair {
	background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .4) !important; color: #fff !important;
}

/* L'apparition douce : surtitre, titre, chapeau, puis boutons. */
html body .cjs .cjms-entete .cjs-entete-mot > * { animation: cjms-monte .7s cubic-bezier(.2, .7, .2, 1) both; }
html body .cjs .cjms-entete .cjs-entete-mot > :nth-child(2) { animation-delay: .08s; }
html body .cjs .cjms-entete .cjs-entete-mot > :nth-child(3) { animation-delay: .16s; }
html body .cjs .cjms-entete .cjs-entete-mot > :nth-child(n+4) { animation-delay: .26s; }

/* Le dessin (correction du 22/10/2026) : le fer en train de souder sur la carte
 * mère (cyberjay_microsoudure_scene()). Sa place est réservée par width, height
 * et viewBox. La lueur pulse au point de soudure, les étincelles en partent, une
 * fumée légère monte. */
html body .cjs .cjms-entete .cjs-entete-visuel { position: relative; }
html body .cjs .cjms-entete .cjms-scene {
	display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: hidden;
}
html body .cjs .cjms-scene .cjmsh-l {
	transform-box: fill-box; transform-origin: center;
	animation: cjms-lueur 1.4s ease-in-out infinite alternate;
}
html body .cjs .cjms-scene .cjmsh-e {
	opacity: 0;
	animation: cjms-etincelle 1.4s cubic-bezier(.2, .6, .4, 1) infinite;
}
html body .cjs .cjms-scene .cjmsh-f {
	opacity: 0; transform-box: fill-box; transform-origin: 50% 100%;
	animation: cjms-fumee 3.6s ease-out infinite;
}

@keyframes cjms-halo { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes cjms-monte { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes cjms-lueur { from { opacity: .6; transform: scale(.82); } to { opacity: 1; transform: scale(1.12); } }
@keyframes cjms-etincelle {
	0% { opacity: 0; transform: translateX(0) scaleX(.5); }
	15% { opacity: 1; }
	100% { opacity: 0; transform: translateX(26px) scaleX(1); }
}
@keyframes cjms-fumee {
	0% { opacity: 0; transform: translateY(8px) scale(.9); }
	30% { opacity: .45; }
	100% { opacity: 0; transform: translateY(-26px) scale(1.15); }
}

@media (max-width: 899px) {
	html body .cjs .cjms-entete .cjms-scene { max-width: 360px; }
}

/* ── La page ─────────────────────────────────────────────────────────── */

body .cjms .cjms-bloc { margin: 0; padding: 56px 0; }
body .cjms .cjms-teinte { background: #fbf9fe; border-top: 1px solid #efe8fa; border-bottom: 1px solid #efe8fa; }

body .cjms .cjms-h2 {
	margin: 0 0 14px !important; padding: 0 !important; border: 0 !important;
	font-size: clamp(27px, 3.2vw, 40px) !important; line-height: 1.1 !important; font-weight: 800 !important;
	letter-spacing: -.025em; color: #17121f !important; text-align: left !important; text-wrap: balance;
}
body .cjms .cjms-bloc h2::before, body .cjms .cjms-bloc h2::after,
body .cjms .cjms-bloc h3::before, body .cjms .cjms-bloc h3::after { content: none !important; }
body .cjms .cjms-bloc h3 {
	margin: 0 0 8px !important; padding: 0 !important; border: 0 !important;
	font-size: 19px !important; line-height: 1.25 !important; font-weight: 800 !important;
	color: #17121f !important; text-align: left !important;
}
body .cjms .cjms-chapeau { max-width: 760px; margin: 0 0 30px; font-size: 17px; line-height: 1.65; color: #4a4458; text-align: left; }
body .cjms .cjms-bloc p { text-align: left; }
body .cjms .cjms-bloc ul, body .cjms .cjms-bloc ol { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body .cjms .cjms-bloc li { margin: 0 !important; list-style: none !important; }
body .cjms .cjms-bloc li::before { content: none; }

/* Les prestations */
body .cjms .cjms-cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body .cjms .cjms-carte {
	display: flex; flex-direction: column; padding: 24px 22px; border: 1px solid #e6dcf7; border-radius: 24px; background: #fff;
	box-shadow: 0 30px 60px -52px rgba(74, 11, 143, .7);
}
body .cjms .cjms-carte::before { content: ""; display: block; width: 34px; height: 4px; margin: 0 0 16px; border-radius: 4px; background: #8f15ff; }
body .cjms .cjms-carte p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #3b3548; }
body .cjms .cjms-lien { margin-top: auto; font-size: 15px; font-weight: 800; color: #6a0fd1 !important; text-decoration: none !important; }
body .cjms .cjms-lien:hover, body .cjms .cjms-lien:focus-visible { text-decoration: underline !important; text-underline-offset: 3px; }

/* Par appareil */
body .cjms .cjms-appareils { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body .cjms .cjms-appareil {
	display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #e6dcf7;
	text-decoration: none !important; color: #3b3548 !important; transition: transform .15s, border-color .15s;
}
body .cjms .cjms-appareil:hover, body .cjms .cjms-appareil:focus-visible { transform: translateY(-2px); border-color: #8f15ff; }
body .cjms .cjms-appareil strong { color: #6a0fd1; font-size: 16px; }
body .cjms .cjms-appareil span { font-size: 14px; color: #6b6478; }

/* Les étapes */
body .cjms .cjms-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body .cjms .cjms-etapes li { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px !important; border-radius: 22px; background: #fff; border: 1px solid #efe8fa; }
body .cjms .cjms-etapes b { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 6px; border-radius: 50%; background: #8f15ff; color: #fff; font-size: 14px; font-weight: 800; }
body .cjms .cjms-etapes strong { font-size: 16px; line-height: 1.25; color: #17121f; }
body .cjms .cjms-etapes span { font-size: 14px; line-height: 1.5; color: #6b6478; }

/* Le texte d'origine : un filet le sépare des blocs du dessus. */
body .cjms .cjms-origine { border-top: 1px solid #efe8fa; }

/* Pour aller plus loin */
body .cjms .cjms-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
body .cjms .cjms-articles a {
	display: block; padding: 18px 20px; border-radius: 20px; background: #f7f1ff; font-size: 15.5px; font-weight: 700; line-height: 1.45;
	color: #3b3548 !important; text-decoration: none !important;
}
body .cjms .cjms-articles a:hover, body .cjms .cjms-articles a:focus-visible { color: #6a0fd1 !important; }

/* Questions */
body .cjms .cjms-faq { max-width: 860px; margin: 0; padding: 0; border: 1px solid #e6dcf7; border-radius: 22px; background: #fff; overflow: hidden; }
body .cjms .cjms-faq dt { margin: 0; padding: 20px 24px 0; font-size: 17px; font-weight: 800; line-height: 1.4; color: #17121f; }
body .cjms .cjms-faq dd { margin: 0; padding: 8px 24px 20px; border-bottom: 1px solid #efe8fa; font-size: 15.5px; line-height: 1.65; color: #3b3548; }
body .cjms .cjms-faq dd:last-child { border-bottom: 0; }

/* Venir */
body .cjms .cjms-fin-carte { padding: 40px 40px 36px; border-radius: 30px; background: #fff; border: 1px solid #e6dcf7; box-shadow: 0 40px 80px -60px rgba(74, 11, 143, .8); }
body .cjms .cjms-boutiques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px !important; }
body .cjms .cjms-boutiques a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: #f7f1ff; text-decoration: none !important; color: #3b3548 !important; }
body .cjms .cjms-boutiques strong { color: #6a0fd1; font-size: 16px; }
body .cjms .cjms-boutiques span { font-size: 14.5px; }
body .cjms .cjms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
body .cjms .cjms-tel { font-size: 16px; font-weight: 800; color: #6a0fd1 !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ── Le bouton, page et encart ───────────────────────────────────────── */

body .cjms-bouton {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
	background: #8f15ff; color: #fff !important; font-size: 16px; font-weight: 800; text-decoration: none !important; text-align: center;
	box-shadow: 0 16px 30px -18px rgba(143, 21, 255, .9); transition: transform .15s;
}
body .cjms-bouton:hover, body .cjms-bouton:focus-visible { transform: translateY(-2px); color: #fff !important; }

/* ── Les boutons dans le texte (correction du 22/10/2026) ───────────────
 * Au style des boutons de l'accueil : pilule de 48 px, texte gras de 15,5 px
 * (mesures du bouton « Commencer ») ; plein violet, ou clair à bord lavande. */

body .cjms .cjs-texte .cjms-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 34px !important; padding: 0; }
body .cjms .cjs-texte a.cjms-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
	background: linear-gradient(135deg, #a23bff 0%, #8f15ff 45%, #6a0fd1 100%);
	box-shadow: 0 14px 26px -14px rgba(143, 21, 255, .75);
	color: #fff !important; font-size: 15.5px; font-weight: 700; line-height: 1.2; text-align: center;
	text-decoration: none !important; transition: transform .2s;
}
body .cjms .cjs-texte a.cjms-cta.cjms-cta-clair {
	background: #fff; border-color: #d9c2ff; color: #4a0b8f !important;
	box-shadow: 0 14px 26px -14px rgba(74, 11, 143, .45);
}
body .cjms .cjs-texte a.cjms-cta:hover,
body .cjms .cjs-texte a.cjms-cta:focus-visible { transform: translateY(-2px); }
body .cjms .cjs-texte a.cjms-cta::before,
body .cjms .cjs-texte a.cjms-cta::after { content: none !important; }

@media (max-width: 720px) {
	body .cjms .cjs-texte a.cjms-cta { width: 100%; }
}

/* ── L'encart des pages Réparation Mac et Ordinateurs portables ──────── */

body .cjms-encart {
	display: flex; align-items: center; gap: 22px; margin: 28px 0; padding: 26px 30px; border-radius: 28px; color: #fff;
	background: radial-gradient(70% 120% at 85% 15%, rgba(143, 21, 255, .55) 0%, rgba(143, 21, 255, 0) 62%), linear-gradient(135deg, #16052e 0%, #2a0a52 48%, #4a0b8f 100%);
	box-shadow: 0 30px 60px -40px rgba(74, 11, 143, .9);
}
body .cjms-encart-picto {
	flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px;
	background: rgba(255, 255, 255, .1); color: #e3d2ff;
}
body .cjms-encart-texte { flex: 1 1 auto; min-width: 0; }
body .cjms-encart p { margin: 0; text-align: left; }
body .cjms-encart .cjms-encart-sur { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9a8ff; }
body .cjms-encart .cjms-encart-titre { margin: 4px 0 6px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.2; color: #fff !important; }
body .cjms-encart .cjms-encart-mot { font-size: 15.5px; line-height: 1.6; color: #e3d2ff; }
body .cjms-encart .cjms-bouton { flex: none; background: #fff; color: #6a0fd1 !important; box-shadow: none; }
body .cjms-encart .cjms-bouton:hover, body .cjms-encart .cjms-bouton:focus-visible { color: #6a0fd1 !important; }

/* ── Tablette et téléphone ───────────────────────────────────────────── */

@media (max-width: 1099px) {
	body .cjms .cjms-cartes, body .cjms .cjms-appareils, body .cjms .cjms-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	body .cjms .cjms-bloc { padding: 40px 0; }
	body .cjms .cjms-cartes, body .cjms .cjms-appareils, body .cjms .cjms-etapes,
	body .cjms .cjms-articles, body .cjms .cjms-boutiques { grid-template-columns: 1fr; }
	body .cjms .cjms-fin-carte { padding: 28px 22px 26px; border-radius: 24px; }
	body .cjms .cjms-actions .cjms-bouton { width: 100%; }
	body .cjms-encart { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 22px; }
	body .cjms-encart-picto { width: 56px; height: 56px; border-radius: 18px; }
	body .cjms-encart .cjms-bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	body .cjms-bouton, body .cjms .cjms-appareil { transition: none; }
	body .cjms-bouton:hover, body .cjms .cjms-appareil:hover { transform: none; }
	/* Le bandeau reste immobile : halo fixe, texte affiché d'emblée, lueur fixe, ni étincelles ni fumée. */
	html body .cjs .cjs-entete.cjms-entete::after,
	html body .cjs .cjms-entete .cjs-entete-mot > *,
	html body .cjs .cjms-scene .cjmsh-l,
	html body .cjs .cjms-scene .cjmsh-e,
	html body .cjs .cjms-scene .cjmsh-f { animation: none !important; }
	html body .cjs .cjms-scene .cjmsh-l { opacity: .9; }
	html body .cjs .cjms-scene .cjmsh-e { opacity: 0; }
	html body .cjs .cjms-scene .cjmsh-f { opacity: .2; }
	body .cjms .cjms-cta { transition: none; }
	body .cjms .cjms-cta:hover { transform: none; }
}
