/**
 * Page PACK (single-training_pack.php) - style STANDARD du site (accueil / formation).
 * Scope : .site-main--pack (aucune fuite ailleurs). Reutilise les tokens globaux.
 * Reference : maquette-pack.html (wireframe), aligne sur la charte IFCIA.
 */

.site-main--pack {
	--pack-radius: var(--radius);
	--pack-radius-sm: var(--radius-sm);
	background: var(--base-2);
}

/* Cartes formations : VERTICALES, identiques a l'accueil (grille/carousel standard).
   Pas de surcharge de colonnes -> comportement natif .formations-grid (3 par rangee).
   Cartes plus HAUTES (portrait franc) sur le pack : min-height 480px. */
.site-main--pack .formation-card--dark .formation-card__body,
.site-main--pack .formation-card--accent .formation-card__body { min-height: 480px; }

/* Galerie / video du pack */
.pack-video { max-width: 900px; margin: 0 auto 28px; border-radius: var(--pack-radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.pack-video__el { width: 100%; display: block; aspect-ratio: 16 / 9; }
.pack-video__embed iframe, .site-main--pack .wp-video, .site-main--pack .wp-video video { width: 100% !important; aspect-ratio: 16 / 9; height: auto; display: block; border: 0; }
.pack-gallery-controls { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }

/* Fil d'Ariane */
.pack-crumbs {
	font-size: 13px;
	color: var(--contrast-2);
	padding-top: 4px;
	padding-bottom: 18px;
}
.pack-crumbs a:hover { color: var(--main); }
.pack-crumbs .sep { margin: 0 8px; color: var(--contrast-3); }
.pack-crumbs .cur { color: var(--contrast); }

/* Eyebrow pastille (surcharge locale : look pill de la maquette) */
.site-main--pack .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--main-accent);
	background: rgba(233, 30, 140, .08);
	border: 1px solid rgba(233, 30, 140, .16);
	padding: 6px 14px;
	border-radius: 999px;
	line-height: 1.2;
}
.site-main--pack .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--main); flex: none; }

/* Boutons pack */
.pack-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-inter);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 26px;
	border-radius: 12px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: .18s;
	text-align: center;
}
.pack-btn--primary { background: var(--main); color: #fff; }
.pack-btn--primary:hover { background: var(--main-accent); color: #fff; }
.pack-btn--ghost { background: #fff; color: var(--base); border-color: var(--card-border); }
.pack-btn--ghost:hover { border-color: var(--contrast-2); }

/* ============================ HERO ============================ */
.pack-hero { padding: 18px 0 64px; }
.pack-hero__grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 48px;
	align-items: start;
	margin-top: 22px;
}
.pack-hero__title { font-size: 48px; font-weight: 800; margin: 18px 0 16px; }
.pack-hero__lede { font-size: 18px; color: var(--contrast); max-width: 44ch; }

.pack-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.pack-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	color: var(--contrast);
	background: var(--background-alt);
	padding: 8px 13px;
	border-radius: 10px;
}
.pack-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--contrast); }
.pack-trust > span { display: inline-flex; align-items: center; gap: 7px; }
.pack-trust__ic { width: 16px; height: 16px; color: var(--green); }
.pack-trust .check { display: inline-flex; }

/* Carte prix (sticky) */
.pack-hero__aside { position: sticky; top: 94px; }
.pack-price {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: var(--pack-radius);
	box-shadow: var(--shadow-lg);
	padding: 26px;
}
.pack-price__tag { font-size: 13px; font-weight: 600; color: var(--main-accent); }
.pack-price__now {
	font-size: 40px;
	font-family: var(--font-sora);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-top: 6px;
	line-height: 1;
}
.pack-price__now small { font-size: 15px; font-weight: 600; color: var(--contrast); }
.pack-price__line { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pack-price__old { font-size: 14px; color: var(--contrast-2); text-decoration: line-through; }
.pack-save {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--green);
	background: rgba(16, 185, 129, .1);
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
}
.pack-price .pack-btn { width: 100%; margin-top: 18px; }
/* Bouton d'achat brutalist (comme les fiches formation) */
.pack-buy { width: 100%; justify-content: center; }
.pack-price .pack-buy { margin-top: 18px; }
.pack-note { font-size: 13px; color: var(--contrast); font-style: italic; text-align: center; margin: 14px 4px 0; }
.pack-price__meta {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--card-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13.5px;
	color: var(--contrast);
}
.pack-price__meta span { display: flex; align-items: center; gap: 9px; }

/* Mini sessions repliables */
.pack-mini { margin-top: 12px; text-align: center; }
.pack-mini summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--contrast);
}
.pack-mini summary:hover { color: var(--base); }
.pack-mini summary::-webkit-details-marker { display: none; }
.pack-mini summary::after { content: "\25BE"; font-size: 9px; transition: .2s; }
.pack-mini[open] summary::after { transform: rotate(180deg); }
.pack-mini__panel {
	margin-top: 12px;
	text-align: left;
	background: var(--background-alt);
	border-radius: var(--pack-radius-sm);
	padding: 14px 16px;
}
.pack-ms { padding: 9px 0; border-top: 1px solid var(--card-border); }
.pack-ms:first-of-type { border-top: none; padding-top: 0; }
.pack-ms__nm { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.pack-ms__slot { font-size: 12.5px; color: var(--contrast); display: block; }
.pack-ms__later { font-size: 12.5px; color: var(--contrast-2); font-style: italic; }

/* ============================ SECTIONS ============================ */
.pack-section { padding: 66px 0; }
.pack-section--alt { background: var(--background); }
.pack-sechead { max-width: 640px; margin-bottom: 38px; }
.pack-sechead--center { margin: 0 auto 34px; text-align: center; }
.pack-sechead h2 { font-size: 34px; font-weight: 700; margin: 14px 0 12px; }
.pack-sechead p { color: var(--contrast); font-size: 16.5px; }

/* Titre de bloc (option "Affichage par blocs titres" du pack). */
.pack-block-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 700;
	color: var(--base);
	margin: 8px 0 18px;
}
.pack-block-title::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--main);
}
.formations-grid + .pack-block-title { margin-top: 42px; }
.pack-flist + .pack-block-title { margin-top: 42px; }

/* Affichage compact des formations d'un pack (sous-option des blocs).
   Lignes sobres : propre meme quand un bloc n'a que 2 ou 3 formations. */
.pack-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pack-frow {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: var(--pack-radius-sm);
	padding: 14px 18px;
	box-shadow: var(--shadow);
	transition: .18s;
}
.pack-frow:hover { border-color: var(--contrast-3); box-shadow: var(--shadow-lg); }
.pack-frow__thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--background-alt); }
.pack-frow__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-frow__thumb--ph { background: linear-gradient(135deg, rgba(233,30,140,.12), rgba(139,92,246,.12)); }
.pack-frow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pack-frow__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--main-accent);
	background: rgba(233, 30, 140, .08);
	padding: 3px 10px;
	border-radius: 999px;
	line-height: 1.3;
}
.pack-frow__bic { width: 13px; height: 13px; }
.pack-frow__title { font-family: var(--font-sora); font-weight: 700; font-size: 16px; line-height: 1.3; }
.pack-frow__title a { color: var(--base); }
.pack-frow__title a:hover { color: var(--main); }
.pack-frow__meta { font-size: 13px; color: var(--contrast); }
.pack-frow__link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; color: var(--main); white-space: nowrap; }
.pack-frow__link:hover { color: var(--main-accent); }
.pack-frow__link svg { flex: none; }
@media (max-width: 560px) {
	.pack-frow { gap: 14px; padding: 12px 14px; }
	.pack-frow__thumb { width: 52px; height: 52px; }
	.pack-frow__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Cartes formations */
.pack-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pack-fcard {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: var(--pack-radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: .2s;
}
.pack-fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pack-fcard__media {
	height: 130px;
	background-size: cover;
	background-position: center;
	position: relative;
}
.pack-fcard__badges { position: absolute; top: 13px; left: 13px; display: flex; gap: 8px; }
.pack-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(17, 24, 39, .55);
	backdrop-filter: blur(6px);
	padding: 6px 11px;
	border-radius: 8px;
}
.pack-badge--pink { background: var(--main); }
.pack-fcard__body { padding: 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pack-fcard__kicker { font-size: 12px; font-weight: 600; color: var(--main-accent); display: flex; align-items: center; gap: 7px; }
.pack-fcard__body h3 { font-size: 17px; font-weight: 700; }
.pack-fcard__desc { font-size: 13.5px; color: var(--contrast); }
.pack-fcard__foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--card-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.pack-fcard__indiv { font-size: 12.5px; color: var(--contrast-2); white-space: nowrap; }
.pack-fcard__indiv b { color: var(--base); font-size: 15px; font-family: var(--font-sora); white-space: nowrap; }
.pack-fcard__link { color: var(--main); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.pack-fcard__link:hover { color: var(--main-accent); }

/* Avantages (pourquoi choisir) */
.pack-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pack-bcard {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: var(--pack-radius-sm);
	padding: 26px;
	text-align: center;
}
.pack-bicon {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: rgba(233, 30, 140, .08);
	display: grid;
	place-items: center;
	margin: 0 auto 16px;
	color: var(--main);
}
.pack-bicon svg { width: 26px; height: 26px; }
.pack-bcard h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.pack-bcard p { font-size: 13.5px; color: var(--contrast); }

/* Detail du tarif */
.pack-recap {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: var(--pack-radius);
	box-shadow: var(--shadow);
	max-width: 760px;
	margin: 0 auto;
	padding: 30px;
}
.pack-recap__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--card-border);
}
.pack-recap__name { font-weight: 600; font-size: 15px; }
.pack-recap__name small { display: block; color: var(--contrast-2); font-size: 12.5px; font-weight: 500; }
.pack-recap__amt { font-weight: 600; font-size: 15px; white-space: nowrap; }
.pack-recap__value { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 600; }
.pack-recap__strike { color: var(--contrast-2); text-decoration: line-through; }
.pack-recap__total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	border-top: 2px solid var(--base);
	padding-top: 18px;
	margin-top: 4px;
}
.pack-recap__lbl { font-weight: 600; }
.pack-recap__lbl small { display: block; color: var(--green); font-weight: 600; font-size: 13px; }
.pack-recap__big { font-family: var(--font-sora); font-weight: 800; font-size: 38px; letter-spacing: -.02em; white-space: nowrap; }
.pack-recap .pack-btn { width: 100%; margin-top: 20px; }
.pack-recap .pack-buy { margin-top: 20px; }

/* Financement */
.pack-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.pack-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 13px 18px;
	font-size: 14px;
	font-weight: 500;
}

/* FAQ */
.pack-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pack-q { background: #fff; border: 1px solid var(--card-border); border-radius: var(--pack-radius-sm); box-shadow: var(--shadow); }
.pack-q summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	font-family: var(--font-sora);
	font-weight: 600;
	font-size: 16px;
}
.pack-q summary::-webkit-details-marker { display: none; }
.pack-q summary::after { content: "+"; font-size: 22px; color: var(--main); transition: .2s; line-height: 1; }
.pack-q[open] summary::after { transform: rotate(45deg); }
.pack-q__a { padding: 0 22px 20px; color: var(--contrast); font-size: 14.5px; }

/* CTA final */
.pack-ctawrap { padding: 16px 0 64px; }
.pack-cta {
	background: linear-gradient(135deg, var(--main), var(--violet));
	color: #fff;
	border-radius: 28px;
	text-align: center;
	padding: 62px 28px;
}
.pack-cta__inner { max-width: 640px; margin: 0 auto; }
.pack-cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; color: #fff; }
.pack-cta p { font-size: 17px; opacity: .92; margin-bottom: 24px; }
.pack-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pack-cta .pack-btn--primary { background: #fff; color: var(--main-accent); }
.pack-cta .pack-btn--primary:hover { background: rgba(255, 255, 255, .9); color: var(--main-accent); }
.pack-cta .pack-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.pack-cta .pack-btn--ghost:hover { border-color: #fff; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
	.pack-hero__grid { grid-template-columns: 1fr; gap: 30px; }
	.pack-hero__aside { position: static; }
	.pack-cards { grid-template-columns: repeat(2, 1fr); }
	.pack-grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.pack-hero__title { font-size: 34px; }
	.pack-sechead h2 { font-size: 27px; }
	.pack-cards { grid-template-columns: 1fr; }
	.pack-grid4 { grid-template-columns: 1fr; }
	.pack-cta h2 { font-size: 27px; }
	.pack-section { padding: 48px 0; }
}

/* Fond du hero pack : clair (defaut) / degrade (comme accueil) / image */
/* Fond DÉGRADÉ DOUX CLAIR (identique au hero de l'accueil) : texte foncé conservé. */
.pack-hero--gradient { position: relative; overflow: hidden; background: linear-gradient(180deg, #fdfbff 0%, #fdf3f9 46%, #faf6ff 100%); }
.pack-hero--gradient::before { content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
	background:
		radial-gradient(60% 55% at 27% 38%, rgba(233,30,140,.16) 0%, rgba(233,30,140,0) 60%),
		radial-gradient(55% 55% at 70% 36%, rgba(139,92,246,.16) 0%, rgba(139,92,246,0) 62%),
		radial-gradient(45% 45% at 88% 26%, rgba(59,130,246,.10) 0%, rgba(59,130,246,0) 60%); }
/* Fond IMAGE : voile sombre + texte blanc. */
.pack-hero--image { position: relative; background-size: cover; background-position: center; }
.pack-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17,24,39,.72), rgba(17,24,39,.45)); }
.pack-hero--gradient .container, .pack-hero--image .container { position: relative; z-index: 1; }
/* Texte blanc UNIQUEMENT sur fond image (le dégradé doux garde le texte foncé du site). */
.pack-hero--image .pack-hero__title,
.pack-hero--image .pack-hero__lede,
.pack-hero--image .pack-trust { color: #fff; }
.pack-hero--image .eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.pack-hero--image .pack-pill { background: rgba(255,255,255,.16); color: #fff; }
.pack-hero--image .pack-trust__ic { color: #fff; }
/* Fil d'Ariane : blanc sur fond image (sur le dégradé doux et le fond clair il reste foncé). */
.pack-hero--image .pack-crumbs,
.pack-hero--image .pack-crumbs .sep,
.pack-hero--image .pack-crumbs .cur { color: rgba(255,255,255,.82); }
.pack-hero--image .pack-crumbs a { color: #fff; }

/* Logos des organismes de financement */
.pack-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 34px; margin-top: 26px; }
.pack-logos__img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.pack-logos__img:hover { filter: none; opacity: 1; }
