/* Pages Solutions (index + 6 poles). Complete le theme style.css. */

:root {
	--sol-navy: #040e26;
	--sol-steel: #1b2a4a;
	--sol-orange: #fc5e28;
	--sol-orange-dark: #d9481a;
	--sol-mist: #eef1f5;
	--sol-ink: #1d2433;
	--sol-muted: #5b6475;
	--sol-line: #d5dbe4;
	--sol-display: "Barlow Condensed", "Roboto", Arial, sans-serif;
}

.sol { color: var(--sol-ink); }
.sol p { color: var(--sol-muted); }
.sol h1, .sol h2, .sol h3, .sol h4 {
	font-family: var(--sol-display);
	color: var(--sol-navy);
	letter-spacing: 0;
}
.sol h2 { font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.sol h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.sol-section { padding: 5.5rem 0; }
.sol-section--mist { background: var(--sol-mist); }
.sol-section--navy { background: var(--sol-navy); }
.sol-section--navy h2, .sol-section--navy h3 { color: #fff; }
.sol-section--navy p { color: #b7c0d0; }
.sol-lead { font-size: 1.15rem; line-height: 1.75; max-width: 68ch; }
.sol-head { max-width: 62ch; margin-bottom: 2.75rem; }

.sol a:focus-visible, .sol button:focus-visible, .sol input:focus-visible, .sol textarea:focus-visible {
	outline: 3px solid var(--sol-orange);
	outline-offset: 2px;
}

/* Boutons */
.sol-btn {
	display: inline-block;
	font-weight: 500;
	font-size: .95rem;
	padding: .8rem 1.4rem;
	border: 2px solid var(--sol-orange);
	background: var(--sol-orange);
	color: #fff;
	border-radius: 2px;
	line-height: 1.2;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sol-btn:hover, .sol-btn:focus { background: var(--sol-orange-dark); border-color: var(--sol-orange-dark); color: #fff; text-decoration: none; }
.sol-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.sol-btn--ghost:hover, .sol-btn--ghost:focus { background: #fff; color: var(--sol-navy); border-color: #fff; }
.sol-btn--line { background: transparent; color: var(--sol-navy); border-color: var(--sol-line); }
.sol-btn--line:hover, .sol-btn--line:focus { background: var(--sol-navy); color: #fff; border-color: var(--sol-navy); }

/* Hero */
.sol-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 7rem 0 6rem;
}
.sol-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4, 14, 38, .95) 0%, rgba(4, 14, 38, .82) 45%, rgba(4, 14, 38, .45) 100%);
}
.sol-hero .container { position: relative; }
.sol-hero h1 {
	color: #fff;
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	max-width: 18ch;
	margin-bottom: 1.25rem;
}
.sol-hero p { color: #d3d9e4; font-size: 1.15rem; line-height: 1.7; max-width: 60ch; margin-bottom: 2rem; }
.sol-hero .sol-btn { margin: 0 .5rem .5rem 0; }
.sol-crumbs { font-size: .9rem; margin-bottom: 1.5rem; color: #9aa6ba; }
.sol-crumbs a { color: #fff; }
.sol-crumbs span { margin: 0 .4rem; }

/* Index : grille des 6 poles */
.sol-pole {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-bottom: 3px solid var(--sol-orange);
}
.sol-pole__img {
	display: block;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: var(--sol-steel);
}
.sol-pole__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.sol-pole__body h3 { font-size: 1.65rem; margin-bottom: .6rem; }
.sol-pole__body h3 a { color: var(--sol-navy); }
.sol-pole__body h3 a:hover { color: var(--sol-orange); text-decoration: none; }
.sol-pole__body p { flex: 1; margin-bottom: 1.4rem; }
.sol-pole__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sol-pole__actions .sol-btn { padding: .65rem 1.1rem; font-size: .9rem; }

/* Autres domaines */
.sol-other { display: flex; align-items: center; gap: 1.25rem; background: var(--sol-mist); padding: 1rem; height: 100%; color: var(--sol-ink); }
.sol-other:hover { text-decoration: none; color: var(--sol-ink); box-shadow: inset 0 -3px 0 var(--sol-orange); }
.sol-other__img { flex: 0 0 110px; height: 80px; background-size: cover; background-position: center; background-color: var(--sol-steel); }
.sol-other h3 { font-size: 1.35rem; margin: 0 0 .2rem; }
.sol-other p { margin: 0; font-size: .95rem; line-height: 1.5; }

/* Categories */
.sol-cat { background: #fff; padding: 1.75rem; height: 100%; border-top: 3px solid var(--sol-navy); }
.sol-cat h3 { margin-bottom: 1rem; }
.sol-cat p { margin: 0; line-height: 1.6; }
.sol-cat--text h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.sol-checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.sol-checks--single { columns: 1; }
.sol-checks li { break-inside: avoid; padding: .3rem 0 .3rem 1.4rem; position: relative; line-height: 1.45; color: var(--sol-ink); font-size: .98rem; }
.sol-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .78rem;
	width: .55rem;
	height: .55rem;
	background: var(--sol-orange);
}

/* Facteurs / points forts */
.sol-feature { padding: 1.5rem 0; }
.sol-feature .fa { font-size: 1.6rem; color: var(--sol-orange); margin-bottom: .9rem; display: block; }
.sol-feature h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.sol-feature p { margin: 0; line-height: 1.6; }
.sol-section--navy .sol-feature { border-top: 1px solid rgba(255, 255, 255, .15); }

/* Energie */
.sol-energy { background: #fff; height: 100%; }
.sol-energy__img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.sol-energy__body { padding: 1.6rem; }
.sol-energy__body h3 { margin-bottom: .5rem; }
.sol-energy__body p { margin: 0; }

/* Ligne de corridor : methode, processus, chaine logistique */
.sol-route {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
	gap: 0 1rem;
	counter-reset: route;
}
.sol-route li { position: relative; padding-top: 4.25rem; }
.sol-route li::before {
	/* Le trait qui relie les etapes */
	content: "";
	position: absolute;
	top: 1.4rem;
	left: 0;
	right: -1rem;
	height: 3px;
	background: var(--sol-orange);
}
.sol-route li:last-child::before { display: none; }
.sol-route li:first-child::before { left: 1.4rem; }
.sol-route__mark {
	position: absolute;
	top: 0;
	left: 0;
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 50%;
	background: var(--sol-navy);
	border: 3px solid var(--sol-orange);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sol-display);
	font-weight: 700;
	font-size: 1.25rem;
}
.sol-route__mark .fa { font-size: 1.1rem; }
.sol-route li:last-child .sol-route__mark { background: var(--sol-orange); }
.sol-route h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.sol-route p { margin: 0; font-size: .95rem; line-height: 1.55; }
.sol-section--navy .sol-route__mark { background: var(--sol-steel); }
.sol-section--navy .sol-route li:last-child .sol-route__mark { background: var(--sol-orange); }

/* Pourquoi BadEnya */
.sol-why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.sol-why li {
	color: #fff;
	font-size: 1.1rem;
	padding: 1rem 0 1rem 2.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	position: relative;
}
.sol-why li .fa { position: absolute; left: 0; top: 1.2rem; color: var(--sol-orange); }

/* Cas d'usage */
.sol-case { display: grid; grid-template-columns: 5fr 7fr; background: #fff; }
.sol-case__img { background-size: cover; background-position: center; min-height: 280px; background-color: var(--sol-steel); }
.sol-case__body { padding: 2.5rem; }
.sol-case__tag { display: inline-block; color: var(--sol-orange); font-weight: 500; margin-bottom: .6rem; }
.sol-case__body p { margin: 0; line-height: 1.75; }

/* Zone : Afrique de l'Ouest <-> Chine */
.sol-zone { display: grid; grid-template-columns: 1fr minmax(80px, 1fr) 1fr; align-items: center; gap: 1.5rem; }
.sol-zone__end h3 { margin-bottom: .4rem; }
.sol-zone__end p { margin: 0; }
.sol-zone__end .fa { color: var(--sol-orange); font-size: 1.6rem; margin-bottom: .6rem; display: block; }
.sol-zone__end--right { text-align: right; }
.sol-zone__link { height: 3px; background: repeating-linear-gradient(90deg, var(--sol-orange) 0 14px, transparent 14px 22px); }

/* Formulaire metier */
.sol-form { background: #fff; padding: 2.25rem; }
.sol-form label { display: block; font-size: .9rem; font-weight: 500; color: var(--sol-ink); margin-bottom: .35rem; }
.sol-form label .req { color: var(--sol-orange); }
.sol-form .form-control { border: 1px solid var(--sol-line); border-radius: 2px; color: var(--sol-ink); font-size: 1rem; height: auto; padding: .65rem .8rem; }
.sol-form .form-control:focus { border-color: var(--sol-navy); box-shadow: none; }
.sol-form .form-control.is-invalid { border-color: #c0392b; }
.sol-form .invalid-feedback { display: block; color: #c0392b; font-size: .85rem; }
.sol-form .form-text { color: var(--sol-muted); font-size: .85rem; }
.sol-form-aside h2 { font-size: 2.2rem; }
.sol-form-aside .fa { color: var(--sol-orange); margin-right: .5rem; }
.sol-form-aside a { color: var(--sol-navy); font-weight: 500; }
.sol-alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 4px solid; }
.sol-alert--ok { background: #e8f6ee; border-color: #1e8a4c; color: #165c35; }
.sol-alert--error { background: #fdecea; border-color: #c0392b; color: #8a2a1f; }

/* Autres poles */
.sol-next { display: block; color: var(--sol-ink); height: 100%; }
.sol-next:hover { text-decoration: none; color: var(--sol-orange); }
.sol-next__img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; margin-bottom: .75rem; }
.sol-next h3 { font-size: 1.2rem; color: inherit; margin: 0; }

/* CTA final de l'index */
.sol-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sol-cta h2 { margin-bottom: .5rem; }
.sol-cta p { margin: 0; max-width: 60ch; }

@media (max-width: 991.98px) {
	.sol-section { padding: 4rem 0; }
	.sol-route { grid-template-columns: 1fr; gap: 0; }
	.sol-route li { padding: 0 0 1.75rem 4.25rem; min-height: 3.5rem; }
	.sol-route li::before { top: 0; bottom: 0; left: 1.3rem; right: auto; width: 3px; height: auto; }
	.sol-route li:first-child::before { top: 1.4rem; left: 1.3rem; }
	.sol-case { grid-template-columns: 1fr; }
	.sol-why { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
	.sol h2 { font-size: 2rem; }
	.sol-hero { padding: 4.5rem 0 4rem; }
	.sol-checks { columns: 1; }
	.sol-zone { grid-template-columns: 1fr; }
	.sol-zone__link { height: 40px; width: 3px; margin-left: .7rem; background: repeating-linear-gradient(180deg, var(--sol-orange) 0 10px, transparent 10px 16px); }
	.sol-zone__end--right { text-align: left; }
	.sol-form { padding: 1.5rem; }
	.sol-case__body { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.sol-btn { transition: none; }
}

/* Page Implantations : carte schematique et bureaux */
.loc-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem; }
.loc-map { display: block; width: 100%; height: auto; margin-top: 2.5rem; overflow: visible; }
.loc-region { fill: #6f7c94; font-family: var(--sol-display); font-size: 15px; font-weight: 600; }
.loc-city { fill: #fff; font-family: "Roboto", Arial, sans-serif; font-size: 14px; font-weight: 500; }
.loc-pin { fill: var(--sol-orange); }
.loc-halo { fill: rgba(252, 94, 40, .22); }
.loc-arc {
	fill: none;
	stroke: var(--sol-orange);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	/* Le seul mouvement de la page : les liaisons se tracent depuis la Chine */
	animation: loc-draw 3s ease-out forwards;
	animation-delay: calc(1s + var(--i) * .6s);
}
@keyframes loc-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.loc-arc { animation: none; stroke-dashoffset: 0; }
}

.loc-office { background: #fff; padding: 1.75rem; height: 100%; margin: 0; border-top: 3px solid var(--sol-orange); font-style: normal; }
.loc-office h3 { margin-bottom: .25rem; }
.loc-office p { margin: 0; line-height: 1.6; }
.loc-office .loc-office__city { color: var(--sol-ink); font-weight: 500; margin-bottom: .35rem; }
.loc-office ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.loc-office li { padding: .2rem 0; overflow-wrap: anywhere; }
.loc-office li .fa { color: var(--sol-orange); width: 1.2rem; }
.loc-office a { color: var(--sol-navy); }

/* Organigramme (page A propos) */
.team-ceo { text-align: center; max-width: 420px; margin: 0 auto; background: var(--sol-navy); padding: 1.5rem; position: relative; }
.team-ceo h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.6rem; }
.team-ceo p { color: var(--sol-orange); margin: 0; }
.team-tree { position: relative; padding-top: 2.5rem; margin-top: 0; }
.team-tree::before { content: ""; position: absolute; top: 0; left: 50%; width: 3px; height: 2.5rem; background: var(--sol-orange); transform: translateX(-50%); }
.team-country { background: #fff; height: 100%; border-top: 3px solid var(--sol-orange); padding: 1.5rem; }
.team-country h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.team-country ul { list-style: none; padding: 0; margin: 0; }
.team-country li { padding: .65rem 0; border-top: 1px solid var(--sol-line); }
.team-country li:first-child { border-top: 0; padding-top: 0; }
.team-country strong { display: block; color: var(--sol-ink); font-weight: 500; }
.team-country span { color: var(--sol-muted); font-size: .92rem; line-height: 1.45; display: block; }
.team-country li.is-lead strong { font-size: 1.08rem; color: var(--sol-navy); }
.team-country li.is-lead span { color: var(--sol-orange-dark); }
@media (min-width: 992px) {
	/* Barre horizontale qui relie les 4 pays */
	.team-tree::after { content: ""; position: absolute; top: 2.5rem; left: 12.5%; right: 12.5%; height: 3px; background: var(--sol-orange); }
	.team-tree .row { padding-top: 1.5rem; }
}
@media (min-width: 992px) {
	.team-col { position: relative; }
	.team-col::before { content: ""; position: absolute; top: -1.5rem; left: 50%; width: 3px; height: 1.5rem; background: var(--sol-orange); transform: translateX(-50%); }
}
