/*
 * Page Carrières (page-template/career.php). Chargé seulement sur cette page.
 *
 * Même rendu que gozem-revamp-theme (mesures relevées sur gozem.co/tg/fr/carrieres/).
 * Sommaire : 1. Commun  2. Barre de liens  3. Hero  4. Chiffres  5. Pourquoi nous rejoindre
 *            6. Métiers  7. Offres  8. Programmes  9. Témoignages  10. Impact  11. FAQ  12. Mobile
 *
 * Tailles de texte : préréglages de theme.json, choisis comme la maquette careers.html.
 * Paliers : téléphone jusqu'à 743.98px, tablette 744-1023.98px, ordinateur dès 1024px.
 */

/* =========================================================
   1. Commun aux sections
   ========================================================= */

/* Cette page gère ses propres espacements, section par section. */
.site-main {
	padding-block: 0;
}

.career-section {
	padding-block: 96px;
}

/* Espacements : uniquement des marges hautes, pour qu'elles s'additionnent sans fusionner. */
.career-section__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large); /* 48px sur grand écran. */
	font-weight: 700;
}

.career-section__subtitle {
	margin: 16px 0 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 600;
	line-height: 1.6;
}

.career-section__text {
	max-width: 868px;
	margin: 26px 0 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
	text-align: justify;
}

.career-section__title--center,
.career-section__subtitle--center {
	text-align: center;
}

.career-section__text--center {
	margin-inline: auto;
}

/* Espace entre l'en-tête d'une section et son contenu (mesuré sur l'ancien thème). */
.stat-grid,
.career-why__slider {
	margin-top: 64px;
}

.faq-group:first-of-type {
	margin-top: 72px;
}

.department-list,
.job-list {
	margin-top: 74px;
}

/* 84px + les 4px de marge intérieure de la liste (place pour l'ombre des cartes) = 88px. */
.story-grid {
	margin-top: 84px;
}

/* Offres et témoignages : sous-titre plus éloigné du titre. */
.career-jobs .career-section__subtitle,
.career-stories__intro {
	margin-top: 32px;
	line-height: 1.2;
}

.career-jobs .career-section__text {
	margin-top: 28px;
}

/* Flèches rondes des carrousels. */
.slider-controls {
	display: flex;
	align-items: center;
	gap: 24px;
}

.slider-controls--end {
	justify-content: flex-end;
	gap: 16px;
}

.slider-arrow {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.slider-arrow:disabled {
	cursor: default;
	opacity: 0.4;
}

/* Barres indiquant la diapositive affichée. */
.slider-dots {
	display: flex;
	flex: 1;
	min-width: 0;
	justify-content: center;
	gap: 16px;
}

/* 79px de large, mais les barres rétrécissent sur un petit écran.
   Couleur de l'ancien thème : #0E5E24 (vert foncé), les autres barres à 30 %. */
.slider-dots button {
	flex: 0 1 79px;
	min-width: 16px;
	height: 8px;
	padding: 0;
	cursor: pointer;
	background-color: var(--wp--preset--color--primary-dark);
	border: 0;
	border-radius: 10px;
	opacity: 0.3;
}

.slider-dots button.is-active {
	opacity: 1;
}

/* Boutons « pilule ». */
.button-white,
.button-outline-white,
.button-green {
	display: inline-block;
	padding: 12px 32px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 999px;
}

.button-white {
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--white);
}

.button-outline-white {
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--white);
}

.button-green {
	padding-inline: 48px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
}

/* =========================================================
   2. Barre de liens vers les sections (sous l'en-tête)
   ========================================================= */

.career-subnav {
	position: sticky;
	top: 85px;
	z-index: 40;
	background: var(--wp--preset--color--white);
	border-top: 1px solid #e8e8e8;
}

.admin-bar .career-subnav {
	top: 117px;
}

.career-subnav ul {
	display: flex;
	gap: 24px;
	margin-block: 0;
	padding-block: 8px;
	overflow-x: auto;
	list-style: none;
}

.career-subnav a {
	display: block;
	padding: 8px 8px 8px 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
}

.career-subnav a:hover,
.career-subnav a.is-current {
	color: var(--wp--preset--color--primary-dark);
}

/* Les ancres s'arrêtent sous l'en-tête et la barre, pas derrière. */
.career-section,
.career-impact {
	scroll-margin-top: 140px;
}

/* =========================================================
   3. Hero
   ========================================================= */

.career-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 868px;
	overflow: hidden;
	color: var(--wp--preset--color--white);
	background: #d3d3d3;
}

.career-hero__image,
.career-hero__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Voile sombre pour que le texte blanc reste lisible. */
.career-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.3);
}

.career-hero__content,
.career-hero__stripes {
	position: relative;
	z-index: 2;
}

.career-hero__content {
	width: 100%;
	padding-top: 139px;
}

.career-hero__title {
	max-width: 720px;
	margin: 0 0 8px;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--huge); /* 68px sur grand écran. */
}

.career-hero__text {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: 1.6;
}

.career-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 112px; /* 16px sous le texte + 96px, comme l'ancien thème. */
}

/* Bandes blanches décoratives en bas de la photo. */
.career-hero__stripes {
	height: 50px;
	margin-block: 64px;
	background: url(../images/career/hero_Wbarner.png) no-repeat left center / 100% 100%;
}

/* =========================================================
   4. Gozem en quelques chiffres
   ========================================================= */

.career-overview .career-section__title {
	font-weight: 800;
}

.stat-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px;
}

.stat-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 360px;
	max-width: 100%;
	padding: 28px 32px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
}

.stat-card__number {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: 4rem;
	font-weight: 900;
	line-height: 1.2;
}

.stat-card__text p {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	text-align: justify;
}

.stat-card__text strong {
	display: block;
	margin-bottom: 8px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

/* Titre écrit dans l'éditeur (ex. « Nationalités », un bloc Titre H5). */
.stat-card__text :is(h2, h3, h4, h5, h6) {
	margin-block: 24px;
	font-size: 1.75rem; /* 28px */
}

/* =========================================================
   5. Pourquoi nous rejoindre ?
   ========================================================= */

/* Maquette careers.html : photos en fondu à gauche, titre + texte à droite,
   flèches puis points (celui de la diapositive affichée s'allonge en vert).
   Le motif du coin suit la largeur de l'écran (20 %, de 90 à 280px) : à 280px fixes,
   il passait sous le titre et le texte sur téléphone. */
/* Couleurs d'origine : titres, textes, flèches et points en vert foncé (primary-dark). */
.career-why {
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--primary-light) url(../images/career/join-us-bg.svg) no-repeat right top / clamp(90px, 20vw, 280px) auto;
}

.career-why__title {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 800;
}

.career-why__slider {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
	margin-top: 48px;
}

.career-why__images {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 32px;
}

.career-why__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%; /* Photos en portrait : garder les visages dans le cadre. */
}

/* Une seule image et un seul texte visibles à la fois (avec JavaScript). La classe js est
   posée dans <head> (header.php) : rien ne bouge au chargement, même avant career.js,
   car la première image, le premier texte et le premier point sont marqués is-active en PHP. */
.js .career-why__image {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .career-why__image.is-active {
	opacity: 1;
}

.js .career-why__panel:not(.is-active),
.js .career-impact__step:not(.is-active) {
	display: none;
}

.js .career-why__panel.is-active {
	animation: career-why-in 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes career-why-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .career-why__image {
		transition: none;
	}

	.js .career-why__panel.is-active {
		animation: none;
	}
}

.career-why__panel-title {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--x-large);
}

.career-why__panel p {
	max-width: 48ch;
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.7;
}

.career-why__nav {
	gap: 12px;
	margin-top: 32px;
}

.career-why .slider-arrow {
	width: 44px;
	height: 44px;
	color: var(--wp--preset--color--primary-dark);
	border: 1px solid currentColor;
	transition: background-color 0.12s;
}

.career-why .slider-arrow:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.6);
}

.career-why .slider-arrow:disabled {
	opacity: 0.35;
}

.career-why__dots {
	display: flex;
	align-items: center;
	gap: 7px;
}

.career-why__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	cursor: pointer;
	background: var(--wp--preset--color--primary-dark);
	border: 0;
	border-radius: 999px;
	opacity: 0.3;
	transition: width 0.2s, opacity 0.2s;
}

.career-why__dots button.is-active {
	width: 26px;
	opacity: 1;
}

/* =========================================================
   6. Nos métiers & départements
   ========================================================= */

/* Cartes alignées sur une ligne, qui défilent horizontalement. */
.department-list {
	display: flex;
	gap: 21px;
	margin-bottom: 80px;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.department-list::-webkit-scrollbar {
	display: none;
}

.department-card {
	position: relative;
	display: flex;
	flex: 0 0 278px;
	flex-direction: column;
	justify-content: flex-end;
	height: 382px;
	padding: 24px;
	overflow: hidden;
	border-radius: 16px;
	scroll-snap-align: start;
}

.department-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Dégradé sombre sous le texte blanc. */
.department-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(rgba(0, 0, 0, 0.3) 29.81%, rgba(0, 0, 0, 0.8) 90.38%);
}

.department-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.department-card__title {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.department-card__body p {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.department-card__link {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.career-departments .slider-arrow {
	background: #efefef;
}

/* =========================================================
   7. Nos offres d'emploi
   ========================================================= */

.job-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-inline: auto;
}

/* Même largeur que l'ancien thème : 78 % de l'écran moins 5rem dès 1200px
   (1003px sur un écran de 1440px), et 1308px dès 1920px. */
@media (min-width: 1200px) {
	.job-list {
		max-width: calc(78vw - 5rem - 40px);
	}
}

@media (min-width: 1920px) {
	.job-list {
		max-width: 1308px;
	}
}

/* Une ligne par offre : poste | service | lieu. */
.job-row {
	display: grid;
	grid-template-columns: 43% 24% 1fr;
	align-items: center;
	gap: 24px;
	padding: 24px;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	background: var(--wp--preset--color--white);
	border: 1px solid #e8e8e8;
	border-radius: 20px;
}

a.job-row:hover {
	border-color: var(--wp--preset--color--primary);
}

.job-row--head {
	padding-block: 0;
	color: #8a8a8a;
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	background: none;
	border: 0;
}

.job-row__title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.2;
}

.job-row__muted {
	color: #6c6c6c;
	font-weight: 600;
}

.job-row__place {
	display: flex;
	align-items: center;
	gap: 8px;
}

.career-jobs__cta {
	margin: 64px 0 0;
	text-align: center;
}

/* =========================================================
   8. Programmes jeunes diplômés (fond vert)
   ========================================================= */

/* Trois mises en page, comme l'ancien thème : mobile, tablette (744px) et ordinateur (1024px). */
.career-programs.career-section {
	padding-block: 40px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
}

.career-programs__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.career-programs__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.career-programs__title {
	margin: 0 0 8px;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
}

.career-programs__text {
	margin: 0 0 10px;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: 1.6;
	text-align: justify;
}

.program-grid {
	display: grid;
	gap: 12px;
}

.program-card {
	padding: 16px;
	background: var(--wp--preset--color--primary-dark);
	border: 1px solid transparent;
	border-radius: 24px;
}

.program-card__icon {
	display: block;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
}

.program-card__title {
	margin: 0 0 8px;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.program-card p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
	text-align: justify;
}

/* Sur mobile, le bouton prend toute la largeur, sous les cartes. */
.career-programs__cta .button-white {
	display: block;
	text-align: center;
}

@media (min-width: 744px) {
	.career-programs.career-section {
		padding-block: 48px;
	}

	.career-programs__inner {
		gap: 40px;
	}

	.program-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	/* La dernière carte prend toute la largeur quand elles sont en nombre impair. */
	.program-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.career-programs__cta {
		text-align: center;
	}

	.career-programs__cta .button-white {
		display: inline-block;
	}
}

/* Sur ordinateur : texte et bouton à gauche (480px), cartes à droite. */
@media (min-width: 1024px) {
	.career-programs.career-section {
		padding-block: 96px;
	}

	.career-programs__inner {
		display: grid;
		grid-template-columns: 480px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: 96px;
		row-gap: 0;
	}

	.program-grid {
		grid-row: 1 / span 2;
		grid-column: 2;
		align-content: start;
	}

	.career-programs__cta {
		margin-top: 64px;
		text-align: left;
	}

	.program-card {
		padding: 32px;
	}

	.program-card__icon {
		margin-bottom: 24px;
	}
}

/* =========================================================
   9. Témoignages
   ========================================================= */

.career-stories {
	background: var(--wp--preset--color--surface-alt);
}

.career-stories__intro {
	max-width: 734px;
	margin-inline: auto;
	font-weight: 500;
}

/* Comme l'ancien carrousel : une ligne de cartes qui défile par page.
   3 cartes par page sur ordinateur, 2 sur tablette, 1 sur téléphone (voir plus bas).
   Moins de cartes qu'une page : elles sont centrées.
   Marge intérieure de 4px (compensée par une marge négative) : l'ombre des cartes
   n'est pas coupée par la zone qui défile, comme dans la maquette. */
.story-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 20px) / 3);
	justify-content: safe center;
	gap: 20px;
	margin-inline: -4px;
	margin-bottom: -4px;
	padding: 4px;
	overflow-x: auto;
	scroll-padding-inline: 4px;
	scroll-snap-type: x mandatory;
}

/* Avec JavaScript, la barre de défilement du navigateur est remplacée par les flèches
   et les barres ; sans, elle reste visible. */
.js .story-grid {
	scrollbar-width: none;
}

.js .story-grid::-webkit-scrollbar {
	display: none;
}

.story-controls {
	justify-content: center;
	gap: 16px;
	margin-top: 48px;
}

.story-controls[hidden] {
	display: none;
}

/* Une barre par page : 115 × 8px, vert Gozem, les autres à 20 % (ancien thème). */
.story-dots {
	flex: 0 1 auto;
	gap: 8px;
}

/* Largeur fixe (et non flex-basis) : la zone des barres prend ainsi la bonne largeur. */
.story-dots button {
	flex: 0 1 auto;
	width: 115px;
	background-color: var(--wp--preset--color--primary);
}

.story-dots button:not(.is-active),
.career-stories .slider-arrow:disabled {
	opacity: 0.2;
}

@media (max-width: 1023.98px) {
	.story-grid {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
}

/* Téléphone : une carte à la fois, flèches seules (pas de barres), comme l'ancien thème. */
@media (max-width: 743.98px) {
	.story-grid {
		grid-auto-columns: 100%;
	}

	.story-dots {
		display: none;
	}
}

/* Cartes de la maquette careers.html : carte blanche, photo 4:3 en haut, guillemets verts,
   texte, puis nom et poste sous un filet (toujours en bas de la carte). */
.story-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 1px solid #e8e8e8;
	border-radius: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	scroll-snap-align: start;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.story-card:hover {
	border-color: #dceee2;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.story-card__photo {
	flex-shrink: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8f4eb;
}

.story-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%; /* Garder les visages dans le cadre. */
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card:hover .story-card__photo img {
	transform: scale(1.04);
}

.story-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
}

/* Guillemets verts au-dessus du texte. */
.story-card__quote {
	margin: 0;
	padding-top: 36px;
	background: url(../images/career/quotes.svg) no-repeat left top / 22px 22px;
}

.story-card__quote p {
	margin: 0;
	color: #3a3a3a;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

.story-card__author {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
}

.story-card__name,
.story-card__role,
.story-card__facts {
	margin: 0;
}

.story-card__name {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.story-card__role {
	margin-top: 3px;
	color: #6c6c6c;
	font-size: var(--wp--preset--font-size--micro);
	line-height: 1.5;
}

/* « Lomé, Togo · 3 ans chez Gozem · Promue 2 fois » (metabox « Parcours »). */
.story-card__facts {
	margin-top: 8px;
	color: #6c6c6c;
	font-size: var(--wp--preset--font-size--micro);
}

.story-card__facts span {
	font-weight: 600;
}

.story-card__facts span + span::before {
	content: " · ";
	font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
	.story-card__photo img {
		transition: none;
	}
}

/* =========================================================
   10. Notre impact (RSE)
   ========================================================= */

.career-impact {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 1088px;
	padding-block: 96px;
	overflow: hidden;
	background: #d3d3d3;
}

.career-impact__images,
.career-impact__image {
	position: absolute;
	inset: 0;
}

.career-impact__image {
	opacity: 0;
	transition: opacity 0.6s;
}

.career-impact__image.is-active {
	opacity: 1;
}

.career-impact__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.career-impact .container {
	position: relative;
	width: 100%;
}

/* Cadre blanc semi-transparent sur la photo. */
.career-impact__box {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: min(620px, 100%);
	padding: 64px;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 24px;
}

.career-impact__title {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--xx-large); /* 48px sur grand écran. */
	font-weight: 700;
}

.career-impact__subtitle {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: 1.2;
}

.career-impact__steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.career-impact__step {
	padding: 32px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
	border-radius: 12px;
}

.career-impact__step-title {
	margin: 0 0 16px;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.career-impact__step p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.career-impact .slider-controls--end {
	gap: 16px;
}

.slider-dots--small {
	justify-content: flex-start;
	gap: 6px;
	color: var(--wp--preset--color--primary);
}

/* « Notre impact » : vert Gozem (#179138), les autres barres à 20 %, comme l'ancien thème. */
.slider-dots--small button {
	flex-basis: 30px;
	height: 6px;
	background-color: var(--wp--preset--color--primary);
}

.slider-dots--small button:not(.is-active) {
	opacity: 0.2;
}

/* Sans JavaScript, toutes les actions RSE et toutes les raisons de nous rejoindre
   s'affichent les unes sous les autres, sans flèches ni points. */
.no-js .career-impact .slider-controls,
.no-js .career-why__slider .slider-controls,
.no-js .story-controls {
	display: none;
}

/* =========================================================
   11. Vos questions, nos réponses
   ========================================================= */

.faq-group {
	margin-top: 24px;
	padding: 32px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
}

.faq-group > summary,
.faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	list-style: none;
	cursor: pointer;
}

.faq-group > summary::-webkit-details-marker,
.faq-item > summary::-webkit-details-marker {
	display: none;
}

.faq-group__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

/* Rond avec une petite flèche : vers le bas fermé, vers le haut ouvert. */
.faq-group > summary::after {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M8 10l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / 16px;
}

.faq-group[open] > summary::after {
	transform: rotate(180deg);
}

.faq-item {
	padding-block: 16px;
	border-bottom: 1px solid #e8e8e8;
}

.faq-item:last-child {
	border-bottom: 0;
}

.faq-item > summary {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.4;
}

/* « + » fermé, « − » ouvert, en vert. */
.faq-item > summary::after {
	content: "+";
	color: var(--wp--preset--color--primary);
	font-size: 1.5rem;
	font-weight: 400;
}

.faq-item[open] > summary::after {
	content: "−";
}

.faq-item__answer p {
	margin: 8px 0 0;
	color: #6c6c6c;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	text-align: justify;
}

/* =========================================================
   12. Tablette et téléphone
   ========================================================= */

/* Sous 1024px : en-tête mobile (70px), sections resserrées, « Pourquoi nous rejoindre » empilé. */
@media (max-width: 1023.98px) {
	.career-subnav {
		top: 70px;
	}

	.career-section {
		padding-block: 64px;
	}

	.career-hero {
		min-height: 0;
	}

	.career-hero__content {
		padding-top: 48px;
	}

	.career-hero__buttons {
		margin-top: 32px;
	}

	.career-hero__stripes {
		margin-block: 40px;
	}

	/* Comme la maquette : la photo au-dessus du texte sous 1024px. */
	.career-why__slider {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.career-why__images {
		aspect-ratio: 16 / 11;
	}

	.career-impact {
		min-height: 0;
	}

	.career-impact__box {
		gap: 32px;
		padding: 32px 24px;
	}

	.faq-group {
		padding: 24px;
	}
}

/* Téléphone : une offre par bloc, questions de la FAQ en taille normale. */
@media (max-width: 743.98px) {
	.job-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.job-row--head {
		display: none;
	}

	.faq-item > summary {
		font-size: var(--wp--preset--font-size--medium);
	}
}
