/* ---------- Bandeau défilant des études de cas ---------- */
.promethys-carrousel { margin-block: 1.5rem 2.5rem; }
.promethys-carrousel__piste {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3rem) / 3);
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}
.promethys-carrousel__piste::-webkit-scrollbar { display: none; }
.promethys-carrousel__piste:focus-visible { outline: 3px solid #76C5F6; outline-offset: 4px; }
@media (max-width: 1000px) { .promethys-carrousel__piste { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 640px)  { .promethys-carrousel__piste { grid-auto-columns: 86%; } }

.promethys-carte-etude {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem 1.5rem 1.25rem;
	background: #EEF4F8;
	border-top: 4px solid #0396EF;
	min-height: 100%;
	box-sizing: border-box;
}
.promethys-carte-etude__secteur {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0396EF;
}
.promethys-carte-etude__titre { margin: 0; font-size: 1.1875rem; line-height: 1.25; }
.promethys-carte-etude__texte { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.promethys-carte-etude__expertises {
	margin: auto 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid #D3DFE8;
	font-size: 0.8125rem;
	color: #4A5866;
}
.promethys-carrousel__commandes { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
.promethys-carrousel__btn {
	width: 2.5rem; height: 2.5rem;
	border: 1px solid #14202B;
	background: #fff; color: #14202B;
	font-size: 1.25rem; line-height: 1;
	cursor: pointer;
	border-radius: 2px;
}
.promethys-carrousel__pause { font-size: 0.7rem; letter-spacing: -0.1em; }
.promethys-carrousel__btn:hover { background: #14202B; color: #fff; }
.promethys-carrousel__btn:focus-visible { outline: 3px solid #76C5F6; outline-offset: 2px; }

/* ---------- Bouton de téléchargement après envoi d'un formulaire ---------- */
.promethys-telechargement {
	max-width: 640px;
	box-sizing: border-box;
	margin-top: 1.25rem;
	padding: 1.25rem 1.5rem;
	background: #EEF4F8;
	border-left: 4px solid #0396EF;
}
.promethys-telechargement p { margin: 0 0 0.75rem; }
.promethys-telechargement a.promethys-telechargement__btn {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	background: #0396EF; color: #fff;
	font-weight: 600; text-decoration: none;
	border-radius: 2px;
}
.promethys-telechargement a.promethys-telechargement__btn:hover { background: #14202B; }

/* ---------- Études de cas en cartes fixes (accueil, une seule étude…) ---------- */
.promethys-etudes { margin-block: 1.5rem 2rem; }
.promethys-etudes__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}
.promethys-etudes--une .promethys-etudes__grille { grid-template-columns: 1fr; }
.promethys-etudes--une .promethys-carte-etude { padding: 2rem 2rem 1.5rem; }
.promethys-etudes--une .promethys-carte-etude__titre { font-size: 1.5rem; }
.promethys-etudes--une .promethys-carte-etude__texte { font-size: 1.0625rem; }
.promethys-etudes__lien { margin: 1rem 0 0; font-weight: 600; }
.promethys-carrousel .promethys-etudes__lien { text-align: right; }

/* ---------- 1.1.1 : couleurs explicites des cartes ----------
   Les cartes ont leur propre fond clair : leur texte reste foncé même si elles sont
   placées dans un bloc à texte blanc (Couverture, groupe sombre…). */
.promethys-carte-etude { color: #14202B; }
.promethys-carte-etude__titre { color: #14202B; }
.promethys-carte-etude__texte { color: #14202B; }
.promethys-carte-etude__expertises { color: #4A5866; }
.promethys-carte-etude__secteur { color: #0277C2; }
/* Lien « Voir toutes nos références » lisible sur un fond sombre */
.wp-block-cover .promethys-etudes__lien a,
.has-encre-background-color .promethys-etudes__lien a { color: #fff; }

/* ---------- Bandeau cookies ---------- */
.promethys-cookies {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	background: #fff;
	color: #14202B;
	border-top: 4px solid #0396EF;
	box-shadow: 0 -6px 24px rgba(20, 32, 43, 0.12);
	padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
	padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
}
.promethys-cookies[hidden] { display: none; }
.promethys-cookies__contenu {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}
.promethys-cookies__texte { flex: 1 1 520px; }
.promethys-cookies__texte p { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.promethys-cookies__texte .promethys-cookies__titre { font-weight: 700; margin-bottom: 0.25rem; }
.promethys-cookies__texte a { color: #0277C2; }
.promethys-cookies__boutons { display: flex; gap: 0.75rem; flex: 0 0 auto; }
/* Refuser et Accepter ont le même poids visuel : refuser doit être aussi simple qu'accepter. */
.promethys-cookies__btn {
	min-width: 8.5rem;
	padding: 0.8rem 1.25rem;
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
	color: #fff;
	background: #14202B;
	border: 2px solid #14202B;
	border-radius: 2px;
	cursor: pointer;
}
.promethys-cookies__btn[data-choix="oui"] { background: #0277C2; border-color: #0277C2; }
.promethys-cookies__btn:hover { filter: brightness(1.15); }
.promethys-cookies__btn:focus-visible { outline: 3px solid #76C5F6; outline-offset: 2px; }
@media (max-width: 600px) {
	.promethys-cookies__boutons { width: 100%; }
	.promethys-cookies__btn { flex: 1; min-width: 0; }
}
