/*
 * L'univers SIRIS : chargé seulement sur les pages qui le portent.
 *
 * Couleurs de la planche officielle (docs/SIRIS, RISS-2602-logo 02-11) :
 * bleu SIRIS #0065A5, indigo #29256A, mauve #452C81. Le mauve est réservé à
 * SIRIS ; dans la page, il remplace le bleu RISS comme couleur d'accent. Le
 * bleu SIRIS remplit les boutons (blanc dessus : 6,2:1).
 *
 * L'en-tête et le pied restent RISS : seul le contenu change d'univers.
 */

.riss-siris .riss-main {
	--p--color--accent: light-dark(#452C81, #B7A6E6);
	--p--color--accent-fill: #0065A5;
	--p--color--accent-soft: light-dark(#EEEAF8, #1C1838);
	--riss-accent-local: light-dark(#452C81, #B7A6E6);
	--riss-accent-halo: color-mix(in srgb, #452C81 30%, transparent);
	--riss-sa-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}
.riss-siris .riss-main .b-button:not(.st-discret):not(.st-outline) .b-button__link {
	background: linear-gradient(135deg, #0065A5, #3A3592 60%, #452C81);
}
.riss-siris .riss-main .b-button:not(.st-discret):not(.st-outline) .b-button__link:hover {
	box-shadow: 0 12px 30px rgba(69, 44, 129, .45);
}

.riss-mono {
	margin: 0;
	font: 600 11px/1 var(--riss-sa-mono, ui-monospace, monospace);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--p--color--subtle);
}

/* ==========================================================================
   Ouverture : maillage qui respire, grille de points, anneaux, balayage
   ========================================================================== */

@property --sa-x1 { syntax: "<percentage>"; inherits: false; initial-value: 88%; }
@property --sa-y1 { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
@property --sa-x2 { syntax: "<percentage>"; inherits: false; initial-value: 62%; }
@property --sa-y2 { syntax: "<percentage>"; inherits: false; initial-value: 105%; }

.riss-sa-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 120px) !important;
	background:
		radial-gradient(60% 75% at var(--sa-x1) var(--sa-y1), rgba(0, 101, 165, .9), transparent 70%),
		radial-gradient(45% 60% at var(--sa-x2) var(--sa-y2), rgba(69, 44, 129, .95), transparent 70%),
		radial-gradient(70% 70% at -5% 85%, rgba(0, 101, 165, .55), transparent 70%),
		#29256A !important;
	animation: riss-sa-maillage 22s ease-in-out infinite alternate;
}
@keyframes riss-sa-maillage {
	50% { --sa-x1: 70%; --sa-y1: 30%; --sa-x2: 80%; --sa-y2: 90%; }
	100% { --sa-x1: 92%; --sa-y1: 40%; --sa-x2: 45%; --sa-y2: 110%; }
}
/* Grille de points et trois anneaux de mesure, centrés derrière la vidéo. */
.riss-sa-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 74% 46%, transparent 129px, rgba(183, 166, 230, .3) 130px, transparent 131px),
		radial-gradient(circle at 74% 46%, transparent 229px, rgba(183, 166, 230, .2) 230px, transparent 231px),
		radial-gradient(circle at 74% 46%, transparent 339px, rgba(183, 166, 230, .14) 340px, transparent 341px),
		radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px) 0 0 / 28px 28px;
	mask-image: radial-gradient(70% 80% at 70% 40%, #000 0%, transparent 78%);
	animation: riss-sa-respire 7s ease-in-out infinite;
	transform-origin: 74% 46%;
}
/* Balayage de radar : le trait lumineux mène, la traînée suit. */
.riss-sa-hero::after {
	content: "";
	position: absolute;
	left: 74%;
	top: 46%;
	width: 680px;
	height: 680px;
	translate: -50% -50%;
	z-index: -1;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 80%, rgba(183, 166, 230, .3) 100%);
	mask-image: radial-gradient(circle, #000 0%, #000 60%, transparent 71%);
	animation: riss-sa-tourne 9s linear infinite;
}
@keyframes riss-sa-respire { 50% { scale: 1.03; } }
@keyframes riss-sa-tourne { to { rotate: 360deg; } }

.riss-sa-hero__grille { align-items: center !important; gap: 48px; }

/* Le logotype SIRIS sert de masque : rempli d'un dégradé, il se révèle de gauche à droite. */
.riss-siris-logo {
	width: 210px;
	margin: 0 0 26px !important;
	aspect-ratio: 900 / 370;
	background: linear-gradient(100deg, #FFFFFF 30%, #C9BCF0 70%, #8FC3EE);
	mask: url("/assets/ui/assets/img/siris-logo.webp") no-repeat left center / contain;
	-webkit-mask: url("/assets/ui/assets/img/siris-logo.webp") no-repeat left center / contain;
	animation: riss-sa-logo 1.2s .05s var(--riss-ease) both;
}
.riss-siris-logo img { visibility: hidden; width: 100%; height: auto; }
@keyframes riss-sa-logo { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.riss-sa-hero .st-kicker { color: #C9BCF0; }

/* Le sigle déplié, mot à mot (découpé au rendu par le thème). */
.riss-sigle {
	margin: 0 0 26px !important;
	font-size: var(--p--font-size--display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.035em;
	color: #FFFFFF;
}
.riss-mot {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: .08em;
	margin-bottom: -.08em;
}
.riss-mot > span {
	display: inline-block;
	animation: riss-sa-monte .9s var(--riss-ease) both;
	animation-delay: calc(.05s + var(--i, 0) * 80ms);
}
.riss-mot--dernier { overflow: visible; }
.riss-mot--dernier > span { position: relative; }
/* Les cinq initiales : c'est ce qui fait lire SIRIS dans la phrase. */
.riss-i {
	color: #C9BCF0;
	text-shadow: 0 0 24px rgba(183, 166, 230, .6);
}
.riss-souligne {
	position: absolute;
	left: 0;
	bottom: -.12em;
	width: 100%;
	height: .3em;
	overflow: visible;
}
.riss-souligne path {
	fill: none;
	stroke: #8FC3EE;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: riss-sa-trace 1.1s 1.1s var(--riss-ease) forwards;
}
.riss-sa-titre {
	color: #FFFFFF;
	font-size: var(--p--font-size--xxxl);
	animation: riss-sa-apparait .9s .15s var(--riss-ease) both;
}
.riss-sa-hero .st-chapeau { color: rgba(232, 236, 241, .82); max-width: 600px; }
.riss-sa-hero .st-kicker.riss-sa-entree { animation: riss-sa-apparait .9s .3s var(--riss-ease) both; }
.riss-sa-hero .st-chapeau.riss-sa-entree { animation: riss-sa-apparait .9s .75s var(--riss-ease) both; }
.riss-sa-hero .b-buttons.riss-sa-entree { animation: riss-sa-apparait .9s .95s var(--riss-ease) both; }
.riss-sa-hero .b-button.st-discret .b-button__link { color: #FFFFFF; }

@keyframes riss-sa-monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes riss-sa-apparait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riss-sa-trace { to { stroke-dashoffset: 0; } }

/* La vidéo d'Iris : le cadre de l'ancien encadré du sigle. */
.riss-sa-promo-col { display: flex; justify-content: flex-end; }
.riss-sa-promo {
	width: min(100%, 360px);
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(183, 166, 230, .14), transparent 60%), rgba(15, 19, 24, .45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	animation: riss-sa-apparait 1s .4s var(--riss-ease) both;
}
.riss-sa-promo > * { margin-block: 0; }
.riss-sa-promo__video { margin: 0 !important; }
.riss-sa-promo__video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	border-radius: 10px;
	background: #000;
	object-fit: cover;
}
.riss-sa-promo__legende { margin-top: 12px !important; font-size: 13px; line-height: 1.5; color: rgba(232, 236, 241, .7); }
.riss-sa-promo__transcription { margin-top: 8px !important; font-size: 13px; line-height: 1.55; color: rgba(232, 236, 241, .75); }
.riss-sa-promo__transcription summary { cursor: pointer; font-weight: 700; color: #C9BCF0; }
.riss-sa-promo__transcription p { margin: 8px 0 0; }

/* ==========================================================================
   Métiers
   ========================================================================== */

.riss-sa-metiers .b-riss-marquee { margin-block: 12px 0 !important; }
.riss-sa-metiers .b-riss-marquee + .b-riss-marquee { margin-top: 10px !important; }
.b-quote.st-source {
	margin-top: 48px !important;
	max-width: 760px;
	padding: 24px 28px;
	border-left: 3px solid var(--p--color--accent);
	border-radius: 0 12px 12px 0;
	background: var(--riss-voile);
}
.b-quote.st-source p { margin: 0 0 12px; font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--p--color--contrast-strong); }
.b-quote.st-source cite { font-size: 13px; font-style: normal; }

/* ==========================================================================
   Démarche : la scène collante suit le texte
   ========================================================================== */

.riss-recit { gap: 56px !important; margin-top: 24px !important; }
.riss-recit__scene > .b-riss-siris-scene {
	position: sticky;
	top: calc(var(--riss-entete-h) + 20px);
	height: calc(100vh - var(--riss-entete-h) - 40px);
	max-height: 820px;
}
.riss-etape {
	min-height: 82vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	--riss-accent-local: var(--p--color--accent);
}
.riss-etape > * { margin-block: 0; }
.riss-etape > * + * { margin-block-start: 16px; }
.riss-js .riss-etape { opacity: .32; transition: opacity .6s var(--riss-ease); }
.riss-js .riss-etape.is-active { opacity: 1; }
.riss-etape-n {
	font: 700 13px var(--riss-sa-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p--color--accent);
}
.riss-etape h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.riss-etape p { font-size: 17px; line-height: 1.7; color: var(--p--color--muted); }

/* ==========================================================================
   Offre : quatre briques, icônes tracées à l'apparition
   ========================================================================== */

.riss-brique .riss-icone {
	width: 46px;
	height: 46px;
	margin-bottom: 10px;
	fill: none;
	stroke: var(--p--color--accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.riss-js .riss-brique .riss-icone > * {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.1s var(--riss-ease);
	transition-delay: calc(.25s + var(--i, 0) * .12s);
}
.riss-js .is-in .riss-brique .riss-icone > * { stroke-dashoffset: 0; }
.riss-brique .b-html { margin: 0; }

/* ==========================================================================
   Périmètre
   ========================================================================== */

.riss-perimetre { border-color: color-mix(in srgb, var(--p--color--accent) 45%, transparent) !important; }
.riss-carte-titre {
	font-size: 13px !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 16px !important;
}
.riss-siris :is(.b-list.st-coches) > li::before { background: light-dark(#452C81, #6B55B0); }

/* ==========================================================================
   Paliers
   ========================================================================== */

.riss-paliers { align-items: flex-end !important; }
.riss-palier { overflow: visible !important; }
.riss-palier.is-courant {
	border-color: color-mix(in srgb, var(--p--color--accent) 55%, transparent) !important;
	box-shadow: 0 24px 60px rgba(69, 44, 129, .18);
}
.riss-palier__tag {
	position: absolute;
	top: -11px;
	left: 24px;
	margin: 0 !important;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #FFFFFF !important;
	background: linear-gradient(135deg, #0065A5, #452C81);
}
.riss-palier h3 { margin-top: 8px !important; }
.riss-palier__prix { font-size: 16.5px !important; font-weight: 700; color: var(--p--color--accent) !important; }
.riss-palier .b-html { margin: 0 0 14px !important; }

.riss-parc { display: grid; gap: 7px; }
.riss-parc--4 { grid-template-columns: repeat(4, 14px); }
.riss-parc--7 { grid-template-columns: repeat(7, 14px); }
.riss-parc--9 { grid-template-columns: repeat(9, 14px); }
.riss-parc span {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: linear-gradient(135deg, #0065A5, #6B55B0);
	box-shadow: 0 0 10px rgba(107, 85, 176, .35);
}
.riss-js .riss-parc span { opacity: 0; transform: scale(.3); transition: opacity .35s, transform .45s var(--riss-ease); }
.riss-js .is-in .riss-parc span { opacity: 1; transform: none; }
/* Les carrés s'allument un à un là où le navigateur connaît leur rang. */
@supports (transition-delay: calc(sibling-index() * 1ms)) {
	.riss-js .riss-parc span { transition-delay: calc(.2s + sibling-index() * 22ms); }
}

.riss-inclus {
	margin-top: 22px !important;
	padding: 28px 30px;
	border: 1px solid color-mix(in srgb, var(--p--color--accent) 35%, transparent);
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--p--color--accent) 9%, transparent), transparent 60%), var(--p--color--surface);
}
.riss-inclus .riss-carte-titre { color: var(--p--color--accent); margin-top: 0 !important; }
.riss-inclus .b-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.riss-inclus .b-list > li { font-size: 15px; color: var(--p--color--muted); }

/* ==========================================================================
   Démarrage : le rail se remplit avec le défilement, sans script
   ========================================================================== */

.riss-ligne {
	position: relative;
	margin-top: 46px !important;
	gap: 24px !important;
	view-timeline-name: --riss-ligne;
}
.riss-ligne::before,
.riss-ligne::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	top: 8px;
	height: 2px;
	background: var(--p--color--line-strong);
}
.riss-ligne::after {
	background: linear-gradient(90deg, #0065A5, #452C81);
	transform-origin: left;
}
.riss-ligne__etape { position: relative; padding-top: 38px; }
.riss-ligne__etape > * { margin-block: 0; }
.riss-ligne__etape > * + * { margin-block-start: 8px; }
.riss-ligne__etape .riss-mono { color: var(--p--color--accent); margin-bottom: 4px; }
.riss-ligne__etape h3 { font-size: 19px; }
.riss-ligne__etape p:not(.riss-mono) { font-size: 15px; line-height: 1.6; color: var(--p--color--muted); }
.riss-ligne__etape::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #452C81;
	border: 2px solid #452C81;
	box-shadow: 0 0 0 6px rgba(69, 44, 129, .15);
	z-index: 1;
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.riss-ligne::after {
			animation: riss-sa-rail linear both;
			animation-timeline: --riss-ligne;
			animation-range: entry 40% cover 55%;
		}
		.riss-ligne__etape::before {
			animation: linear both;
			animation-timeline: --riss-ligne;
			animation-range: entry 40% cover 55%;
		}
		.riss-ligne__etape:nth-child(1)::before { animation-name: riss-sa-point-1; }
		.riss-ligne__etape:nth-child(2)::before { animation-name: riss-sa-point-2; }
		.riss-ligne__etape:nth-child(3)::before { animation-name: riss-sa-point-3; }
		.riss-ligne__etape:nth-child(4)::before { animation-name: riss-sa-point-4; }
	}
}
@keyframes riss-sa-rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes riss-sa-point-1 { from { background: var(--p--color--base); border-color: var(--p--color--line-strong); box-shadow: none; } 1% { background: #452C81; border-color: #452C81; box-shadow: 0 0 0 6px rgba(69, 44, 129, .15); } }
@keyframes riss-sa-point-2 { 0%, 32% { background: var(--p--color--base); border-color: var(--p--color--line-strong); box-shadow: none; } 34%, 100% { background: #452C81; border-color: #452C81; box-shadow: 0 0 0 6px rgba(69, 44, 129, .15); } }
@keyframes riss-sa-point-3 { 0%, 65% { background: var(--p--color--base); border-color: var(--p--color--line-strong); box-shadow: none; } 67%, 100% { background: #452C81; border-color: #452C81; box-shadow: 0 0 0 6px rgba(69, 44, 129, .15); } }
@keyframes riss-sa-point-4 { 0%, 97% { background: var(--p--color--base); border-color: var(--p--color--line-strong); box-shadow: none; } 99%, 100% { background: #452C81; border-color: #452C81; box-shadow: 0 0 0 6px rgba(69, 44, 129, .15); } }

/* ==========================================================================
   Fin de page
   ========================================================================== */

.riss-sa-fin { text-align: center; }
.riss-sa-fin .b-buttons { justify-content: center; }
.riss-sa-fin .st-chapeau { margin-inline: auto; color: rgba(232, 236, 241, .82); }
.riss-avertissement { margin-top: 56px !important; font-size: 12.5px; line-height: 1.6; color: rgba(232, 236, 241, .6); max-width: 560px; margin-inline: auto; }
.riss-sa-fin .b-button.st-discret .b-button__link { color: #FFFFFF; }

/* ==========================================================================
   Mouvement réduit, tablettes, téléphones
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.riss-sa-hero, .riss-sa-hero::before, .riss-sa-hero::after { animation: none; }
	.riss-mot > span, .riss-siris-logo, .riss-sa-promo, .riss-sa-titre, .riss-sa-entree { animation: none !important; }
	.riss-souligne path { stroke-dashoffset: 0; animation: none; }
	.riss-js .riss-etape { opacity: 1; }
}

@media (max-width: 980px) {
	.riss-sa-hero::after { left: 50%; top: 70%; }
	.riss-sa-promo-col { justify-content: center; }
	.riss-ligne { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px !important; }
	.riss-ligne::before, .riss-ligne::after { display: none; }
}

@media (max-width: 860px) {
	.riss-recit { gap: 0 !important; }
	.riss-recit__scene {
		order: -1;
		position: sticky;
		top: var(--riss-entete-h);
		z-index: 2;
		/* Fond plein jusque sous les repères : seul un liseré final s'estompe,
		   sinon le texte qui défile dessous passe à travers les étiquettes. */
		padding: 10px 0 22px;
		background: linear-gradient(var(--p--color--base) calc(100% - 18px), transparent);
	}
	.riss-recit__scene > .b-riss-siris-scene { position: static; height: auto; }
	.riss-recit__scene .riss-sa__scene { max-height: 38vh; }
	.riss-etape { min-height: 72vh; justify-content: flex-start; padding-top: 6vh; }
}

@media (max-width: 640px) {
	.riss-inclus .b-list, .riss-ligne { grid-template-columns: 1fr; }
	.riss-sa-promo { padding: 10px; }
	.riss-siris-logo { width: 160px; }
}

/* Retouches après relecture : le bloc HTML du cœur n'a pas d'enveloppe, la
   marge se pose donc sur le contenu lui-même. */
.riss-parc { margin-bottom: 18px; }
.riss-brique .riss-icone { display: block; }
.riss-sa-hero .st-kicker.riss-sa-entree { margin-top: 0 !important; }
.riss-siris-logo + .st-kicker { margin-top: 0; }

/* ---- Offre du 28 octobre 2026 ----
   Le surtitre dit à qui s'adresse SIRIS (annotation #23) : plus grand que le
   « by RISS Canada » du logotype, plus petit que le sigle déplié. */
.riss-sa-hero .st-kicker.riss-sa-surtitre {
	font-size: clamp(15px, 1.5vw, 19px) !important;
	letter-spacing: .06em;
	line-height: 1.35;
}

/* Les étapes portent maintenant un prix d'appel, des listes et une note : le
   texte courant garde sa taille, le reste se lit en second. */
.riss-etape .riss-etape__prix { margin-block-start: 6px; }
.riss-etape .riss-etape__sous { font-size: 15px; margin-block-start: 22px; color: var(--p--color--contrast-strong); }
.riss-etape .riss-etape__intro { font-size: 14px; margin-block-start: 4px; color: var(--p--color--subtle); }
.riss-etape .riss-etape__liste { margin-block-start: 8px; }
.riss-etape .riss-etape__liste li { font-size: 15px; line-height: 1.55; }
.riss-etape .riss-etape__note { font-size: 13.5px; line-height: 1.6; color: var(--p--color--subtle); }
