/* ====================================================================
   PAGE « DEVIS POUR PERRUQUE PERSONNALISEE »
   Reprend la charte du formulaire de contact (classes .lmc-contact__*
   de lmc-tunnel.css). Ce fichier n'ajoute que ce qui est propre au
   devis : rubriques, pastilles, champ d'images, mise en page de la page.
   ==================================================================== */

/* --- Mise en page : meme traitement que les pages Contact et A propos
   (fond bleu clair, titre natif masque, et le theme place sinon le contenu
   dans sa colonne d'article de 66 %). */
body.lmc-page-devis,
body.lmc-page-devis .site-content,
body.lmc-page-devis #content {
	background-color: var(--lmc-light) !important;
}

body.lmc-page-devis .page-header,
body.lmc-page-devis .entry-header {
	display: none !important;
}

body.lmc-page-devis .container {
	max-width: 1240px;
}

body.lmc-page-devis .col-lg-8.main-content {
	flex: 0 0 100%;
	max-width: 100%;
}

body.lmc-page-devis .post-content {
	padding: 0;
}

body.lmc-page-devis .lmc-btn--primary {
	background-color: var(--lmc-navy) !important;
	border-color: var(--lmc-navy) !important;
	color: var(--lmc-white) !important;
}

body.lmc-page-devis .lmc-btn--primary:hover {
	background-color: var(--lmc-blue) !important;
	border-color: var(--lmc-blue) !important;
}

body.lmc-page-devis .lmc-contact__envoi button.lmc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 30px !important;
	text-decoration: none !important;
	line-height: 1.2;
}

/* --- Zone du formulaire : une seule colonne, plus etroite que le contact */
.lmc-devis__zone {
	max-width: 760px;
	margin: 22px auto 0;
}

.lmc-devis .lmc-contact__message--ok {
	margin-bottom: 18px;
}

/* Le theme donne aux h2 une taille et un interlettrage bien plus grands :
   on double le selecteur de classe pour reprendre la main. */
body.lmc-page-devis .lmc-devis h2.lmc-devis__rubrique {
	margin: 40px 0 22px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--lmc-rule);
	font-family: var(--lmc-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--lmc-blue);
}

body.lmc-page-devis .lmc-devis__form > h2.lmc-devis__rubrique:first-of-type {
	margin-top: 0;
}

body.lmc-page-devis .lmc-devis h2.lmc-devis__rubrique .lmc-contact__opt {
	font-size: 12px;
	letter-spacing: 0;
}

/* Quand un encadre ou un tableau de tarifs precede le formulaire, la
   premiere rubrique ne colle plus au bord haut. */
body.lmc-page-devis .lmc-devis__form--apres-bloc > h2.lmc-devis__rubrique:first-of-type {
	margin-top: 40px;
}

.lmc-devis__nb {
	white-space: nowrap;
}

/* --- Encadre d'information (tarif de la main-d'oeuvre, etc.) */
.lmc-devis__note {
	margin: 0 0 8px;
	padding: 18px 22px;
	background: var(--lmc-white);
	border-left: 2px solid var(--lmc-blue);
}

.lmc-devis__note p {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--lmc-navy);
}

.lmc-devis__note p:last-child {
	margin-bottom: 0;
}

/* --- Tableaux de tarifs */
.lmc-devis__tarifs {
	margin: 0 0 8px;
}

.lmc-devis__tarifs .lmc-devis__rubrique {
	margin-top: 0;
}

.lmc-devis__tableau {
	margin: 0 0 14px;
	overflow-x: auto;
	background: var(--lmc-white);
	border: 1px solid var(--lmc-rule);
}

/* Le theme dessine un quadrillage noir et met les <th> en capitales :
   les selecteurs sont renforces (body + page) pour reprendre la main. */
body.lmc-page-devis .lmc-devis__tableau table {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	font-family: var(--lmc-font);
	font-size: 15px;
	color: var(--lmc-navy);
}

body.lmc-page-devis .lmc-devis__tableau--large table {
	min-width: 540px;
}

body.lmc-page-devis .lmc-devis__tableau th,
body.lmc-page-devis .lmc-devis__tableau td {
	padding: 13px 16px;
	border: 0 !important;
	border-bottom: 1px solid var(--lmc-rule) !important;
	background: transparent;
	text-align: left;
	vertical-align: middle;
	font-family: var(--lmc-font);
	font-size: 15px;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
	color: var(--lmc-navy);
}

body.lmc-page-devis .lmc-devis__tableau thead th {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(13, 34, 50, 0.72);
}

body.lmc-page-devis .lmc-devis__tableau tbody th {
	font-weight: 400;
}

body.lmc-page-devis .lmc-devis__tableau tbody tr:last-child th,
body.lmc-page-devis .lmc-devis__tableau tbody tr:last-child td {
	border-bottom: 0 !important;
}

body.lmc-page-devis .lmc-devis__tableau .lmc-devis__prix {
	text-align: center;
	white-space: nowrap;
}

.lmc-devis__tableau:focus-visible {
	outline: 2px solid var(--lmc-blue);
	outline-offset: 2px;
}

/* --- Champ qui n'apparait que selon une autre reponse */
.lmc-devis__si[hidden] {
	display: none;
}

/* --- Textes d'aide */
.lmc-devis__aide {
	display: block;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(13, 34, 50, 0.6);
}

.lmc-devis__aide--tete {
	margin: -8px 0 22px;
}

.lmc-devis__erreur {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #8e332e;
}

.lmc-devis__erreur[hidden] {
	display: none;
}

.lmc-devis__retour a {
	color: var(--lmc-navy);
}

/* --- Pastilles (texture, bonnet) */
.lmc-devis fieldset.lmc-devis__pastilles {
	min-width: 0;
	padding: 0;
	border: 0;
}

.lmc-devis__pastilles legend {
	display: block;
	width: auto;
	margin: 0 0 10px;
	padding: 0;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(13, 34, 50, 0.72);
}

.lmc-devis__pastilles legend span {
	color: var(--lmc-blue);
}

.lmc-devis__rangee {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lmc-devis .lmc-devis__pastille {
	position: relative;
	display: inline-block;
	margin: 0;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lmc-navy);
	cursor: pointer;
}

.lmc-devis__pastille input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

/* « .lmc-contact__champ label span » colore en bleu les etoiles des libelles :
   les pastilles sont des <span> dans un <label>, il faut leur rendre le navy. */
.lmc-devis .lmc-devis__pastille span {
	display: block;
	min-width: 64px;
	padding: 11px 20px;
	background: var(--lmc-light);
	border: 1px solid rgba(13, 34, 50, 0.4);
	color: var(--lmc-navy);
	text-align: center;
	line-height: 1.3;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lmc-devis .lmc-devis__pastille:hover span {
	border-color: var(--lmc-navy);
}

.lmc-devis .lmc-devis__pastille input:checked + span {
	background: var(--lmc-navy);
	border-color: var(--lmc-navy);
	color: var(--lmc-white);
}

.lmc-devis .lmc-devis__pastille input:focus-visible + span {
	outline: 2px solid var(--lmc-blue);
	outline-offset: 2px;
}

/* --- Champ d'images */
.lmc-devis__fichiers input[type="file"] {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--lmc-light);
	border: 1px dashed rgba(13, 34, 50, 0.5);
	border-radius: 0;
	font-family: var(--lmc-font);
	font-size: 15px;
	color: var(--lmc-navy);
	cursor: pointer;
}

.lmc-devis__fichiers input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 9px 18px;
	background: var(--lmc-navy);
	border: 0;
	border-radius: 0;
	font-family: var(--lmc-font);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lmc-white);
	cursor: pointer;
}

.lmc-devis__fichiers input[type="file"]:focus-visible {
	outline: 2px solid var(--lmc-blue);
	outline-offset: 2px;
}

/* --- Delai de realisation, avant le bouton */
.lmc-devis__delai {
	margin: 34px 0 20px;
	padding: 16px 20px;
	background: var(--lmc-white);
	border-left: 2px solid var(--lmc-blue);
	font-size: 15px;
	line-height: 1.7;
	color: var(--lmc-navy);
}

.lmc-devis__delai p {
	margin: 0 0 6px;
}

.lmc-devis__delai p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.lmc-devis__rubrique {
		margin-top: 32px;
	}

	.lmc-devis__rangee {
		gap: 8px;
	}

	.lmc-devis__pastille span {
		min-width: 56px;
		padding: 11px 16px;
	}

	.lmc-devis__fichiers input[type="file"]::file-selector-button {
		display: block;
		margin: 0 0 10px;
	}
}

/* ====================================================================
   PAGE D'ACCUEIL DU SERVICE (« Service sur mesure »)
   Meme grammaire que la page A propos : filets fins, blocs sans aplat,
   numerotation discrete. Une carte par prestation.
   ==================================================================== */
.lmc-devis__cartes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	max-width: 960px;
	margin: 22px auto 0;
}

.lmc-devis__carte {
	display: flex;
	flex-direction: column;
	padding: 38px 36px 34px;
	border: 1px solid rgba(13, 34, 50, 0.22);
	transition: border-color 0.18s ease;
}

.lmc-devis__carte:hover {
	border-color: var(--lmc-navy);
}

.lmc-devis__carte-num {
	display: block;
	margin-bottom: 14px;
	font-size: 12px;
	letter-spacing: 0.24em;
	color: var(--lmc-blue);
}

/* Le theme impose ses propres titres : on double le selecteur pour reprendre la main. */
body.lmc-page-devis .lmc-devis__carte h2 {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: var(--lmc-font);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	/* Bleu profond, meme teinte que le bleu de la charte (#629ac7) mais assez
	   fonce (contraste ~5:1 sur le fond clair) pour que les titres ressortent
	   du texte bleu marine. */
	color: #2b6697;
}

body.lmc-page-devis .lmc-devis__carte h2 a {
	color: inherit;
	text-decoration: none;
}

body.lmc-page-devis .lmc-devis__carte h2 a:hover {
	color: var(--lmc-navy);
}

.lmc-devis__carte-texte {
	margin: 0 0 22px;
	font-size: 15.5px;
	line-height: 1.8;
	color: rgba(13, 34, 50, 0.82);
}

.lmc-devis__carte-infos {
	margin: 0 0 26px;
	padding: 18px 0 0;
	border-top: 1px solid var(--lmc-rule);
}

.lmc-devis__carte-infos > div {
	margin: 0 0 12px;
}

.lmc-devis__carte-infos dt {
	margin: 0 0 3px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(13, 34, 50, 0.6);
}

.lmc-devis__carte-infos dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--lmc-navy);
}

.lmc-devis__carte-action {
	margin: auto 0 0;
}

body.lmc-page-devis .lmc-devis__carte-action a.lmc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 230px;
	padding: 16px 30px !important;
	text-decoration: none !important;
	line-height: 1.2;
}

.lmc-devis__pied {
	max-width: 960px;
	margin: 34px auto 0;
	font-size: 15px;
	line-height: 1.8;
	text-align: center;
	color: rgba(13, 34, 50, 0.7);
}

@media (max-width: 767px) {
	.lmc-devis__cartes {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.lmc-devis__carte {
		padding: 30px 24px 28px;
	}

	body.lmc-page-devis .lmc-devis__carte-action a.lmc-btn {
		width: 100%;
		min-width: 0;
	}
}
/* ====================================================================
   IMAGES CHOISIES : vignettes avec une croix pour les retirer
   (remplies par devis-sur-mesure.js ; sans JavaScript, le champ natif
   de fichiers reste utilisable). Le theme impose ses styles aux listes
   et aux boutons : selecteurs renforces comme pour le reste de la page.
   ==================================================================== */
body.lmc-page-devis .lmc-devis ul.lmc-devis__apercus {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

body.lmc-page-devis .lmc-devis ul.lmc-devis__apercus[hidden] {
	display: none;
}

body.lmc-page-devis .lmc-devis__apercu {
	position: relative;
	width: 104px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.lmc-page-devis .lmc-devis__apercu img,
body.lmc-page-devis .lmc-devis__apercu-type {
	display: block;
	width: 104px;
	height: 104px;
	margin: 0;
	object-fit: cover;
	background: var(--lmc-white);
	border: 1px solid rgba(13, 34, 50, 0.22);
}

body.lmc-page-devis .lmc-devis__apercu-type {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	letter-spacing: 0.16em;
	color: rgba(13, 34, 50, 0.7);
}

body.lmc-page-devis .lmc-devis__apercu-nom {
	display: block;
	margin-top: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(13, 34, 50, 0.7);
}

/* La croix : pastille navy dans l'angle de la vignette. */
body.lmc-page-devis button.lmc-devis__retirer {
	position: absolute;
	top: -9px;
	right: -9px;
	width: 26px;
	height: 26px;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: var(--lmc-navy) !important;
	font-family: var(--lmc-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	color: var(--lmc-white) !important;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

body.lmc-page-devis button.lmc-devis__retirer:hover {
	background: var(--lmc-blue) !important;
}

body.lmc-page-devis button.lmc-devis__retirer:focus-visible {
	outline: 2px solid var(--lmc-blue);
	outline-offset: 2px;
}

body.lmc-page-devis .lmc-devis__compteur {
	margin: 12px 0 0;
	font-size: 13px;
	color: rgba(13, 34, 50, 0.6);
}

body.lmc-page-devis .lmc-devis__compteur[hidden] {
	display: none;
}

@media (max-width: 767px) {
	body.lmc-page-devis .lmc-devis__apercu,
	body.lmc-page-devis .lmc-devis__apercu img,
	body.lmc-page-devis .lmc-devis__apercu-type {
		width: 88px;
	}

	body.lmc-page-devis .lmc-devis__apercu img,
	body.lmc-page-devis .lmc-devis__apercu-type {
		height: 88px;
	}
}

/* ====================================================================
   PAGE « SERVICE SUR MESURE » : TITRE SUR UNE SEULE LIGNE SUR MOBILE
   Le theme impose ~39 px au titre sur mobile : « Service sur mesure »
   passait sur deux lignes. Sur petit ecran, la taille suit la largeur
   disponible (largeur de l ecran moins les marges), pour que le titre
   tienne toujours sur une ligne. Le diviseur depend de la langue, car le
   titre n a pas la meme longueur (francais, anglais, espagnol).
   ==================================================================== */
@media (max-width: 767px) {
	.lmc-devis--accueil .lmc-contact__titre {
		white-space: nowrap;
		font-size: min(40px, calc((100vw - 100px) / 8.8)) !important;
	}

	html[lang^="en"] .lmc-devis--accueil .lmc-contact__titre {
		font-size: min(40px, calc((100vw - 100px) / 7.8)) !important;
	}

	html[lang^="es"] .lmc-devis--accueil .lmc-contact__titre {
		font-size: min(40px, calc((100vw - 100px) / 10.4)) !important;
	}
}

/* ====================================================================
   PAGE « SERVICE SUR MESURE » : PHRASE D INTRODUCTION SUR DEUX LIGNES
   SUR MOBILE (comme sur ordinateur)
   Deux lignes de ~70 caracteres exigent une petite police et toute la
   largeur de l ecran : le paragraphe sort donc de sa colonne (marges de
   14 px seulement) et sa taille suit la largeur du telephone (~10 px).
   Le diviseur depend de la langue : l anglais et l espagnol ont des
   phrases differentes (trois lignes un peu plus grandes).
   ==================================================================== */
@media (max-width: 767px) {
	.lmc-devis--accueil .lmc-contact__accroche {
		width: calc(100vw - 28px);
		max-width: none !important;
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		font-size: calc((100vw - 28px) / 34) !important;
		line-height: 1.8 !important;
	}

	html[lang^="en"] .lmc-devis--accueil .lmc-contact__accroche {
		font-size: calc((100vw - 28px) / 26) !important;
	}

	html[lang^="es"] .lmc-devis--accueil .lmc-contact__accroche {
		font-size: calc((100vw - 28px) / 30) !important;
	}
}

/* ====================================================================
   PAGES DE FORMULAIRE DE DEVIS : TITRE SUR UNE LIGNE ET PHRASE
   D INTRODUCTION SUR LE MEME NOMBRE DE LIGNES QUE SUR ORDINATEUR
   (Devis pour perruque personnalisee, Changement de tulle, Devis couleur,
   Confection). Sur mobile, le titre et la phrase prennent toute la
   largeur de l ecran (marges de 14 px) et leur taille suit la largeur
   du telephone. Les diviseurs --lmc-dt (titre : largeur du texte en em)
   et --lmc-da (phrase) ont ete mesures page par page et langue par
   langue : a refaire si un texte change.
   Les titres tres longs (couleur, confection, ~50 caracteres) tiennent
   sur une ligne avec une police de 12 a 16 px seulement : c est le prix
   du meme rendu que sur ordinateur. Seul le titre espagnol du devis
   couleur (65 caracteres) reste sur 2 lignes, comme sur ordinateur.
   ==================================================================== */
@media (max-width: 767px) {
	/* phrase d introduction */
	.lmc-devis--perruque .lmc-contact__accroche,
	.lmc-devis--tulle .lmc-contact__accroche,
	.lmc-devis--couleur .lmc-contact__accroche,
	.lmc-devis--confection .lmc-contact__accroche {
		width: calc(100vw - 28px);
		max-width: none !important;
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		font-size: min(17px, calc((100vw - 28px) / var(--lmc-da, 25))) !important;
		line-height: 1.8 !important;
	}

	/* titre sur une seule ligne */
	.lmc-devis--perruque .lmc-contact__titre,
	.lmc-devis--tulle .lmc-contact__titre,
	.lmc-devis--couleur .lmc-contact__titre,
	.lmc-devis--confection .lmc-contact__titre {
		white-space: var(--lmc-ws, nowrap);
		text-align: center;
		width: calc(100vw - 28px);
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
		font-size: min(40px, calc((100vw - 28px) / var(--lmc-dt, 16))) !important;
	}

	/* francais */
	.lmc-devis--perruque  { --lmc-dt: 15.9; --lmc-da: 25.3; }
	.lmc-devis--tulle     { --lmc-dt: 9.4;  --lmc-da: 19.8; }
	.lmc-devis--couleur   { --lmc-dt: 21.9; --lmc-da: 29.5; }
	.lmc-devis--confection { --lmc-dt: 23.7; --lmc-da: 25.3; }

	/* anglais */
	html[lang^="en"] .lmc-devis--perruque   { --lmc-dt: 8.6;  --lmc-da: 19.9; }
	html[lang^="en"] .lmc-devis--tulle      { --lmc-dt: 8.3;  --lmc-da: 25.5; }
	html[lang^="en"] .lmc-devis--couleur    { --lmc-dt: 24.7; --lmc-da: 26.4; }
	html[lang^="en"] .lmc-devis--confection { --lmc-dt: 16.7; --lmc-da: 19.9; }

	/* espagnol */
	html[lang^="es"] .lmc-devis--perruque   { --lmc-dt: 16.9; --lmc-da: 27.7; }
	html[lang^="es"] .lmc-devis--tulle      { --lmc-dt: 6.9;  --lmc-da: 28.9; }
	html[lang^="es"] .lmc-devis--couleur    { --lmc-dt: 16.5; --lmc-ws: normal; --lmc-da: 28.8; }
	html[lang^="es"] .lmc-devis--confection { --lmc-dt: 21.9; --lmc-da: 23.4; }
}

/* ====================================================================
   TABLEAU DES TARIFS DE COLORATION (5 colonnes) : ENTIER SUR MOBILE,
   SANS BARRE DE DEFILEMENT
   Sur ordinateur le tableau tient dans le formulaire. Sur telephone, il
   etait impose a 540 px avec une barre de defilement horizontale : il
   prend maintenant toute la largeur de l ecran (marges de 14 px), les
   colonnes se partagent la place (table-layout fixe) et les tailles de
   texte suivent la largeur du telephone ; les en-tetes passent sur
   plusieurs lignes (« 12 A 16 / POUCES »).
   ==================================================================== */
@media (max-width: 767px) {
	.lmc-devis__tableau--large {
		width: calc(100vw - 28px);
		margin-left: 50%;
		transform: translateX(-50%);
		overflow: visible;
	}

	body.lmc-page-devis .lmc-devis__tableau--large table {
		min-width: 0;
		table-layout: fixed;
	}

	body.lmc-page-devis .lmc-devis__tableau--large th,
	body.lmc-page-devis .lmc-devis__tableau--large td {
		padding: 10px 2px;
		font-size: clamp(11px, 3.3vw, 14px);
		line-height: 1.35;
	}

	body.lmc-page-devis .lmc-devis__tableau--large thead th {
		font-size: clamp(7px, 2.2vw, 10px);
		letter-spacing: 0.03em;
		line-height: 1.4;
	}

	/* les en-tetes de prix etaient en « nowrap » : ils passent sur 2 lignes */
	body.lmc-page-devis .lmc-devis__tableau--large thead .lmc-devis__prix {
		white-space: normal;
	}

	body.lmc-page-devis .lmc-devis__tableau--large thead th:first-child,
	body.lmc-page-devis .lmc-devis__tableau--large tbody th {
		width: 31%;
		padding-left: 10px;
		padding-right: 4px;
	}
}