/* Paper General : feuille de style du site.
   Direction : la carte de papier posée sur la table. Le papier crème porte
   le texte, la garance porte l'étendard et l'action, l'or souligne sans
   jamais remplir, l'encre écrit. Marcellus pour les titres (capitales
   espacées, comme les bandeaux de menu du jeu), Barlow pour le texte.
   Écrite à la main : ce fichier n'est pas généré. */

@font-face {
	font-family: "Marcellus";
	src: url("/fonts/Marcellus-Regular.woff") format("woff");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("/fonts/Barlow-Regular.woff") format("woff");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("/fonts/Barlow-SemiBold.woff") format("woff");
	font-weight: 600;
	font-display: swap;
}

:root {
	--papier: #f7eed8;
	--fond: #e9d9b4;
	--velin: #e3d2ae;
	--encre: #2b2a26;
	--bistre: #5e5140;
	--bleu: #22386b;
	--garance: #8c1c24;
	--garance-brulee: #651218;
	--or: #c79a3a;
	--or-pale: #e3c877;
	--filet: #c9b68a;
	--titre: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--texte: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gouttiere: 16px;
	--large: 1120px;
	--ombre-dure: 0 4px 0 var(--garance-brulee);
	--hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='84' viewBox='0 0 48 84'%3E%3Cpath d='M0 14L24 0l24 14v28L24 56 0 42zM24 56v28' fill='none' stroke='%23c9b68a' stroke-width='1'/%3E%3C/svg%3E");
}
@media (min-width: 700px) {
	:root { --gouttiere: 32px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--fond);
	color: var(--encre);
	font: 400 1.0625rem/1.6 var(--texte);
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0 0 0.9em; }
p, li, h3, h4 { overflow-wrap: break-word; }
/* Les mots composés allemands débordent d'une colonne de téléphone : on les
   coupe là, et seulement là. */
@media (max-width: 699px) {
	:lang(de) p, :lang(de) li, :lang(de) h3 { hyphens: auto; }
}
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--bleu); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--garance); }
:focus-visible {
	outline: 3px solid var(--bleu);
	outline-offset: 3px;
	border-radius: 2px;
}
/* Sur la garance et sur l'encre, le bleu ne se verrait pas : l'or pâle. */
.etendard :focus-visible, .cloture :focus-visible, .pied :focus-visible, .visionneuse :focus-visible {
	outline-color: var(--or-pale);
}

.sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.evitement {
	position: absolute;
	left: var(--gouttiere); top: -100px;
	z-index: 50;
	background: var(--papier);
	color: var(--encre);
	padding: 10px 16px;
	border: 2px solid var(--encre);
	font-weight: 600;
}
.evitement:focus { top: 10px; }

/* --- L'étendard : le bandeau de garance du haut, comme les menus du jeu ---- */

.etendard {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--garance);
	color: var(--papier);
	border-bottom: 3px solid var(--or);
	padding-top: env(safe-area-inset-top);
}
.etendard-int {
	max-width: var(--large);
	margin: 0 auto;
	padding: 0 var(--gouttiere);
	height: 56px;
	display: flex;
	align-items: center;
	gap: 20px;
}
.marque {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--papier);
	text-decoration: none;
	font-family: var(--titre);
	font-size: 1.05rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.marque:hover { color: #fff; }
.marque img {
	width: 32px; height: 32px;
	border-radius: 7px;
	box-shadow: 0 0 0 1px rgba(247, 238, 216, 0.5);
}
.nav-principale { margin-left: auto; display: none; }
.nav-principale ul { display: flex; gap: 4px; }
.nav-principale a {
	display: block;
	padding: 6px 10px;
	color: var(--papier);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
}
.nav-principale a:hover { color: #fff; border-bottom-color: var(--or-pale); }
.nav-principale a[aria-current] { border-bottom-color: var(--or); }
@media (min-width: 860px) {
	.nav-principale { display: block; }
}

.langues { position: relative; margin-left: auto; }
.nav-principale + .langues { margin-left: 0; }
@media (min-width: 860px) {
	.langues { margin-left: 0; }
}
.langues summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(247, 238, 216, 0.45);
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after {
	content: "";
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.langues[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.langues summary:hover { background: var(--garance-brulee); }
.langues ul {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 180px;
	background: var(--papier);
	border: 1px solid var(--filet);
	border-radius: 4px;
	box-shadow: 0 4px 0 rgba(101, 18, 24, 0.25), 0 14px 30px -10px rgba(43, 42, 38, 0.4);
	padding: 6px 0;
}
.langues a {
	display: block;
	padding: 10px 16px;
	color: var(--encre);
	text-decoration: none;
}
.langues a:hover { background: var(--velin); color: var(--encre); }
.langues a[aria-current] {
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--garance);
}

/* --- Titres de section : capitales espacées entre deux filets d'or -------- */

.titre-section {
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--titre);
	font-size: clamp(1.45rem, 4.6vw, 2.1rem);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--garance);
	text-align: center;
	margin-bottom: 18px;
}
.titre-section::before, .titre-section::after {
	content: "";
	flex: 1;
	height: 0;
	border-top: 1px solid var(--or);
	border-bottom: 1px solid var(--or);
	padding-top: 2px;
	min-width: 24px;
}
.titre-section span { flex: 0 1 auto; padding-left: 0.2em; }

.intro {
	max-width: 40em;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 1.125rem;
	color: var(--bistre);
}

/* --- Sections ------------------------------------------------------------- */

.section { padding: 64px 0; }
.section-int {
	max-width: var(--large);
	margin: 0 auto;
	padding: 0 var(--gouttiere);
}
/* La feuille de carte : papier crème, quadrillage d'hexagones à peine posé. */
.feuille-section {
	background-color: var(--papier);
	background-image: linear-gradient(rgba(247, 238, 216, 0.88), rgba(247, 238, 216, 0.88)), var(--hex);
	border-top: 1px solid var(--filet);
	border-bottom: 1px solid var(--filet);
}
/* La table : le fond plus soutenu sur lequel on pose des cartes. */
.table-section { background: var(--fond); }

/* --- Bouton de téléchargement ---------------------------------------------- */

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 26px;
	margin: 0;
	font-family: var(--titre);
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
}
a.bouton {
	background: var(--garance);
	color: var(--papier);
	box-shadow: var(--ombre-dure);
	transform: translateY(0);
}
a.bouton:hover { background: #9e2530; color: #fff; }
a.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--garance-brulee); }
.bouton-picto { width: 22px; height: 22px; flex: none; }
/* Pas encore publié : un cartouche à double filet, qui ne se fait pas passer
   pour un bouton. */
.bouton-bientot {
	color: var(--garance);
	background: var(--papier);
	border: 1px solid var(--garance);
	outline: 1px solid var(--garance);
	outline-offset: 3px;
	cursor: default;
}
.bouton-clair.bouton-bientot {
	color: var(--papier);
	background: transparent;
	border-color: var(--or-pale);
	outline-color: var(--or-pale);
}
a.bouton.bouton-clair {
	background: var(--papier);
	color: var(--garance);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

/* Le téléchargement et, à côté, la bêta Android : bouton second, au filet. */
.boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.cloture .boutons { justify-content: center; }
a.bouton.bouton-second {
	background: var(--papier);
	color: var(--garance);
	border: 1px solid var(--garance);
	box-shadow: none;
}
a.bouton.bouton-second:hover { background: #fff; color: #9e2530; }
a.bouton.bouton-second:active { transform: translateY(1px); box-shadow: none; }
a.bouton.bouton-second.bouton-clair {
	background: transparent;
	color: var(--papier);
	border-color: var(--or-pale);
	box-shadow: none;
}
a.bouton.bouton-second.bouton-clair:hover { background: rgba(247, 238, 216, 0.12); color: #fff; }

.plateformes {
	font-size: 0.95rem;
	color: var(--bistre);
	margin: 0;
	letter-spacing: 0.02em;
}

/* --- Le téléphone dessiné en CSS --------------------------------------------- */

.telephone {
	position: relative;
	padding: 3.4%;
	background: linear-gradient(145deg, #3a3631, #1c1a17 40%, #2a2723);
	border-radius: 14% / 6.6%;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.12),
		0 1px 0 1px rgba(0, 0, 0, 0.25),
		0 22px 40px -18px rgba(43, 42, 38, 0.55);
}
.telephone::after {
	content: "";
	position: absolute;
	top: 4.6%;
	left: 50%;
	width: 25%;
	height: 2.3%;
	transform: translateX(-50%);
	background: #0b0a09;
	border-radius: 999px;
	pointer-events: none;
}
.ecran {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1290 / 2796;
	border-radius: 11% / 5.1%;
	background: var(--velin);
}
.ecran img, .ecran video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- La une ------------------------------------------------------------------ */

.une {
	position: relative;
	overflow: hidden;
	background-color: var(--papier);
	background-image:
		radial-gradient(ellipse at 70% 40%, rgba(247, 238, 216, 0) 0%, rgba(233, 217, 180, 0.55) 100%),
		linear-gradient(rgba(247, 238, 216, 0.82), rgba(247, 238, 216, 0.82)),
		var(--hex);
	border-bottom: 1px solid var(--filet);
}
.une-int {
	max-width: var(--large);
	margin: 0 auto;
	padding: 40px var(--gouttiere) 56px;
	display: grid;
	gap: 40px;
}
.surtitre {
	font-family: var(--titre);
	font-size: 0.85rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--garance);
	margin-bottom: 14px;
}
.une h1 { margin-bottom: 22px; }
.une .nom {
	display: block;
	font-family: var(--titre);
	font-size: clamp(2.5rem, 12.5vw, 5.4rem);
	line-height: 0.98;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--encre);
}
.une .devise {
	display: block;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 3px double var(--or);
	font-family: var(--titre);
	font-size: clamp(1.35rem, 5.2vw, 2rem);
	line-height: 1.25;
	color: var(--bleu);
	max-width: 22em;
}
.accroche {
	font-size: 1.1875rem;
	line-height: 1.55;
	max-width: 32em;
	margin-bottom: 28px;
}
.appel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-bottom: 30px;
}
.atouts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}
.atouts li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 10px;
	border: 1px solid var(--filet);
	border-radius: 999px;
	background: rgba(247, 238, 216, 0.8);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--encre);
}
.atouts li::before {
	content: "";
	width: 8px; height: 8px;
	background: var(--or);
	transform: rotate(45deg);
	flex: none;
}

.une-media {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 12px 0 8px;
}
/* La feuille de carte posée de travers derrière le téléphone. */
.feuille {
	position: absolute;
	top: 4%;
	bottom: 2%;
	left: 50%;
	width: min(92%, 400px);
	transform: translateX(-50%) rotate(-4deg);
	background-color: var(--papier);
	background-image: linear-gradient(rgba(247, 238, 216, 0.55), rgba(247, 238, 216, 0.55)), var(--hex);
	border: 1px solid var(--filet);
	outline: 1px solid var(--filet);
	outline-offset: -10px;
	box-shadow: 0 2px 0 rgba(101, 18, 24, 0.08), 0 24px 40px -24px rgba(43, 42, 38, 0.45);
}
.video-cadre {
	position: relative;
	margin: 0;
	width: min(68vw, 300px);
}
.video-commandes {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
	position: relative;
}
.video-commandes[hidden], .galerie-nav[hidden] { display: none; }

.rond {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--garance-brulee);
	border-radius: 50%;
	background: var(--garance);
	color: var(--papier);
	cursor: pointer;
	box-shadow: 0 3px 0 var(--garance-brulee);
}
.rond:hover { background: #9e2530; }
.rond:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--garance-brulee); }
.rond svg { width: 22px; height: 22px; }
.rond[disabled] { opacity: 0.35; cursor: default; }
.video-lecture .icone-pause { display: none; }
.video-lecture.en-cours .icone-lecture { display: none; }
.video-lecture.en-cours .icone-pause { display: block; }
.video-son .barre { display: inline; }
.video-son .onde { display: none; }
.video-son[aria-pressed="true"] .barre { display: none; }
.video-son[aria-pressed="true"] .onde { display: inline; }

@media (min-width: 900px) {
	.une-int {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		align-items: center;
		padding-top: 64px;
		padding-bottom: 80px;
		gap: 56px;
	}
	.video-cadre { width: 310px; }
	.video-commandes {
		position: absolute;
		right: -66px;
		bottom: 10%;
		flex-direction: column;
		margin: 0;
	}
}

/* --- Le jeu en cinq points ------------------------------------------------- */

.points {
	display: grid;
	gap: 64px;
}
.point {
	display: grid;
	gap: 28px;
	align-items: center;
}
.point-texte { max-width: 34em; }
.numero {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	margin-bottom: 14px;
	border: 1px solid var(--or);
	outline: 1px solid var(--or);
	outline-offset: 3px;
	border-radius: 50%;
	font-family: var(--titre);
	font-size: 1.05rem;
	color: var(--garance);
	background: var(--papier);
}
.point h3 {
	font-family: var(--titre);
	font-size: clamp(1.45rem, 5vw, 1.9rem);
	line-height: 1.2;
	color: var(--encre);
	margin-bottom: 14px;
}
.point-image {
	margin: 0;
	justify-self: center;
	width: min(56vw, 240px);
}

.corps-liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 18px;
}
.corps-liste li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: var(--papier);
	border: 1px solid var(--filet);
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	hyphens: manual;
	min-width: 0;
}
.corps-liste li span:last-child { min-width: 0; }
.picto {
	width: 30px; height: 30px;
	flex: none;
	background: var(--bleu);
	-webkit-mask: var(--picto) center / contain no-repeat;
	mask: var(--picto) center / contain no-repeat;
}
.picto-infanterie { --picto: url("/media/icones/infanterie.webp"); }
.picto-cavalerie { --picto: url("/media/icones/cavalerie.webp"); }
.picto-canon { --picto: url("/media/icones/canon.webp"); }
.picto-grenadiers { --picto: url("/media/icones/grenadiers.webp"); }
.picto-mineurs { --picto: url("/media/icones/mineurs.webp"); }
.picto-eclaireurs { --picto: url("/media/icones/eclaireurs.webp"); }
.picto-voltigeurs { --picto: url("/media/icones/voltigeurs.webp"); }

.etiquettes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.etiquettes li {
	padding: 3px 12px;
	border: 1px solid var(--filet);
	border-radius: 999px;
	background: var(--papier);
	font-size: 0.92rem;
	font-weight: 600;
}

.liste-filets li {
	position: relative;
	padding: 10px 0 10px 26px;
	border-bottom: 1px solid var(--filet);
}
.liste-filets li:first-child { border-top: 1px solid var(--filet); }
.liste-filets li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.15em;
	width: 8px; height: 8px;
	background: var(--garance);
	transform: rotate(45deg);
}

@media (min-width: 900px) {
	.points { gap: 72px; }
	.point {
		grid-template-columns: minmax(0, 1fr) 270px;
		gap: 72px;
		padding: 0 6%;
	}
	.point:nth-child(even) { grid-template-columns: 270px minmax(0, 1fr); }
	.point:nth-child(even) .point-image { order: -1; }
	.point:nth-child(even) .point-texte { justify-self: end; }
	.point-image { width: 260px; }
}

.aussi {
	margin-top: 88px;
	padding-top: 36px;
	border-top: 1px solid var(--filet);
}
.aussi-titre {
	font-family: var(--titre);
	font-size: 1.1rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--garance);
	text-align: center;
	margin-bottom: 24px;
}
.aussi ul {
	display: grid;
	gap: 14px;
}
.aussi li {
	padding: 18px 20px;
	background: var(--papier);
	border: 1px solid var(--filet);
	border-radius: 4px;
	box-shadow: 0 3px 0 rgba(201, 182, 138, 0.6);
}
.aussi h4 {
	font-family: var(--titre);
	font-size: 1.2rem;
	color: var(--bleu);
	margin-bottom: 6px;
}
.aussi p { margin: 0; font-size: 1rem; color: var(--bistre); }
@media (min-width: 640px) {
	.aussi ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.aussi ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Campagnes : des fiches posées sur la table ------------------------------ */

.campagnes {
	display: grid;
	gap: 40px;
	align-items: start;
}
.campagnes-cartes { display: grid; gap: 18px; }
.campagne {
	position: relative;
	padding: 22px 22px 18px;
	background: var(--papier);
	border: 1px solid var(--filet);
	border-radius: 4px;
	box-shadow: 0 3px 0 rgba(101, 18, 24, 0.12), 0 18px 30px -22px rgba(43, 42, 38, 0.5);
}
.campagne h3 {
	font-family: var(--titre);
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--encre);
	margin-bottom: 6px;
}
.campagne p:last-child { margin-bottom: 0; }
.campagne-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--bistre);
	letter-spacing: 0.03em;
	margin-bottom: 10px;
}
.campagne-meta span { white-space: nowrap; }
.campagnes-autres .campagne-meta { flex-direction: column; gap: 0; }
.campagnes-autres .campagne-meta .compte::before { display: none; }
.campagne-meta .compte::before {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-right: 14px;
	vertical-align: 0.2em;
	background: var(--or);
	transform: rotate(45deg);
}
.campagne-statut {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bistre);
	margin-bottom: 8px;
}
.campagne-offerte {
	padding: 30px 26px 26px;
	border-top: 6px solid var(--garance);
	background-image: linear-gradient(rgba(247, 238, 216, 0.9), rgba(247, 238, 216, 0.9)), var(--hex);
}
.campagne-offerte h3 { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--garance); }
.campagne-offerte p { font-size: 1.125rem; }
/* Le tampon « Offerte » : encre garance, de travers, comme un coup de tampon. */
.tampon {
	position: absolute;
	top: 18px;
	right: 18px;
	margin: 0;
	padding: 4px 12px;
	border: 2px solid var(--garance);
	outline: 1px solid var(--garance);
	outline-offset: 2px;
	border-radius: 3px;
	color: var(--garance);
	font-family: var(--titre);
	font-size: 0.95rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transform: rotate(6deg);
	background: rgba(247, 238, 216, 0.85);
}
.campagne-offerte h3 { padding-right: 120px; }
.campagnes-autres { display: grid; gap: 14px; }
.campagnes-image {
	margin: 0;
	justify-self: center;
	width: min(60vw, 280px);
	text-align: center;
}
.campagnes-image figcaption {
	margin-top: 14px;
	font-size: 0.95rem;
	color: var(--bistre);
}
@media (min-width: 640px) {
	.campagnes-autres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.campagnes-autres .campagne { padding: 18px 18px 16px; }
	.campagnes-autres h3 { font-size: 1.2rem; }
	.campagnes-autres p { font-size: 1rem; }
}
@media (min-width: 900px) {
	.campagnes { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
	.campagnes-image { width: 300px; }
}

/* --- Galerie ----------------------------------------------------------------- */

.galerie {
	--marge-galerie: max(var(--gouttiere), calc((100vw - var(--large)) / 2 + var(--gouttiere)));
	scroll-padding-inline: var(--marge-galerie);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--filet) transparent;
	padding: 8px 0 20px;
}
.galerie:focus-visible { outline-offset: -3px; }
.galerie-liste {
	display: flex;
	gap: 20px;
	width: max-content;
	padding: 0 var(--marge-galerie);
}
.vignette {
	scroll-snap-align: start;
	width: min(46vw, 210px);
}
@media (min-width: 900px) {
	.vignette { width: 220px; }
	.galerie-liste { gap: 28px; }
}
.vignette figure { margin: 0; }
.vignette-lien { display: block; border-radius: 14% / 6.6%; }
.vignette-lien:focus-visible { outline-offset: 4px; }
.vignette-lien .telephone { transition: transform 0.2s ease; }
.vignette-lien:hover .telephone { transform: translateY(-4px); }
.vignette figcaption {
	margin-top: 12px;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--encre);
}
.galerie-nav {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 8px;
}

.visionneuse {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(26, 21, 18, 0.92);
	color: var(--papier);
}
.visionneuse[open] {
	display: grid;
	place-items: center;
}
.visionneuse::backdrop { background: rgba(26, 21, 18, 0.6); }
.visionneuse figure {
	margin: 0;
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 56px 16px 24px;
	max-height: 100%;
}
.visionneuse img {
	width: auto;
	height: auto;
	max-height: calc(100vh - 140px);
	max-height: calc(100dvh - 140px);
	max-width: 100%;
	border-radius: 18px;
	box-shadow: 0 0 0 6px #1c1a17, 0 0 0 7px rgba(255, 255, 255, 0.15);
}
.visionneuse figcaption { font-weight: 600; text-align: center; }
.visionneuse .rond { position: absolute; }
.visionneuse-fermer { top: 12px; right: 12px; }
.visionneuse-prec { left: 12px; top: 50%; }
.visionneuse-suiv { right: 12px; top: 50%; }
@media (min-width: 700px) {
	.visionneuse-prec { left: 32px; }
	.visionneuse-suiv { right: 32px; }
	.visionneuse-fermer { top: 24px; right: 32px; }
}

/* --- Ce qui est gratuit -------------------------------------------------------- */

#modele .section-int { text-align: center; }
.laurier {
	width: 96px; height: 96px;
	margin: 0 auto 6px;
	background: var(--or);
	-webkit-mask: url("/media/laurier.webp") center / contain no-repeat;
	mask: url("/media/laurier.webp") center / contain no-repeat;
}
.modele {
	display: grid;
	gap: 16px;
	max-width: 980px;
	margin: 28px auto 0;
	text-align: left;
}
.modele li {
	padding: 24px 24px 20px;
	background: var(--papier);
	border: 1px solid var(--filet);
	border-radius: 4px;
	box-shadow: 0 3px 0 rgba(101, 18, 24, 0.12);
}
.modele h3 {
	font-family: var(--titre);
	font-size: 1.15rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--filet);
}
.modele p { margin: 0; }
.modele-gratuit { border-top: 6px solid var(--or) !important; }
.modele-gratuit h3 { color: var(--garance); }
.modele-gratuit p { font-size: 1.25rem; font-family: var(--titre); line-height: 1.35; }
.modele-achats h3 { color: var(--bleu); }
.modele-jamais h3 { color: var(--encre); }
.modele-note {
	margin: 26px 0 0;
	color: var(--bistre);
	font-weight: 600;
}
@media (min-width: 800px) {
	.modele { grid-template-columns: 1fr 1.3fr 1fr; }
}

/* --- Clôture : l'étendard à nouveau -------------------------------------------- */

.cloture {
	background: var(--garance);
	color: var(--papier);
	border-top: 3px solid var(--or);
	text-align: center;
}
.cloture-int {
	max-width: var(--large);
	margin: 0 auto;
	padding: 56px var(--gouttiere) 60px;
	display: grid;
	justify-items: center;
	gap: 22px;
}
.cloture-devise {
	margin: 0;
	font-family: var(--titre);
	font-size: clamp(1.6rem, 6vw, 2.6rem);
	line-height: 1.2;
	letter-spacing: 0.04em;
}
.cloture .plateformes { color: rgba(247, 238, 216, 0.85); }

/* --- Pied de page ---------------------------------------------------------------- */

.pied {
	background: var(--encre);
	color: #e9dfc7;
	border-top: 3px solid var(--or);
	padding-bottom: env(safe-area-inset-bottom);
}
.cloture + .pied, main:has(> .cloture:last-child) + .pied { border-top: 0; }
.pied-int {
	max-width: var(--large);
	margin: 0 auto;
	padding: 48px var(--gouttiere) 28px;
	display: grid;
	gap: 32px;
}
.pied a { color: #f3e6c4; text-decoration-color: rgba(227, 200, 119, 0.6); }
.pied a:hover { color: var(--or-pale); }
.pied h2 {
	font-family: var(--titre);
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--or-pale);
	margin-bottom: 12px;
}
.pied li { margin-bottom: 8px; }
.pied p { margin-bottom: 6px; }
.pied-nom {
	font-family: var(--titre);
	font-size: 1.4rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--papier);
}
.pied-devise { color: #d8cba9; }
.pied-editeur { font-size: 0.92rem; color: #b9ad90; }
.pied-langues { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 22px; }
.pied-langues a[aria-current] { color: var(--or-pale); text-decoration: none; font-weight: 600; }
.pied-droits {
	max-width: var(--large);
	margin: 0 auto;
	padding: 18px var(--gouttiere) 28px;
	border-top: 1px solid rgba(201, 182, 138, 0.25);
	font-size: 0.9rem;
	color: #b9ad90;
}
@media (min-width: 800px) {
	.pied-int { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; }
}

/* --- Pages de texte : assistance, confidentialité ------------------------------- */

.feuille-texte {
	padding: 40px var(--gouttiere) 72px;
	background-image: linear-gradient(rgba(233, 217, 180, 0.9), rgba(233, 217, 180, 0.9)), var(--hex);
}
.texte {
	max-width: 760px;
	margin: 0 auto;
	padding: 36px 22px 44px;
	background: var(--papier);
	border: 1px solid var(--filet);
	outline: 1px solid var(--filet);
	outline-offset: -8px;
	border-radius: 2px;
	box-shadow: 0 3px 0 rgba(101, 18, 24, 0.1), 0 24px 40px -28px rgba(43, 42, 38, 0.5);
}
@media (min-width: 700px) {
	.texte { padding: 56px 64px 64px; }
}
.texte h1 {
	font-family: var(--titre);
	font-size: clamp(1.7rem, 6vw, 2.4rem);
	line-height: 1.2;
	letter-spacing: 0.06em;
	color: var(--garance);
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 3px double var(--or);
}
.texte h2 {
	font-family: var(--titre);
	font-size: 1.3rem;
	line-height: 1.3;
	color: var(--bleu);
	margin: 32px 0 10px;
}
.texte .date { color: var(--bistre); font-size: 0.95rem; }
.texte a { hyphens: none; }
a[href^="mailto:"] { white-space: nowrap; hyphens: none; }

/* --- Mouvement réduit ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* --- Page de vote : les prochaines fonctionnalités ------------------------------ */

.vote-intro { font-size: 1.125rem; }
.vote-form { margin-top: 22px; }
.vote-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.vote-form legend {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	width: 100%;
	padding: 0 0 10px;
	font-family: var(--titre);
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	color: var(--bleu);
}
.vote-compteur {
	font-family: var(--texte);
	font-size: 0.95rem;
	letter-spacing: 0;
	color: var(--bistre);
}
.vote-options { display: grid; gap: 10px; }
.vote-ligne {
	background: #fbf5e4;
	border: 1px solid var(--filet);
	border-left: 5px solid var(--filet);
	border-radius: 4px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.vote-ligne.choisie { border-color: var(--garance); background: #fff9ea; }
.vote-option {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px 14px 12px;
	cursor: pointer;
}
.vote-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.vote-coche {
	flex: none;
	position: relative;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	background: var(--papier);
	border: 2px solid var(--bistre);
	border-radius: 4px;
}
.vote-option input:checked + .vote-coche { background: var(--garance); border-color: var(--garance); }
.vote-option input:checked + .vote-coche::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 2px;
	width: 7px;
	height: 13px;
	border: solid var(--papier);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.vote-option input:focus-visible + .vote-coche { outline: 3px solid var(--bleu); outline-offset: 2px; }
.vote-option input:disabled:not(:checked) + .vote-coche { opacity: 0.35; }
.vote-ligne:has(input:disabled:not(:checked)) .vote-corps { opacity: 0.6; }
.vote-ligne:has(input:disabled) .vote-option { cursor: default; }
.vote-corps { display: block; min-width: 0; }
.vote-titre {
	display: block;
	font-family: var(--titre);
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--encre);
}
.vote-texte { display: block; margin-top: 2px; font-size: 1rem; color: var(--bistre); }
.vote-part {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0 16px 14px 52px;
}
.vote-part[hidden] { display: none; }
.vote-jauge {
	flex: 1 1 auto;
	height: 10px;
	background: var(--velin);
	border-radius: 5px;
	overflow: hidden;
}
.vote-barre {
	display: block;
	width: 0;
	height: 100%;
	background: var(--or);
	border-radius: 5px;
	transition: width 0.5s ease;
}
.vote-ligne.choisie .vote-barre { background: var(--garance); }
.vote-pct {
	flex: none;
	min-width: 3.2em;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--encre);
}
.vote-etat { min-height: 1.6em; margin: 16px 0 14px; color: var(--bleu); font-weight: 600; }
.vote-etat.erreur { color: var(--garance); }
button.bouton {
	border: 0;
	cursor: pointer;
	background: var(--garance);
	color: var(--papier);
	box-shadow: var(--ombre-dure);
}
button.bouton:hover { background: #9e2530; }
button.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--garance-brulee); }
button.bouton[disabled] {
	background: var(--velin);
	color: var(--bistre);
	box-shadow: none;
	cursor: default;
	transform: none;
}
.vote-fait button.bouton {
	background: var(--papier);
	color: var(--garance);
	box-shadow: none;
	border: 1px solid var(--garance);
}
.vote-sans-js { color: var(--garance); font-weight: 600; }
.vote-note {
	margin: 28px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--filet);
	font-size: 0.95rem;
	color: var(--bistre);
}
