/*
Theme Name: Nos Mémoires Normandes
Theme URI: https://nosmemoiresnormandes.fr
Description: Thème enfant de Twenty Twenty-Five pour l'association Nos Mémoires Normandes. Identité visuelle et mise en forme uniquement : tout le contenu reste éditable depuis WordPress.
Author: Nos Mémoires Normandes
Template: twentytwentyfive
Version: 1.0.0
Text Domain: nmn
*/

/*
 * Ce fichier ne contient QUE de la mise en forme (aucun texte, aucune donnée).
 * L'identité visuelle principale (couleurs, polices, tailles) est définie
 * dans theme.json et modifiable depuis Apparence > Éditeur > Styles.
 */

/* Étiquette "surtitre" au-dessus des titres de section. La couleur (clair/foncé
   selon le fond) est définie bloc par bloc via la couleur de texte du bloc. */
.nmn-surtitre {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* Défilement doux vers les ancres du menu (Le spectacle, Infos pratiques, etc.) */
html {
	scroll-behavior: smooth;
}

/* Menu de navigation : mêmes réglages typographiques que les petits titres */
.wp-block-navigation a {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.95rem;
}

/* Bandeau du haut toujours visible au défilement. WordPress enveloppe la
   partie de modèle "En-tête" dans un second <header> automatique, de la
   même hauteur que son contenu : un élément "sticky" ne pouvant jamais
   dépasser les bords de son propre parent, c'est ce conteneur englobant
   qu'il faut rendre sticky (pas seulement le bloc Groupe à l'intérieur). */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Texture "usée" sur les grands titres (H1/H2) : le grain est appliqué
   uniquement sur les lettres (pas un rectangle derrière le texte), sans
   jamais changer la couleur définie par le bloc. Purement décoratif ;
   si le navigateur ne sait pas faire, le titre reste simplement en
   couleur unie et lisible. */
:where(h1, h2) {
	background-repeat: repeat, no-repeat;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		linear-gradient(currentColor, currentColor);
	background-blend-mode: overlay;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Présentation du spectacle (section "dossier d'archives" après le Hero)
   ========================================================================== */

.nmn-presentation {
	position: relative;
	overflow: hidden;
	background-image: url("assets/images/texture-papier.jpg");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.nmn-presentation-main {
	position: relative;
	z-index: 1;
	align-items: center;
	max-width: 1500px;
	margin-inline: auto;
	padding-inline: 5vw;
	box-sizing: border-box;
	gap: 7%;
}

.nmn-presentation-text {
	flex: 0 0 48%;
	max-width: 48%;
}

/* --- Colonne de texte --- */

.nmn-presentation-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
}

.nmn-presentation-eyebrow::before {
	content: "";
	flex: 0 0 32px;
	height: 2px;
	background: var(--wp--preset--color--nmn-rouge);
}

.nmn-presentation-title {
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	line-height: 1;
	margin: 0 0 22px;
}

.nmn-presentation-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 340px;
	margin: 0 0 26px;
}

.nmn-presentation-divider-line {
	flex: 1 1 auto;
	max-width: 140px;
	height: 1px;
	background: var(--wp--preset--color--nmn-rouge);
}

.nmn-presentation-divider-star {
	color: var(--wp--preset--color--nmn-or);
	font-size: 13px;
	line-height: 1;
}

.nmn-presentation-lead {
	font-size: clamp(1.05rem, 1.2vw, 1.25rem);
	line-height: 1.7;
	max-width: 600px;
	margin: 0 0 40px;
}

.nmn-presentation-features {
	margin: 0 0 36px;
}

.nmn-presentation-features .wp-block-column {
	border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-or) 45%, transparent);
	padding-left: 20px;
}

.nmn-presentation-features .wp-block-column:first-child {
	border-left: none;
	padding-left: 0;
}

.nmn-presentation-icon {
	display: block;
	width: 34px;
	height: 34px;
	color: var(--wp--preset--color--nmn-or);
	margin: 0 0 14px;
}

.nmn-presentation-feature-title {
	font-size: 0.95rem;
	line-height: 1.25;
	margin: 0 0 8px;
}

.nmn-presentation-feature-text {
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.85;
	margin: 0;
}

.nmn-presentation-cta .wp-block-button__link {
	padding-left: 2.75rem;
	padding-right: 2.75rem;
}

/* --- Colonne "dossier d'archives" (photo + carte + citation + tampon) --- */

.nmn-presentation-archive {
	position: relative;
	flex: 0 0 45%;
	max-width: 45%;
	min-height: clamp(360px, 34vw, 480px);
}

.nmn-presentation-map {
	position: absolute;
	z-index: 1;
	top: 4%;
	right: 0;
	width: 78%;
	max-width: 480px;
	margin: 0;
	transform: rotate(4deg);
}

.nmn-presentation-map img {
	display: block;
	width: 100%;
	height: auto;
	border: 8px solid var(--wp--preset--color--nmn-creme);
	box-shadow: 0 18px 34px rgba(11, 19, 32, 0.22);
}

.nmn-presentation-photo {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 0;
	width: 82%;
	max-width: 460px;
	margin: 0;
	transform: rotate(-2deg);
}

.nmn-presentation-photo img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--wp--preset--color--nmn-creme);
	border: 10px solid var(--wp--preset--color--nmn-creme);
	box-shadow: 0 24px 48px rgba(11, 19, 32, 0.28);
}

.nmn-presentation-quote {
	position: absolute;
	z-index: 3;
	left: -4%;
	bottom: 6%;
	width: 62%;
	max-width: 300px;
	background: var(--wp--preset--color--nmn-blanc);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-nuit) 15%, transparent);
	box-shadow: 0 10px 24px rgba(11, 19, 32, 0.18);
	padding: 1.4rem 1.6rem;
	transform: rotate(-1.5deg);
}

.nmn-presentation-quote::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 22px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--nmn-rouge);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nmn-presentation-quote-text {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 0 0 8px;
}

.nmn-presentation-quote-attr {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
	margin: 0;
}

.nmn-presentation-quote-attr::after {
	content: "★";
	display: block;
	margin-top: 6px;
	color: var(--wp--preset--color--nmn-or);
	font-size: 0.7rem;
}

.nmn-presentation-stamp {
	position: absolute;
	z-index: 4;
	top: -6%;
	right: 2%;
	width: 108px;
	height: 108px;
	color: var(--wp--preset--color--nmn-or);
	opacity: 0.75;
	transform: rotate(8deg);
	pointer-events: none;
}

@media (max-width: 782px) {
	.nmn-presentation-archive {
		min-height: clamp(280px, 78vw, 380px);
		margin-top: 40px;
	}

	.nmn-presentation-map {
		width: 68%;
		max-width: 260px;
	}

	.nmn-presentation-photo {
		width: 74%;
		max-width: 280px;
	}

	.nmn-presentation-features .wp-block-column {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-or) 45%, transparent);
		padding-top: 18px;
		margin-top: 18px;
	}

	.nmn-presentation-features .wp-block-column:first-child {
		border-top: none;
		padding-top: 0;
		margin-top: 0;
	}
}

/* ==========================================================================
   Informations pratiques
   ========================================================================== */

.nmn-infos {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background-image: linear-gradient(
			rgba(220, 205, 179, 0.16),
			rgba(220, 205, 179, 0.16)
		),
		url("assets/images/texture-papier.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Repères d'archive très pâles, purement décoratifs, sous le contenu. */
.nmn-infos::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.05;
	color: var(--wp--preset--color--nmn-nuit);
	background-image: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 140px),
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 140px);
}

.nmn-infos::after {
	content: "NORMANDIE — 6 JUIN 1944";
	position: absolute;
	right: -2%;
	bottom: 4%;
	z-index: -1;
	pointer-events: none;
	font-family: var(--wp--preset--font-family--titre);
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--nmn-nuit);
	opacity: 0.035;
	white-space: nowrap;
	transform: rotate(-3deg);
}

/* Transition discrète avec la section précédente : une courte ligne,
   différente du motif ligne-étoile-ligne utilisé pour ne pas le répéter
   deux fois de suite. */
.nmn-infos-transition {
	width: 60px;
	height: 1px;
	margin: 0 auto;
	background: var(--wp--preset--color--nmn-or);
	opacity: 0.55;
}

.nmn-infos-eyebrow {
	letter-spacing: 0.2em;
	font-weight: 500;
}

.nmn-infos-title {
	margin-top: 14px;
	margin-bottom: 0;
}

.nmn-infos-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 280px;
	margin: 16px auto 0;
}

.nmn-infos-divider-line {
	flex: 1 1 auto;
	max-width: 100px;
	height: 1px;
	background: var(--wp--preset--color--nmn-rouge);
	opacity: 0.8;
}

.nmn-infos-divider-star {
	color: var(--wp--preset--color--nmn-or);
	font-size: 11px;
	line-height: 1;
}

/* Fiche d'informations : bordure fine, ombre diffuse, petit détail "punaise". */
.nmn-infos-card {
	position: relative;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-nuit) 10%, transparent);
	box-shadow: 0 16px 40px rgba(11, 19, 32, 0.08);
}

.nmn-infos-card::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 30px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--wp--preset--color--nmn-rouge);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.nmn-infos-card .wp-block-separator {
	opacity: 0.55;
	margin-top: 1.4rem;
	margin-bottom: 1.4rem;
}

.nmn-infos-label {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	margin-right: 0.15em;
}

/* Grille des 4 dates : présentées comme des repères de fiche, pas des
   boutons — bordure fine et accent de couleur, pas d'aplat plein. */
.nmn-infos-dates-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	margin: 12px 0 4px;
}

.nmn-infos-date {
	margin: 0;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-nuit) 12%, transparent);
	border-left: 2px solid var(--wp--preset--color--nmn-or);
	border-radius: 2px;
	font-size: 0.9rem;
	line-height: 1.3;
	text-align: left;
}

@media (max-width: 600px) {
	.nmn-infos-dates-grid {
		grid-template-columns: 1fr;
	}
}

/* Cadre de la carte Google Maps : support papier, pas de style "carte
   d'application" moderne. */
.nmn-infos-map-frame {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--nmn-nuit) 10%, transparent);
	box-shadow: 0 16px 40px rgba(11, 19, 32, 0.08);
}

.nmn-infos-map-caption {
	margin: 0.6rem 0 0.2rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--nmn-nuit);
	opacity: 0.55;
}

/* ==========================================================================
   Hero plein écran (section d'ouverture avec vidéo)
   ========================================================================== */

.nmn-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	height: clamp(650px, 80vh, 900px);
	text-align: left;
}

/* Vidéo de fond : technique de mise à l'échelle inchangée (fonctionne déjà). */
.nmn-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 177.78vh;
	height: 100%;
	min-width: 100%;
	min-height: 56.25vw;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
}

.nmn-hero__video iframe {
	width: 100%;
	height: 100%;
	display: block;
}

/* Voile dégradé : sombre à gauche pour la lisibilité du texte, la vidéo
   reste bien visible à droite. Pas de filtre noir uniforme. */
.nmn-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		90deg,
		rgba(11, 19, 32, 0.82) 0%,
		rgba(11, 19, 32, 0.6) 34%,
		rgba(11, 19, 32, 0.22) 62%,
		rgba(11, 19, 32, 0) 85%
	);
}

.nmn-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 650px;
	margin-left: 5.5%;
	text-align: center;
	animation: nmn-hero-reveal 800ms ease-out both;
}

@keyframes nmn-hero-reveal {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nmn-hero__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #c8aa73;
	margin: 0 0 25px;
}

.nmn-hero__eyebrow::before,
.nmn-hero__eyebrow::after {
	content: "";
	flex: 0 0 28px;
	height: 1px;
	background: #c8aa73;
	opacity: 0.8;
}

.nmn-hero__title {
	font-family: var(--wp--preset--font-family--titre);
	font-size: clamp(48px, 6vw, 105px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -1px;
	text-transform: uppercase;
	color: #dccdb3;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	margin: 0 0 25px;
}

.nmn-hero__subtitle {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: clamp(15px, 1.6vw, 22px);
	line-height: 1.4;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #c8aa73;
	margin: 0 0 22px;
}

.nmn-hero__divider {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 400px;
	margin: 0 auto 20px;
}

.nmn-hero__divider-line {
	flex: 1 1 auto;
	max-width: 170px;
	height: 1px;
	background: #9f302e;
}

.nmn-hero__divider-star {
	color: #c8aa73;
	font-size: 14px;
	line-height: 1;
}

.nmn-hero__lead {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: clamp(16px, 1.4vw, 21px);
	line-height: 1.5;
	color: #eee9de;
	max-width: 550px;
	margin: 0 0 28px;
}

.nmn-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.nmn-hero__btn-primary .wp-block-button__link {
	background: #a13230;
	color: #eee9de;
	height: 66px;
	display: inline-flex;
	align-items: center;
	padding: 0 42px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 15px;
	border: none;
	transition: background-color 200ms ease;
}

.nmn-hero__btn-primary .wp-block-button__link:hover {
	background: #b8433f;
	color: #eee9de;
}

.nmn-hero__btn-secondary .wp-block-button__link {
	background: transparent;
	color: #eee9de;
	height: 66px;
	display: inline-flex;
	align-items: center;
	padding: 0 42px;
	border-radius: 3px;
	border: 1px solid #c8aa73;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 15px;
	transition: background-color 200ms ease, color 200ms ease;
}

.nmn-hero__btn-secondary .wp-block-button__link:hover {
	background: rgba(200, 170, 115, 0.15);
	color: #ffffff;
}

@media (max-width: 1024px) {
	.nmn-hero__content {
		max-width: 560px;
		margin-left: 6%;
	}
}

@media (max-width: 782px) {
	.nmn-hero {
		height: auto;
		min-height: 650px;
		padding: 130px 0 60px;
		align-items: flex-start;
	}

	.nmn-hero__content {
		max-width: 100%;
		margin-left: 0;
		padding: 0 24px;
		transform: none;
	}

	@keyframes nmn-hero-reveal {
		from {
			opacity: 0;
			transform: translateY(14px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.nmn-hero__subtitle {
		font-size: 16px;
	}

	.nmn-hero__lead {
		font-size: 16px;
		max-width: 100%;
	}

	.nmn-hero__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.nmn-hero__btn-primary .wp-block-button__link,
	.nmn-hero__btn-secondary .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* Bouton "Découvrir le spectacle" élargi et centré (section Présentation). */
.nmn-btn-wide .wp-block-button__link {
	min-width: 320px;
	justify-content: center;
	text-align: center;
}

/* Respect des préférences d'accessibilité : pas d'animation si demandé par le visiteur */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.nmn-hero__content {
		animation: none;
	}
}
