/*
 Theme Name:   SOLINDUX (Industrie Child)
 Theme URI:    https://www.solindux.com
 Description:  Thème enfant SOLINDUX pour le thème Industrie (RSTheme). Identité visuelle, couleurs, polices, bouton WhatsApp et outil de personnalisation automatique (Apparence → SOLINDUX).
 Author:       SOLINDUX SARLAU
 Author URI:   https://www.solindux.com
 Template:     industrie
 Version:      1.6.1
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  solindux
 Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   Police Alibaba Sans (Alibaba Group / Monotype, gratuite pour usage commercial)
   Fichiers allégés aux caractères latins (français, ponctuation, €, °).
   ========================================================= */
@font-face {
	font-family: "Alibaba Sans";
	src: url("assets/fonts/alibaba-sans-400.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Alibaba Sans";
	src: url("assets/fonts/alibaba-sans-500.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Alibaba Sans";
	src: url("assets/fonts/alibaba-sans-700.woff") format("woff");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   Palette SOLINDUX (tirée de la brochure)
   ========================================================= */
:root {
	--sx-navy:        #0E2F5B; /* bleu marine – titres, bandeaux, pied de page */
	--sx-navy-deep:   #081D33; /* fonds sombres */
	--sx-blue:        #12537F; /* bleu foncé du logo – couleur principale */
	--sx-royal:       #126FA2; /* bleu clair du logo – accents */
	--sx-cyan:        #1E96D8; /* filets et lignes de la brochure */
	--sx-steel:       #3C3C3C; /* anthracite du logo */
	--sx-text:        #4B5563;
	--sx-light:       #F3F6FA;
	/* Alibaba Sans : une seule famille déclinée en graisses (polices locales, assets/fonts/) */
	--sx-font-title:  "Alibaba Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sx-font-body:   "Alibaba Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sx-font-label:  "Alibaba Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Typographie ----------
   Les polices sont imposées ici (!important) pour que tout le site soit cohérent,
   y compris les blocs de la démo qui définissent leur propre police. Les polices
   d'icônes ne sont pas touchées (elles sont déclarées sur leurs propres balises). */
body {
	font-family: var(--sx-font-body);
	color: var(--sx-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "kern" 1;
	text-rendering: optimizeLegibility;
}

body p,
body li,
body blockquote,
body input,
body textarea,
body select,
body button,
body .elementor-widget-text-editor,
body .elementor-button,
body .rs-button .rs-btn,
body .hfe-nav-menu a,
body .elementor-tab-title,
body .elementor-accordion-title,
body .elementor-toggle-title,
body .wpcf7 {
	font-family: var(--sx-font-body) !important;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .elementor-heading-title,
body .prelements-heading .title-inner .title {
	font-family: var(--sx-font-title) !important;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

body h1, body .elementor-widget-heading h1.elementor-heading-title {
	letter-spacing: -0.025em;
}

/* Corps de texte : lecture confortable */
body p {
	line-height: 1.7;
}

/* Menu principal : sobre, graisse moyenne */
body .hfe-nav-menu a.hfe-menu-item {
	font-weight: 500;
	letter-spacing: 0;
}

/* Sur-titres en police technique (repère visuel « ingénierie ») */
body .prelements-heading .title-inner .sub-text,
body .elementor-widget-divider .elementor-divider__text {
	font-family: var(--sx-font-label) !important;
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Chiffres alignés dans les tableaux et fiches techniques */
body table,
body .sx-coords {
	font-variant-numeric: tabular-nums;
}

::selection {
	background: var(--sx-blue);
	color: #fff;
}

a {
	transition: color .2s ease;
}

/* ---------- Boutons ---------- */
body .rs-button .rs-btn,
body .elementor-button {
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: .01em;
}

body .rs-button .rs-btn:focus-visible,
body a:focus-visible,
body button:focus-visible {
	outline: 2px solid var(--sx-cyan);
	outline-offset: 3px;
}

/* ---------- Formulaires Contact Form 7 ---------- */
body .wpcf7 input[type="text"],
body .wpcf7 input[type="email"],
body .wpcf7 input[type="tel"],
body .wpcf7 textarea {
	border-radius: 4px;
}

body .wpcf7 input[type="text"]:focus,
body .wpcf7 input[type="email"]:focus,
body .wpcf7 input[type="tel"]:focus,
body .wpcf7 textarea:focus {
	border-color: var(--sx-blue);
	box-shadow: 0 0 0 3px rgba(18, 83, 127, .15);
}

body .wpcf7 input[type="submit"] {
	background-color: var(--sx-blue);
}

body .wpcf7 input[type="submit"]:hover {
	background-color: var(--sx-navy);
}

/* ---------- Bouton WhatsApp flottant ----------
   Version discrète (icône seule, libellé lu par les lecteurs d'écran) :
   une pastille verte avec texte fait « petite entreprise » sur un site corporate. */
.sx-whatsapp {
	position: fixed;
	right: 22px;
	bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 50%;
	background: #25D366;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(8, 29, 51, .22);
	transition: transform .2s ease, box-shadow .2s ease;
}

.sx-whatsapp:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(8, 29, 51, .28);
}

.sx-whatsapp svg {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	fill: currentColor;
}

.sx-whatsapp .sx-whatsapp-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Le bouton « retour en haut » du thème se décale pour ne pas chevaucher WhatsApp */
body #scrollUp,
body .scrollup,
body #backscrollUp {
	bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

@media print {
	.sx-whatsapp { display: none; }
}

/* ---------- Bloc coordonnées (shortcode [solindux_coordonnees]) ---------- */
.sx-coords {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.sx-coords li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.sx-coords .sx-coords-label {
	display: block;
	font-weight: 700;
	color: var(--sx-navy);
	font-family: var(--sx-font-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.sx-coords a {
	color: inherit;
}

.sx-coords a:hover {
	color: var(--sx-blue);
}

/* ---------- Grille secteurs (shortcode [solindux_secteurs]) ---------- */
.sx-sectors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: rgba(14, 47, 91, .1);
	border: 1px solid rgba(14, 47, 91, .1);
	border-radius: 8px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sx-sectors li {
	background: #fff;
	margin: 0;
	padding: 28px 18px;
	text-align: center;
	font-family: var(--sx-font-title);
	font-weight: 700;
	color: var(--sx-navy);
	line-height: 1.35;
}

/* ---------- Partage des articles ---------- */
.sx-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 40px 0 10px;
	padding-top: 24px;
	border-top: 1px solid rgba(14, 47, 91, .12);
}

.sx-share-label {
	font-family: var(--sx-font-title);
	font-weight: 700;
	color: var(--sx-navy);
}

.sx-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sx-share li {
	margin: 0;
}

.sx-share a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--sx-navy);
	transition: background-color .2s ease;
}

.sx-share a:hover {
	background: var(--sx-blue);
}

.sx-share .sx-share-linkedin { background: #0A66C2; }
.sx-share .sx-share-whatsapp { background: #1DA851; }


/* =========================================================
   Version 1.4
   ========================================================= */

/* ---------- Écran de chargement : phrase animée ----------
   L'ancien préchargeur du thème (logo centré) est masqué. */
#pre-load,
#preloader,
.rs-preloader,
#loading,
.loader-wrapper {
	display: none !important;
}

#sx-loader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 24px;
	background: #fff;
	transition: opacity .5s ease, visibility .5s;
}

#sx-loader.is-done,
html.sx-loader-seen #sx-loader {
	opacity: 0;
	visibility: hidden;
}

html.sx-loader-seen #sx-loader {
	transition: none;
}

/* Logo : le « S » arrive en pivotant, puis le nom se dévoile de gauche à droite. */
.sx-loader__logo {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sx-loader__icon {
	width: 71px;
	height: auto;
	opacity: 0;
	transform: translateY(-18px) rotate(-90deg) scale(.6);
	animation: sxIcon .7s cubic-bezier(.2, .8, .2, 1) .05s forwards;
}

.sx-loader__mark {
	width: 300px;
	height: auto;
	clip-path: inset(0 100% 0 0);
	animation: sxReveal .65s cubic-bezier(.6, 0, .2, 1) .45s forwards;
}

/* Slogan sous le logo, mot par mot. */
.sx-loader__txt {
	margin: 0;
	text-align: center;
	font-family: var(--sx-font-title);
	font-weight: 500;
	font-size: clamp(1.05rem, 2.6vw, 1.45rem);
	line-height: 1.3;
	letter-spacing: .01em;
	color: var(--sx-blue);
}

.sx-loader__txt span {
	display: inline-block;
	opacity: 0;
	transform: translateY(.6em);
	animation: sxWordUp .5s cubic-bezier(.2, .7, .2, 1) forwards;
}

.sx-loader__bar {
	width: min(220px, 50vw);
	height: 2px;
	margin-top: 6px;
	background: #E3E8EE;
	overflow: hidden;
}

.sx-loader__bar i {
	display: block;
	width: 40%;
	height: 100%;
	background: var(--sx-blue);
	animation: sxBar 1s ease-in-out infinite;
}

@keyframes sxIcon { to { opacity: 1; transform: none; } }
@keyframes sxReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes sxWordUp { to { opacity: 1; transform: none; } }
@keyframes sxBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@media (max-width: 480px) {
	.sx-loader__icon { width: 50px; }
	.sx-loader__mark { width: 210px; }
}

/* ---------- Bandeau des marques [solindux_marques] ---------- */
.sx-brands {
	padding: 64px 0;
	overflow: hidden;
	background: #fff;
}

.sx-brands__head {
	max-width: 1200px;
	margin: 0 auto 28px;
	padding: 0 20px;
}

.sx-brands__title {
	margin: 0 0 8px;
	color: var(--sx-navy);
}

.sx-brands__lead {
	margin: 0;
	color: var(--sx-text);
}

.sx-brands__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.sx-brands__track {
	display: flex;
	width: max-content;
	animation: sxBrands 50s linear infinite;
}

.sx-brands__viewport:hover .sx-brands__track {
	animation-play-state: paused;
}

.sx-brands__list {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0 20px;
	list-style: none;
}

.sx-brands__list li {
	margin: 0;
}

.sx-brands__list img {
	display: block;
	width: 200px;
	height: auto;
	filter: grayscale(1);
	opacity: .6;
	transition: filter .25s ease, opacity .25s ease;
}

.sx-brands__list li:hover img {
	filter: none;
	opacity: 1;
}

@keyframes sxBrands { to { transform: translateX(-50%); } }

@media (max-width: 767px) {
	.sx-brands { padding: 44px 0; }
	.sx-brands__list { gap: 24px; }
	.sx-brands__list img { width: 140px; }
}

/* ---------- Section « Comment se passe une demande » sur fond sombre ----------
   L'outil pose un voile bleu nuit sur la photo et la classe « sx-sur-fond-sombre » sur ses blocs
   (le cadre blanc du formulaire n'est pas concerné). */
body .sx-sur-fond-sombre,
body .sx-sur-fond-sombre p,
body .sx-sur-fond-sombre li,
body .sx-sur-fond-sombre span,
body .sx-sur-fond-sombre .desc,
body .sx-sur-fond-sombre .description,
body .sx-sur-fond-sombre .elementor-widget-container {
	color: #D5DEE8 !important;
}

body .sx-sur-fond-sombre h1,
body .sx-sur-fond-sombre h2,
body .sx-sur-fond-sombre h3,
body .sx-sur-fond-sombre h4,
body .sx-sur-fond-sombre h5,
body .sx-sur-fond-sombre h6,
body .sx-sur-fond-sombre .title,
body .sx-sur-fond-sombre .elementor-heading-title,
body .sx-sur-fond-sombre a:not(.rs-btn):not(.elementor-button) {
	color: #fff !important;
}

body .sx-sur-fond-sombre .sub-text,
body .sx-sur-fond-sombre .elementor-divider__text {
	color: #7CC3EE !important;
}

/* Numéro d'étape : pastille bleue, chiffre blanc. */
body .sx-sur-fond-sombre .numbering-step,
body .sx-sur-fond-sombre .numbering-step * {
	color: #fff !important;
}

/* Grand texte décoratif (filigrane) : reste discret. */
body .sx-sur-fond-sombre [class*="watermark"],
body .sx-sur-fond-sombre [class*="stroke"] {
	color: transparent !important;
	-webkit-text-stroke-color: rgba(255, 255, 255, .14) !important;
}

/* Séparateurs entre étapes. */
body .sx-sur-fond-sombre hr,
body .sx-sur-fond-sombre [class*="border"] {
	border-color: rgba(255, 255, 255, .16) !important;
}

/* ---------- Pied de page : liens toujours lisibles sur le fond bleu ----------
   Au survol, le bleu du logo disparaissait sur le bleu marine (lien « Contact »). */
body .custom-footer-color .hfe-nav-menu ul li a:hover,
body .footer-copyright-area .hfe-nav-menu ul li a:hover,
body .footer-copyright-area .menu-item a.hfe-menu-item:hover,
body footer .hfe-nav-menu a.hfe-menu-item:hover,
body footer .hfe-nav-menu a.hfe-menu-item:focus,
body footer .hfe-nav-menu .current-menu-item > a.hfe-menu-item {
	color: #fff !important;
}

body footer .hfe-nav-menu a.hfe-menu-item {
	color: var(--sx-footer-tx, #C9D3E0);
}

/* ---------- Page Actualités : titre du bandeau entièrement visible ---------- */
body .rs-breadcrumbs {
	display: flex;
	align-items: center;
	min-height: 240px;
}

body .rs-breadcrumbs > * {
	width: 100%;
}

@media (max-width: 767px) {
	body .rs-breadcrumbs { min-height: 180px; }
}

/* ---------- Curseur décoratif du thème (cercle qui suit la souris) : retiré ---------- */
#rs-mouse,
#cursor-ball,
.cursor-inner,
.cursor-outer {
	display: none !important;
}

body:has(#rs-mouse),
body:has(#rs-mouse) a,
body:has(#rs-mouse) button {
	cursor: auto;
}

body:has(#rs-mouse) a,
body:has(#rs-mouse) button,
body:has(#rs-mouse) [role="button"],
body:has(#rs-mouse) label[for],
body:has(#rs-mouse) select {
	cursor: pointer;
}

/* ---------- Moins d'animations si le visiteur l'a demandé ---------- */
@media (prefers-reduced-motion: reduce) {
	.sx-loader__txt span, .sx-loader__icon { animation: none; opacity: 1; transform: none; }
	.sx-loader__mark { animation: none; clip-path: none; }
	.sx-loader__bar { display: none; }
	.sx-brands__track { animation: none; width: auto; justify-content: center; }
	.sx-brands__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
	.sx-brands__list[aria-hidden="true"] { display: none; }
	.sx-brands__viewport { -webkit-mask-image: none; mask-image: none; }
}


/* =========================================================
   Version 1.5
   ========================================================= */

/* ---------- Articles : mise en forme aux couleurs SOLINDUX ---------- */
.single-post .sx-chapo {
	font-size: 1.15em;
	line-height: 1.65;
	color: var(--sx-navy);
	padding-left: 18px;
	border-left: 3px solid var(--sx-cyan);
}

.sx-chiffres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	margin: 32px 0;
	background: rgba(14, 47, 91, .12);
	border: 1px solid rgba(14, 47, 91, .12);
	border-radius: 6px;
	overflow: hidden;
}

.sx-chiffre {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 16px;
	background: var(--sx-light);
}

.sx-chiffre__val {
	font-family: var(--sx-font-title);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--sx-blue);
	font-variant-numeric: tabular-nums;
}

.sx-chiffre__lib {
	font-size: .875rem;
	line-height: 1.4;
	color: var(--sx-text);
}

.single-post .sx-figure {
	margin: 32px 0;
}

.single-post .sx-figure img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid rgba(14, 47, 91, .08);
}

.single-post .sx-figure figcaption {
	margin-top: 10px;
	font-size: .875rem;
	line-height: 1.5;
	color: #6B7684;
	text-align: left;
}

.single-post .sx-tableau {
	margin: 28px 0;
	overflow-x: auto;
}

.single-post .sx-tableau table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.single-post .sx-tableau th {
	background: var(--sx-navy);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 12px 14px;
	border: 0;
}

.single-post .sx-tableau td {
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid rgba(14, 47, 91, .1);
	vertical-align: top;
}

.single-post .sx-tableau tr:nth-child(even) td {
	background: var(--sx-light);
}

.single-post .entry-content h2,
.single-post .blog-details h2,
.single-post article h2.wp-block-heading {
	margin-top: 44px;
	color: var(--sx-navy);
}

.single-post article .wp-block-list li {
	margin-bottom: 8px;
}

.single-post article .wp-block-list li::marker {
	color: var(--sx-blue);
	font-weight: 700;
}


/* =========================================================
   Version 1.5.3 – Bandeau de titre des pages (Actualités, recherche, articles)
   Modèle Elementor placé dans .header-breadcamb-fixer : hauteur minimale et titre centré,
   pour qu'il ne soit plus caché sous l'en-tête.
   ========================================================= */
body .header-breadcamb-fixer > .elementor > .e-con.e-parent {
	min-height: 280px;
	display: flex;
	align-items: center;
	--padding-top: 48px;
	--padding-bottom: 48px;
	padding-top: 48px !important;
	padding-bottom: 48px !important;
}

body .header-breadcamb-fixer .hfe-page-title .elementor-heading-title {
	color: #fff;
	margin: 0 0 10px;
}

body .header-breadcamb-fixer .breadcrumbs-inner,
body .header-breadcamb-fixer .breadcrumbs-inner a {
	color: rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
	body .header-breadcamb-fixer > .elementor > .e-con.e-parent { min-height: 200px; }
}


/* =========================================================
   Version 1.6.1 – Alibaba Sans partout, slider compris
   ========================================================= */
sr7-module sr7-txt,
sr7-module .sr7-layer,
rs-module rs-layer {
	font-family: var(--sx-font-title) !important;
}

/* Sur-titres : capitales espacées (remplacent la police à chasse fixe des versions précédentes). */
body .prelements-heading .title-inner .sub-text,
body .elementor-widget-divider .elementor-divider__text,
.sx-coords .sx-coords-label {
	font-weight: 500;
	letter-spacing: .16em;
}
