/**
 * Fiche œuvre (lot K, maquette finale Fiche-oeuvre-outland du 20/11, et son -mobile ; même
 * gabarit en Inland et hors univers : noir partout, survol gris). Gabarit :
 * woocommerce/content-single-product.php et woocommerce/single-product/fiche-oeuvre/.
 * Formulaire : section « Une œuvre vous intéresse ? » de la maquette Fiche-artiste-outland.
 *
 * Chargée sur la fiche seulement (inarteveritas_fiche_oeuvre_ressources(), après main.css).
 * main.css impose aux <p> leur taille et leur interligne (!important) : elles se donnent ici par
 * --primaryFontSize et --lineHeight sur le paragraphe ; les titres prennent --primaryColor.
 * Les classes de l'ancienne fiche (.container-artwork, .oeuvre-info, .oeuvre-slider,
 * .product-contact-form, .form-iav) ne sont plus produites : leurs règles (main.css,
 * univers-pages.css) ne s'appliquent plus.
 */

/* ---------------------------------------------------------------------------
   Jetons et page
   --------------------------------------------------------------------------- */

.iav-fiche {
	--primaryColor: #111111;
	--iav-survol: var(--wp--custom--univers--neutre--survol, #111111);
	--iav-fiche-bouton-survol: #333333;
	--iav-fiche-filet: #e6e6e6;
	--iav-fiche-bordure: #d9d9d9;
	font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #111111;
	line-height: 1.6;
}

.iav-fiche.iav-u--inland {
	--iav-survol: var(--wp--custom--univers--inland--survol, #555555);
	--iav-fiche-bouton-survol: var(--iav-survol);
}

.iav-fiche.iav-u--outland {
	--iav-survol: var(--wp--custom--univers--outland--survol, #555555);
	--iav-fiche-bouton-survol: var(--iav-survol);
}

body.iav-fiche-oeuvre-page .iav-fiche-conteneur {
	max-width: none;
	padding: 0;
}

body.iav-fiche-oeuvre-page .iav-fiche-conteneur #main > .row {
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
	margin: 0;
}

body.iav-fiche-oeuvre-page .iav-fiche-conteneur #main > .row > * {
	padding: 0;
}

body.iav-fiche-oeuvre-page .iav-fiche-conteneur .woocommerce-notices-wrapper:not(:empty) {
	max-width: 1180px;
	margin: 24px auto 0;
	padding: 0 24px;
	box-sizing: content-box;
}

.iav-fiche a {
	color: #111111;
}

.iav-fiche a:hover,
.iav-fiche a:focus-visible {
	color: var(--iav-survol);
}

/* ---------------------------------------------------------------------------
   Haut de fiche : visionneuse et colonne
   --------------------------------------------------------------------------- */

.iav-fiche__haut-grille {
	box-sizing: content-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 64px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 24px 80px;
}

.iav-fiche__media {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.iav-fiche .iav-fil-ariane {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.6;
	color: #555555;
}

.iav-fiche .iav-fil-ariane__liste {
	gap: 0 0.3em;
}

.iav-fiche .iav-fil-ariane__element {
	gap: 0.3em;
}

.iav-fiche .iav-fil-ariane a {
	color: #555555;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.iav-fiche .iav-fil-ariane a:hover,
.iav-fiche .iav-fil-ariane a:focus-visible {
	color: var(--iav-survol);
}

/* Visionneuse */

.iav-visionneuse {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

/* Sans fond (IAV-13, demande de la cliente du 24/11) : l'image entière est sur le blanc de la
   page, comme dans les cartes ; la maquette avait un fond #111111. */
.iav-visionneuse__cadre {
	position: relative;
	width: 100%;
	aspect-ratio: 900 / 1117;
	overflow: hidden;
	background: transparent;
}

.iav-visionneuse__vue {
	position: absolute;
	inset: 0;
}

.iav-visionneuse__vue[hidden] {
	display: none;
}

.iav-visionneuse .iav-visionneuse__agrandir {
	all: unset;
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.iav-visionneuse .iav-visionneuse__agrandir:focus-visible {
	outline: 2px solid #111111;
	outline-offset: -2px;
}

.iav-visionneuse .iav-visionneuse__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
}

.iav-visionneuse__vue--cover .iav-visionneuse__image {
	object-fit: cover;
}

.iav-visionneuse__loupe {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 1px var(--iav-fiche-bordure);
	color: #111111;
}

.iav-visionneuse__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #111111;
}

.iav-visionneuse__vignettes {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	padding: 3px;
}

.iav-visionneuse .iav-visionneuse__vignette {
	all: unset;
	position: relative;
	display: block;
	box-sizing: border-box;
	aspect-ratio: 1;
	cursor: pointer;
	outline: 1px solid transparent;
	outline-offset: 2px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.iav-visionneuse .iav-visionneuse__vignette[aria-current="true"] {
	outline-color: #111111;
	opacity: 1;
}

.iav-visionneuse .iav-visionneuse__vignette:hover {
	opacity: 1;
}

.iav-visionneuse .iav-visionneuse__vignette:focus-visible {
	outline: 2px solid #111111;
	opacity: 1;
}

.iav-visionneuse__vignette img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.iav-visionneuse__vignette--video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #ffffff;
	transform: translate(-40%, -50%);
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

/* Colonne d'informations */

.iav-fiche__infos {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
	padding-top: 34px;
}

.iav-fiche__entete {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.iav-fiche .iav-fiche__artiste {
	align-self: flex-start;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #111111;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.iav-fiche .iav-fiche__titre {
	margin: 0;
	font-size: 40px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
}

/* Inland : titre en police fine, au style du nom de la page artiste Inland (IAV-24, demande de la
   cliente du 24/11 ; la maquette de la fiche, dessinée pour Outland, a le titre en 800). Outland
   et hors univers : inchangés. */
.iav-fiche.iav-u--inland .iav-fiche__titre {
	font-size: 32px;
	line-height: 1.2;
	font-weight: 200;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.iav-fiche .iav-fiche__serie {
	--primaryFontSize: 15px;
	--lineHeight: 1.6;
	margin: 0;
	color: #555555;
}

.iav-fiche__lignes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.iav-fiche__ligne {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
}

.iav-fiche__ligne dt {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: #767676;
}

.iav-fiche__ligne dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

/* Achat : choix des variations, prix, panier, liens */

.iav-fiche form.iav-fiche__achat-variable {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
}

/* woocommerce.css : marge sous le formulaire et « clearfix » (::before / ::after en display:
   table, qui deviendraient des éléments de la colonne flex, avec leur écart). */
.woocommerce .iav-fiche.product form.cart {
	margin-bottom: 0;
}

.woocommerce .iav-fiche.product form.cart::before,
.woocommerce .iav-fiche.product form.cart::after {
	content: none;
}

.iav-fiche .iav-fiche__selects {
	display: none;
}

.iav-fiche__choix {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.iav-fiche .iav-fiche__choix-titre {
	--primaryFontSize: 11px;
	--lineHeight: 1.6;
	margin: 0;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #111111;
}

.iav-fiche__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.iav-fiche .iav-fiche__option {
	all: unset;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--iav-fiche-bordure);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	color: #111111;
	cursor: pointer;
}

.iav-fiche .iav-fiche__option[aria-pressed="true"] {
	border-color: #111111;
	font-weight: 500;
	box-shadow: inset 0 0 0 1px #111111;
}

.iav-fiche .iav-fiche__option:not(:disabled):hover {
	border-color: var(--iav-survol);
}

.iav-fiche .iav-fiche__option:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

.iav-fiche .iav-fiche__option:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.iav-fiche__achat {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.iav-fiche .iav-fiche__prix {
	--primaryFontSize: 28px;
	--lineHeight: 1.3;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin: 0;
}

.iav-fiche__prix-libelle {
	font-size: 13px;
	color: #555555;
}

.iav-fiche__prix-libelle[hidden] {
	display: none;
}

.iav-fiche__prix-montant {
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.iav-fiche.product .iav-fiche__prix-montant span.price,
.iav-fiche.product .iav-fiche__prix-montant .amount {
	color: inherit;
	font: inherit;
}

.iav-fiche .iav-fiche__prix--demande {
	--primaryFontSize: 20px;
	font-weight: 400;
}

.iav-fiche .iav-fiche__prix--demande a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.iav-fiche .iav-fiche__panier,
.iav-fiche .single_variation_wrap,
.iav-fiche .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.iav-fiche .iav-fiche__bouton {
	all: unset;
	position: relative;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 0 24px;
	background: #111111;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-align: center;
	cursor: pointer;
}

.iav-fiche .iav-fiche__bouton:hover,
.iav-fiche .iav-fiche__bouton:focus-visible {
	background: var(--iav-fiche-bouton-survol);
	color: #ffffff;
}

.iav-fiche .iav-fiche__bouton:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

/* Variation pas encore choisie, ou indisponible (classes de WooCommerce). */
.iav-fiche .iav-fiche__bouton.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.iav-fiche .iav-fiche__bouton.disabled:hover {
	background: #111111;
}

/* Le prix de la variation choisie s'affiche dans .iav-fiche__prix (script). */
.iav-fiche .woocommerce-variation-price {
	display: none;
}

.iav-fiche .woocommerce-variation-description p,
.iav-fiche .woocommerce-variation-availability p,
.iav-fiche .wc-no-matching-variations,
.iav-fiche .iav-fiche__indisponible {
	--primaryFontSize: 13px;
	--lineHeight: 1.5;
	margin: 0;
	color: #555555;
}

.iav-fiche__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.iav-fiche .iav-fiche__lien {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: #111111;
	text-decoration: underline;
}

/* Œuvre vendue (IAV-37, vendue.php) : badge sous le titre, actions à la place du prix et du
   panier (style des fiches actuelles, pas de maquette). */

.iav-fiche .iav-fiche__badge {
	--primaryFontSize: 11px;
	--lineHeight: 1.6;
	align-self: flex-start;
	margin: 4px 0 0;
	padding: 4px 12px;
	border: 1px solid #111111;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #111111;
}

.iav-fiche__vendue {
	display: flex;
	flex-direction: column;
	gap: 22px;
	scroll-margin-top: 96px;
}

.iav-fiche .iav-fiche__vendue a.iav-fiche__bouton {
	text-decoration: none;
}

.iav-fiche__alerte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.iav-fiche .iav-fiche__alerte-libelle {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #111111;
}

.iav-fiche__alerte-ligne {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.iav-fiche .iav-fiche__alerte-ligne input {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #8c8c8c;
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #111111;
}

.iav-fiche .iav-fiche__alerte-ligne input:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 0;
}

.iav-fiche .iav-fiche__alerte-bouton {
	all: unset;
	flex: none;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid #111111;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: #111111;
	cursor: pointer;
}

.iav-fiche .iav-fiche__alerte-bouton:hover,
.iav-fiche .iav-fiche__alerte-bouton:focus-visible {
	border-color: var(--iav-fiche-bouton-survol);
	background: var(--iav-fiche-bouton-survol);
	color: #ffffff;
}

.iav-fiche .iav-fiche__alerte-mention {
	--primaryFontSize: 12px;
	--lineHeight: 1.5;
	margin: 0;
	color: #767676;
}

.iav-fiche .iav-fiche__alerte-message {
	--primaryFontSize: 13px;
	--lineHeight: 1.5;
	margin: 0;
	color: #111111;
}

.iav-fiche .iav-fiche__alerte-message--erreur {
	color: #a40000;
}

.iav-fiche .iav-fiche-carte__artiste {
	align-self: flex-start;
	font-size: 13px;
	line-height: 1.6;
	color: #555555;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Encarts */

.iav-fiche-encarts {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 24px;
	border-top: 1px solid var(--iav-fiche-filet);
}

.iav-fiche-encart {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.iav-fiche-encart__icone {
	display: block;
	color: #111111;
}

.iav-fiche-encart__corps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.iav-fiche .iav-fiche-encart__titre {
	--primaryFontSize: 14px;
	--lineHeight: 1.6;
	margin: 0;
	font-weight: 500;
}

.iav-fiche .iav-fiche-encart__texte {
	--primaryFontSize: 13px;
	--lineHeight: 1.5;
	margin: 0;
	color: #555555;
}

.iav-fiche .iav-fiche-encart__texte a {
	color: #111111;
	font-weight: 500;
}

.iav-fiche .iav-fiche-commercial__telephone {
	text-decoration: none;
	white-space: nowrap;
	font-weight: 400;
}

.iav-fiche .iav-fiche-commercial__whatsapp {
	font-weight: 400;
	text-decoration: underline;
}

.iav-fiche .iav-fiche-encart__texte a:hover,
.iav-fiche .iav-fiche-encart__texte a:focus-visible {
	color: var(--iav-survol);
}

/* ---------------------------------------------------------------------------
   Sections : L'ŒUVRE, L'ARTISTE, DU MÊME ARTISTE, formulaire
   --------------------------------------------------------------------------- */

.iav-fiche-section {
	border-top: 1px solid var(--iav-fiche-filet);
}

.iav-fiche-section__grille {
	box-sizing: content-box;
	display: grid;
	grid-template-columns: 260px repeat(4, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 80px 24px;
}

.iav-fiche .iav-fiche-section__titre {
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 200;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: normal;
}

.iav-fiche-section__contenu {
	grid-column: 2 / 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.iav-fiche-section__description {
	align-items: stretch;
}

.iav-fiche .iav-fiche-section__description > *,
.iav-fiche .iav-fiche-section__presentation > * {
	margin: 0;
}

.iav-fiche .iav-fiche-section__description p {
	--primaryFontSize: 15px;
	--lineHeight: 1.6;
	color: #555555;
}

.iav-fiche .iav-fiche-section__description > p:first-child {
	--primaryFontSize: 20px;
	--lineHeight: 1.55;
	font-weight: 300;
	color: #333333;
}

/* Description saisie avec des intertitres ou des listes (contenu d'Arteo ou de l'éditeur) : à
   l'échelle des paragraphes, pas aux tailles des titres du site. */
.iav-fiche .iav-fiche-section__description :is(h1, h2, h3, h4, h5, h6) {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.iav-fiche .iav-fiche-section__description :is(ul, ol) {
	padding-left: 1.2em;
	font-size: 15px;
	line-height: 1.6;
	color: #555555;
}

.iav-fiche .iav-fiche-section__nom {
	--primaryFontSize: 21px;
	--lineHeight: 1.6;
	margin: 0;
	font-weight: 300;
}

.iav-fiche .iav-fiche-section__nom a {
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

.iav-fiche-section__presentation {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.iav-fiche .iav-fiche-section__presentation p {
	--primaryFontSize: 16px;
	--lineHeight: 1.65;
	color: #333333;
}

/* DU MÊME ARTISTE */

.iav-fiche-section__grille--meme {
	grid-template-columns: 260px minmax(0, 1fr);
}

.iav-fiche-section__tete {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.iav-fiche-section__oeuvres {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.iav-fiche .iav-fiche-section__toutes {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: #111111;
	text-decoration: underline;
}

.iav-fiche .iav-fiche-section__toutes--bas {
	display: none;
	align-self: flex-start;
}

.iav-fiche-cartes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iav-fiche-carte {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.iav-fiche .iav-fiche-carte__lien {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #111111;
	text-decoration: none;
}

.iav-fiche .iav-fiche-carte__visuel {
	margin-bottom: 10px;
}

.iav-fiche-carte__titre {
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #111111;
}

.iav-fiche .iav-fiche-carte__lien:hover .iav-fiche-carte__titre,
.iav-fiche .iav-fiche-carte__lien:focus-visible .iav-fiche-carte__titre {
	color: var(--iav-survol);
}

.iav-fiche .iav-fiche-carte__prix {
	--primaryFontSize: 13px;
	--lineHeight: 1.6;
	margin: 0;
	color: #555555;
}

.iav-fiche.product .iav-fiche-carte__prix .amount,
.iav-fiche.product .iav-fiche-carte__prix .price-from {
	color: inherit;
	font: inherit;
}

.iav-fiche .iav-fiche-carte__demande {
	align-self: flex-start;
	font-size: 13px;
	line-height: 1.6;
	color: #555555;
	text-decoration: underline;
}

/* Formulaire (maquette Fiche-artiste-outland, « Une œuvre vous intéresse ? ») */

.iav-fiche-section--formulaire {
	margin-bottom: 72px;
	scroll-margin-top: 96px;
}

.iav-fiche-section__grille--formulaire {
	grid-template-columns: 260px repeat(3, minmax(0, 1fr));
	padding-bottom: 0;
}

.iav-fiche-formulaire {
	grid-column: 2 / 5;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	margin-bottom: 24px;
}

.iav-fiche .iav-fiche-formulaire__message {
	--primaryFontSize: 14px;
	--lineHeight: 1.5;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #111111;
}

.iav-fiche-formulaire__champs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	margin: 0;
}

.iav-fiche .iav-fiche-formulaire__champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: #111111;
}

.iav-fiche-formulaire__champ--large,
.iav-fiche-formulaire__pied {
	grid-column: 1 / -1;
}

.iav-fiche .iav-fiche-formulaire__champ input,
.iav-fiche .iav-fiche-formulaire__champ textarea {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--iav-fiche-bordure);
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 15px;
	color: #111111;
}

.iav-fiche .iav-fiche-formulaire__champ textarea {
	height: auto;
	padding: 12px 14px;
	resize: vertical;
}

.iav-fiche .iav-fiche-formulaire__champ input:focus-visible,
.iav-fiche .iav-fiche-formulaire__champ textarea:focus-visible {
	border-color: #111111;
	outline: 1px solid #111111;
	outline-offset: 0;
}

.iav-fiche-formulaire__pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.iav-fiche .iav-fiche-formulaire__mention {
	--primaryFontSize: 12px;
	--lineHeight: 1.6;
	margin: 0;
	color: #555555;
}

.iav-fiche .iav-fiche-formulaire__envoyer {
	all: unset;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 40px;
	background: #111111;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.iav-fiche .iav-fiche-formulaire__envoyer:hover,
.iav-fiche .iav-fiche-formulaire__envoyer:focus-visible {
	background: var(--iav-fiche-bouton-survol);
}

.iav-fiche .iav-fiche-formulaire__envoyer:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

.iav-fiche .iav-fiche-formulaire__envoyer:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* ---------------------------------------------------------------------------
   Visionneuse plein écran (<dialog>)
   --------------------------------------------------------------------------- */

html.iav-boite-ouverte {
	overflow: hidden;
}

.iav-boite {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	display: none;
	flex-direction: column;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: rgba(12, 12, 12, 0.97);
	color: #ffffff;
	font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.iav-boite[open] {
	display: flex;
}

.iav-boite::backdrop {
	background: rgba(12, 12, 12, 0.97);
}

.iav-boite__barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.iav-boite__actions {
	display: flex;
	gap: 4px;
}

.iav-boite .iav-boite__bouton,
.iav-boite .iav-boite__fleche,
.iav-boite .iav-boite__vignette {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
}

.iav-boite .iav-boite__bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #ffffff;
}

.iav-boite .iav-boite__bouton:focus-visible,
.iav-boite .iav-boite__fleche:focus-visible,
.iav-boite .iav-boite__vignette:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.iav-boite__scene {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	overflow: auto;
}

.iav-boite__vue {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.iav-boite__vue[hidden] {
	display: none;
}

.iav-boite .iav-boite__image {
	display: block;
	width: auto;
	max-width: calc(100% - 120px);
	height: auto;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
}

.iav-boite__video {
	display: block;
	max-width: calc(100% - 120px);
	max-height: 100%;
}

.iav-boite__scene.is-zoom {
	align-items: flex-start;
	justify-content: flex-start;
}

.iav-boite__scene.is-zoom .iav-boite__vue {
	display: block;
	flex: none;
	width: 220%;
	height: auto;
}

.iav-boite__scene.is-zoom .iav-boite__image {
	width: 100%;
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.iav-boite .iav-boite__fleche {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;
	transform: translateY(-50%);
}

.iav-boite .iav-boite__fleche--precedente {
	left: 8px;
}

.iav-boite .iav-boite__fleche--suivante {
	right: 8px;
}

/* Centrées quand elles tiennent, alignées à gauche (et défilantes) sinon : marges automatiques
   plutôt que justify-content: center, qui couperait la première vignette sur mobile. */
.iav-boite__vignettes {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	padding: 12px 16px 16px;
	overflow-x: auto;
	scrollbar-width: none;
}

.iav-boite__vignettes::-webkit-scrollbar {
	display: none;
}

.iav-boite .iav-boite__vignette {
	display: block;
	flex: none;
	width: 52px;
	height: 52px;
	outline: 1px solid transparent;
	outline-offset: 2px;
	opacity: 0.5;
}

.iav-boite .iav-boite__vignette:first-child {
	margin-left: auto;
}

.iav-boite .iav-boite__vignette:last-child {
	margin-right: auto;
}

.iav-boite .iav-boite__vignette[aria-current="true"] {
	outline-color: #ffffff;
	opacity: 1;
}

.iav-boite__vignette img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
	.iav-boite[open] {
		animation: iav-boite-apparition 0.2s ease-out;
	}
}

@keyframes iav-boite-apparition {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iav-visionneuse .iav-visionneuse__vignette {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
   Ruptures (maquette : 1024, 900, 640 px)
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.iav-fiche-section__grille--formulaire {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.iav-fiche-formulaire {
		grid-column: auto;
	}
}

@media (max-width: 900px) {
	.iav-fiche__haut-grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 20px;
	}

	.iav-fiche__infos {
		position: static;
	}

	.iav-fiche-section__grille,
	.iav-fiche-section__grille--meme {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 56px 24px;
	}

	.iav-fiche-section__grille--formulaire {
		gap: 24px;
		padding-bottom: 0;
	}

	.iav-fiche-section__grille > * {
		grid-column: auto;
	}

	.iav-fiche-cartes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}
}

@media (max-width: 640px) {
	.iav-fiche__haut-grille {
		padding-right: 16px;
		padding-left: 16px;
	}

	.iav-fiche-section__grille,
	.iav-fiche-section__grille--meme {
		padding: 48px 16px;
	}

	.iav-fiche-section__grille--formulaire {
		padding-bottom: 48px;
	}

	.iav-visionneuse__cadre {
		width: calc(100% + 32px);
		max-width: none;
		margin: 0 -16px;
	}

	.iav-fiche .iav-fiche__titre {
		font-size: 32px;
	}

	.iav-fiche.iav-u--inland .iav-fiche__titre {
		font-size: 26px;
	}

	.iav-fiche .iav-fiche-section__toutes--haut {
		display: none;
	}

	.iav-fiche .iav-fiche-section__toutes--bas {
		display: inline-block;
	}

	.iav-fiche-formulaire__champs {
		grid-template-columns: minmax(0, 1fr);
	}

	.iav-boite .iav-boite__image,
	.iav-boite__video {
		max-width: 100%;
	}
}
