/*
Theme Name: Les Jardins de l'Opéra
Theme URI: https://lesjardinsdelopera.fr
Description: Thème enfant du site des Jardins de l'Opéra — restaurant gastronomique du chef Stéphane Tournié, place du Capitole à Toulouse.
Author: Agence 4ème Ligne
Author URI: https://4emeligne.fr
Template: blocksy
Version: 1.11.1
Text Domain: jardins-opera
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------------------------------------------------------------------------
   CSS personnalisé du site.

   Ce fichier est chargé explicitement depuis functions.php : Blocksy ne charge
   jamais get_stylesheet_uri() de lui-même.

   Règle du parc : le CSS du thème enfant reste un complément. Couleurs,
   typographie, en-tête et pied de page se règlent dans le customizer Blocksy ;
   les couleurs passent par var(--theme-palette-color-N), sans valeur de repli.
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Bandeau de titre des pages : bande bleu nuit de 350 px à gauche, sur ordinateur.

   Reproduit le gabarit de titre Jupiter X (ID 7557) : image de fond décalée de 350 px
   (background_xpos), fond bleu nuit visible à gauche ; pleine largeur sur tablette et
   mobile. La couleur de fond du bandeau vient du customizer (palette 4).
   --------------------------------------------------------------------------- */
@media (min-width: 1025px) {
	.hero-section[data-type="type-2"] > figure {
		left: 350px;
	}
}

/* ---------------------------------------------------------------------------
   Bandeau de titre des pages : hauteur totale identique à Jupiter X.

   Jupiter : 550 px (ordinateur), 440 px (tablette), 390 px (mobile), en-tête superposé.
   Blocksy additionne la hauteur de l'en-tête transparent (149 px / 105 px) et la hauteur
   minimale du conteneur (--min-height). Le customizer ne propose qu'une valeur, réglée sur
   celle du mobile (285 px) ; tablette et ordinateur sont complétés ici, aux points de
   rupture de Blocksy (690 px et 1000 px). Sélecteur préfixé par `body` : le CSS dynamique de
   Blocksy, imprimé après cette feuille, porte la même règle à spécificité égale.
   --------------------------------------------------------------------------- */
@media (min-width: 690px) {
	body[data-prefix="single_page"] .hero-section[data-type="type-2"] {
		--min-height: 335px;
	}
}
@media (min-width: 1000px) {
	body[data-prefix="single_page"] .hero-section[data-type="type-2"] {
		--min-height: 401px;
	}
}

/* ===========================================================================
   ACCUEIL (refonte de novembre 2026)

   Le contenu est en widgets Elementor natifs, modifiables dans l'éditeur. Ce bloc
   n'ajoute que ce qu'Elementor ne sait pas faire seul : les effets au survol, l'étoile
   qui tourne, la composition des photos du chef et les deux univers qui s'élargissent.
   Chaque règle cible une classe qel-* posée dans Elementor (onglet Avancé > Classes CSS).
   Référence visuelle : jardins-opera/maquettes/accueil-v1/index.html.
   =========================================================================== */

/* Bandeau : boutons centrés sur mobile. */
@media (max-width: 767px) {
	.qel-hero > .elementor-widget-wrap {
		justify-content: center;
	}
	.qel-hero .elementor-widget-button {
		margin-left: 6px !important;
		margin-right: 6px !important;
	}
}

/* La maison : étoile du Guide Michelin qui tourne lentement, dans deux cercles fins. */
.qel-etoile .elementor-widget-container {
	position: relative;
	width: 190px;
	aspect-ratio: 1;
	margin: 0 auto;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--theme-palette-color-5);
}
.qel-etoile .elementor-widget-container::before {
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 50%;
	border: 1px dashed rgba(173, 23, 50, 0.25);
}
.qel-etoile img {
	animation: qel-tourne 24s linear infinite;
}
@keyframes qel-tourne {
	to {
		transform: rotate(360deg);
	}
}
@media (min-width: 1025px) {
	.qel-etoile .elementor-widget-container {
		width: 300px;
	}
}

/* Citation du chef. */
.qel-citation blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-style: normal;
	color: inherit;
}

/* Les assiettes : trait orange au-dessus du nom au survol ; sur écran tactile (pas de
   survol), le nom reste affiché en bas de chaque photo. */
.qel-assiettes .elementor-gallery-item__title::before {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin: 0 auto 16px;
	background: var(--theme-palette-color-1);
}
@media (hover: none) {
	.qel-assiettes .elementor-gallery-item__overlay {
		opacity: 1 !important;
		background: linear-gradient(0deg, rgba(6, 35, 73, 0.85), rgba(6, 35, 73, 0) 55%) !important;
	}
	.qel-assiettes .elementor-gallery-item__content {
		opacity: 1 !important;
		transform: none !important;
		justify-content: flex-end !important;
		align-items: flex-start !important;
		text-align: left !important;
		padding: 12px !important;
	}
	.qel-assiettes .elementor-gallery-item__title {
		opacity: 1 !important;
		transform: none !important;
	}
	.qel-assiettes .elementor-gallery-item__title::before {
		display: none;
	}
}

/* Le chef : grand portrait, cadre orange décalé, médaillon « en cuisine » qui chevauche,
   nom à la verticale. */
.qel-chef-photos > .elementor-widget-wrap {
	position: relative;
	display: block !important;
	padding: 0 0 26% 30px !important;
}
.qel-chef-photos > .elementor-widget-wrap::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 52px;
	width: 72%;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--theme-palette-color-1);
}
.qel-chef-photos .elementor-widget-heading {
	position: absolute !important;
	left: 0;
	top: 0;
	width: auto !important;
	margin: 0 !important;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}
.qel-chef-photos .elementor-widget-heading .elementor-heading-title {
	letter-spacing: 0.32em;
	text-transform: uppercase;
}
.qel-chef-portrait {
	position: relative;
	width: 72% !important;
	margin: 0 !important;
}
.qel-chef-portrait img,
.qel-chef-geste img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.qel-chef-geste {
	position: absolute !important;
	z-index: 2;
	right: 0;
	bottom: 0;
	width: 44% !important;
	margin: 0 !important;
}
.qel-chef-geste img {
	object-position: center 35%;
	border: 8px solid var(--theme-palette-color-8);
	box-shadow: 0 24px 48px rgba(6, 35, 73, 0.22);
}
@media (min-width: 1025px) {
	.qel-chef-photos > .elementor-widget-wrap {
		padding: 0 24px 22% 44px !important;
	}
	.qel-chef-photos > .elementor-widget-wrap::before {
		top: 28px;
		left: 72px;
		width: 76%;
	}
	.qel-chef-portrait {
		width: 76% !important;
	}
	.qel-chef-geste {
		width: 46% !important;
		right: 0;
	}
	.qel-chef-geste img {
		border-width: 10px;
	}
}

/* Deux univers. Mobile et tablette : panneaux empilés, texte visible. Ordinateur : la
   moitié survolée s'élargit et dévoile son texte, l'autre se resserre et s'assombrit. */
.qel-univers .elementor-column.qel-univers__cote {
	min-height: 78svh;
}
.qel-univers__ou {
	position: absolute !important;
	z-index: 5;
	left: 50%;
	top: 0;
	width: auto !important;
	margin: 0 !important;
	transform: translate(-50%, -50%);
}
.qel-univers__ou .elementor-heading-title {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--theme-palette-color-8);
	font-style: italic;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
@media (min-width: 1025px) {
	.qel-univers > .elementor-container {
		max-height: 980px;
		min-height: 680px;
	}
	.qel-univers .elementor-column.qel-univers__cote {
		width: auto !important;
		flex: 1 1 0;
		min-height: 0;
		transition: flex-grow 1s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.qel-univers__ou {
		left: 0;
		top: 50%;
	}
	.qel-univers__ou .elementor-heading-title {
		width: 84px;
		height: 84px;
	}
}
@media (min-width: 1025px) and (hover: hover) {
	.qel-univers__plus {
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transform: translateY(16px);
		transition: max-height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.qel-univers > .elementor-container:hover > .qel-univers__cote {
		flex-grow: 0.7;
	}
	.qel-univers > .elementor-container > .qel-univers__cote:hover {
		flex-grow: 1.45;
	}
	.qel-univers > .elementor-container:hover > .qel-univers__cote:not(:hover) .elementor-background-overlay {
		background-color: rgba(6, 35, 73, 0.5);
	}
	.qel-univers__cote:hover .qel-univers__plus,
	.qel-univers__cote:focus-within .qel-univers__plus {
		max-height: 260px;
		opacity: 1;
		transform: none;
	}
}

/* Menus de fête : l'écrin détouré flotte légèrement au survol. */
.qel-fete-visuel img {
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
	.qel-fete-visuel:hover img {
		transform: translateY(-6px) scale(1.02);
	}
}

/* La cave et Réserver : liste des domaines en titre fin, lien téléphone lisible. */
.qel-domaines p {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
}
.qel-reserver-texte a {
	color: inherit;
	text-decoration: underline;
}

/* ===========================================================================
   INFOS & CONTACTS : créneaux horaires (liste de définitions dans un éditeur de texte,
   classe qel-creneaux posée dans Elementor).
   =========================================================================== */
.qel-creneaux dl {
	margin: 0;
}
.qel-creneaux dt {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--theme-palette-color-5);
	font: 400 12px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--theme-palette-color-1);
}
.qel-creneaux dt:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.qel-creneaux dd {
	margin: 2px 0 0;
}
.qel-creneaux dd strong {
	display: block;
	font: 300 22px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--theme-palette-color-4);
}

/* ===========================================================================
   PAGE CHEF (refonte de novembre 2026) : mise en page éditoriale des widgets natifs.
   Référence visuelle : jardins-opera/maquettes/chef-v1/index.html.
   =========================================================================== */
.qel-portrait .elementor-widget-container {
	position: relative;
	margin: 0 22px 22px 0;
}
.qel-portrait .elementor-widget-container::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--theme-palette-color-1);
}
.qel-portrait img,
.qel-ratio-45 img,
.qel-ratio-56 img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 40%;
}
.qel-ratio-56 img {
	aspect-ratio: 5 / 6;
}
.qel-etoile-mini img {
	animation: qel-tourne 24s linear infinite;
}
.qel-presentation .qel-etoile-mini,
.qel-presentation .qel-etoile-texte {
	align-self: center;
}
.qel-presentation .qel-etoile-mini {
	margin-top: 12px !important;
	padding-top: 0;
}
.qel-citation-grande blockquote,
.qel-avis blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	color: inherit;
}
.qel-citation-grande blockquote p {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-style: italic;
	line-height: 1.5;
}
.qel-citation-grande blockquote::before {
	content: "«";
	display: block;
	margin-bottom: 6px;
	font: 300 72px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--theme-palette-color-1);
}
@media (max-width: 767px) {
	.qel-citation-grande blockquote p {
		font-size: 22px;
	}
}
.qel-crus p {
	margin: 10px 0 20px;
	padding-left: 20px;
	border-left: 2px solid var(--theme-palette-color-1);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
	line-height: 1.6;
}
.qel-avis blockquote {
	position: relative;
	padding-top: 46px;
}
.qel-avis blockquote::before {
	content: "«";
	position: absolute;
	top: -18px;
	left: -4px;
	font: 300 96px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--theme-palette-color-1);
}
.qel-avis blockquote p {
	font-style: italic;
}
.qel-avis blockquote p:first-child {
	font: italic 300 25px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--theme-palette-color-4);
}
.qel-article .elementor-widget-container {
	max-width: 680px;
}
.qel-article p.qel-temoignage {
	margin: 34px 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--theme-palette-color-1);
	font: 300 24px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--theme-palette-color-4);
}
.qel-article a {
	color: var(--theme-palette-color-1);
}
@media (min-width: 1025px) {
	.qel-article-cote > .elementor-widget-wrap,
	.qel-colonne-collante > .elementor-widget-wrap {
		position: sticky;
		top: 110px;
		align-self: flex-start;
	}
}

/* ===========================================================================
   PAGES CÔTÉ RESTAURANT ET CÔTÉ COMPTOIR (refonte de novembre 2026)
   Menus et cartes = listes de prix natives (Pro Elements), mises en forme de carte
   de restaurant ; galerie WordPress native en grille. Script : scripts/cartes-2026/.
   =========================================================================== */
.qel-chapeau p:first-child {
	font-size: 1.12em;
	color: var(--theme-palette-color-4);
}
.qel-rubrique .elementor-heading-title::after {
	content: "";
	display: block;
	width: 36px;
	height: 1px;
	margin-top: 12px;
	background: var(--theme-palette-color-1);
}
/* Premier intitulé d'une colonne : collé en haut, sauf sur mobile pour la 2e colonne (empilée sous la 1re). */
.elementor-column:first-child > .elementor-widget-wrap > .qel-rubrique:first-child > .elementor-widget-container {
	margin-top: 0 !important;
}
@media (min-width: 768px) {
	.elementor-widget-wrap > .qel-rubrique:first-child > .elementor-widget-container {
		margin-top: 0 !important;
	}
}
.qel-carte .elementor-price-list > li {
	margin: 0 !important;
	padding: 13px 0;
}
.qel-carte .elementor-price-list-header {
	align-items: baseline !important;
}
.qel-carte .elementor-price-list-price {
	white-space: nowrap;
}
.qel-carte .elementor-price-list-description {
	margin-top: 4px;
}
.qel-carte--sombre .elementor-price-list > li {
	padding: 16px 0;
}
.qel-notes .elementor-widget-container {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--theme-palette-color-5);
}
.qel-notes--sombre .elementor-widget-container {
	border-top-color: rgba(255, 255, 255, 0.2);
}
.qel-notes p {
	margin: 0 0 8px;
}
.qel-notes--sombre strong {
	color: var(--theme-palette-color-2);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.qel-note-filet p {
	margin: 8px 0 0;
	padding-left: 18px;
	border-left: 2px solid var(--theme-palette-color-1);
}
.qel-note-filet a {
	color: var(--theme-palette-color-1);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.qel-galerie-plats .gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0 !important;
}
.qel-galerie-plats .gallery-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.qel-galerie-plats .gallery br {
	display: none;
}
.qel-galerie-plats .gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 0 !important;
}
.qel-menu-marche > .elementor-widget-wrap {
	border: 1px solid var(--theme-palette-color-1);
	box-shadow: inset 0 0 0 6px var(--theme-palette-color-7), inset 0 0 0 7px rgba(236, 102, 23, 0.35);
}
.qel-menu-marche p {
	margin: 0 0 8px;
}
/* Horaires en fin de page : deux cartes blanches sur fond clair. */
.qel-creneau-carte > .elementor-widget-wrap {
	border-top: 2px solid var(--theme-palette-color-1);
	box-shadow: 0 10px 30px rgba(6, 35, 73, 0.07);
}
.qel-creneau-carte .elementor-widget-heading:first-child > .elementor-widget-container {
	margin-bottom: 10px !important;
}
@media (max-width: 767px) {
	.qel-creneau-carte:not(:last-child) {
		margin-bottom: 16px;
	}
}
@media (min-width: 768px) {
	.qel-creneau-carte:first-child > .elementor-widget-wrap {
		margin-right: 10px;
	}
	.qel-creneau-carte:last-child > .elementor-widget-wrap {
		margin-left: 10px;
	}
}
.qel-horaires-note p,
.qel-horaires-tel p {
	margin: 0;
}
.qel-horaires-note .elementor-widget-container {
	margin-bottom: 30px;
}
.qel-horaires-tel .elementor-widget-container {
	margin-top: 16px;
}
.qel-horaires-tel a {
	color: var(--theme-palette-color-4);
	font-weight: 600;
	white-space: nowrap;
}

/* Aucun mouvement pour qui l'a désactivé dans son système. */
@media (prefers-reduced-motion: reduce) {
	.qel-etoile img,
	.qel-etoile-mini img {
		animation: none;
	}
	.qel-univers .elementor-column.qel-univers__cote,
	.qel-univers__plus,
	.qel-fete-visuel img {
		transition: none;
	}
}
