/*
 * Charte Florimeule v1.2 : habillage moderne sur tout le site.
 * Chargee apres le style du theme. Aucune police italique.
 * Polices systeme (aucun chargement externe).
 */

:root {
	--fl-rouille: #c64320;
	--fl-rouille-fonce: #a53718;
	--fl-brun: #4c2424;
	--fl-brun2: #542d26;
	--fl-creme: #f2f0e9;
	--fl-sable: #dbd6c4;
	--fl-vert: #518703;
	--fl-ombre: 0 2px 12px rgba(76, 36, 36, .10);
	--fl-police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base : plus d'italique nulle part ---------- */
*, *::before, *::after {
	font-style: normal !important;
}

em, i, cite, address, dfn, var, blockquote, .italic, .font-italic {
	font-style: normal !important;
}

/* Les icones FontAwesome restent des icones */
.fa, [class^="fa-"], [class*=" fa-"] {
	font-family: FontAwesome !important;
}

body {
	font-family: var(--fl-police);
	color: var(--fl-brun);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fl-police);
	color: var(--fl-brun2);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.25;
}

a {
	color: var(--fl-rouille);
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

a:hover {
	color: var(--fl-rouille-fonce);
}

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

/* ---------- Curseur : jamais de "rond barre" ---------- */
.btn.disabled, .btn:disabled,
.button.disabled, .button:disabled,
button:disabled, button[disabled],
input:disabled, input[disabled],
select:disabled, select[disabled],
textarea:disabled, textarea[disabled],
.form-control:disabled, .form-control[disabled],
.custom-select:disabled,
.nav-link.disabled, .page-link.disabled,
.dropdown-item.disabled,
.list-group-item.disabled,
.woocommerce .button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button:disabled,
.woocommerce .quantity .qty:disabled,
.woocommerce .variations select:disabled,
.wc-variation-selection-needed,
.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button,
.woocommerce form .form-row input[type="submit"]:disabled,
input[name="save_address"],
input[name="save_address"]:disabled {
	cursor: default !important;
}

/* ---------- En-tete ---------- */
.navbar {
	background-color: #fff;
	background-image: none;
	box-shadow: 0 1px 0 var(--fl-sable), 0 4px 16px rgba(76, 36, 36, .06);
}

#wrapper-navbar.fixed .navbar {
	box-shadow: 0 1px 0 var(--fl-sable), 0 6px 18px rgba(76, 36, 36, .10);
}

.navbar a.navbar-brand {
	padding: 6px 0;
}

.navbar a.navbar-brand img {
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.navbar-nav .nav-link,
.navbar .navbar-nav a {
	font-family: var(--fl-police);
	font-weight: 600;
	letter-spacing: .02em;
	border-radius: 99px;
	transition: color .15s ease, background-color .15s ease;
}

.navbar-nav .nav-link:hover,
.navbar .navbar-nav a:hover {
	color: var(--fl-rouille);
}

/* Outils d'en-tete : panier + reseaux, proprement alignes a droite */
.navbar .header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	width: auto !important;
	height: 54px;
	padding-right: 10px;
}

.navbar .header-tools a {
	float: none !important;
	flex: 0 0 auto;
}

.flb-panier-wrap {
	display: inline-block;
	margin-right: 4px;
}

.navbar .header-tools a.flb-panier,
a.flb-panier {
	display: inline-flex !important;
	align-items: center;
	gap: .45rem;
	height: 38px !important;
	padding: 0 .9rem;
	border: 1px solid var(--fl-sable);
	border-radius: 99px;
	background: #fff;
	color: var(--fl-brun);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

a.flb-panier:hover {
	border-color: var(--fl-rouille);
	color: var(--fl-rouille);
	text-decoration: none;
}

a.flb-panier.plein {
	border-color: var(--fl-rouille);
	background: var(--fl-rouille);
	color: #fff;
}

a.flb-panier.plein:hover {
	background: var(--fl-rouille-fonce);
	color: #fff;
}

.flb-panier-ico {
	font-size: 1.05rem;
	line-height: 1;
}

.flb-panier-nb {
	min-width: 1.4rem;
	padding: .15rem .4rem;
	border-radius: 99px;
	background: var(--fl-creme);
	color: var(--fl-brun);
	font-size: .8rem;
	text-align: center;
}

a.flb-panier.plein .flb-panier-nb {
	background: #fff;
	color: var(--fl-rouille);
}

@media (max-width: 768px) {
	/* Sur mobile le panier reste accessible (les reseaux sont masques) */
	.navbar .header-tools {
		display: flex !important;
		position: absolute;
		top: 8px;
		right: 8px;
		height: auto;
		padding: 0;
	}

	.navbar .header-tools a.facebook-like,
	.navbar .header-tools a.instagram,
	.navbar .header-tools a.epv {
		display: none !important;
	}

	.flb-panier-txt {
		display: none;
	}

	a.flb-panier {
		padding: 0 .7rem;
	}
}

/* ---------- Bandeau de titre des pages ---------- */
.entry-header {
	background: linear-gradient(135deg, #d3b64c 0%, #c9a93a 100%);
}

.entry-header .entry-title,
.entry-header h1 {
	font-family: var(--fl-police);
	font-weight: 700;
	letter-spacing: -.01em;
	color: #fff;
}

.entry-header .breadcrumbs {
	font-family: var(--fl-police);
}

/* ---------- Contenu ---------- */
.entry-content h2,
.entry-content h3 {
	color: var(--fl-brun2);
}

.entry-content p {
	line-height: 1.7;
}

.entry-content img {
	border-radius: 8px;
}

/* ---------- Blocs farines de l'accueil ---------- */
.farines .farine,
.farine {
	border-radius: 12px;
}

.farine img {
	border-radius: 10px;
}

/* ---------- Boutons du site ---------- */
.btn, a.btn, button.btn, input.btn {
	border-radius: 8px;
	font-family: var(--fl-police);
	font-weight: 600;
	letter-spacing: .01em;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
	background-color: var(--fl-rouille);
	border-color: var(--fl-rouille);
	color: #fff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background-color: var(--fl-rouille-fonce);
	border-color: var(--fl-rouille-fonce);
	color: #fff;
}

.btn-outline-primary {
	background: transparent;
	border-color: var(--fl-rouille);
	color: var(--fl-rouille);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
	background-color: var(--fl-rouille);
	border-color: var(--fl-rouille);
	color: #fff;
}

/* ---------- Formulaires ---------- */
.form-control, .custom-select,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], select, textarea {
	font-family: var(--fl-police);
	color: var(--fl-brun);
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
}

.form-control:focus, .custom-select:focus,
input:focus, select:focus, textarea:focus {
	border-color: var(--fl-rouille);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(198, 67, 32, .15);
}

/* ---------- Pied de page ---------- */
#wrapper-footer {
	font-family: var(--fl-police);
}

#wrapper-footer a {
	transition: color .15s ease;
}

/* =====================================================================
 * En-tete fige en permanence : grand logo centre, menu dessous
 * ===================================================================== */
body {
	padding-top: 178px !important;
}

#wrapper-navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background: #fff;
}

#wrapper-navbar .navbar {
	position: relative;
	background: #fff;
}

#wrapper-navbar .navbar a.navbar-brand {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 0 0 0;
	text-align: center;
}

#wrapper-navbar .navbar a.navbar-brand img {
	display: inline-block;
	width: auto;
	height: 100px;
	max-width: none;
}

#wrapper-navbar .navbar a.navbar-brand img.fixed {
	display: none;
}

#wrapper-navbar .navbar .navbar-nav {
	margin: 0 auto;
	flex-wrap: nowrap;
	justify-content: center;
}

#wrapper-navbar .navbar .navbar-nav > .menu-item {
	height: 62px;
	padding: 0 clamp(10px, 1.6vw, 30px);
}

#wrapper-navbar .navbar .navbar-nav > .menu-item > .nav-link {
	line-height: 62px;
	font-size: clamp(13px, 1.25vw, 17px);
	white-space: nowrap;
}

/* Petit portable : menu un peu resserre */
@media (min-width: 992px) and (max-width: 1199.98px) {
	#wrapper-navbar .navbar .navbar-nav > .menu-item {
		padding: 0 10px;
	}

	#wrapper-navbar .navbar .navbar-nav > .menu-item > .nav-link {
		font-size: 13px;
	}

	#wrapper-navbar .navbar .header-tools a.facebook-like,
	#wrapper-navbar .navbar .header-tools a.instagram {
		display: none !important;
	}
}

/* Tablette et mobile : logo centre, bouton menu a gauche, panier a droite */
@media (max-width: 991.98px) {
	body {
		padding-top: 96px !important;
	}

	#wrapper-navbar .navbar.navbar-toggleable-md > .container {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
		width: 100%;
		height: 96px;
		padding: 0 8px;
	}

	#wrapper-navbar .navbar .navbar-toggler {
		position: absolute;
		top: 50%;
		left: 8px;
		z-index: 3;
		display: block;
		width: 48px;
		height: 44px;
		margin: -22px 0 0 0;
		padding: 0;
		border: 1px solid var(--fl-sable);
		border-radius: 8px;
		background: #fff;
	}

	#wrapper-navbar .navbar a.navbar-brand {
		padding: 6px 0;
		width: auto;
	}

	#wrapper-navbar .navbar a.navbar-brand img {
		height: 80px;
		max-width: none !important;
	}

	#wrapper-navbar .navbar .header-tools {
		position: absolute;
		top: 50%;
		right: 8px;
		z-index: 3;
		display: flex !important;
		height: auto;
		margin-top: -19px;
		padding: 0;
	}

	#wrapper-navbar .navbar .header-tools a.facebook-like,
	#wrapper-navbar .navbar .header-tools a.instagram {
		display: none !important;
	}

	/* Menu deroulant sous la barre, defilable si trop long */
	#wrapper-navbar .navbar .navbar-collapse {
		position: absolute;
		top: 96px;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 96px);
		overflow-y: auto;
		padding: 0;
		background: #fff;
		border-top: 1px solid var(--fl-sable);
		box-shadow: 0 10px 20px rgba(76, 36, 36, .12);
		-webkit-overflow-scrolling: touch;
	}

	#wrapper-navbar .navbar .navbar-collapse:not(.show) {
		display: none !important;
	}

	#wrapper-navbar .navbar .navbar-nav {
		flex-direction: column;
		margin: 0;
		padding: .5rem 1rem 1rem 1rem;
	}

	#wrapper-navbar .navbar .navbar-nav > .menu-item {
		height: auto;
		padding: 0;
		display: block;
		background: none;
		border-bottom: 1px solid var(--fl-creme);
	}

	#wrapper-navbar .navbar .navbar-nav > .menu-item > .nav-link {
		display: block;
		padding: .9rem .5rem;
		font-size: 16px;
		line-height: 1.3;
		text-align: left;
		background: none !important;
	}
}

@media (max-width: 575.98px) {
	body {
		padding-top: 84px !important;
	}

	#wrapper-navbar .navbar.navbar-toggleable-md > .container {
		height: 84px;
	}

	#wrapper-navbar .navbar a.navbar-brand img {
		height: 68px;
	}

	#wrapper-navbar .navbar .navbar-collapse {
		top: 84px;
		max-height: calc(100vh - 84px);
	}
}

/* Ancre : le contenu ne passe pas sous l'en-tete */
html {
	scroll-padding-top: 190px;
}

/* Barre d'administration WordPress (utilisateurs connectes) */
body.admin-bar #wrapper-navbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #wrapper-navbar {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar #wrapper-navbar {
		top: 0;
	}
}

/* Icone du bouton menu (trois barres, couleur du site) */
#wrapper-navbar .navbar-toggler .navbar-toggler-icon {
	width: 26px;
	height: 26px;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23c64320' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Accueil : sous-titre sur toute la largeur, 24 px ; 1re phrase en gras, 2e normale */
.accueil .accueil-titre {
	position: relative;
	left: 50%;
	width: 1200px;
	max-width: calc(100vw - 32px);
	margin: 0;
	transform: translateX(-50%);
}

.accueil .accueil-titre h1,
.accueil .accueil-titre h2,
.accueil h1,
.accueil h2 {
	width: 100%;
	max-width: none;
	font-size: 24px;
	font-weight: 400;
	color: #4c2424;
	text-align: center;
	line-height: 1.45;
	letter-spacing: 0;
}

.accueil .accueil-titre h1 {
	margin: 0 0 .4rem 0;
	font-weight: 700;
}

.accueil .accueil-titre h2 {
	margin: 0;
}

/* Trait de separation sous le titre */
.accueil hr.accueil-separateur {
	width: 980px;
	max-width: none;
	height: 0;
	margin: 30px 0 0 0;
	border: 0;
	border-top: 2px solid #4c2424;
	opacity: 1;
}

.accueil .accueil-separateur + .blocs-buttons {
	margin-top: 40px;
}

@media (max-width: 991.98px) {
	.accueil hr.accueil-separateur {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.accueil .accueil-titre h1,
	.accueil .accueil-titre h2 {
		font-size: 20px;
	}
}

/* Boutons ajoutes dans les pages (Commande en ligne / Mon compte) */
.flb-boutons-liens {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin: 1.2rem 0 1.4rem 0;
}

.entry-content .flb-boutons-liens a.btn,
.flb-boutons-liens a.btn {
	display: inline-block;
	padding: .65rem 1.3rem;
	border: 2px solid var(--fl-rouille);
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.entry-content .flb-boutons-liens a.btn-primary,
.flb-boutons-liens a.btn-primary {
	background: var(--fl-rouille);
	color: #fff;
}

.entry-content .flb-boutons-liens a.btn-primary:hover,
.flb-boutons-liens a.btn-primary:hover {
	background: var(--fl-rouille-fonce);
	border-color: var(--fl-rouille-fonce);
	color: #fff;
}

.entry-content .flb-boutons-liens a.btn-outline-primary,
.flb-boutons-liens a.btn-outline-primary {
	background: #fff;
	color: var(--fl-rouille);
}

.entry-content .flb-boutons-liens a.btn-outline-primary:hover,
.flb-boutons-liens a.btn-outline-primary:hover {
	background: var(--fl-rouille);
	color: #fff;
}

@media (max-width: 450px) {
	.flb-boutons-liens a.btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* En-tete : bouton Panier et, juste en dessous, bouton Mon compte (orange du theme) */
.flb-outils-boutique {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin-right: 4px;
}

.flb-outils-boutique .flb-panier-wrap {
	display: block;
	margin: 0;
}

.flb-outils-boutique a.flb-panier {
	display: flex !important;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.navbar .header-tools a.flb-compte,
a.flb-compte {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	box-sizing: border-box;
	height: 38px !important;
	padding: 0 .9rem;
	border: 1px solid var(--fl-rouille);
	border-radius: 99px;
	background: var(--fl-rouille);
	color: #fff;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

a.flb-compte:hover,
a.flb-compte:focus {
	border-color: var(--fl-rouille-fonce);
	background: var(--fl-rouille-fonce);
	color: #fff;
	text-decoration: none;
}

.flb-compte-ico {
	font-size: 1rem;
	line-height: 1;
}

/* Les icones reseaux restent alignees en haut, a cote du panier */
#wrapper-navbar .navbar .header-tools {
	align-items: flex-start;
	height: auto;
	padding-top: 8px;
}

@media (max-width: 991.98px) {
	#wrapper-navbar .navbar .header-tools {
		padding-top: 0;
		margin-top: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.flb-outils-boutique {
		gap: 4px;
	}

	a.flb-panier,
	.navbar .header-tools a.flb-panier,
	.navbar .header-tools a.flb-compte,
	a.flb-compte {
		height: 34px !important;
		padding: 0 .65rem;
		font-size: .85rem;
	}

	.flb-compte-txt {
		display: none;
	}
}

.flb-compte-ico svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* =====================================================================
 * Formulaire « Demande de devis » (plugin Boutique Florimeule)
 * ===================================================================== */
form.fl-devis input[type="text"],
form.fl-devis input[type="email"],
form.fl-devis input[type="tel"],
form.fl-devis input[type="date"],
form.fl-devis textarea,
form.fl-devis select {
	box-sizing: border-box;
	min-height: 44px;
	padding: .55rem .8rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	background: #fff;
	color: var(--fl-brun);
	font-family: var(--fl-police);
	font-size: 1rem;
	line-height: 1.4;
}

/* Champ date (jj/mm/aaaa) : meme arrondi et meme hauteur que les champs du dessus */
form.fl-devis input[type="date"],
input[type="date"] {
	min-width: 220px;
	border-radius: 8px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

input[type="date"] {
	min-height: 44px;
	padding: .55rem .8rem;
	border: 1px solid var(--fl-sable);
	background: #fff;
	color: var(--fl-brun);
	font-family: var(--fl-police);
	font-size: 1rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: .7;
}

form.fl-devis input:focus,
form.fl-devis textarea:focus,
input[type="date"]:focus {
	border-color: var(--fl-rouille);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(198, 67, 32, .15);
}

/* Bouton « Envoyer ma demande de devis » : orange du theme */
form.fl-devis button[type="submit"],
form.fl-devis .button {
	display: inline-block;
	padding: .8rem 1.6rem;
	border: 2px solid var(--fl-rouille);
	border-radius: 8px;
	background: var(--fl-rouille);
	color: #fff;
	font-family: var(--fl-police);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

form.fl-devis button[type="submit"]:hover,
form.fl-devis button[type="submit"]:focus,
form.fl-devis .button:hover,
form.fl-devis .button:focus {
	border-color: var(--fl-rouille-fonce);
	background: var(--fl-rouille-fonce);
	color: #fff;
}

@media (max-width: 450px) {
	form.fl-devis button[type="submit"] {
		width: 100%;
	}

	form.fl-devis input[type="date"] {
		width: 100%;
		min-width: 0;
	}
}
