/*
Theme Name: Savignac Métal
Theme URI: https://savignacmetal.com
Author: Riopel Consultant Inc.
Author URI: https://www.riopel-consultant.com
Description: Thème sur mesure pour Savignac Métal Inc. Reproduit fidèlement l'ancien site (fond métal perforé, menu vertical, diaporama, bannières, boîtes noires arrondies). Le contenu de chaque page se modifie avec Elementor (version gratuite). Inclut un importateur de contenu et un formulaire de contact sécurisé [savignac_contact].
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: Propriétaire
Text Domain: savignac-metal
*/

/* =========================================================================
   Styles d'origine (main.css / accueil.css / apropos.css / contact.css)
   ====================================================================== */
html,
body {
	height: 100%;
	background: url('assets/img/body_bg.png') repeat-y #191919 top left;
}

body { margin: 0; }

.fleft { float: left; }
.fright { float: right; }
.clear { clear: both; }

p {
	color: white;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: 14px;
}

a { text-decoration: none; color: white; }

h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", Arial, sans-serif; color: white; }

img { max-width: 100%; height: auto; border: 0; }

/* ---------- En-tête ---------- */
#header { background: url('assets/img/header_bg.png') repeat-x; }
#header p {
	margin: 0;
	float: left;
	margin-right: 25px;
	font-size: 12px;
}
#header #info_header {
	width: 450px;
	height: 45px;
	padding: 10px 0 0 30px;
	background: url('assets/img/header_content.png') no-repeat;
	box-sizing: border-box;
}
#header .wrapper { width: 1000px; }

.wrapper {
	width: 980px;
	margin: auto;
	position: relative;
}

.email {
	background: url('assets/img/email_picto.png') no-repeat 0 5px;
	padding-left: 35px;
	padding-top: 5px;
}
.phone {
	background: url('assets/img/phone_picto.png') no-repeat;
	padding-left: 20px;
	height: 26px;
	padding-top: 5px;
}
#header .facebook,
#header .youtube {
	display: inline-block;
	margin: 0 22px 0 0;
}
#header .facebook img, #header .youtube img { display: block; }

/* ---------- Conteneur ---------- */
#container {
	min-height: 100%;
	height: auto !important;
	margin: 0 auto -55px;
	position: relative;
	top: -15px;
}
#container .wrapper { margin-bottom: 20px; }
#container .wrapper .partenaire.absolutePos {
	bottom: 0;
	position: absolute;
	right: 0;
}
#container .wrapper .partenaire img { margin-right: 30px; vertical-align: middle; }
#container .wrapper .partenaire a { display: inline-block; }

#container #logo {
	position: relative;
	left: -30px;
	z-index: 1;
	width: 285px;
}
#container #logo img { display: block; }

/* Menu vertical */
#container .nav { position: relative; }
#container .nav ul {
	list-style: none;
	width: 233px;
	background: url('assets/img/menu-bg.png') repeat-y;
	padding: 15px 0;
	margin: 0;
}
#container .nav ul li {
	text-align: center;
	padding: 15px 0;
}
#container .nav ul li a {
	color: white;
	font-size: 18px;
	font-weight: bold;
	font-family: "Trebuchet MS", Arial, sans-serif;
	text-transform: uppercase;
	display: block;
}
#container .nav ul li.border,
#container .nav ul li:not(:last-child) { border-bottom: 1px #232323 solid; }
#container .nav ul li:hover,
#container .nav ul li.current-menu-item,
#container .nav ul li.current_page_item,
#container .nav ul li.current {
	background: url('assets/img/menu-hover.png');
}
#container .nav ul li:hover a,
#container .nav ul li.current-menu-item a,
#container .nav ul li.current_page_item a,
#container .nav ul li.current a { color: #fff900; }
#container .nav ul ul { display: none; }
#container .nav .menu-top { position: absolute; top: -6px; line-height: 0; }
#container .nav .menu-bot { position: absolute; bottom: -6px; line-height: 0; }

/* Contenu principal */
#container #main-content {
	background: #191919;
	padding: 20px 0;
	border-top: 1px solid #3e3e3e;
	border-bottom: 1px solid #3e3e3e;
	margin-bottom: 20px;
}
#main-content .wrapper { margin-bottom: 0; }
#main-content .wrapper #content {
	border-radius: 10px;
	padding: 25px;
	border: 1px solid grey;
	background: black;
	text-align: justify;
	color: white;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: 14px;
}
#main-content h2,
#main-content #content > h1 {
	color: white;
	border-bottom: 1px solid #1e1e1e;
	margin: 0;
	padding-bottom: 10px;
}
#content a { color: white; }
#content a:hover { color: #fff900; }

/* Pages intérieures : bannière + menu à gauche + contenu à droite */
#banniere { margin-bottom: 0; line-height: 0; }
#banniere img { display: block; width: 100%; border-radius: 10px 10px 0 0; }
.sm-inner #main-content .nav { margin-top: 0; }
.sm-inner #main-content .nav ul { border-radius: 0 0 10px 10px; }
.sm-inner #main-content #content {
	float: right;
	width: 722px;
	box-sizing: border-box;
	margin-top: 20px;
}

/* ---------- Accueil ---------- */
#top-index { position: relative; }
#top-index .nav { top: -17px; }
#top-index #slider-container {
	height: 261px;
	position: relative;
	top: -17px;
	width: 702px;
	margin-left: 280px;
}
#top-index #slider-container #slider {
	width: 700px;
	height: 360px;
	position: absolute;
	top: -101px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid grey;
	background: #000;
}
#slider .sm-track { display: flex; height: 100%; transition: transform 1s ease; }
#slider .sm-track img {
	flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none;
}
#top-index #slider-container #slider-bullets {
	font-size: 12px;
	text-align: center;
	position: absolute;
	bottom: -8px;
	left: 0;
	right: 0;
	z-index: 10;
}
#top-index #slider-container #slider-bullets button {
	color: white;
	width: 18px;
	height: 17px;
	padding: 0;
	border: 0;
	font: 12px/17px "Trebuchet MS", Arial, sans-serif;
	cursor: pointer;
	display: inline-block;
	background: url('assets/img/bullets.png') no-repeat;
}
#top-index #slider-container #slider-bullets button.activeSlide { color: #fff900; }

#container > .wrapper {
	margin-bottom: 0;
	top: -25px;
}
#container > .wrapper #logo,
#container > .wrapper .nav,
#container > .wrapper .partenaire,
#container > .wrapper #slider-bullets { pointer-events: auto; }

#youtube { margin-top: 20px; }
#vid-title { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 0; }

/* ---------- Pied de page ---------- */
#footer,
#push { height: 55px; }
#footer { background: url('assets/img/footer_bg.png') repeat-x 0 38px; }
#footer #logoZzyb {
	background: url('assets/img/footer_content.png') no-repeat;
	height: 33px;
	width: 273px;
	padding: 16px 20px 0;
}
#footer #logoZzyb a {
	color: white;
	font-style: italic;
	margin-left: 15px;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: 14px;
}
#footer .textseo {
	margin: 0;
	position: absolute;
	top: -25px;
	width: auto;
	right: 10px;
	font-size: 18px;
	color: #fff900;
}
#footer #address_footer {
	text-align: right;
	margin-right: 10px;
	position: relative;
}
#footer #address_footer h3 {
	margin: 0;
	color: #fff900;
	font-size: 18px;
	line-height: 1.2em;
}
#footer #address_footer #footAdd { color: white; }
#footer .wrapper { width: 1000px; height: 55px; }

/* =========================================================================
   Contenu Elementor dans la boîte #content
   ====================================================================== */
#content .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100%; }
#content .elementor-widget-text-editor,
#content .elementor-widget-text-editor p { color: white; font-size: 14px; text-align: justify; }
#content .elementor-widget-text-editor p { margin: 0 0 14px; }
#content .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
#content .sm-title-line .elementor-heading-title {
	border-bottom: 1px solid #1e1e1e; padding-bottom: 10px;
}
#content .sm-year .elementor-heading-title { font-weight: bold; }
#content .elementor-icon-list-text { color: white; }

/* Classes utilitaires pour Elementor */
.sm-rounded img, .sm-rounded iframe, .sm-rounded .elementor-wrapper, .sm-rounded .elementor-custom-embed { border-radius: 10px; overflow: hidden; }

/* =========================================================================
   Formulaire de contact (style d'origine : champs gris arrondis, libellés jaunes)
   ====================================================================== */
.sm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sm-form .sm-field { display: flex; flex-direction: column; gap: 4px; }
.sm-form .sm-field.full { grid-column: 1 / -1; }
.sm-form label { color: #fff900; font: 14px "Trebuchet MS", Arial, sans-serif; }
.sm-form .required { color: #fff900; }
.sm-form input[type="text"], .sm-form input[type="email"], .sm-form input[type="tel"],
.sm-form input[type="url"], .sm-form textarea {
	width: 100%; box-sizing: border-box; padding: 5px 10px;
	background: #1e1e1e; border: 1px solid grey; color: white; border-radius: 10px;
	font: 14px "Trebuchet MS", Arial, sans-serif;
}
.sm-form input:focus, .sm-form textarea:focus { outline: none; border-color: #fff900; }
.sm-form textarea { min-height: 100px; resize: vertical; }
.sm-form .sm-consent { grid-column: 1 / -1; font-size: 12px; color: #bbb; margin: 0; }
#content .sm-form .sm-consent a { color: #fff900; }
.sm-form .sm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sm-form .sm-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sm-form button[type="submit"], .sm-btn {
	background: url('assets/img/submit-btn.png') no-repeat center / 100% 100%;
	width: 84px; height: 27px; color: white; border: none; font-size: 12px; cursor: pointer;
	margin-left: auto;
}
.sm-notice { padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; font: bold 14px "Trebuchet MS", Arial, sans-serif; }
.sm-notice.ok { color: #fff900; border: 1px solid #fff900; }
.sm-notice.err { color: #ff6b6b; border: 1px solid red; }

/* Accessibilité */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff900; color: #000;
}
.sm-menu-toggle { display: none; }

/* =========================================================================
   Écrans étroits (l'ancien site n'était pas adapté au mobile)
   ====================================================================== */
@media (max-width: 1020px) {
	.wrapper, #header .wrapper, #footer .wrapper { width: auto; max-width: 980px; padding: 0 15px; }
	#header #info_header { float: none; width: auto; max-width: 450px; margin: 0 auto; background-size: 100% 100%; }
	#container #logo { left: 0; width: auto; float: none !important; text-align: center; }
	#container #logo img { display: inline-block; max-width: 220px; }
	#container .wrapper .partenaire,
	#container .wrapper .partenaire.absolutePos { position: static; float: none; text-align: center; padding: 10px 0; }
	#container .wrapper .partenaire img { margin: 5px 10px; max-height: 45px; width: auto; }

	.sm-menu-toggle {
		display: block; width: 100%; padding: 12px; margin: 10px 0 0;
		background: #000; color: #fff900; border: 1px solid grey; border-radius: 10px;
		font: bold 16px "Trebuchet MS", Arial, sans-serif; cursor: pointer;
	}
	#container .nav, #top-index .nav { float: none !important; top: 0; display: none; }
	#container .nav.is-open { display: block; }
	#container .nav ul { width: auto; border-radius: 10px; background: #000; }
	#container .nav .menu-top, #container .nav .menu-bot { display: none; }

	#top-index #slider-container { width: auto; margin: 15px 0 0; top: 0; height: auto; float: none; }
	#top-index #slider-container #slider { position: relative; top: 0; width: 100%; height: auto; aspect-ratio: 700 / 360; float: none; }
	#top-index #slider-container #slider-bullets { bottom: 8px; }

	.sm-inner #main-content #content { float: none; width: auto; }
	#main-content .wrapper #content { padding: 18px; }

	#footer, #push { height: auto; }
	#footer { background-position: 0 0; padding: 30px 0 15px; }
	#footer .wrapper { height: auto; }
	#footer .textseo { position: static; text-align: center; margin-bottom: 10px; font-size: 16px; }
	#footer #logoZzyb, #footer #address_footer { float: none; text-align: center; margin: 0 auto; }
	#container { margin-bottom: 0; min-height: 0; top: 0; }
	#container > .wrapper { top: 0; }
	#header #info_header { margin-bottom: 10px; }
}
@media (max-width: 640px) {
	#header #info_header { height: auto; padding: 8px 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #111; border-radius: 0 0 10px 10px; }
	#header p { margin-right: 12px; }
	.sm-form { grid-template-columns: 1fr; }
}

/* Titres Elementor : jamais justifiés */
#content .elementor-heading-title { text-align: inherit; }
#content .elementor-widget-heading { text-align: left; }
#content .elementor-widget-heading.elementor-align-center,
#content .elementor-widget-heading .elementor-heading-title[style*="center"] { text-align: center; }
