/*
Theme Name: Benoit Photo
Theme URI: https://example.com
Author: Fornieles Benoit Photographie
Description: Thème sur mesure pour photographe. Page d accueil modifiable dans Apparence > Personnaliser ; les autres pages se construisent avec Elementor (version gratuite) dans le même style.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: benoit-photo
*/

/* =========================================================
   1. VARIABLES — modifie les couleurs et polices ici
   ========================================================= */
:root {
	/* Ces 6 couleurs se règlent dans Apparence > Personnaliser > Couleurs et polices du site.
	   Les valeurs ci-dessous ne servent que de secours. */
	--bg: #080a10;          /* fond principal */
	--bg-2: #161a21;        /* fond secondaire */
	--text: #f5f1e8;        /* texte principal */
	--muted: #b8b0a6;       /* texte secondaire */
	--gold: #c7a66b;        /* accent */
	--gold-hover: #e0c27f;  /* accent au survol */

	--bg-3: #1d222b;
	--gold-dark: #8d6a2c;   /* accent sur fond clair */
	--light: #f5f4f1;       /* fond des sections claires */
	--ink: #14171d;         /* texte sombre (sur fond clair ou doré) */
	--line: rgba(255, 255, 255, .16);

	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1200px;
	--header-h: 76px;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto; width: auto; height: auto;
	background: var(--gold); color: var(--ink);
	padding: 10px 16px; z-index: 1000; left: 8px; top: 8px;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* =========================================================
   3. BOUTONS ET PETITS ÉLÉMENTS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 13px 26px;
	border: 1px solid var(--gold);
	background: var(--gold);
	color: var(--ink);
	font-size: .92rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	border-radius: 2px;
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn--outline { background: transparent; color: var(--text); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--ink); }

.eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin: 0 0 28px;
	font-family: var(--font-sans);
	font-size: .72rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow::before, .eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::before, .eyebrow--left::after { display: none; }

.text-link {
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	font-size: .92rem;
}
.text-link:hover { color: var(--gold-hover); }

/* Fond image : la variable --bg est posée en ligne par le PHP */
.tile.has-bg,
.about__image.has-bg,
.card__image.has-bg,
.cta.has-bg {
	background-image: var(--bg-img);
	background-size: cover;
	background-position: center;
}

/* =========================================================
   4. EN-TÊTE
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(8, 10, 16, .96);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	transition: background .3s, box-shadow .3s;
}

.home .site-header {
	position: fixed;
	left: 0; right: 0;
	background: linear-gradient(to bottom, rgba(8, 10, 16, .78), rgba(8, 10, 16, 0));
	border-bottom-color: transparent;
}
.home .site-header.is-scrolled {
	background: rgba(8, 10, 16, .93);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.header-inner {
	width: min(100% - 48px, 1320px);
	margin-inline: auto;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.primary-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 38px;
}
.primary-nav a {
	display: block;
	padding: 6px 0;
	font-size: .9rem;
	text-decoration: none;
	color: var(--text);
	border-bottom: 1px solid transparent;
	transition: color .2s, border-color .2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
	content: "";
	position: absolute;
	left: 10px; right: 10px;
	height: 2px;
	background: var(--text);
	transition: transform .25s, opacity .25s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(540px, 82vh, 780px);
	padding: calc(var(--header-h) + 40px) 0 80px;
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse at 75% 40%, rgba(211, 169, 95, .18), transparent 60%),
		radial-gradient(ellipse at 20% 80%, rgba(60, 80, 110, .25), transparent 55%);
	overflow: hidden;
}
.hero.has-bg { background-image: var(--bg-img); background-size: cover; background-position: 70% center; }

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, rgba(8, 10, 16, .88) 0%, rgba(8, 10, 16, .55) 42%, rgba(8, 10, 16, 0) 75%),
		linear-gradient(to top, rgba(8, 10, 16, .75), rgba(8, 10, 16, 0) 30%);
}

.hero__content { position: relative; max-width: 560px; }

.hero__kicker {
	margin: 0 0 22px;
	font-size: .72rem;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--text);
}

.hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	margin-bottom: 22px;
}

.hero__text { max-width: 420px; color: #e1ddd3; margin-bottom: 32px; }

.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
	position: absolute;
	left: 50%; bottom: 26px;
	transform: translateX(-50%);
	width: 22px; height: 34px;
	border: 1.5px solid rgba(255, 255, 255, .75);
	border-radius: 12px;
}
.hero__scroll::after {
	content: "";
	position: absolute;
	left: 50%; top: 7px;
	width: 3px; height: 6px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: #fff;
	animation: bfp-scroll 1.8s ease-in-out infinite;
}
@keyframes bfp-scroll {
	0% { opacity: 0; transform: translateY(0); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: translateY(10px); }
}

/* =========================================================
   6. APERÇU DU TRAVAIL
   ========================================================= */
.showcase { background: var(--bg); padding: 44px 0 56px; scroll-margin-top: var(--header-h); }

.showcase__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 34px;
}

.tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	text-decoration: none;
	background-color: var(--bg-3);
	background-image: linear-gradient(135deg, #1b2230, #2a2f3a 55%, #3a3226);
}
.tile.has-bg { transition: transform .4s; }
.tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 55%);
	transition: opacity .3s;
}
.tile__label {
	position: relative;
	padding: 14px 16px;
	font-size: .9rem;
	font-weight: 500;
	color: #fff;
}
.tile:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.tile:hover .tile__label { color: var(--gold); }

.center { text-align: center; }

/* =========================================================
   7. À PROPOS
   ========================================================= */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--bg-2);
	scroll-margin-top: var(--header-h);
}
.about__image {
	min-height: 340px;
	background-color: var(--bg-3);
	background-image: linear-gradient(135deg, #1b2230, #2a2f3a 55%, #3a3226);
}
.about__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 6vw, 80px);
	max-width: 640px;
}
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.about__text p { color: #d8d4ca; }
.about .text-link { align-self: flex-start; margin-top: 8px; }

/* =========================================================
   8. PRESTATIONS
   ========================================================= */
.services {
	background: var(--light);
	color: var(--ink);
	padding: 44px 0 56px;
	scroll-margin-top: var(--header-h);
}
.services .eyebrow { color: #6d6a63; }
.services .eyebrow::before, .services .eyebrow::after { background: rgba(0, 0, 0, .16); }

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: min(100% - 48px, 1000px);
	margin-inline: auto;
}

.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
	text-align: center;
}
.card__image {
	aspect-ratio: 16 / 7;
	background-color: #2a2f3a;
	background-image: linear-gradient(135deg, #1b2230, #2a2f3a 55%, #3a3226);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.card h3 {
	font-family: var(--font-sans);
	font-size: 1.02rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.card p { font-size: .9rem; color: #55524c; flex: 1; }
.card .text-link { align-self: center; color: var(--gold-dark); font-size: .85rem; }
.card .text-link:hover { color: #5e4519; }

/* =========================================================
   9. APPEL À L'ACTION
   ========================================================= */
.cta {
	position: relative;
	text-align: center;
	padding: 64px 0 70px;
	background-color: #14110c;
	background-image: radial-gradient(ellipse at 50% 100%, rgba(211, 169, 95, .25), transparent 65%);
	scroll-margin-top: var(--header-h);
}
.cta.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 16, .62);
}
.cta__content { position: relative; max-width: 640px; margin-inline: auto; }
.cta .eyebrow { margin-bottom: 18px; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.cta p { color: #ddd8cc; margin-bottom: 26px; }

/* =========================================================
   10. PIED DE PAGE
   ========================================================= */
.site-footer {
	background: var(--bg);
	border-top: 1px solid rgba(255, 255, 255, .06);
	padding: 36px 0;
	font-size: .8rem;
}
.footer-inner {
	width: min(100% - 48px, 1320px);
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 36px;
}
.footer-brand img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--text); }
.footer-links a:hover { color: var(--gold); }
.copyright { color: var(--muted); margin: 0; }

/* =========================================================
   11. PAGES SIMPLES (tout ce qui n'est pas la page d'accueil)
   ========================================================= */
.simple { padding: 60px 0 80px; }
.simple .wrap { max-width: 800px; }
.simple h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 24px; }
.simple h2 { font-size: 1.7rem; margin-top: 1.6em; }
.simple a { color: var(--gold); }
.simple .entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.simple article { margin-bottom: 48px; }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
	.showcase__grid { grid-template-columns: repeat(2, 1fr); }
	.services__grid { grid-template-columns: 1fr; max-width: 520px; }
	.about { grid-template-columns: 1fr; }
	.about__image { min-height: 300px; order: -1; }
	.about__text { max-width: none; }
}

@media (max-width: 820px) {
	.nav-toggle { display: block; }

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: rgba(8, 10, 16, .97);
		border-top: 1px solid var(--line);
		padding: 8px 24px 20px;
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
	.hero::before {
		background:
			linear-gradient(to top, rgba(8, 10, 16, .92), rgba(8, 10, 16, .35) 70%),
			linear-gradient(to right, rgba(8, 10, 16, .55), rgba(8, 10, 16, .1));
	}
	.hero { align-items: flex-end; }
}

@media (max-width: 520px) {
	.showcase__grid { grid-template-columns: 1fr; }
	.hero__buttons .btn { width: 100%; justify-content: center; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__scroll::after { animation: none; opacity: 1; }
	* { transition: none !important; }
}

/* =========================================================
   13. ELEMENTOR — pages construites avec l'éditeur (version gratuite)
   Ces styles donnent par défaut le look du site aux widgets Elementor.
   Tout réglage fait dans Elementor (widget ou Réglages du site) reste prioritaire.
   ========================================================= */

/* Palette et polices : Elementor utilise ces variables par défaut */
body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--text);
	--e-global-color-secondary: var(--muted);
	--e-global-color-text: var(--text);
	--e-global-color-accent: var(--gold);
	--e-global-typography-primary-font-family: "Playfair Display";
	--e-global-typography-secondary-font-family: "Montserrat";
	--e-global-typography-text-font-family: "Montserrat";
	--e-global-typography-accent-font-family: "Montserrat";
}

.page-elementor { overflow-x: clip; }
.page-elementor h1,
.page-elementor h2,
.page-elementor h3 { font-family: var(--font-serif); font-weight: 500; }
.elementor-widget-text-editor a { color: var(--gold); }
.elementor-widget-text-editor a:hover { color: var(--gold-hover); }

/* Boutons Elementor : doré par défaut */
.elementor-widget-button .elementor-button {
	background-color: var(--gold);
	color: var(--ink);
	fill: var(--ink);
	font-family: var(--font-sans);
	font-size: .92rem;
	font-weight: 500;
	letter-spacing: .02em;
	border: 1px solid var(--gold);
	border-radius: 2px;
	padding: 13px 26px;
	transition: background .2s, color .2s, border-color .2s;
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus {
	background-color: var(--gold-hover);
	border-color: var(--gold-hover);
	color: var(--ink);
}

/* ---------------------------------------------------------
   Classes à coller dans Elementor > Avancé > Classes CSS
   --------------------------------------------------------- */

/* Sur un widget BOUTON */
.bfp-ghost .elementor-button { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .7); }
.bfp-ghost .elementor-button:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: var(--text); }
.bfp-outline .elementor-button { background: transparent; color: var(--text); border-color: var(--gold); }
.bfp-outline .elementor-button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Sur un widget TITRE : petit titre en capitales avec filets de chaque côté */
.bfp-eyebrow .elementor-heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	font-family: var(--font-sans);
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--muted);
}
.bfp-eyebrow .elementor-heading-title::before,
.bfp-eyebrow .elementor-heading-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Sur un widget TITRE : un prix mis en valeur */
.bfp-price .elementor-heading-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500; color: var(--gold); line-height: 1; }

/* Sur un CONTENEUR / une SECTION */
.bfp-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; }   /* carte sombre (tarifs, formules) */
.bfp-featured { border-color: var(--gold); }                                                  /* à ajouter en plus pour mettre une formule en avant */
.bfp-light { background: var(--light); color: var(--ink); }                                   /* section à fond clair */
.bfp-light .elementor-heading-title,
.bfp-light .elementor-widget-text-editor,
.bfp-light .elementor-widget-text-editor p { color: var(--ink); }
.bfp-card { background: #fff; color: var(--ink); box-shadow: 0 2px 14px rgba(0, 0, 0, .06); overflow: hidden; } /* carte blanche sur fond clair */
.bfp-card .elementor-heading-title,
.bfp-card .elementor-widget-text-editor { color: var(--ink); }
.bfp-overlay { position: relative; }                                                          /* voile sombre sur une image de fond */
.bfp-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 16, .6); pointer-events: none; }
.bfp-overlay > * { position: relative; }

/* Fonds de section réutilisables dans Elementor (suivent les couleurs du Personnaliser) */
.bfp-bg { background-color: var(--bg); }
.bfp-bg-2 { background-color: var(--bg-2); }

/* Sur un widget ÉDITEUR DE TEXTE : liste élégante avec petits traits dorés */
.bfp-list ul { list-style: none; margin: 0; padding: 0; }
.bfp-list li { position: relative; padding: 6px 0 6px 22px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.bfp-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 1px; background: var(--gold); }

/* Lien discret doré (sur un widget BOUTON) */
.bfp-link .elementor-button {
	background: transparent;
	color: var(--gold);
	border: 0;
	border-bottom: 1px solid var(--gold);
	border-radius: 0;
	padding: 0 0 3px;
}
.bfp-link .elementor-button:hover { background: transparent; color: var(--gold-hover); border-color: var(--gold-hover); }

/* Vignette cliquable (sur un CONTENEUR avec photo de fond + un bouton .bfp-link) :
   toute la vignette devient cliquable grâce au lien du bouton. */
.bfp-tile { position: relative; overflow: hidden; transition: box-shadow .3s; }
.bfp-tile .elementor-widget,
.bfp-tile .elementor-widget-container { position: static !important; }
.bfp-tile .elementor-button { position: static; }
.bfp-tile .elementor-button::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.bfp-tile:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.bfp-tile:hover .elementor-heading-title { color: var(--gold); }


/* =========================================================
   14. CARTE CADEAU (page d'accueil)
   ========================================================= */
.gift { background: var(--bg); padding: 64px 0; }
.gift__box {
	display: flex;
	align-items: center;
	gap: 44px;
	max-width: 920px;
	margin-inline: auto;
	padding: 40px 48px;
	background: var(--bg-2);
	border: 1px solid var(--gold);
}
.gift__icon { flex: none; width: 140px; height: auto; }
.gift__text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.gift__text p { color: var(--muted); }
.gift__text .btn { margin-top: 8px; }
@media (max-width: 720px) {
	.gift__box { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
	.gift__text .eyebrow--left { justify-content: center; }
}

/* =========================================================
   15. VIGNETTES DU PORTFOLIO (Elementor)
   Structure : conteneur .bfp-tile > widget Image .bfp-tile__img + conteneur de texte .bfp-tile__text
   Les deux occupent la même case (grille) : la photo est derrière le texte, MAIS elle reste visible et
   cliquable dans l'éditeur Elementor (le texte n'occupe que le bas de la vignette).
   ========================================================= */
.bfp-tile {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(420px, auto);
	padding: 0 !important;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.bfp-tile > .bfp-tile__img {
	grid-area: 1 / 1;
	align-self: stretch;
	position: relative !important;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	z-index: 0;
}
.bfp-tile .bfp-tile__img .elementor-widget-container,
.bfp-tile .bfp-tile__img a { display: block; height: 100%; }
.bfp-tile .bfp-tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bfp-tile:hover .bfp-tile__img img { transform: scale(1.04); }
.bfp-tile > .bfp-tile__text {
	grid-area: 1 / 1;
	align-self: end;
	position: static !important;
	z-index: 2;
	width: 100%;
	background: linear-gradient(to top, rgba(8, 10, 16, .94), rgba(8, 10, 16, .6) 62%, rgba(8, 10, 16, 0));
	padding-top: 70px;
}
.bfp-tile:hover .bfp-outline .elementor-button { background: var(--gold); color: var(--ink); border-color: var(--gold); }
/* Dans l'éditeur : le lien étendu est désactivé pour pouvoir cliquer sur la photo */
.elementor-editor-active .bfp-tile .elementor-button::after { display: none; }

/* Grand bloc (catégorie Événementiel) : texte d'un côté, carrousel de l'autre */
.bfp-wide { overflow: hidden; }
.bfp-wide .swiper, .bfp-wide .elementor-image-carousel-wrapper { height: 100%; }

/* Icône centrée d'une formule de mariage */
.bfp-icon img { width: 150px; height: auto; margin-inline: auto; }

/* ---- 16. Sous-menus et sélecteur de langue (Polylang) ---- */
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 6px; height: 6px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	flex: none;
}
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; right: 0;
	min-width: 64px;
	flex-direction: column;
	gap: 0;
	padding: 8px 0;
	background: rgba(8, 10, 16, .97);
	border: 1px solid var(--line);
	z-index: 120;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { display: flex; }
.primary-nav .sub-menu a { padding: 8px 16px; border-bottom: 0; white-space: nowrap; align-items: center; gap: 8px; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .lang-item img,
.primary-nav .menu-item-has-children img {
	width: 20px; height: auto;
	display: inline-block;
	vertical-align: middle;
	margin: 0;
}
.primary-nav .lang-item.current-lang > a { color: var(--gold); }
.primary-nav .lang-item > a { border-bottom-color: transparent; }

@media (max-width: 820px) {
	.primary-nav .menu-item-has-children > a { justify-content: space-between; }
	.primary-nav .sub-menu {
		position: static;
		border: 0; padding: 0 0 0 16px;
		background: transparent;
	}
	.primary-nav li:hover > .sub-menu { display: none; }
	.primary-nav li.is-open > .sub-menu { display: flex; }
	.primary-nav .sub-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
}

/* ---- 17. Galeries Modula : pleine largeur dans Elementor ---- */
.elementor .elementor-widget-shortcode,
.e-con > .elementor-widget-shortcode,
.e-con-inner > .elementor-widget-shortcode {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	align-self: stretch !important;
	flex: 1 1 100% !important;
	--container-widget-width: 100%;
}
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode { width: 100% !important; }
.elementor-widget-shortcode .modula,
.elementor-widget-shortcode .modula-gallery,
.elementor-widget-shortcode .modula-items { width: 100% !important; max-width: 100% !important; }
