/*
Theme Name: Vénéneuses
Theme URI: https://veneneuses.fr/
Author: Negurah Studio pour Laeti Goo
Description: Thème du studio Vénéneuses, portraits glamour et provocateurs. Charte rose, chocolat et olive, titres en Italiana, texte en Jost, portraits en arche. Textes, galerie (séries) et offres modifiables depuis l'administration.
Version: 1.3.4
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veneneuses
*/

/* Layout idea: crème pages, chocolat bands for the brand voice, the arch as the only graphic motif. */

:root {
	--v-rose: var(--wp--preset--color--rose-poison);
	--v-dragee: var(--wp--preset--color--rose-dragee);
	--v-profond: var(--wp--preset--color--rose-profond);
	--v-choc: var(--wp--preset--color--chocolat);
	--v-olive: var(--wp--preset--color--olive);
	--v-creme: var(--wp--preset--color--creme);
	--v-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Les sections se touchent : pas d'espace entre en-tête, contenu et pied de page. */
.wp-site-blocks > * { margin-block-start: 0 !important; }
main > .alignfull:first-child { margin-block-start: 0 !important; }
.entry-content > * + .alignfull, .wp-block-post-content > .alignfull { margin-block-start: 0 !important; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--v-profond);
	outline-offset: 3px;
}
.has-chocolat-background-color :where(a, button, input, select, textarea):focus-visible,
.has-olive-background-color :where(a, button):focus-visible { outline-color: var(--v-dragee); }

/* ---------- Surtitre (eyebrow) ---------- */
.is-style-surtitre,
p.is-style-surtitre {
	font-family: var(--wp--preset--font-family--jost);
	font-size: .75rem !important;
	font-weight: 500;
	letter-spacing: .32em;
	text-transform: uppercase;
	line-height: 1.5;
	margin-bottom: .75rem;
}

/* ---------- Chiffre romain ---------- */
.v-numeral {
	font-family: var(--wp--preset--font-family--italiana);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1;
	margin: 0;
}

/* ---------- L'arche ---------- */
.wp-block-image.is-style-arche img,
.wp-block-post-featured-image.is-style-arche img,
.wp-block-post-featured-image.is-style-arche a,
.wp-block-image.is-style-arche a {
	border-radius: 999px 999px 4px 4px;
}
.wp-block-image.is-style-arche img,
.wp-block-post-featured-image.is-style-arche img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
}
.wp-block-image.is-style-arche { margin: 0; }
.v-arche-cadre .wp-block-image.is-style-arche img { outline: 1px solid currentColor; outline-offset: 10px; }

/* Paire d'arches décalées (accueil) */
.v-paire .wp-block-image.is-style-arche { max-width: 440px; }
.v-paire .v-decale .wp-block-image.is-style-arche { margin-left: auto; }
.v-paire .v-decale .wp-block-buttons { justify-content: flex-end; }
@media (min-width: 782px) { .v-paire .v-decale { padding-top: clamp(4rem, 10vw, 9rem); } }

/* ---------- Header ---------- */
.v-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--v-creme) !important;
	border-bottom: 1px solid color-mix(in srgb, var(--v-choc) 12%, transparent);
}
.admin-bar .v-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .v-header { top: 46px; } }

.v-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--v-profond); text-decoration: none; transition: opacity .3s var(--v-ease); }
.v-logo:hover { opacity: .85; }
.v-logo svg { display: block; height: auto; }
.v-logo .v-logo__embleme { width: 66px; margin-block: -8px; }
.v-logo .v-logo__nom { width: 220px; }
@media (max-width: 600px) {
	.v-logo .v-logo__embleme { width: 48px; }
	.v-logo .v-logo__nom { width: 158px; }
}

.v-header .wp-block-navigation { font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.v-header .wp-block-navigation-item__content { padding: .35rem 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--v-ease); }
.v-header .wp-block-navigation-item__content:hover { color: var(--v-profond); }
.v-header .wp-block-navigation-item__content:hover,
.v-header .current-menu-item > .wp-block-navigation-item__content { background-size: 100% 1px; }
.v-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--v-choc) !important;
	color: var(--v-dragee) !important;
	padding: 2rem;
}
.v-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.4rem; }
.v-header .wp-block-navigation__responsive-container-open { color: var(--v-choc); }
.v-header .wp-block-navigation__responsive-container-close { color: var(--v-dragee); }
.v-header .is-menu-open .wp-block-navigation-item__content { color: var(--v-dragee) !important; }
.v-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.v-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; }
.v-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 2.5rem; }
.v-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--italiana); font-size: 2.25rem; letter-spacing: 0; text-transform: none; }

/* ---------- Boutons ---------- */
.wp-block-button__link { transition: background-color .25s var(--v-ease), color .25s var(--v-ease), border-color .25s var(--v-ease), transform .25s var(--v-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid currentColor; background: transparent; padding: calc(1rem - 1px) calc(2rem - 1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover > * { mix-blend-mode: normal; }
.has-chocolat-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--v-choc) !important; background: var(--v-dragee); border-color: var(--v-dragee); }
.has-creme-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-rose-poison-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--v-creme) !important; background: var(--v-choc); border-color: var(--v-choc); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
/* La photo reste intacte : seul le texte est posé sur un cartouche sombre.
   Sa place se règle dans l'éditeur : bloc Couverture > « Modifier la position du contenu »
   (gauche, centre ou droite ; haut, milieu ou bas). */
.v-hero.wp-block-cover { overflow: hidden; --v-gouttiere: max(clamp(1.25rem, 4vw, 3rem), calc((100% - 1240px) / 2)); }
.v-hero .wp-block-cover__background { opacity: 0 !important; }
.wp-block-cover.v-hero .wp-block-cover__inner-container {
	width: auto !important;
	max-width: min(36rem, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
	margin: 0 var(--v-gouttiere) !important;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	background: rgba(43, 24, 18, .8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 4px;
	box-shadow: 0 30px 60px -30px rgba(20, 10, 6, .6);
}
.v-hero[class*="-center"]:not([class*="-left"]):not([class*="-right"]) .wp-block-cover__inner-container { margin-inline: auto !important; text-align: center; }
.v-hero[class*="-center"]:not([class*="-left"]):not([class*="-right"]) .wp-block-buttons { justify-content: center; }
.v-hero .wp-block-cover__inner-container > * { max-width: none; }
.v-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem) !important; line-height: 1.04; }
.v-hero .v-hero__texte { font-size: 1.0625rem !important; }
.v-hero .wp-block-buttons { margin-top: 1.5rem !important; }
.v-parallaxe .wp-block-cover__image-background { transform: scale(1.08); transform-origin: 50% 0; will-change: transform; }
@media (max-width: 781px) {
	/* Sur téléphone : la photo en haut, le texte en dessous sur fond chocolat. */
	.v-hero.wp-block-cover { min-height: 0 !important; align-items: flex-end !important; justify-content: stretch !important; padding: 62vh 0 0 !important; }
	.wp-block-cover.v-hero .wp-block-cover__inner-container { max-width: none; width: 100% !important; margin: 0 !important; padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.25rem; background: var(--v-choc); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.v-hero .wp-block-cover__image-background { object-position: 32% 0 !important; height: 62vh !important; bottom: auto !important; }
	.v-parallaxe .wp-block-cover__image-background { transform: none !important; }
}

/* ---------- Bandeau de titre (pages) ---------- */
.v-bandeau { position: relative; overflow: hidden; }
.v-bandeau::after {
	content: "";
	position: absolute;
	right: -4rem;
	bottom: -7rem;
	width: 20rem;
	height: 20rem;
	background: url("assets/logo/veneneuses-embleme-cercle-dragee.svg") no-repeat center / contain;
	opacity: .12;
	pointer-events: none;
}

/* ---------- Grilles galerie et offres ---------- */
.v-cartes .wp-block-post-template { gap: clamp(2rem, 4vw, 3.5rem) !important; }
.v-carte { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; }
.v-carte .wp-block-post-featured-image { margin: 0; }
.v-carte .wp-block-post-featured-image img { transition: transform .8s var(--v-ease), filter .8s var(--v-ease); }
.v-carte:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.v-carte .wp-block-post-featured-image a { display: block; overflow: hidden; }
.v-carte .wp-block-post-title a { text-decoration: none; }
.v-carte .wp-block-post-title a:hover { color: var(--v-profond); }
.v-carte .wp-block-read-more { font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start; }
.v-carte .wp-block-post-excerpt__excerpt { margin: 0; }
.v-carte--offre { background: #fff; border: 1px solid color-mix(in srgb, var(--v-choc) 12%, transparent); border-radius: 4px; padding: 1.25rem 1.25rem 2rem; }
.v-carte--offre .wp-block-post-featured-image img { aspect-ratio: 4 / 5; }

/* ---------- Galerie d'une série ---------- */
.wp-block-gallery.v-serie { --wp--style--unstable-gallery-gap: clamp(.75rem, 2vw, 1.5rem); gap: var(--wp--style--unstable-gallery-gap) !important; }
.wp-block-gallery.v-serie .wp-block-image img { border-radius: 4px; }

/* ---------- Offre : liste incluse ---------- */
.v-inclus { list-style: none; padding: 0; margin: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.v-inclus li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); position: relative; }
.v-inclus li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 1rem; height: 1px; background: var(--v-profond); }
.v-prix { font-family: var(--wp--preset--font-family--italiana); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Les unes du magazine ---------- */
.v-une img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 0 rgba(78, 46, 34, .08), 0 24px 48px -24px rgba(78, 46, 34, .45); transition: transform .6s var(--v-ease); }
.v-une:hover img { transform: translateY(-4px) rotate(-.4deg); }
@media (min-width: 782px) { .v-unes > .wp-block-column:nth-child(2) { margin-top: 3rem; } }

/* ---------- FAQ ---------- */
.v-faq { border-top: 1px solid color-mix(in srgb, var(--v-choc) 18%, transparent); padding: 0; margin: 0; }
.v-faq:last-child { border-bottom: 1px solid color-mix(in srgb, var(--v-choc) 18%, transparent); }
.v-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.35rem 0; font-family: var(--wp--preset--font-family--italiana); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.25; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--jost); font-size: 1.4rem; color: var(--v-profond); transition: transform .35s var(--v-ease); flex: none; }
.v-faq[open] summary::after { transform: rotate(45deg); }
.v-faq summary:hover { color: var(--v-profond); }
.v-faq > p { margin: 0 0 1.5rem; max-width: 62ch; }

/* ---------- Formulaire de candidature (lien Google Forms) ---------- */
.v-candidature { background: var(--v-choc); color: var(--v-creme); border-radius: 4px; padding: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 2.5rem; }
.v-candidature .is-style-surtitre { color: var(--v-rose); margin: 0 0 .5rem; }
.v-candidature__titre { font-family: var(--wp--preset--font-family--italiana); font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.1; color: var(--v-dragee); margin: 0 0 1rem; }
.v-candidature p { margin: 0 0 1.25rem; max-width: 52ch; }
.v-candidature p:last-child { margin: 0; }
.v-candidature__bouton { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--v-choc) !important; background: var(--v-rose); border-radius: 999px; padding: 1.05rem 2.2rem; transition: transform .25s var(--v-ease), filter .25s var(--v-ease); }
.v-candidature__bouton:hover { transform: translateY(-1px); filter: brightness(1.08); }
.v-form__intro { font-family: var(--wp--preset--font-family--italiana); font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.25rem; }

/* ---------- Formulaire de contact ---------- */
.v-form { display: grid; gap: 1.25rem; }
.v-form__ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .v-form__ligne { grid-template-columns: minmax(0, 1fr); } }
.v-form label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin-bottom: .5rem; }
.v-form input[type="text"], .v-form input[type="email"], .v-form select, .v-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--v-choc);
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--v-choc) 30%, transparent);
	border-radius: 4px;
	padding: .85rem 1rem;
	transition: border-color .2s var(--v-ease);
}
.v-form textarea { min-height: 11rem; resize: vertical; }
.v-form input:hover, .v-form select:hover, .v-form textarea:hover { border-color: var(--v-choc); }
.v-form .v-form__consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.v-form .v-form__consent input { margin-top: .3rem; accent-color: var(--v-profond); width: 1.05rem; height: 1.05rem; flex: none; }
.v-form .v-form__consent label { font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin: 0; }
.v-form .v-form__pot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.v-form button {
	justify-self: start;
	font: inherit;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--v-dragee);
	background: var(--v-choc);
	border: 0;
	border-radius: 999px;
	padding: 1.05rem 2.2rem;
	cursor: pointer;
	transition: transform .25s var(--v-ease), filter .25s var(--v-ease);
}
.v-form button:hover { transform: translateY(-1px); filter: brightness(1.15); }
.v-form__message { padding: 1rem 1.25rem; border-radius: 4px; border-left: 3px solid var(--v-profond); background: #fff; }
.v-form__message--erreur { border-left-color: #8E2A2A; }
.v-form .v-requis { color: var(--v-profond); }

/* ---------- Footer ---------- */
.v-footer a { text-decoration: none; }
.v-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.v-footer .v-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: var(--v-dragee); text-decoration: none !important; }
.v-footer .v-lockup svg { display: block; height: auto; }
.v-footer .v-lockup__embleme { width: 104px; }
.v-footer .v-lockup__nom { width: min(300px, 70vw); }
.v-footer .v-lockup__signature { font-size: .7rem; font-weight: 500; letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; white-space: nowrap; }
.v-footer .v-footer__titre { font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .7; margin-bottom: .75rem; }
.v-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

/* ---------- Apparition douce ---------- */
@media (prefers-reduced-motion: no-preference) {
	.v-hero .wp-block-cover__inner-container > * { animation: v-monte .9s var(--v-ease) both; }
	.v-hero .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: .08s; }
	.v-hero .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: .16s; }
	.v-hero .wp-block-cover__inner-container > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes v-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Apparitions au scroll (le script ajoute ces classes, seulement sur le site) ---------- */
.v-anim .v-reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1s var(--v-ease), transform 1.1s var(--v-ease); }
.v-anim .v-reveal--image { transform: translate3d(0, 28px, 0) scale(.985); }
.v-anim .v-reveal--image img { transition: transform 1.6s var(--v-ease); transform: scale(1.06); }
.v-anim .v-reveal.is-visible { opacity: 1; transform: none; }
.v-anim .v-reveal--image.is-visible img { transform: none; }
.v-anim .v-carte.v-reveal.is-visible:hover .wp-block-post-featured-image img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) {
	.v-anim .v-reveal, .v-anim .v-reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print { .v-anim .v-reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Petites largeurs ---------- */
@media (max-width: 781px) {
	.v-inverse-mobile { flex-direction: column-reverse; }
}
