/*
 * css/site.css — Feuille du clone de l'accueil WordPress
 * Projet : evanne-thatje.art (branche clone-wp)
 *
 * Écrite pour le clone, sans Elementor : chaque règle reproduit la valeur
 * calculée relevée sur le WordPress (TH-1071, p4p6), les valeurs
 * proportionnelles reprises de post-20.css dans leur unité source.
 * Points de rupture : 767 px (mobile) et 1024 px (tablette).
 * Organisation : socle, puis une partie par section, dans l'ordre de la page.
 */

/* ================================================================ */
/* Socle                                                             */
/* ================================================================ */

/* Police personnalisée du WordPress (un seul fichier, graisse 400).
   Les graisses 500 à 700 demandées plus bas se rendent avec ce fichier :
   voir le rapport TH1097-P2 pour le constat sur les captures. */
@font-face {
	font-family: "Varela Round 400 normal";
	font-style: normal;
	font-weight: normal;
	font-display: auto;
	src: url("../fonts/varela-round-latin-400-normal.woff2") format("woff2");
}

:root {
	--couleur-principale: #990066;
	--couleur-secondaire: #222222;
	--police: "Varela Round 400 normal", sans-serif;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

*,
::before,
::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: #fff;
	color: #333;
	font-family: var(--police);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.75rem;
}

p {
	margin-block-start: 0;
	margin-block-end: 0.9rem;
}

a {
	background-color: transparent;
	color: #c36;
	text-decoration: none;
}

strong {
	font-weight: bolder;
}

img {
	border-style: none;
	height: auto;
	max-width: 100%;
}

/* Lien d'évitement du thème : masqué à l'œil (1 × 1 px), y compris au focus,
   comme sur le WordPress. */
.lien-evitement {
	position: absolute;
	top: -10000em;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ================================================================ */
/* En-tête fixe et menu (#navbar)                                    */
/* ================================================================ */

/* Place réservée à l'en-tête fixe dès le chargement (copie d'espacement
   d'Elementor Sticky) : 64 px jusqu'à 1 024 px, 67 px au-delà. */
body {
	padding-top: 64px;
}

.entete {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 10px;
	border-bottom: 1px solid var(--couleur-principale);
	background-color: #000;
}

.entete__marque {
	position: relative;
	max-width: 100%;
}

.domaine {
	color: #fff;
}

.extension {
	color: var(--couleur-principale);
}

.menu {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.menu__liste,
.menu__liste li {
	display: block;
	margin: 0;
	padding: 0;
	line-height: normal;
	list-style: none;
}

.menu__liste {
	position: relative;
	z-index: 2;
}

.menu__liste li {
	position: relative;
}

.menu__lien {
	position: relative;
	display: flex;
	align-items: center;
	line-height: 20px;
}

/* Menu principal (au-delà de 1 024 px), trait sous le lien actif ou survolé */
.menu__principal {
	display: flex;
}

.menu__principal .menu__liste {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin-inline-end: auto;
}

.menu__principal li {
	display: flex;
}

.menu__principal .menu__lien {
	flex-grow: 1;
	padding: 13px 20px;
	color: #fff;
	fill: #fff;
	white-space: nowrap;
	transition: 0.4s;
}

.menu__principal .menu__lien::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 1px;
	background-color: var(--couleur-principale);
	opacity: 0;
	transition: 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}

.menu__principal .menu__lien:hover,
.menu__principal .menu__lien:focus,
.menu__principal .menu__lien.est-actif {
	color: var(--couleur-principale);
	fill: var(--couleur-principale);
}

.menu__principal .menu__lien:hover::after,
.menu__principal .menu__lien:focus::after,
.menu__principal .menu__lien.est-actif::after {
	opacity: 1;
}

/* Bouton et menu déroulant (jusqu'à 1 024 px) */
.menu__bouton {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	padding: 0.25em;
	border: 0 solid;
	border-radius: 3px;
	background-color: rgba(0, 0, 0, 0.05);
	color: #33373d;
	font-size: 22px;
	cursor: pointer;
}

.menu__icone {
	width: 1em;
	height: 1em;
	fill: #33373d;
}

.menu__bouton.est-ouvert .menu__icone--ouvrir,
.menu__bouton:not(.est-ouvert) .menu__icone--fermer {
	display: none;
}

.menu__deroulant {
	margin-top: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: #fff;
	font-size: 13px;
	transform-origin: top;
	transition: max-height 0.3s, transform 0.3s;
}

.menu__bouton:not(.est-ouvert) + .menu__deroulant {
	max-height: 0;
	overflow: hidden;
	transform: scaleY(0);
}

.menu__bouton.est-ouvert + .menu__deroulant {
	max-height: 100vh;
	transform: scaleY(1);
	animation: masquer-defilement 0.3s backwards;
}

@keyframes masquer-defilement {
	0%,
	to {
		overflow: hidden;
	}
}

.menu__deroulant .menu__lien {
	padding: 10px 20px;
	color: #33373d;
}

.menu__deroulant .menu__lien:hover,
.menu__deroulant .menu__lien:focus {
	background-color: #3f444b;
	color: #fff;
}

@media (max-width: 1024px) {
	.menu__principal {
		display: none;
	}
}

@media (min-width: 1025px) {
	body {
		padding-top: 67px;
	}

	.menu__bouton,
	.menu__deroulant {
		display: none;
	}
}

@media (max-width: 767px) {
	.entete {
		flex-wrap: wrap;
	}
}

/* ================================================================ */
/* Sections : conteneur en boîte et intérieur flex (modèle des       */
/* conteneurs d'Elementor : intérieur de 1 140 px au plus, centré,   */
/* espacement de 20 px entre les blocs)                              */
/* ================================================================ */
.section {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.section__interieur {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 20px;
	width: 100%;
	max-width: min(100%, 1140px);
	margin: 0 auto;
}

.section__interieur > * {
	position: relative;
	min-width: 0;
	max-width: 100%;
}

/* Bloc image : image centrée dans son bloc, à sa taille naturelle au plus */
.bloc-image {
	text-align: center;
}

.bloc-image img {
	display: inline-block;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.section__interieur {
		flex-wrap: wrap;
	}
}

/* ================================================================ */
/* Introduction (#introduction)                                      */
/* ================================================================ */
.section--introduction {
	padding: 0 10px;
	background-color: #000;
}

.section--introduction .section__interieur {
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 10px 0;
}

.introduction__titre {
	color: #fff;
}

@media (max-width: 767px) {
	.introduction__titre {
		order: -99999;
	}
}

/* ================================================================ */
/* Sections de contenu : retrait de 5 % à gauche et de 5 % en haut   */
/* (unités de post-20.css), fond noir et titres blancs si sombres    */
/* ================================================================ */
.section--texte {
	padding-left: 5%;
}

.section--texte > .section__interieur {
	padding-top: 5%;
}

.section--sombre {
	background-color: #000;
}

.section--sombre h2 {
	color: #fff;
}

/* ================================================================ */
/* r-évolutions (#revolutions)                                       */
/* ================================================================ */
.revolutions__texte {
	width: 80%;
	margin: 10px 0 50px;
	padding: 20px;
	border-radius: 0 0 15px 0;
	background-color: #fff;
}

/* ================================================================ */
/* Créations (#creations) : une ligne par œuvre, visuel de 500 px    */
/* de base et cartel de 100 %, contractés ensemble (flex) ; sous     */
/* 768 px, le cartel passe sous le visuel                            */
/* ================================================================ */
.creation,
.creation__visuel,
.creation__cartel {
	position: relative;
	display: flex;
	min-width: 0;
	padding: 10px;
}

.creation {
	flex-direction: row;
	gap: 20px;
	width: 100%;
}

.creation__visuel {
	flex-direction: row;
	justify-content: flex-start;
	gap: 20px;
	width: 500px;
}

.creation__visuel > .bloc-image {
	position: relative;
	min-width: 0;
	max-width: 100%;
}

.creation__cartel {
	flex-direction: column;
	justify-content: center;
	width: 100%;
}

.creation__cartel > * {
	position: relative;
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 767px) {
	.creation,
	.creation__visuel,
	.creation__cartel {
		flex-wrap: wrap;
	}

	.creation__visuel {
		width: 100%;
	}
}

/* ================================================================ */
/* Expositions (#expositions) : affiche et cartel côte à côte (bases */
/* de 100 % contractées ensemble), puis visuel des artistes          */
/* ================================================================ */
.exposition,
.exposition__affiche,
.exposition__cartel,
.exposition__artistes {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.exposition {
	flex-direction: row;
	gap: 20px;
	padding: 10px;
}

.exposition__cartel {
	justify-content: center;
	gap: 20px;
	padding: 10px;
}

.exposition__artistes {
	gap: 20px;
	padding: 10px;
}

.exposition__affiche > .bloc-image {
	align-self: center;
}

.exposition__affiche > *,
.exposition__cartel > *,
.exposition__artistes > * {
	position: relative;
	min-width: 0;
	max-width: 100%;
}

.exposition__cartel h3 {
	color: #fff;
	font-size: 18px;
}

.exposition__texte {
	color: #fff;
}

@media (max-width: 767px) {
	.exposition,
	.exposition__affiche,
	.exposition__cartel,
	.exposition__artistes {
		flex-wrap: wrap;
	}
}

/* ================================================================ */
/* Contact (#contact) : formulaire à 50 % de la section              */
/* ================================================================ */
.formulaire {
	width: 50%;
}

.formulaire__champs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px -10px;
}

.formulaire__groupe {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	min-height: 1px;
	margin-bottom: 10px;
	padding: 0 5px;
}

.formulaire__groupe--bouton {
	justify-content: flex-start;
	align-items: flex-end;
}

@media (min-width: 768px) {
	.formulaire__groupe--bouton {
		width: 20%;
	}
}

/* Libellés présents mais masqués à l'œil : les espaces réservés portent
   les intitulés visibles, comme sur le WordPress. */
.formulaire__libelle {
	position: absolute;
	top: -10000em;
	display: inline-block;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	line-height: 1;
	vertical-align: middle;
	cursor: pointer;
}

.formulaire__champ {
	flex-grow: 1;
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0.5rem 1rem;
	border: 1px solid #69727d;
	border-radius: 3px;
	background-color: #fff;
	color: #1f2124;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	vertical-align: middle;
	transition: all 0.3s;
}

textarea.formulaire__champ {
	padding: 5px 14px;
	overflow: auto;
	resize: vertical;
}

.formulaire__champ::placeholder {
	color: inherit;
	font-family: inherit;
	opacity: 0.6;
}

.formulaire__champ:focus {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
	outline: 0;
}

input.formulaire__champ:focus {
	border-color: #333;
}

.formulaire__bouton {
	display: inline-block;
	min-height: 40px;
	margin: 0;
	padding: 0 24px;
	border: none;
	border-radius: 3px;
	background-color: var(--couleur-principale);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s;
}

.formulaire__bouton:hover {
	background-color: #fff;
	color: var(--couleur-principale);
}

.formulaire__bouton:focus:not(:focus-visible) {
	outline: none;
}

.formulaire__bouton-contenu {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.formulaire__bouton-texte {
	white-space: normal;
}

/* Issue de l'envoi (messages personnalisés du WordPress), sous le
   formulaire ; « Ce champ est nécessaire. » sous le champ concerné. */
.formulaire__message {
	margin: 10px 0;
	font-size: 1em;
	line-height: 1;
}

.formulaire__message--succes {
	color: #5cb85c;
}

.formulaire__message--erreur {
	color: #d9534f;
}

/* ================================================================ */
/* Pied de page                                                      */
/* ================================================================ */
.pied {
	background-color: #000;
}

.pied .section__interieur {
	padding: 20px 0;
}

.pied__copyright {
	align-self: center;
}

.copyright {
	color: #fff;
	font-size: 0.75rem;
	font-style: italic;
}

.pied__mentions {
	font-size: 12px;
	text-align: center;
}

.pied__mentions a {
	color: #fff;
}

.pied__mentions a:hover,
.pied__mentions a:focus {
	color: var(--couleur-principale);
}

/* Signature du prestataire, sous les mentions (lien suivi) */
.pied__credit {
	margin-block-start: -0.5rem;
	color: #fff;
}

/* ================================================================ */
/* Popup des mentions légales (modèle 379) : fond noir à 80 %, boîte */
/* centrée de 640 px au plus, croix en haut à droite                 */
/* ================================================================ */
.popup {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	pointer-events: all;
}

.popup[hidden] {
	display: none;
}

.popup__boite {
	position: absolute;
	max-width: 100%;
	max-height: 100%;
	overflow: visible;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
}

.popup__boite:focus {
	outline: 0;
}

.popup__fermer {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.popup__fermer:hover {
	background-color: var(--couleur-secondaire);
}

.popup__croix {
	width: 1em;
	height: 1em;
	fill: var(--couleur-principale);
}

.popup__message {
	display: flex;
	width: 640px;
	max-width: 100vw;
	max-height: 100vh;
	padding: 12px;
	overflow: auto;
	line-height: 1.5;
}

.popup__contenu {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0 10px;
}

.popup__interieur {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 20px;
	width: 100%;
	max-width: min(100%, 1140px);
	margin: 0 auto;
	padding: 10px 0;
}

.popup__interieur > * {
	position: relative;
	min-width: 0;
	max-width: 100%;
}

.popup__titre {
	font-size: 27px;
	text-align: center;
}

.popup__titre p {
	margin-block-end: 0;
}

.popup__texte a {
	color: var(--couleur-principale);
}

/* ================================================================ */
/* Bouton retour en haut (code personnalisé 351) : fixe à 40 px du   */
/* bas et de la droite, visible au-delà de 200 px de défilement      */
/* ================================================================ */
.retour-top {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 9999;
	display: none;
	align-self: flex-end;
	max-width: 100%;
}

.retour-top.est-visible {
	display: block;
}

.retour-top__lien {
	display: inline-block;
	padding: 7px;
	border-style: none;
	border-radius: 50px;
	background-color: var(--couleur-principale);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
	color: #fff;
	fill: #fff;
	font-size: 24px;
	font-weight: normal;
	line-height: 0;
	letter-spacing: 0;
	word-spacing: 0;
	text-align: center;
	transition: all 0.3s;
}

.retour-top__lien:hover,
.retour-top__lien:focus {
	color: #fff;
}

.retour-top__contenu {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 5px;
}

.retour-top__icone {
	display: flex;
	align-items: center;
}

.retour-top__fleche {
	width: 1em;
	height: 1em;
}
