/*
Theme Name:   Hello Elementor Child · La Gourmandise
Theme URI:    https://la-gourmandise.be
Description:  Thème enfant de Hello Elementor pour La Gourmandise (Trivium Group). Codes graphiques de la charte V3 : voûtes, U, halo.
Author:       Trivium Group
Template:     hello-elementor
Version:      1.2.0
Text Domain:  hello-elementor-child
*/

/* ------------------------------------------------------------
   Classes utilitaires à saisir dans Elementor :
   Avancé → Classes CSS (sans le point)
   ------------------------------------------------------------ */

/* Frise de voûtes (arcades Braise) : conteneur vide, hauteur 44 px */
.lg-voutes {
	min-height: 44px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2748%27%20height%3D%2744%27%3E%3Cpath%20d%3D%27M6%2044V24a18%2018%200%200%201%2036%200v20%27%20fill%3D%27none%27%20stroke%3D%27%23BD725C%27%20stroke-width%3D%272%27/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: left bottom;
}

/* Motif cloître (Bordeaux) : sections Le Chalet */
.lg-cloitre {
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2764%27%20height%3D%2772%27%3E%3Cpath%20d%3D%27M6%2072V34a26%2026%200%200%201%2052%200v38%27%20fill%3D%27none%27%20stroke%3D%27%237F2229%27%20stroke-width%3D%272%27/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-position: right top;
	background-size: 64px 72px;
}

/* Frise fil (Surface) : haut du footer */
.lg-fil {
	min-height: 32px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2740%27%20height%3D%2732%27%3E%3Cpath%20d%3D%27M4%2032V20a16%2016%200%200%201%2032%200v12%27%20fill%3D%27none%27%20stroke%3D%27%230E3D37%27%20stroke-width%3D%272%27/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: left bottom;
}

/* Halo de braise derrière un visuel (conteneur parent) */
.lg-halo {
	position: relative;
	isolation: isolate;
}
.lg-halo::before {
	content: "";
	position: absolute;
	right: -8%;
	top: -10%;
	width: 70%;
	height: 120%;
	background: radial-gradient(closest-side, rgba(189, 114, 92, 0.32), rgba(189, 114, 92, 0));
	pointer-events: none;
	z-index: -1;
}

/* ------------------------------------------------------------
   Formes en U : une seule géométrie pour tout le site
   U = rectangle + demi-cercle parfait en bas (rayon 999 px)
   Les photos gardent toujours le même ratio (4:5), quelle que
   soit la taille de la colonne ou de l'écran.
   ------------------------------------------------------------ */

/* Photo en U (widget Image, classe lg-u) */
.lg-u .elementor-widget-container,
.lg-u a {
	display: block;
	width: 100%;
}
.lg-u img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0 0 999px 999px !important;
}

/* Aplat de couleur en U au même format que les photos (conteneur, classe lg-u-cadre) */
.lg-u-cadre {
	aspect-ratio: 4 / 5;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 0 0 999px 999px !important;
	overflow: hidden;
}

/* Carte ou tuile de contenu en U, hauteur libre (conteneur, classe lg-u-forme) */
.lg-u-forme {
	border-radius: 0 0 999px 999px !important;
	overflow: hidden;
}

/* Photo de carte rectangulaire (widget Image, classe lg-photo-carte) */
.lg-photo-carte .elementor-widget-container {
	display: block;
	width: 100%;
}
.lg-photo-carte img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0 !important;
}

/* Élément centré dans sa colonne (photo à largeur réduite) */
.lg-centre {
	margin-left: auto !important;
	margin-right: auto !important;
	justify-self: center;
}

/* Sur mobile, les photos en U ne dépassent pas 420 px de large */
@media (max-width: 767px) {
	.lg-u,
	.lg-u-cadre {
		width: 100%;
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Pastille posée sur une photo (widget Titre ou Texte) */
.lg-pastille .elementor-heading-title,
.lg-pastille p {
	display: inline-block;
	background: #F6EBE7;
	color: #07302B;
	border-radius: 999px;
	padding: 10px 20px;
}

/* Titre en deux graisses : la typo globale du widget est la Hairline,
   la partie entourée de <span class="lg-heavy">…</span> passe en Heavy */
.lg-heavy {
	font-weight: 900 !important;
}

/* Hairline : passe en Book sous 48 px (règle de la charte) */
@media (max-width: 767px) {
	.lg-hair .elementor-heading-title {
		font-weight: 400 !important;
	}
}

/* Lignes de liste « aiguillage » (groupes, horaires) */
.lg-ligne {
	border-top: 1.5px solid currentColor;
}

/* Prix : jamais de coupure entre le chiffre et l'euro */
.lg-prix .elementor-heading-title {
	white-space: nowrap;
}


/* ------------------------------------------------------------
   Boutons : toujours sur une ligne
   ------------------------------------------------------------ */
.elementor-button,
.elementor-button .elementor-button-text,
.elementor-button-content-wrapper {
	white-space: nowrap;
}
.elementor-button-content-wrapper {
	flex-wrap: nowrap;
	align-items: center;
}

/* ------------------------------------------------------------
   Sections sombres (classe ajoutée automatiquement : lg-sombre)
   Les liens prennent la couleur du texte, survol en Braise claire
   ------------------------------------------------------------ */
.lg-sombre a:not(.elementor-button):not(.elementor-item):not(.elementor-sub-item) {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.lg-sombre a:not(.elementor-button):not(.elementor-item):not(.elementor-sub-item):hover,
.lg-sombre a:not(.elementor-button):not(.elementor-item):not(.elementor-sub-item):focus-visible {
	color: #E3A592;
	text-decoration-color: #E3A592;
}

/* Liens dans les textes sur fond clair : soulignés, survol Sapin */
.elementor-widget-text-editor a {
	text-underline-offset: 3px;
}

/* Sélecteur de langue TranslatePress dans le menu : même style que les liens du menu */
.elementor-nav-menu .trp-language-switcher-container a,
.elementor-nav-menu .menu-item.trp-language-switcher-container > a {
	font-weight: 700;
}

/* Accessibilité : focus visible sur fond sombre et clair */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible {
	outline: 2px solid #E3A592;
	outline-offset: 3px;
}
