/* ==========================================================================
   Signal Spam — styles complémentaires à theme.json
   ========================================================================== */

:root {
	--ss-navy: var(--wp--preset--color--navy, #121254);
	--ss-red: var(--wp--preset--color--red, #c00039);
	--ss-header-h: 76px;
	--ss-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8a248 248 0 1 1 0 496 248 248 0 0 1 0-496zm-28.9 143.6 75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z'/%3E%3C/svg%3E");
}

:root {
	--ss-arrow-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C00039' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12h10M13 7.5 17.5 12 13 16.5'/%3E%3C/svg%3E");
}

html { scroll-padding-top: var(--ss-header-h); }
body { overflow-x: hidden; }

/* Bouton avec flèche cerclée (SIGNALER, Découvrir Signal Spam) */
.ss-btn-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.ss-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--ss-arrow) center / contain no-repeat;
	mask: var(--ss-arrow) center / contain no-repeat;
}
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 16px rgba(18,18,84,.2); }

/* ---------- Hero ------------------------------------------------------- */
/* Hauteur compacte : le contenu dicte la hauteur (plus de plein écran),
   pour laisser apparaître le début de la section suivante. */
.ss-hero { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(24px, 4vw, 48px) !important; }
.ss-hero > * { width: 100%; }
.ss-hero-cols { gap: 2rem; }
.ss-hero-left img { max-width: 280px; margin-inline: auto; }
.ss-hero-right img { max-width: 160px; margin-inline: auto; }
.ss-hero-words { text-align: left; }
.ss-hero-word {
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0 !important;
}
.ss-typing.is-typing::after {
	content: "";
	display: inline-block;
	width: 3px;
	height: .9em;
	margin-left: 4px;
	background: currentColor;
	vertical-align: -0.08em;
	animation: ss-blink 1s steps(1) infinite;
}
@keyframes ss-blink { 50% { opacity: 0; } }
.ss-hero-intro { font-weight: 500; max-width: 560px; margin: 1.25rem auto 0 !important; }
.ss-hero-intro em { color: var(--ss-red); }

.ss-float img { animation: ss-float 6s ease-in-out infinite; }
.ss-float-alt img { animation-delay: -3s; }
@keyframes ss-float {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-14px) rotate(-2deg); }
}

/* ---------- Comment cela fonctionne ------------------------------------ */
.ss-how { position: relative; }
.ss-steps { padding-inline: 4%; }
.ss-step {
	background: #fff;
	border-radius: 50px;
	padding: 40px 30px 50px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.ss-step-img img { height: 110px; width: auto; }
.ss-step-num {
	width: 52px;
	height: 47px;
	margin: 18px auto 0 !important;
	border: 3px solid var(--ss-navy);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1;
}
.ss-step-title { margin-top: 12px !important; font-size: 1.65rem !important; }
.ss-how-cta { margin-top: 50px !important; position: relative; z-index: 2; }
/* Bouton d'appel à l'action principal, posé sur le fond bleu nuit : plein rouge,
   liseré blanc, flèche, halo qui « respire » pour attirer l'œil. */
.ss-btn-pill .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 20px 26px 20px 40px;
	border: 4px solid #fff;
	border-radius: 999px;
	background: var(--ss-red) !important;
	color: #fff !important;
	font-size: clamp(1.05rem, .9rem + .5vw, 1.3rem);
	font-weight: 700;
	letter-spacing: .04em;
	box-shadow: 0 12px 28px rgba(192, 0, 57, .35), 0 4px 10px rgba(18, 18, 84, .2);
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* Flèche dans une pastille blanche */
.ss-btn-pill .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: #fff var(--ss-arrow-red) center / 100% no-repeat;
	transition: transform .2s ease;
}
.ss-btn-pill .wp-block-button__link:hover,
.ss-btn-pill .wp-block-button__link:focus-visible {
	background: #A00030 !important;
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(192, 0, 57, .45), 0 6px 12px rgba(18, 18, 84, .25);
	text-decoration: none;
}
.ss-btn-pill .wp-block-button__link:hover::after,
.ss-btn-pill .wp-block-button__link:focus-visible::after { transform: translateX(5px); }
.ss-btn-pill .wp-block-button__link:focus-visible { outline: 3px solid var(--ss-navy); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
	.ss-btn-pill .wp-block-button__link::before {
		content: "";
		position: absolute;
		inset: -4px;
		border-radius: inherit;
		box-shadow: 0 0 0 0 rgba(192, 0, 57, .55);
		animation: ss-cta-pulse 2.4s ease-out infinite;
		pointer-events: none;
	}
	@keyframes ss-cta-pulse {
		0% { box-shadow: 0 0 0 0 rgba(192, 0, 57, .55); }
		70%, 100% { box-shadow: 0 0 0 18px rgba(192, 0, 57, 0); }
	}
}

/* ---------- Actions ---------------------------------------------------- */
.ss-actions h2 em { font-style: italic; }
/* Étiquette au-dessus du titre : pastille rouge sur fond rosé */
.ss-kicker {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: #FBE6EC;
	color: var(--ss-red);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
	font-size: .8rem;
	margin-bottom: .25rem !important;
}

/* Chaque bloc devient une carte compacte : visuel réduit (≈ 40 %), texte à côté.
   Deux blocs tiennent dans un écran d'ordinateur portable. */
.ss-feature {
	padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
	border-radius: 28px;
	background: #fff;
}
.ss-feature > .wp-block-column:has(> .wp-block-image) {
	flex: 0 0 38% !important;
	max-width: 38%;
}
.ss-feature h3 { margin-top: .5rem !important; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem) !important; }
.ss-feature p, .ss-feature li { font-size: 1rem; }
.ss-feature img { border-radius: 20px; width: 100%; max-height: 220px; object-fit: contain; }
.ss-feature a { color: var(--ss-navy); text-decoration: underline; }

.ss-triangle-list { list-style: none; padding-left: 0; }
.ss-triangle-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ss-triangle-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 14px;
	height: 14px;
	background: var(--ss-red);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Variante « 3 cartes côte à côte » : classe is-row sur le groupe .ss-features
   (retirer la classe dans l'éditeur pour revenir aux blocs empilés). */
@media (min-width: 900px) {
	.ss-features.is-row {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(16px, 2vw, 28px);
		margin-top: 48px !important;
		align-items: stretch;
	}
	.ss-features.is-row > .ss-feature {
		flex-direction: column !important;
		justify-content: flex-start;
		gap: 18px !important;
		margin: 0 !important;
		padding: 20px 20px 28px;
	}
	/* Le visuel toujours en haut, même pour le bloc « inversé » */
	.ss-features.is-row > .ss-feature-reverse { flex-direction: column-reverse !important; justify-content: flex-end; }
	.ss-features.is-row > .ss-feature > .wp-block-column,
	.ss-features.is-row > .ss-feature > .wp-block-column:has(> .wp-block-image) {
		flex: 0 0 auto !important;
		max-width: 100%;
		width: 100%;
		align-self: stretch;
	}
	.ss-features.is-row .ss-feature img { max-height: 180px; }
	.ss-features.is-row .ss-feature h3 { font-size: 1.3rem !important; }
	.ss-features.is-row .ss-feature p,
	.ss-features.is-row .ss-feature li { font-size: .95rem; }
	.ss-features.is-row .ss-feature .wp-block-column > * + * { margin-top: .75rem; }
}

@media (max-width: 781px) {
	.ss-feature-reverse { flex-direction: column-reverse; }
	.ss-feature > .wp-block-column:has(> .wp-block-image) { flex-basis: 100% !important; max-width: 100%; }
	.ss-feature img { max-height: 200px; }
}

/* ---------- Plateforme ------------------------------------------------- */
.ss-platform-title { font-size: clamp(1.5rem, 3vw, 2.2rem) !important; }
.ss-platform strong { color: #fff; }
.ss-btn-light .wp-block-button__link {
	background: #fff !important;
	color: var(--ss-red) !important;
	border-radius: 10px;
	padding: 12px 24px;
}

/* ---------- Membres (défilement continu) ------------------------------- */
.ss-marquee {
	overflow: hidden;
	margin-top: 40px !important;
	gap: 0 !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ss-marquee-track {
	display: flex;
	align-items: center;
	gap: 60px;
	padding-right: 60px;
	flex-shrink: 0;
	animation: ss-marquee var(--ss-marquee-duration, 60s) linear infinite;
}
.ss-marquee:hover .ss-marquee-track { animation-play-state: paused; }
.ss-member-logo { margin: 0 !important; flex-shrink: 0; }
.ss-member-logo img { height: 90px; width: auto; max-width: 220px; object-fit: contain; }
@keyframes ss-marquee { to { transform: translateX(-100%); } }

/* ---------- Pied de page ----------------------------------------------- */
.ss-footer a { color: inherit; }
.ss-footer-about { text-align: justify; line-height: 1.6; }
.ss-footer-title { color: #fff !important; font-size: 1.1rem !important; margin-bottom: .75rem !important; }
.ss-footer-title a { color: #fff !important; }
.ss-footer-links { list-style: none; padding: 0; font-size: .88rem; line-height: 1.5; }
.ss-footer-links a { color: #fff; }
.ss-footer-links a:hover { color: var(--wp--preset--color--pink); }
.ss-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); text-transform: none; }
.ss-footer-bottom p { margin: 0; }

/* ---------- Mobile ----------------------------------------------------- */
@media (max-width: 781px) {
	.ss-hero-left img { max-width: 220px; }
	.ss-hero-right { display: none; }
	.ss-hero-words { text-align: center; }
	.ss-step + .ss-step { margin-top: 20px; }
	.ss-actions { padding-top: 60px !important; }
	.ss-hero { min-height: 0; }
	.ss-steps { padding-inline: 0; }
	.ss-step { padding: 30px 22px 36px; border-radius: 36px; }
}

/* ---------- Accessibilité : mouvement réduit --------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ss-float img,
	.ss-marquee-track,
	.ss-typing.is-typing::after { animation: none !important; }
	.ss-marquee { overflow-x: auto; }
}
