/* =====================================================================
   CAPTURE BY MAEL
   Palette et typographie fixées par le cahier des charges.
   Aucune police externe : polices système uniquement.
   ===================================================================== */

:root {
	--noir:     #0A0D0B;
	--profond:  #131815;
	--clair:    #F2F4F1;
	--lichen:   #8C9E8F;
	--trait:    rgba(242, 244, 241, 0.13);

	--titre: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--recit: Georgia, "Iowan Old Style", "Times New Roman", serif;

	--marge: clamp(1.15rem, 4vw, 3.5rem);
	--respire: clamp(4rem, 11vw, 8.5rem);
	--entete-h: 4.6rem;
}

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

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

/* La couleur de fond vit sur html : le halo peut ainsi se placer
   derrière tout le contenu, sans être recouvert. */
html { background: var(--noir); }

body {
	margin: 0;
	background: transparent;
	color: var(--clair);
	font-family: var(--titre);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Lumière de sous-bois sur l'ensemble du site, très diluée.
   Pas de vignettage ici : il assombrirait le bord des photographies
   de la galerie. */
body::before {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(50% 40% at 30% 12%, rgba(150, 176, 148, 0.10), transparent 66%),
		radial-gradient(44% 38% at 78% 55%, rgba(120, 150, 124, 0.07), transparent 68%),
		radial-gradient(85% 50% at 50% 110%, rgba(126, 100, 58, 0.07), transparent 74%);
	animation: cbm-derive 90s ease-in-out infinite alternate;
	will-change: transform;
}

/* Protection des images : clic droit, glisser-déposer et appui long
   sont désactivés. Cela décourage la copie par réflexe.
   Cela n'empêche pas une capture d'écran : rien ne le peut. */
img {
	max-width: 100%;
	height: auto;
	display: block;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.cbm-visuellement-cache {
	position: absolute; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

.cbm-evitement {
	position: absolute; top: -100px; left: var(--marge); z-index: 200;
	background: var(--clair); color: var(--noir);
	padding: .6rem 1rem; font-size: .8rem; text-decoration: none;
}
.cbm-evitement:focus { top: .5rem; }

/* ---------- EN-TÊTE ------------------------------------------------ */
/* Fond plein : la barre reste identique pendant tout le défilement.  */

.cbm-entete {
	position: sticky; top: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem;
	min-height: var(--entete-h);
	padding: .7rem var(--marge);
	background: var(--noir);
	border-bottom: 1px solid var(--trait);
}

/* La barre d'administration de WordPress est fixée par-dessus la page.
   Elle recouvrirait le haut du menu pour les comptes connectes.
   Invisible pour les visiteurs : cette regle ne les concerne pas. */
.admin-bar .cbm-entete { top: 32px; }

@media screen and (max-width: 782px) {
	/* Sur petit ecran, la barre d'administration defile avec la page. */
	.admin-bar .cbm-entete { top: 0; }
}

/* Identité : photo de profil de Mael, puis le nom.
   La photo se change depuis l'application : téléverser une image
   et lui donner « profil » comme titre. */

.cbm-marque {
	flex: 0 0 auto;
	display: flex; align-items: center; gap: .7rem;
	text-decoration: none;
	line-height: 1;
}

.cbm-avatar-bouton {
	padding: 0; border: 0; background: none; cursor: pointer;
	display: block; line-height: 0;
	border-radius: 50%;
	transition: opacity .25s;
}
.cbm-avatar-bouton:hover { opacity: .8; }

.cbm-marque-nom { text-decoration: none; }

.cbm-avatar {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--trait);
}

.cbm-avatar--vide {
	display: grid; place-items: center;
	font-size: .8rem; font-weight: 700; letter-spacing: .04em;
	color: var(--lichen);
	border: 1px dashed rgba(140, 158, 143, 0.55);
}

.cbm-marque-nom {
	font-size: .7rem; font-weight: 600; letter-spacing: .17em;
	text-transform: uppercase; color: var(--clair);
	white-space: nowrap;
}

@media (max-width: 400px) {
	.cbm-marque-nom { display: none; }
}

.cbm-nav { display: none; gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: center; }
.cbm-nav a, .cbm-nav-attente {
	font-size: .7rem; letter-spacing: .19em; text-transform: uppercase;
	color: var(--lichen); text-decoration: none;
	padding-bottom: 3px; border-bottom: 1px solid transparent;
	transition: color .25s, border-color .25s;
}
.cbm-nav a:hover { color: var(--clair); border-bottom-color: var(--lichen); }
.cbm-nav-attente { opacity: .38; cursor: default; }

.cbm-bascule {
	width: 40px; height: 40px; padding: 0;
	background: none; border: 0; cursor: pointer;
	display: grid; place-items: center;
}
.cbm-bascule-trait,
.cbm-bascule-trait::before,
.cbm-bascule-trait::after {
	content: ""; display: block; width: 22px; height: 1px;
	background: var(--clair); transition: transform .3s, opacity .2s;
}
.cbm-bascule-trait { position: relative; }
.cbm-bascule-trait::before { position: absolute; top: -6px; }
.cbm-bascule-trait::after  { position: absolute; top: 6px; }

.cbm-entete.est-ouvert .cbm-bascule-trait { background: transparent; }
.cbm-entete.est-ouvert .cbm-bascule-trait::before { top: 0; transform: rotate(45deg); }
.cbm-entete.est-ouvert .cbm-bascule-trait::after  { top: 0; transform: rotate(-45deg); }

.cbm-entete.est-ouvert .cbm-nav {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
	position: absolute; top: 100%; left: 0; right: 0;
	padding: 2rem var(--marge) 2.4rem;
	background: var(--noir); border-bottom: 1px solid var(--trait);
}
.cbm-entete.est-ouvert .cbm-nav a,
.cbm-entete.est-ouvert .cbm-nav-attente { font-size: .95rem; letter-spacing: .13em; }

@media (min-width: 860px) {
	.cbm-nav { display: flex; }
	.cbm-bascule { display: none; }
}

/* ---------- OUVERTURE ---------------------------------------------- */

/* ---------- BLOC 1 : OUVERTURE, PLEIN ÉCRAN ------------------------- */
/* L'ouverture occupe sa propre hauteur d'écran. Le diaporama commence
   en dessous : les deux ne se chevauchent jamais.                     */

.cbm-ouverture {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - var(--entete-h));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 6vw, 4rem) var(--marge) clamp(4.5rem, 9vw, 6rem);
	text-align: center;
}

/* Lumière de sous-bois : deux halos verts qui dérivent à des vitesses
   différentes, une braise chaude en bas, et un vignettage qui respire.
   Uniquement sur le bloc d'ouverture : rien ne doit fausser la
   perception des couleurs dans la galerie. */

.cbm-ouverture::before,
.cbm-ouverture::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.cbm-ouverture::before {
	inset: -25%;
	background:
		radial-gradient(52% 42% at 38% 18%, rgba(150, 176, 148, 0.20), transparent 66%),
		radial-gradient(46% 40% at 72% 62%, rgba(120, 150, 124, 0.13), transparent 68%),
		radial-gradient(80% 55% at 50% 112%, rgba(126, 100, 58, 0.13), transparent 72%);
	animation: cbm-derive 38s ease-in-out infinite alternate;
}

.cbm-ouverture::after {
	inset: 0;
	background: radial-gradient(115% 85% at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.62) 100%);
	animation: cbm-derive-lente 62s ease-in-out infinite alternate;
}

.cbm-ouverture-contenu,
.cbm-defiler { position: relative; z-index: 1; }

@keyframes cbm-derive {
	from { transform: translate3d(-2%, -1%, 0) scale(1); }
	to   { transform: translate3d(2%, 3%, 0) scale(1.12); }
}

@keyframes cbm-derive-lente {
	from { transform: translate3d(3%, 2%, 0) scale(1.08); }
	to   { transform: translate3d(-3%, -2%, 0) scale(1); }
}

.admin-bar .cbm-ouverture { min-height: calc(100svh - var(--entete-h) - 32px); }

@supports not (height: 100svh) {
	.cbm-ouverture { min-height: calc(100vh - var(--entete-h)); }
}

.cbm-ouverture-contenu { width: 100%; }

/* Repère invitant à descendre.
   Le centrage passe par les marges, pas par transform : celui-ci est
   réservé à l'animation, sinon les deux se contredisent. */
.cbm-defiler {
	position: absolute;
	bottom: clamp(1.2rem, 3.5vw, 2.2rem);
	left: 0; right: 0;
	width: fit-content;
	margin-inline: auto;
	display: flex; flex-direction: column; align-items: center; gap: .55rem;
	padding: .7rem 1.2rem;
	color: var(--lichen); text-decoration: none;
	animation: cbm-descend 2.3s ease-in-out infinite, cbm-apparait .9s ease-out 1.1s both;
	transition: color .25s;
}
.cbm-defiler:hover { color: var(--clair); }

.cbm-defiler-mot {
	font-size: .62rem; font-weight: 500;
	letter-spacing: .3em; text-transform: uppercase;
	text-indent: .3em;
}
.cbm-defiler-trait {
	display: block; width: 1px; height: 30px;
	background: linear-gradient(180deg, transparent, currentColor);
}
.cbm-defiler-fleche {
	display: block; width: 9px; height: 9px;
	margin-top: -7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

@keyframes cbm-descend {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(9px); }
}

@keyframes cbm-apparait {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ---------- BLASON -------------------------------------------------- */

.cbm-titre { margin: 0; line-height: 0; }

.cbm-titre-blason {
	width: min(84vw, 560px);
	margin: 0 auto;
	animation: cbm-entree 1.1s cubic-bezier(.19, .72, .21, 1) both;
}

.cbm-titre-secours {
	display: block; font-size: clamp(2rem, 9vw, 4rem);
	font-weight: 800; text-transform: uppercase; line-height: 1.05;
}

@keyframes cbm-entree {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

.cbm-devise {
	margin: clamp(1.4rem, 4vw, 2.2rem) auto 0;
	max-width: 26ch;
	font-family: var(--recit);
	font-style: italic;
	font-size: clamp(1.02rem, 2.7vw, 1.4rem);
	color: rgba(242, 244, 241, 0.72);
	animation: cbm-entree 1s ease-out .55s both;
}

/* ---------- DIAPORAMA ----------------------------------------------- */
/* Format unique : aucune photographie n'est recadrée.                */

/* ---------- BLOC 2 : DIAPORAMA -------------------------------------- */
/* Format unique : aucune photographie n'est recadrée.                */

.cbm-diaporama {
	padding: clamp(2.5rem, 7vw, 4.5rem) var(--marge) clamp(3rem, 8vw, 5rem);
	border-top: 1px solid var(--trait);
}

.cbm-diaporama-cadre {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--profond);
}

.cbm-vue {
	position: absolute; inset: 0; margin: 0;
	opacity: 0;
	transition: opacity 1.4s ease-in-out;
}
.cbm-vue.est-active { opacity: 1; }

.cbm-vue img {
	width: 100%; height: 100%;
	object-fit: contain;
}

/* Première apparition : la photographie sort lentement de l'ombre. */
.cbm-vue.est-active img {
	animation: cbm-apparition 1.7s cubic-bezier(.19, .72, .21, 1) both;
}
@keyframes cbm-apparition {
	from { filter: brightness(.35) saturate(.5); transform: scale(1.03); }
	to   { filter: none; transform: none; }
}

.cbm-points {
	display: flex; justify-content: center; gap: .55rem;
	margin-top: 1rem;
}
.cbm-point {
	width: 22px; height: 2px; padding: 0;
	border: 0; cursor: pointer;
	background: rgba(242, 244, 241, 0.22);
	transition: background .3s;
}
.cbm-point.est-active { background: var(--lichen); }

/* ---------- GRAND ÉCRAN DU DIAPORAMA -------------------------------- */
/* La classe est posée par le script dans les deux cas : plein écran
   natif de l'ordinateur, ou repli simulé lorsque le navigateur ne le
   permet pas — c'est le cas de Safari sur iPhone. Un seul chemin de
   mise en page, donc aucun affichage divergent selon l'appareil.      */

.cbm-plein-ecran {
	position: absolute; right: .7rem; bottom: .7rem; z-index: 2;
	width: 40px; height: 40px; padding: 0;
	display: grid; place-items: center;
	background: rgba(10, 13, 11, 0.55);
	border: 1px solid rgba(242, 244, 241, 0.22);
	color: var(--clair); cursor: pointer;
	opacity: .72;
	transition: opacity .25s, background .25s;
}
.cbm-plein-ecran:hover { opacity: 1; background: rgba(10, 13, 11, 0.82); }
.cbm-plein-ecran svg { width: 18px; height: 18px; }
.cbm-plein-ecran .cbm-reduire { display: none; }

.cbm-diaporama.est-plein-ecran {
	position: fixed; inset: 0; z-index: 300;
	margin: 0; border-top: 0;
	padding: clamp(.8rem, 2.5vw, 2rem);
	background: var(--noir);
	display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.cbm-diaporama.est-plein-ecran .cbm-diaporama-cadre {
	flex: 1 1 auto; min-height: 0;
	aspect-ratio: auto;
	background: transparent;
}
.cbm-diaporama.est-plein-ecran .cbm-points { margin-top: 0; flex: 0 0 auto; }
.cbm-diaporama.est-plein-ecran .cbm-agrandir { display: none; }
.cbm-diaporama.est-plein-ecran .cbm-reduire  { display: block; }

/* Vues de réserve : leurs puces restent masquées tant que le visiteur
   n'a pas demandé l'ensemble. Les figures, elles, n'ont pas besoin
   d'être masquées : sans la classe « est-active » elles restent à
   opacité zéro, et leur balise img n'a pas encore de src. */

.cbm-point--reserve { display: none; }

.cbm-plus {
	display: block; margin: 1.2rem auto 0;
	padding: .6rem 1.3rem;
	font-family: var(--titre);
	font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--lichen);
	background: none; border: 1px solid var(--trait); cursor: pointer;
	transition: color .25s, border-color .25s;
}
.cbm-plus:hover { color: var(--clair); border-color: var(--lichen); }

.cbm-diaporama.est-plein-ecran .cbm-plus { flex: 0 0 auto; margin-top: 0; }

/* ---------- ÉTIQUETTE DE RÉFÉRENCE ---------------------------------- */
/* Le numéro est réel : c'est la référence permanente du registre,    */
/* celle à indiquer pour commander un tirage.                         */

.cbm-tag {
	position: absolute; top: .7rem; left: .7rem;
	padding: .16rem .5rem;
	font-size: .58rem; font-weight: 500; letter-spacing: .22em;
	color: var(--clair);
	background: rgba(10, 13, 11, 0.6);
	border: 1px solid rgba(242, 244, 241, 0.28);
}

/* ---------- SECTIONS ------------------------------------------------ */

/* ---------- BLOCS DE CONTENU ---------------------------------------- */
/* Chaque bloc est un compartiment : trait de séparation en haut,
   respiration identique au-dessus et en dessous.                      */

.cbm-section {
	padding: clamp(2.6rem, 7vw, 4.5rem) var(--marge) clamp(3.5rem, 9vw, 6rem);
	border-top: 1px solid var(--trait);
}
.cbm-section--etroite > * { max-width: 44rem; margin-inline: auto; }

/* L'ancre vise le titre du bloc, qui se cale juste sous le menu. */
.cbm-entete-section {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 1rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
	padding-bottom: .8rem; border-bottom: 1px solid var(--trait);
	scroll-margin-top: calc(var(--entete-h) + 1.1rem);
}
.admin-bar .cbm-entete-section {
	scroll-margin-top: calc(var(--entete-h) + 32px + 1.1rem);
}
@media screen and (max-width: 782px) {
	.admin-bar .cbm-entete-section { scroll-margin-top: calc(var(--entete-h) + 1.1rem); }
}
.cbm-entete-section h2 {
	margin: 0;
	font-size: clamp(.72rem, 1.8vw, .8rem);
	font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
.cbm-compte {
	margin: 0; font-size: .68rem; letter-spacing: .16em; color: var(--lichen);
}

/* ---------- GRILLE EN MAÇONNERIE ------------------------------------ */
/* Aucun recadrage : chaque photographie garde son format d'origine.  */

.cbm-grille { columns: 2; column-gap: .5rem; }

@media (min-width: 700px)  { .cbm-grille { columns: 3; column-gap: .7rem; } }
@media (min-width: 1150px) { .cbm-grille { columns: 4; column-gap: .8rem; } }

.cbm-vignette {
	position: relative; display: block; width: 100%;
	break-inside: avoid; margin: 0 0 .5rem;
	padding: 0; border: 0; background: none; cursor: pointer;
	line-height: 0;
}
@media (min-width: 700px) { .cbm-vignette { margin-bottom: .7rem; } }

.cbm-vignette img { width: 100%; transition: opacity .4s, transform .6s; }
.cbm-vignette:hover img { opacity: .82; transform: scale(1.012); }

.cbm-vignette .cbm-tag { opacity: .62; transition: opacity .3s; }
.cbm-vignette:hover .cbm-tag,
.cbm-vignette:focus-visible .cbm-tag { opacity: 1; }

.cbm-note-reference {
	margin: 1.6rem 0 0;
	font-size: .7rem; letter-spacing: .1em;
	color: var(--lichen);
}

.cbm-vide {
	font-family: var(--recit); font-style: italic; color: var(--lichen);
}

/* ---------- RÉCIT --------------------------------------------------- */

.cbm-recit p {
	font-family: var(--recit);
	font-size: 1.06rem;
	line-height: 1.85;
	color: rgba(242, 244, 241, 0.84);
	margin: 0 0 1.3rem;
}

.cbm-bouton {
	display: inline-block; margin-top: .4rem;
	padding: .78rem 1.6rem;
	font-family: var(--titre);
	font-size: .72rem; letter-spacing: .19em; text-transform: uppercase;
	color: var(--clair); text-decoration: none;
	border: 1px solid var(--lichen);
	transition: background .25s, color .25s;
}
.cbm-bouton:hover { background: var(--clair); color: var(--noir); border-color: var(--clair); }

.cbm-a-completer {
	display: inline-block; margin: .4rem 0 0;
	font-family: var(--titre); font-size: .66rem;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--lichen);
	border: 1px dashed rgba(140, 158, 143, 0.5);
	padding: .5rem .9rem;
}

/* ---------- RÉSEAUX SOCIAUX ----------------------------------------- */

.cbm-reseaux {
	display: flex; align-items: center; gap: .9rem;
	margin-top: 1.6rem;
}

.cbm-reseau {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	color: var(--lichen);
	border: 1px solid var(--trait);
	border-radius: 50%;
	transition: color .25s, border-color .25s, transform .25s;
}
.cbm-reseau svg { width: 22px; height: 22px; }
.cbm-reseau:hover {
	border-color: var(--lichen);
	background: rgba(242, 244, 241, 0.04);
	transform: translateY(-2px);
}

/* ---------- OUTILS DE L'EN-TÊTE ------------------------------------- */

.cbm-outils {
	flex: 0 0 auto;
	display: flex; align-items: center; gap: .15rem;
}

.cbm-son {
	width: 40px; height: 40px; padding: 0;
	display: grid; place-items: center;
	background: none; border: 0; cursor: pointer;
	color: var(--lichen);
	transition: color .25s;
}
.cbm-son:hover { color: var(--clair); }
.cbm-son svg { width: 20px; height: 20px; }

.cbm-son .cbm-son-coupe { display: none; }
.cbm-son.est-coupe .cbm-son-actif { display: none; }
.cbm-son.est-coupe .cbm-son-coupe { display: block; }
.cbm-son.est-coupe { color: rgba(242, 244, 241, 0.3); }

/* ---------- GRILLE TARIFAIRE ---------------------------------------- */

.cbm-tarifs h2, .cbm-tarifs h3 {
	margin: 2.4rem 0 1rem;
	font-family: var(--titre);
	font-size: .72rem; font-weight: 600;
	letter-spacing: .26em; text-transform: uppercase;
	color: var(--lichen);
}
.cbm-tarifs > :first-child { margin-top: 0; }

.cbm-tarifs p { margin: 0 0 1.1rem; }

.cbm-tarifs strong {
	display: block;
	font-family: var(--titre);
	font-size: .95rem; font-weight: 600;
	letter-spacing: .04em;
	color: var(--clair);
	margin-bottom: .15rem;
}

.cbm-tarifs ul { margin: 0 0 1.3rem; padding-left: 1.1rem; }
.cbm-tarifs li {
	font-family: var(--recit);
	line-height: 1.8;
	color: rgba(242, 244, 241, 0.84);
	margin-bottom: .4rem;
}

/* ---------- PAGES DE DOCUMENTS -------------------------------------- */

.cbm-retour {
	flex: 0 0 auto;
	font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--lichen); text-decoration: none;
	padding-bottom: 3px; border-bottom: 1px solid transparent;
	transition: color .25s, border-color .25s;
}
.cbm-retour:hover { color: var(--clair); border-bottom-color: var(--lichen); }

.cbm-document {
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 8vw, 5rem) var(--marge) clamp(3rem, 9vw, 5rem);
}

.cbm-document-titre {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--trait);
	font-size: clamp(1.5rem, 5vw, 2.2rem);
	font-weight: 700; letter-spacing: .01em; line-height: 1.2;
}

.cbm-document-contenu h2 {
	margin: 2.8rem 0 .9rem;
	font-family: var(--titre);
	font-size: .74rem; font-weight: 600;
	letter-spacing: .26em; text-transform: uppercase;
	color: var(--lichen);
}
.cbm-document-contenu h3 {
	margin: 2.2rem 0 .8rem;
	font-family: var(--titre);
	font-size: .84rem; font-weight: 600;
	letter-spacing: .06em;
	color: var(--clair);
}
.cbm-document-contenu > :first-child { margin-top: 0; }

.cbm-document-contenu p,
.cbm-document-contenu li {
	font-family: var(--recit);
	font-size: 1rem; line-height: 1.85;
	color: rgba(242, 244, 241, 0.82);
}
.cbm-document-contenu p { margin: 0 0 1.1rem; }
.cbm-document-contenu ul { margin: 0 0 1.3rem; padding-left: 1.2rem; }
.cbm-document-contenu li { margin-bottom: .35rem; }

/* Ici le gras reste dans le texte : il souligne un mot, pas un titre. */
.cbm-document-contenu strong { color: var(--clair); font-weight: 600; }

.cbm-document-contenu a { color: var(--lichen); }

.cbm-tarifs h2 {
	margin: 2.8rem 0 1.2rem;
	font-family: var(--titre);
	font-size: .72rem; font-weight: 600;
	letter-spacing: .28em; text-transform: uppercase;
	color: var(--lichen);
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--trait);
}
.cbm-tarifs > :first-child { margin-top: 0; }

.cbm-tarifs p {
	margin: 0 0 1rem;
	font-family: var(--recit);
	line-height: 1.8;
	color: rgba(242, 244, 241, 0.8);
}

/* Chaque formule est une carte, pour qu'on la repère d'un coup d'œil. */
.cbm-tarifs .wp-block-group {
	margin: 0 0 .9rem;
	padding: clamp(1.2rem, 3.5vw, 1.7rem);
	border: 1px solid var(--trait);
	background: var(--profond);
	transition: border-color .3s;
}
.cbm-tarifs .wp-block-group:hover { border-color: var(--lichen); }

.cbm-tarifs h3 {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .8rem;
	margin: 0 0 .7rem;
}

.cbm-prix {
	font-family: var(--titre);
	font-size: clamp(1.55rem, 5.5vw, 2.05rem);
	font-weight: 700; letter-spacing: -.01em; line-height: 1;
	color: var(--clair);
}

.cbm-nom {
	font-family: var(--titre);
	font-size: .68rem; font-weight: 600;
	letter-spacing: .22em; text-transform: uppercase;
	color: var(--lichen);
}

.cbm-tarifs .wp-block-group p { margin: 0 0 .5rem; font-size: .95rem; }

.cbm-tarifs ul { margin: 0; padding: 0; list-style: none; }
.cbm-tarifs li {
	position: relative;
	margin: 0 0 .3rem;
	padding-left: 1.1rem;
	font-family: var(--recit);
	font-size: .95rem; line-height: 1.7;
	color: rgba(242, 244, 241, 0.72);
}
.cbm-tarifs li::before {
	content: ""; position: absolute; left: 0; top: .85em;
	width: 6px; height: 1px; background: var(--lichen);
}

.cbm-tarifs em {
	display: block;
	margin-top: 1.2rem;
	padding-left: .9rem;
	border-left: 2px solid var(--trait);
	font-style: normal;
	font-size: .88rem;
	color: rgba(242, 244, 241, 0.6);
}

/* ---------- PIED ---------------------------------------------------- */

.cbm-pied {
	padding: clamp(2.5rem, 7vw, 4rem) var(--marge);
	border-top: 1px solid var(--trait);
	text-align: center;
	font-size: .74rem; line-height: 1.9;
	color: rgba(242, 244, 241, 0.42);
}
.cbm-droits { margin: 0 0 1.4rem; }
.cbm-mentions {
	margin: 0;
	font-size: .68rem; letter-spacing: .06em;
	color: rgba(242, 244, 241, 0.3);
}
.cbm-mentions span { margin: 0 .35rem; }

.cbm-mentions a { color: rgba(242, 244, 241, 0.55); text-decoration: none; border-bottom: 1px solid rgba(242, 244, 241, 0.2); transition: color .25s, border-color .25s; }
.cbm-mentions a:hover { color: var(--clair); border-bottom-color: var(--lichen); }

.cbm-credit {
	margin: 1.1rem 0 0;
	font-size: .64rem; letter-spacing: .06em;
	color: rgba(242, 244, 241, 0.22);
}

/* ---------- BANDEAU QOIOT ------------------------------------------- */
/* Identité QOIoT : bleu nuit et or. Volontairement plus sobre que la
   maquette d'origine — pas de particules — pour ne pas concurrencer
   les photographies. */

.cbm-pub {
	position: fixed;
	left: 50%; bottom: 18px;
	z-index: 250;
	width: calc(100% - 32px); max-width: 940px;
	display: flex; align-items: stretch;
	background: #0B1020;
	border: 1px solid rgba(30, 58, 95, 0.75);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65);
	transform: translate(-50%, 160%);
	opacity: 0;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
}
.cbm-pub[hidden] { display: flex; }
.cbm-pub.est-visible { transform: translate(-50%, 0); opacity: 1; }

/* Bordure en dégradé qui circule lentement. */
.cbm-pub::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: 12px;
	padding: 1.5px;
	background: linear-gradient(90deg, #1E3A5F, #C9A227, #3B82F6, #C9A227, #1E3A5F);
	background-size: 400% 100%;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: cbm-pub-bordure 8s linear infinite;
	pointer-events: none; opacity: .7; z-index: 2;
}
@keyframes cbm-pub-bordure {
	from { background-position: 0% 50%; }
	to   { background-position: 400% 50%; }
}

/* Halo bleu qui respire derrière le contenu. */
.cbm-pub::after {
	content: "";
	position: absolute; inset: -20%;
	background: radial-gradient(ellipse at 30% 50%, rgba(30, 58, 95, 0.28), transparent 60%);
	animation: cbm-pub-halo 7s ease-in-out infinite alternate;
	pointer-events: none; z-index: 0;
}
@keyframes cbm-pub-halo {
	from { opacity: .4; transform: scale(1); }
	to   { opacity: .75; transform: scale(1.05); }
}

/* Particules dorées qui montent doucement. */
.cbm-pub-particules {
	position: absolute; inset: 0;
	overflow: hidden; pointer-events: none; z-index: 1;
}
.cbm-pub-particules span {
	position: absolute;
	width: 3px; height: 3px;
	background: #C9A227; border-radius: 50%;
	opacity: 0;
	animation: cbm-pub-particule 12s linear infinite;
}
.cbm-pub-particules span:nth-child(1) { left: 25%; top: 80%; animation-delay: 0s;   width: 2px; height: 2px; }
.cbm-pub-particules span:nth-child(2) { left: 55%; top: 70%; animation-delay: 3s;   background: #3B82F6; }
.cbm-pub-particules span:nth-child(3) { left: 75%; top: 85%; animation-delay: 6s; }
.cbm-pub-particules span:nth-child(4) { left: 40%; top: 60%; animation-delay: 1.5s; background: #60A5FA; width: 2px; height: 2px; }
.cbm-pub-particules span:nth-child(5) { left: 85%; top: 50%; animation-delay: 4.5s; }
@keyframes cbm-pub-particule {
	0%   { transform: translateY(0) scale(0); opacity: 0; }
	10%  { transform: translateY(-10px) scale(1); opacity: .5; }
	90%  { opacity: .3; }
	100% { transform: translateY(-120px) scale(.5); opacity: 0; }
}

.cbm-pub-lien {
	flex: 1;
	position: relative; z-index: 3;
	display: flex; align-items: center; gap: 0;
	text-decoration: none; color: #E2E8F0;
}

.cbm-pub-logo {
	flex: 0 0 auto;
	width: 190px; padding: 18px;
	display: grid; place-items: center;
	background: rgba(0, 0, 0, 0.35);
	border-right: 1px solid rgba(30, 58, 95, 0.6);
}
.cbm-pub-logo img {
	max-width: 100%; height: auto;
	animation: cbm-pub-souffle 5s ease-in-out infinite;
}
@keyframes cbm-pub-souffle {
	0%, 100% { filter: drop-shadow(0 0 12px rgba(30, 58, 95, .5)); transform: scale(1); }
	50%      { filter: drop-shadow(0 0 20px rgba(201, 162, 39, .35)); transform: scale(1.02); }
}

.cbm-pub-texte {
	display: flex; flex-direction: column; gap: 6px;
	padding: 18px 26px;
	font-family: var(--titre);
}

/* Les lignes se posent l'une après l'autre. */
.cbm-pub-ligne {
	font-size: .92rem; line-height: 1.45;
	opacity: 0;
	transform: translateY(14px);
	filter: blur(3px);
	transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1), filter .8s ease;
}
.cbm-pub.est-visible .cbm-pub-ligne { opacity: 1; transform: none; filter: none; }
.cbm-pub.est-visible .cbm-pub-ligne:nth-child(1) { transition-delay: .35s; }
.cbm-pub.est-visible .cbm-pub-ligne:nth-child(2) { transition-delay: .75s; }
.cbm-pub.est-visible .cbm-pub-ligne:nth-child(3) { transition-delay: 1.15s; }
.cbm-pub.est-visible .cbm-pub-ligne:nth-child(4) { transition-delay: 1.55s; }
.cbm-pub.est-visible .cbm-pub-ligne:nth-child(5) { transition-delay: 1.95s; }

/* Or brossé, en mouvement. */
.cbm-pub-ligne em {
	font-style: normal; font-weight: 600;
	color: #C9A227;
	background: linear-gradient(90deg, #C9A227 0%, #F0D78C 40%, #C9A227 60%, #A67C00 100%);
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: cbm-pub-brillance 4s linear infinite;
}
@keyframes cbm-pub-brillance {
	from { background-position: 0% center; }
	to   { background-position: 200% center; }
}

.cbm-pub-marque { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }

.cbm-pub-secondaire { font-size: .78rem; color: #94A3B8; letter-spacing: .02em; }

.cbm-pub-experience::before {
	content: ""; display: inline-block;
	width: 5px; height: 5px; margin-right: 8px;
	border-radius: 50%; background: #C9A227;
	vertical-align: middle;
}

.cbm-pub-fermer {
	position: absolute; top: 8px; right: 10px;
	width: 28px; height: 28px; padding: 0;
	display: grid; place-items: center;
	font-size: 1.1rem; line-height: 1;
	color: #94A3B8; cursor: pointer;
	background: rgba(15, 23, 42, 0.75);
	border: 1px solid rgba(30, 58, 95, 0.7);
	border-radius: 50%;
	transition: color .25s, border-color .25s, transform .3s;
}
.cbm-pub-fermer:hover {
	color: #C9A227; border-color: rgba(201, 162, 39, 0.6);
	transform: rotate(90deg);
}

@media (max-width: 760px) {
	.cbm-pub {
		flex-direction: column;
		width: calc(100% - 16px);
		bottom: 8px;
		border-radius: 10px;
	}
	.cbm-pub-lien { flex-direction: column; }
	.cbm-pub-logo {
		width: 100%; padding: 12px;
		border-right: 0;
		border-bottom: 1px solid rgba(30, 58, 95, 0.6);
	}
	.cbm-pub-logo img { max-height: 64px; width: auto; }
	.cbm-pub-texte {
		padding: 14px 18px 18px;
		text-align: center;
		gap: 5px;
	}
	.cbm-pub-ligne { font-size: .82rem; line-height: 1.4; }
	.cbm-pub-marque { font-size: .95rem; }
	.cbm-pub-secondaire { font-size: .7rem; }
	.cbm-pub-fermer { top: 6px; right: 6px; width: 32px; height: 32px; }
	/* Les particules coûtent cher en défilement sur mobile. */
	.cbm-pub-particules { display: none; }
}

@media (max-width: 380px) {
	.cbm-pub-ligne { font-size: .78rem; }
	.cbm-pub-experience { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cbm-pub { transition: opacity .3s ease; transform: translate(-50%, 0); }
	.cbm-pub::before,
	.cbm-pub::after,
	.cbm-pub-particules,
	.cbm-pub-logo img,
	.cbm-pub-ligne em { animation: none; }
	.cbm-pub-ligne { opacity: 1; transform: none; filter: none; transition: none; }
	.cbm-pub-ligne em { -webkit-text-fill-color: #C9A227; }
}

/* ---------- VISIONNEUSE --------------------------------------------- */

/* Le masquage doit l'emporter sur les affichages définis plus haut. */
.cbm-visionneuse [hidden] { display: none !important; }

/* Portrait : la photo de profil garde sa forme ronde. */
.cbm-visionneuse.est-portrait .cbm-visionneuse-cadre img {
	width: min(74vw, 420px);
	height: min(74vw, 420px);
	max-height: none;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid var(--trait);
}

.cbm-visionneuse {
	position: fixed; inset: 0; z-index: 300;
	display: grid; place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(10, 13, 11, 0.97);
}
.cbm-visionneuse[hidden] { display: none; }

.cbm-visionneuse-cadre {
	margin: 0; max-width: 100%;
	display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.cbm-visionneuse-cadre img {
	max-width: 100%; max-height: 68vh; width: auto; object-fit: contain;
}
.cbm-visionneuse-cadre figcaption {
	display: flex; flex-direction: column; align-items: center;
	gap: .7rem; max-width: 46rem; text-align: center;
}

.cbm-visionneuse-titre {
	margin: 0;
	font-family: var(--titre);
	font-size: clamp(1.05rem, 3vw, 1.35rem);
	font-weight: 600; letter-spacing: .01em;
	color: var(--clair);
}
.cbm-visionneuse-titre[hidden],
.cbm-visionneuse-recit[hidden] { display: none; }

.cbm-visionneuse-recit {
	margin: 0;
	font-family: var(--recit);
	font-size: .98rem; line-height: 1.75;
	color: rgba(242, 244, 241, 0.78);
}

.cbm-visionneuse-meta {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: center; gap: .8rem;
	font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--lichen);
}
.cbm-visionneuse-ref {
	border: 1px solid rgba(242, 244, 241, 0.28);
	padding: .18rem .55rem; color: var(--clair);
	letter-spacing: .08em;
}
.cbm-commande, .cbm-commande-attente { margin-top: .3rem; }

.cbm-visionneuse > button {
	position: absolute; background: none; border: 0; cursor: pointer;
	color: var(--clair); opacity: .55; transition: opacity .2s;
	line-height: 1;
}
.cbm-visionneuse > button:hover { opacity: 1; }

.cbm-fermer      { top: 1rem; right: 1.2rem; font-size: 2.2rem; }
.cbm-precedente,
.cbm-suivante    { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem; }
.cbm-precedente  { left: .2rem; }
.cbm-suivante    { right: .2rem; }

/* ---------- PRÉFÉRENCES UTILISATEUR --------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cbm-titre-blason,
	.cbm-devise,
	.cbm-defiler { animation: none; opacity: 1; transform: none; }
	/* Les halos restent, seul leur mouvement s'arrête. */
	body::before,
	.cbm-ouverture::before,
	.cbm-ouverture::after { animation: none; }
	.cbm-vue { transition: none; }
	.cbm-vue.est-active img { animation: none; }
	.cbm-vignette img { transition: none; }
	.cbm-vignette:hover img { transform: none; }
}
