/*
Theme Name: Machine à traire Rouzier
Description: Reprise du gabarit QoSiTemplate (Joomla) des sites www.machineatraire.fr et www.machineatraire-team.fr.
Author: QoSinus
Version: 1.2.1
Requires PHP: 8.1
Text Domain: machineatraire
*/

/* ---------- Remise à zéro (gabarit d'origine) ---------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: "Book Antiqua", Palatino, "Palatino Linotype", serif;
	color: #555555;
}
strong, b { font-weight: bold; }
em, i { font-style: italic; }

body {
	line-height: 1;
	color: black;
	margin: auto;
	background-color: #B2DAE8;
}

/* ---------- Titres ---------- */
h1 { font-size: 30px; font-weight: bold; margin-bottom: 10px; border-bottom: solid 3px #A1C2E5; }
h2 { font-size: 25px; font-weight: bold; margin-bottom: 10px; }
h3 { font-size: 20px; font-weight: bold; }
h4 { font-size: 25px; font-weight: bold; margin-bottom: 10px; border-bottom: solid 3px #A1C2E5; }
h5 { font-size: 13px; font-weight: bold; }
h6 { font-size: 12px; font-weight: bold; }

/* ---------- Listes ---------- */
ul, ol { list-style-type: none; }
ul li { margin-left: 10px; }

/* ---------- Liens ---------- */
a { text-decoration: none; color: #000000; font-weight: bold; font-size: 20px; }
a.mailto { color: #555555; font-size: 14px; }
a:hover { text-decoration: none; color: #000000; text-shadow: 0 0 2px #211686; }

/* ---------- Squelette ---------- */
.container {
	background: url(images/background4.png) repeat-x top;
	min-height: 780px;
}
.contenu { max-width: 950px; margin: auto; }

/* Haut de page */
.header { height: 240px; overflow: hidden; }
#logo { height: 100%; margin-left: 10px; }
#logo p { text-align: center; }
#logo img { border: 0; }

/* Menu principal (reprise du thème maximenuck « qositemplate ») */
#menu { margin-top: 10px; margin-bottom: 10px; font-weight: bold; }
.menu_menuprincipal {
	box-shadow: 0 0 10px black;
	border-radius: 10px;
	padding-top: 10px;
	font-size: 20px;
	background-color: #7F9FDF;
}
.menu_menuprincipal ul.maximenuck {
	background: url(images/menu/fond2_bg.png) top left repeat-x;
	min-height: 34px;
	margin: 0;
	padding: 0;
	text-shadow: 0 0 2px white;
	font-weight: bold;
	display: flex;
	flex-wrap: wrap;
}
.menu_menuprincipal ul.maximenuck li {
	list-style: none;
	margin: 0;
	padding: 0 10px;
	background: url(images/menu/separator.png) top right no-repeat;
	text-shadow: 0 0 2px white;
}
.menu_menuprincipal ul.maximenuck li a {
	display: block;
	min-height: 34px;
	padding-top: 5px;
	text-indent: 2px;
	color: #ccc;
	font-size: 20px;
	line-height: 18px;
	white-space: normal;
}
.menu_menuprincipal ul.maximenuck li a:hover,
.menu_menuprincipal ul.maximenuck li.current-menu-item > a { color: #fff; text-shadow: 0 0 2px white; }

/* Bloc central */
.centre {
	width: 100%;
	min-height: 350px;
	position: relative;
	background-color: #C8FDC9;
	border-radius: 20px;
	box-shadow: 0 0 10px black;
	border-top: 1px dotted grey;
	border-left: 1px dotted grey;
	border-right: 1px dotted grey;
	display: flow-root;
}
#article { float: left; width: 750px; padding-top: 30px; position: relative; line-height: 1.25; }
#article p { margin-bottom: 0; }
#article img { max-width: 100%; height: auto; }
#article table { border-collapse: collapse; }
#article ul { list-style-type: disc; margin-left: 20px; }
#article ol { list-style-type: decimal; margin-left: 20px; }

/* Colonne de gauche */
.left {
	float: left;
	width: 155px;
	overflow: hidden;
	padding: 10px;
	margin: 25px 15px 25px 0;
	border-right: 1px dotted grey;
}
.left ul.joomla-nav { margin: 0; padding: 0; }
.left ul li {
	padding: 10px;
	background: #7F9FDF;
	margin-top: 15px;
	border: 1px dotted grey;
	border-radius: 10px;
	box-shadow: 0 0 10px black;
}

/* Pied de page */
.footer-all {
	clear: both;
	min-height: 130px;
	width: 100%;
	margin: auto;
	overflow: hidden;
	border-top: 1px dotted grey;
	font-size: 20px;
}
.divfooter { width: 950px; max-width: 100%; margin: auto; padding-top: 30px; }
#footer { width: 950px; max-width: 100%; min-height: 150px; position: relative; border-right: 1px dotted grey; border-left: 1px dotted grey; line-height: 1.2; }
#footer table { width: 100%; }
#footer td { vertical-align: top; padding: 0 5px; }

/* Diaporama de l'accueil (750 x 563, fond #DEDEDE, 2,5 s) */
.diaporama {
	position: relative;
	width: 750px;
	max-width: 100%;
	aspect-ratio: 750 / 563;
	margin: 0 auto 20px;
	background: #DEDEDE;
	overflow: hidden;
}
.diaporama img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
.diaporama img.actif { opacity: 1; }

/* Formulaire de contact (repris de ckforms) */
.ckformtitle { padding-top: 30px; margin-bottom: 15px; }
.ckform .champ { margin: 8px 0; display: flex; gap: 10px; align-items: flex-start; }
.ckform .champ label { width: 220px; font-weight: bold; font-size: 16px; }
.ckform .champ input, .ckform .champ textarea { width: 380px; font-size: 14px; padding: 4px; border: 1px solid #999; background: #fff; }
.ckform .champ textarea { height: 140px; }
.ckform .separateur { border-top: 1px dotted grey; margin: 14px 0; }
.ckform .pot { position: absolute; left: -9999px; }
.ckform button { font-size: 16px; font-weight: bold; padding: 6px 20px; cursor: pointer; }
.ckform-message { padding: 12px; margin: 10px 0; border-radius: 8px; font-size: 16px; }
.ckform-message.ok { background: #e3f7e3; border: 1px solid #4a4; }
.ckform-message.erreur { background: #fbe3e3; border: 1px solid #c44; }

/* ---------- Site www.machineatraire.fr (SAS ROUZIER) : gabarit vert de l'ancien site ---------- */
body.site-rouzier { background-color: #EAFFEA; }
.site-rouzier h1, .site-rouzier h4 { border-bottom-color: #BAF0A8; }
.site-rouzier h3 { font-size: 18px; font-weight: normal; }
.site-rouzier a:hover { text-shadow: 0 0 2px #23640F; }
.site-rouzier .container { background-image: url(images/background3.png); min-height: 750px; }
.site-rouzier .menu_menuprincipal { background-color: #BAF0A8; }
.site-rouzier .centre { background-color: #FBFCC8; }
.site-rouzier .left ul li { background: #BAF0A8; }
.site-rouzier .footer-all { background: url(images/background3.png) repeat-x top; min-height: 150px; }
.site-rouzier #footer { min-height: 130px; }
.ckform-texte { font-size: 14px; margin: 10px 0; line-height: 1.3; }
.ckform .champ select { width: 390px; font-size: 14px; padding: 4px; }
.ckform .champ input[type="checkbox"] { width: auto; }
.ckform .champ.question input { width: 120px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
	.contenu { padding: 0 8px; }
	.header { height: auto; }
	#logo img { max-width: 100%; height: auto; }
	.left { float: none; width: auto; margin: 10px; border-right: 0; }
	.left ul.joomla-nav { display: flex; flex-wrap: wrap; gap: 8px; }
	.left ul li { margin: 0; }
	#article { float: none; width: auto; padding: 15px; }
	.ckform .champ { flex-direction: column; }
	.ckform .champ input, .ckform .champ textarea, .ckform .champ select { width: 100%; box-sizing: border-box; }
	.ckform .champ input[type="checkbox"] { width: auto; }
}
