/* Fontes de marque auto-hébergées — remplace le CDN Google du prototype.
   Le design system impose l'auto-hébergement (aucune dépendance CDN). */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("../fonts/PlayfairDisplay_wght_.ttf") format("truetype-variations")}
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:400 900;font-display:swap;
  src:url("../fonts/PlayfairDisplay-Italic_wght_.ttf") format("truetype-variations")}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../fonts/Inter_opsz_wght_.ttf") format("truetype-variations")}
@font-face{font-family:"Caveat";font-style:normal;font-weight:400 700;font-display:swap;
  src:url("../fonts/Caveat_wght_.ttf") format("truetype-variations")}

/* ============================================================
   Bring your Asha! — Stickerboard prototype
   "Sticker as portal" — drag and drop, peel-off, easter eggs
   ============================================================ */

:root {
	--burgundy: #5F191F;
	--burgundy-dark: #421014;
	--cream: #F8F0E5;
	--cream-deep: #F4E4D2;
	--cream-dim: #F8C8C0;
	--pastel: #E5EFF8;
	--pastel-deep: #CDDEEF;
	--peach: #FFC8B0;
	--peach-soft: #FFE0CC;
	--ink: #5C4548;
	--ink-dim: #8A6F6F;
	--white: #ffffff;
	--gold: #B8943D;

	/* per-section accents (set on .modal via data-theme) */
	--accent: var(--burgundy);
	--accent-soft: var(--cream-deep);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
	/* min-height et non height : la planche fait un plein écran, mais les
	   sections la suivent désormais dans le flux et le document doit pouvoir
	   dépasser le viewport. */
	min-height: 100%;
	font-family: 'Inter', -apple-system, system-ui, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #E8D8C0; /* visible "wall" behind the board (warm cream-brown) */
	overflow-x: hidden;
}

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.script {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
}

.eyebrow {
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ============================================================
   THE STICKERBOARD — materialized "real" board (cream palette)
   ============================================================ */
.board {
	position: relative;
	width: calc(100% - 48px);
	min-height: calc(100vh - 48px);
	margin: 24px;
	border-radius: 28px;
	background:
		radial-gradient(ellipse at 25% 20%, #FFE5D5 0%, transparent 45%),
		radial-gradient(ellipse at 75% 80%, #E5EFF8 0%, transparent 45%),
		radial-gradient(ellipse at 50% 50%, #FFFCF6 0%, var(--cream) 60%, #EFE0CD 100%);
	overflow: hidden;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.7),
		inset 0 0 80px rgba(95, 25, 31, 0.05),
		0 4px 12px rgba(0, 0, 0, 0.06),
		0 24px 60px rgba(95, 25, 31, 0.14);
	transition: opacity 0.3s ease, transform 0.4s ease, filter 0.3s ease;
}

/* Paper-grain noise overlay */
.board::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.4;
	pointer-events: none;
	mix-blend-mode: multiply;
	z-index: 0;
}

/* Inner dashed frame */
.board::after {
	content: '';
	position: absolute;
	inset: 18px;
	border: 1.5px dashed rgba(95, 25, 31, 0.16);
	border-radius: 22px;
	pointer-events: none;
	z-index: 0;
}

.board.is-modal-open {
	opacity: 0.32;
	transform: scale(0.985);
	filter: blur(2px);
	pointer-events: none;
}

/* ============================================================
   LOGO — vector SVG, fixed in top-left, no hover movement.
   ============================================================ */
.board__logo {
	position: absolute;
	top: 36px;
	left: 36px;
	z-index: 4;
	width: calc(210px * var(--bs, 1));
	display: block;
	transform: rotate(-3deg);
	transform-origin: top left;
	/* No transition / no hover transform — stays put. */
}
.board__logo img {
	width: 100%;
	display: block;
}

/* ============================================================
   POLAROID — bottom-right corner, half size, refined.
   ============================================================ */
.polaroid {
	position: absolute;
	bottom: 36px;
	right: 36px;
	z-index: 4;
	width: calc(120px * var(--bs, 1));
	background: #fff;
	padding: 8px 8px 28px;
	border-radius: 2px;
	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.16),
		0 2px 6px rgba(0, 0, 0, 0.08),
		inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	transform: rotate(4deg);
	transform-origin: bottom right;
	transition: transform 0.6s cubic-bezier(0.25, 0.6, 0.4, 1);
}
.polaroid:hover { transform: rotate(2deg) scale(1.06); }
.polaroid__tape { display: none; }
.polaroid__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--cream-deep);
}
.polaroid__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.polaroid__img.is-active { opacity: 1; }
.polaroid__caption {
	position: absolute;
	bottom: 6px;
	left: 0; right: 0;
	text-align: center;
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: 13px;
	color: var(--burgundy);
	line-height: 1;
	transition: opacity 0.6s ease;
}

/* ============================================================
   WASHI TAPE — corners, hand-tilted
   ============================================================ */
.washi {
	position: absolute;
	width: 110px;
	height: 28px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
	pointer-events: none;
	z-index: 1;
	background-size: 100% 100%;
}
.washi::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 30%, rgba(255,255,255,0.35) 70%, transparent 100%),
		repeating-linear-gradient(90deg, transparent 0 12px, rgba(0,0,0,0.04) 12px 13px);
}
/* Bottom corners only — top corners are now occupied by logo + polaroid */
.washi--tl { display: none; }
.washi--tr { display: none; }
.washi--bl { bottom: 28px; left: 100px; transform: rotate(8deg);   background-color: #C5DEEF; }
.washi--br { bottom: 18px; right: 90px; transform: rotate(-14deg); background-color: #FFDEC8; }

/* ============================================================
   HERO — centered text + sticker showcase
   ============================================================ */
.board__title {
	position: absolute;
	top: 50%;
	left: 4vw;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	pointer-events: none;
	/* Hero à gauche, carte à droite. La largeur se cale sur l'espace réellement
	   disponible avant la carte (largeur max 460px + son retrait de 4vw), avec
	   une marge de respiration : un titre long ne peut plus l'atteindre. */
	width: min(560px, calc(92vw - 460px - 4vw - 48px));
	min-width: 280px;
	text-align: left;
}

.board__title-text {
	color: var(--burgundy);
	text-align: left;
	width: 100%;
	transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Very subtle dim during text swap — barely perceptible (text never visually disappears) */
.board__title.is-soft-fade .board__title-text {
	opacity: 0.82;
}
.board__title .eyebrow {
	color: var(--ink-dim);
	margin-bottom: 10px;
	display: block;
}
.board__title h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: clamp(36px, 4.6vw, 68px);
	line-height: 0.98;
	letter-spacing: -0.01em;
}
/* Pas de nowrap : les titres de survol sont de longueurs très inégales, et
   « Click for The People & Culture Program. » débordait la colonne pour finir
   sous la sticker card, à toutes les résolutions testées. Ils reviennent donc
   à la ligne dans la colonne. */
.board__title h1 .title-line-1,
.board__title h1 .title-line-2 {
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	hyphens: none;
}
.board__title h1 .title-line-1 { color: var(--burgundy); }
.board__title h1 .title-line-2 { color: var(--peach); }

/* Logo de marque — titre de l'état au repos.
   display:none le retire aussi de l'arbre d'accessibilité, donc le <h1> n'a
   jamais qu'un seul nom accessible à la fois : le logo, ou les deux lignes. */
.board__title-logo { display: none; }
.board__title.is-idle .board__title-logo {
	display: block;
	width: clamp(220px, 26vw, 380px);
	height: auto;
}
.board__title.is-idle h1 .title-line-1,
.board__title.is-idle h1 .title-line-2 { display: none; }
.board__title p {
	margin-top: 14px;
	font-size: 14px;
	color: var(--ink);
	max-width: 460px;
	line-height: 1.55;
}

/* Hero sticker showcase — hidden (not used in current layout) */
.board__title-sticker {
	display: none;
}
.board__title-sticker img {
	width: 100%; height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
	animation: hero-sticker-in 0.7s cubic-bezier(0.25, 0.6, 0.4, 1);
}
@keyframes hero-sticker-in {
	0%   { opacity: 0.55; transform: scale(0.92) rotate(3deg); }
	60%  { opacity: 1;    transform: scale(1.02) rotate(-1deg); }
	100% { opacity: 1;    transform: scale(1)    rotate(0deg); }
}
.board__title-sticker.is-shimmer {
	animation: hero-breathe 3s ease-in-out infinite;
}
@keyframes hero-breathe {
	0%, 100% { transform: rotate(-6deg) scale(1); }
	50%      { transform: rotate(-4deg) scale(1.04); }
}

/* (Fade-state removed — text now swaps instantly to avoid flicker on rapid hover) */

/* When dragging, the title accent gets a brighter solid color (no flashing) */
.board__title.is-shimmer h1 .title-line-2 {
	color: var(--peach);
	text-shadow: 0 2px 12px rgba(255, 200, 176, 0.45);
}

/* Même colonne, même flux. Le libellé annonce désormais le défilement : la
   planche fait un plein écran et les onze sections vivent en dessous. */
.board__hint {
	margin-top: 14px;
	color: var(--ink-dim);
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.board__hint::after { content: ' ↓'; }
.board.has-moves .board__hint { opacity: 0; }

/* Barre basse unique — compteur, contact et réseaux sur une même ligne de base.
   Ils avaient trois ancrages absolus indépendants (bottom 14 / 14 / 22 px) qui
   se gênaient dès que l'écran rétrécissait. */
.board__bar {
	position: absolute;
	left: 4vw;
	/* La carte occupe la moitié droite jusqu'à right: 4vw. En laissant la barre
	   filer jusque-là, les pastilles sociales se posaient dessus — « c'est juste
	   dommage qu'ils sont dessus » (vidéo du 17/08). La barre s'arrête donc au
	   bord gauche de la carte, plus une gouttière. */
	right: calc(4vw + min(460px, 28vw) + 28px);
	bottom: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.board__bar .move-counter { flex: 0 0 auto; }
.board__bar .board__footer { flex: 1 1 auto; justify-content: center; }
.board__bar .board__social { flex: 0 0 auto; }

.board__footer {
	color: var(--ink-dim);
	font-size: 11px;
	letter-spacing: 0.06em;
	z-index: 2;
	display: flex;
	gap: 10px;
	align-items: center;
	white-space: nowrap;
}
.board__footer a {
	color: var(--ink-dim);
	text-decoration: none;
	transition: color 0.2s ease;
}
.board__footer a:hover { color: var(--burgundy); }
.board__footer span { opacity: 0.5; }

/* Compteur de déplacements — dans la barre basse */
.move-counter {
	color: var(--ink-dim);
	font-size: 11px;
	letter-spacing: 0.1em;
	z-index: 2;
	pointer-events: none;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.board.has-moves .move-counter { opacity: 1; }

/* ============================================================
   STICKERS — draggable, peelable
   ============================================================ */
.sticker {
	position: absolute;
	width: var(--sz, 110px);
	cursor: grab;
	--dx: 0px;
	--dy: 0px;
	--lift: 0px;
	--scale: 1;
	transform:
		translate(var(--dx), var(--dy))
		translateY(var(--lift))
		rotate(var(--rot, 0deg))
		scale(var(--scale));
	transition:
		transform 0.5s cubic-bezier(0.25, 0.6, 0.4, 1),
		filter 0.4s ease,
		opacity 0.4s ease;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.10));
	z-index: 2;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
	user-select: none;
}
.sticker img {
	width: 100%;
	display: block;
	pointer-events: none;
	user-select: none;
}

/* Hover lift via CSS variable */
.sticker:hover, .sticker:focus-visible {
	--lift: -5px;
	--scale: 1.10;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.18));
	outline: none;
	/* Sans z-index, le sticker survolé restait au même niveau que ses voisins
	   (z-index: 2). Or sa vignette s'affiche sous lui : elle passait derrière
	   tout sticker situé plus loin dans le DOM et recouvrant cette zone.
	   40 : au-dessus des voisins, sous l'état de drag (50). */
	z-index: 40;
}

/* Peeling state — sticker is being grabbed/dragged
   No CSS animation here because JS updates --dx/--dy live; animation would override that. */
.sticker.is-peeling {
	cursor: grabbing;
	z-index: 50;
	transition: filter 0.25s ease, opacity 0.3s ease;
	--lift: -8px;
	--scale: 1.16;
	filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.30));
}

/* When ANY sticker is being dragged, the others dim & shrink slightly */
.board.is-dragging .sticker:not(.is-peeling) {
	opacity: 0.42;
	--scale: 0.94;
}

/* Sticker just landed — gentle settle (preserves --dx/--dy) */
.sticker.is-landing {
	animation: land-settle 0.7s cubic-bezier(0.25, 0.6, 0.4, 1);
}
@keyframes land-settle {
	0%   { transform: translate(var(--dx), var(--dy)) translateY(-12px) rotate(var(--rot, 0deg)) scale(1.16); }
	55%  { transform: translate(var(--dx), var(--dy)) translateY(2px)   rotate(var(--rot, 0deg)) scale(0.98); }
	100% { transform: translate(var(--dx), var(--dy)) translateY(0)     rotate(var(--rot, 0deg)) scale(1); }
}

/* Wiggle easter egg — long-press, softer */
.sticker.is-wiggling {
	animation: wiggle 0.9s cubic-bezier(0.25, 0.6, 0.4, 1);
}
@keyframes wiggle {
	0%, 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)); }
	20%      { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot, 0deg) -  9deg)) scale(1.04); }
	45%      { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot, 0deg) +  9deg)) scale(1.03); }
	70%      { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot, 0deg) -  5deg)) scale(1.02); }
	88%      { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot, 0deg) +  3deg)) scale(1.01); }
}

/* Tooltip on hover */
.sticker__tip {
	position: absolute;
	z-index: 1;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(-4px) rotate(calc(var(--rot, 0deg) * -1));
	background: var(--burgundy);
	color: var(--cream);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 0.6, 0.4, 1);
}
.sticker:hover .sticker__tip,
.sticker:focus-visible .sticker__tip {
	opacity: 1;
	transform: translateX(-50%) translateY(0) rotate(calc(var(--rot, 0deg) * -1));
}
.sticker.is-peeling .sticker__tip { opacity: 0; }

/* ============================================================
   STICKER CARD — pastel-blue card containing all stickers
   Stickers can be peeled off (drag), leaving a ghost slot.
   ============================================================ */
.sticker-card {
	position: absolute;
	top: 50%;
	right: 4vw;
	/* -1.5deg : l'objet redevient une carte posée sur le mur plutôt qu'un
	   rectangle d'interface. Les positions internes restent 1:1. */
	transform: translateY(-50%) rotate(-1.5deg);
	width: clamp(340px, 28vw, 460px);
	aspect-ratio: 420 / 592; /* MATCHES BYA.PNG exactly so % positions are 1:1 */
	background: #E5EFF8; /* pastel blue */
	border-radius: 8px;
	box-shadow:
		0 24px 48px rgba(95, 25, 31, 0.16),
		0 6px 14px rgba(0, 0, 0, 0.08),
		inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	z-index: 2;
}

/* Decorative sparkles inside the card (matches BYA.PNG decorations) */
.card-sparkle {
	position: absolute;
	color: var(--gold);
	font-size: clamp(10px, 1vw, 14px);
	pointer-events: none;
}
.card-sparkle--1 { top: 26%; left: 50%; transform: rotate(8deg); }
.card-sparkle--2 { top: 81%; left: 51%; transform: rotate(-8deg); }
.card-sparkle--3 { top: 43%; left: 56%; transform: rotate(20deg); font-size: 75%; }


/* Ghost slots — exact die-cut residue supplied by the canonical Design System.
   The PNG already carries the pastel-deep residue color: never recolor it. */
.sticker-slot {
	position: absolute;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: none;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}
.sticker-slot.is-revealed {
	opacity: 0.9;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));
}

/* Per-slot background = canonical pre-colored silhouette PNG. */
.slot-mirror   { background-image: url('../img/stickers-card/mirror.silhouette.png'); }
.slot-iloveme  { background-image: url('../img/stickers-card/iloveme.silhouette.png'); }
.slot-ticket   { background-image: url('../img/stickers-card/ticket.silhouette.png'); }
.slot-cheery   { background-image: url('../img/stickers-card/cheery.silhouette.png'); }
.slot-envelope { background-image: url('../img/stickers-card/envelope.silhouette.png'); }
.slot-heart    { background-image: url('../img/stickers-card/heart.silhouette.png'); }
.slot-damn     { background-image: url('../img/stickers-card/damn.silhouette.png'); }
.slot-gift     { background-image: url('../img/stickers-card/gift.silhouette.png'); }
.slot-stamp    { background-image: url('../img/stickers-card/stamp.silhouette.png'); }
.slot-polaroid { background-image: url('../img/stickers-card/polaroid.silhouette.png'); }
.slot-bya      { background-image: url('../img/stickers-card/bya.silhouette.png'); }
.slot-star     { background-image: url('../img/stickers-card/star.silhouette.png'); }

/* ============================================================
   Sticker + slot positions — 1:1 reproduction of BYA.PNG.
   Source of truth: authenticated Design System export (2026-08-12),
   `ui_kits/website/data.js` + `assets/stickers-card/`.
   Each sticker is positioned at its exact canonical percentage geometry;
   rotation is baked into the supplied PNG pixels.
   ============================================================ */
.sticker-card .s-mirror,    .slot-mirror    { top: 3.38%; left: 6.67%; width: 28.81%; --rot: 0deg; aspect-ratio: 0.531; }
.sticker-card .s-iloveme,   .slot-iloveme   { top: 5.91%; left: 40.48%; width: 20.48%; --rot: 0deg; aspect-ratio: 1; }
.sticker-card .s-ticket,    .slot-ticket    { top: 4.22%; left: 68.33%; width: 20.71%; --rot: 0deg; aspect-ratio: 0.492; }
.sticker-card .s-cheery,    .slot-cheery    { top: 23.31%; left: 38.57%; width: 23.81%; --rot: 0deg; aspect-ratio: 0.862; }
.sticker-card .s-envelope,  .slot-envelope  { top: 43.75%; left: 7.38%; width: 33.57%; --rot: 0deg; aspect-ratio: 1.424; }
.sticker-card .s-heart,     .slot-heart     { top: 51.52%; left: 46.90%; width: 11.19%; --rot: 0deg; aspect-ratio: 1.175; }
.sticker-card .s-damn,      .slot-damn      { top: 37.50%; left: 60.48%; width: 31.19%; --rot: 0deg; aspect-ratio: 1.323; }
.sticker-card .s-gift,      .slot-gift      { top: 61.49%; left: 7.62%; width: 24.52%; --rot: 0deg; aspect-ratio: 0.824; }
.sticker-card .s-stamp,     .slot-stamp     { top: 64.53%; left: 35.48%; width: 22.62%; --rot: 0deg; aspect-ratio: 0.979; }
.sticker-card .s-polaroid,  .slot-polaroid  { top: 57.43%; left: 51.90%; width: 43.10%; --rot: 0deg; aspect-ratio: 0.777; }
.sticker-card .s-bya,       .slot-bya       { top: 85.14%; left: 7.62%; width: 35.00%; --rot: 0deg; aspect-ratio: 2.535; }
.sticker-card .s-star,      .slot-star      { top: 89.19%; left: 87.38%; width: 6.67%; --rot: 0deg; aspect-ratio: 0.903; }

/* Decorative yellow star between mirror and cherries (not interactive). */
.sticker-card .star-deco {
	position: absolute;
	top: 28.55%;
	left: 30.71%;
	width: 6.43%;
	aspect-ratio: 0.871;
	background-image: url('../img/stickers-card/star_deco.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
	z-index: 1;
}

/* Slots inherit the same rotation as their sticker so the silhouette aligns perfectly */
.sticker-slot { transform: rotate(var(--rot, 0deg)); }

/* Stickers in card use width-based sizing instead of --sz pixel-based */
.sticker-card .sticker { --sz: auto; }

/* ============================================================
   RESPONSIVE TIERS — discrete sticker-scale levels
   --bs (board scale) drives sticker sizes via calc()
   ============================================================ */
:root { --bs: 1; }

/* Tier 0 : compact laptop / tablet landscape — 1024–1279 px */
@media (max-width: 1279px) and (min-width: 1024px) {
	:root { --bs: 0.85; }
	.board__title h1 { font-size: 42px; }
	.board__title-sticker { width: 130px; height: 130px; }
	.board__title { gap: 18px; }
}

/* Tier 1 : laptop default — 1280–1599 px (covered by :root --bs: 1) */

/* Tier 2 : large laptop — 1600–1919 px */
@media (min-width: 1600px) {
	:root { --bs: 1.30; }
	.board__title { width: min(880px, 86vw); gap: 28px; }
	.board__title h1 { font-size: 76px; }
	.board__title p  { font-size: 16px; max-width: 540px; }
	.board__title-sticker { width: 200px; height: 200px; }
}

/* Tier 3 : full-HD desktop — 1920–2559 px */
@media (min-width: 1920px) {
	:root { --bs: 1.65; }
	.board__title { width: min(1080px, 86vw); gap: 32px; }
	.board__title h1 { font-size: 96px; }
	.board__title p  { font-size: 18px; max-width: 620px; }
	.board__title-sticker { width: 240px; height: 240px; }
	.washi { width: 150px; height: 34px; }
	.board__hint, .move-counter, .board__footer { font-size: 13px; }
}

/* Tier 4 : QHD / 2K — 2560–3199 px */
@media (min-width: 2560px) {
	:root { --bs: 2.20; }
	.board__title { width: min(1480px, 84vw); gap: 44px; }
	.board__title h1 { font-size: 134px; }
	.board__title p  { font-size: 24px; max-width: 820px; line-height: 1.55; }
	.board__title .eyebrow { font-size: 15px; }
	.board__title-sticker { width: 320px; height: 320px; }
	.washi { width: 200px; height: 44px; }
	.board__hint, .move-counter, .board__footer { font-size: 15px; }
	.reset-btn { width: 56px; height: 56px; font-size: 24px; top: 48px; right: 48px; }
}

/* Tier 5 : 4K UHD — 3200+ px */
@media (min-width: 3200px) {
	:root { --bs: 2.85; }
	.board__title { width: min(1900px, 84vw); gap: 56px; }
	.board__title h1 { font-size: 180px; }
	.board__title p  { font-size: 32px; max-width: 1080px; line-height: 1.55; }
	.board__title .eyebrow { font-size: 20px; }
	.board__title-sticker { width: 420px; height: 420px; }
	.washi { width: 280px; height: 60px; }
	.reset-btn { width: 80px; height: 80px; font-size: 36px; top: 60px; right: 60px; }
	.board__hint, .move-counter, .board__footer { font-size: 20px; }
}

/* Tier 6 : 5K / 6K / ultra-wide — 4000+ px */
@media (min-width: 4000px) {
	:root { --bs: 3.40; }
	.board__title h1 { font-size: 220px; }
	.board__title p  { font-size: 38px; max-width: 1280px; }
	.board__title-sticker { width: 520px; height: 520px; }
}

/* ============================================================
   HANDWRITTEN PERMANENT NOTE — Caveat, always visible
   ============================================================ */
/* Affordance principale de la page : sans elle, rien ne dit que la planche est
   interactive. Elle vit désormais dans le flux de la colonne du hero — elle
   était en absolu et entrait en collision avec la carte, les liens sociaux et
   la ligne de contact. Dans le flux, ces collisions sont impossibles. */
.board__note {
	margin-top: 26px;
	font-family: 'Caveat', cursive;
	font-weight: 700;
	font-size: calc(25px * var(--bs, 1));
	color: #2A3E6B;
	line-height: 1.2;
	text-align: left;
	transform: rotate(-2deg);
	transform-origin: bottom left;
	pointer-events: none;
	/* « each one is a doorway. » doit tenir sur une seule ligne. */
	max-width: 480px;
}
.board__note-arrow {
	display: inline-block;
	font-size: calc(24px * var(--bs, 1));
	margin-right: 3px;
	transform: rotate(20deg) translateY(1px);
	color: var(--burgundy);
}

/* ============================================================
   WIDGETS — pinned to the board after sticker interaction
   ============================================================ */
.widgets {
	position: absolute;
	top: 64vh;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	max-width: 78vw;
	justify-content: center;
	align-items: flex-start;
	pointer-events: none;
}

.widget {
	pointer-events: auto;
	position: relative;
	width: 230px;
	min-height: 130px;
	background: #fff;
	border-radius: 14px;
	padding: 16px 16px 14px 50px;
	box-shadow:
		0 6px 16px rgba(0, 0, 0, 0.10),
		0 1px 3px rgba(0, 0, 0, 0.06),
		inset 0 0 0 1px rgba(95, 25, 31, 0.04);
	font-size: 13px;
	color: var(--ink);
	line-height: 1.45;
	transform: rotate(var(--w-rot, -1deg));
	animation: widget-pop 0.55s cubic-bezier(0.25, 0.6, 0.4, 1.2);
	transition: transform 0.4s cubic-bezier(0.25, 0.6, 0.4, 1), box-shadow 0.3s ease;
}
.widget:hover {
	transform: rotate(0deg) scale(1.03) translateY(-2px);
	box-shadow:
		0 14px 28px rgba(0, 0, 0, 0.14),
		0 2px 6px rgba(0, 0, 0, 0.08),
		inset 0 0 0 1px rgba(95, 25, 31, 0.04);
}
.widget:nth-child(2) { --w-rot:  1.5deg; }
.widget:nth-child(3) { --w-rot: -2deg;   }
.widget:nth-child(4) { --w-rot:  0.8deg; }
.widget:nth-child(5) { --w-rot: -1.5deg; }
.widget:nth-child(6) { --w-rot:  2deg;   }

@keyframes widget-pop {
	0%   { opacity: 0; transform: rotate(var(--w-rot, -1deg)) scale(0.6) translateY(20px); }
	60%  { opacity: 1; transform: rotate(var(--w-rot, -1deg)) scale(1.06) translateY(-4px); }
	100% { opacity: 1; transform: rotate(var(--w-rot, -1deg)) scale(1) translateY(0); }
}

.widget__sticker {
	position: absolute;
	top: 12px;
	left: 10px;
	width: 32px; height: 32px;
}
.widget__sticker img { width: 100%; height: 100%; object-fit: contain; }

.widget__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(95, 25, 31, 0.06);
	color: var(--burgundy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.2s ease;
}
.widget__close:hover { background: var(--burgundy); color: var(--cream); transform: scale(1.1); }

.widget__label {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin-bottom: 6px;
}
.widget__quote {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
	color: var(--burgundy);
}
.widget__quote-mini {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.35;
	color: var(--burgundy);
}
.widget__source {
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: 14px;
	color: var(--ink-dim);
	margin-top: 4px;
}
.widget__prompt {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	color: var(--burgundy);
}
.widget__count {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: 26px;
	color: var(--burgundy);
	line-height: 1;
	margin-bottom: 8px;
}
.widget__output {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: 13px;
	line-height: 1.4;
	color: var(--burgundy);
	min-height: 38px;
	margin-bottom: 8px;
	transition: opacity 0.3s ease;
}
.widget__event {
	display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px;
}
.widget__event strong {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	color: var(--burgundy);
}
.widget__event span {
	font-size: 11px;
	color: var(--ink-dim);
}
.widget__btn {
	display: inline-block;
	padding: 7px 12px;
	background: var(--burgundy);
	color: var(--cream);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	border: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	text-decoration: none;
	margin-top: 4px;
}
.widget__btn:hover { background: var(--peach); color: var(--burgundy); transform: translateY(-1px); }
.widget__btn-sm {
	display: inline-block;
	padding: 5px 10px;
	background: var(--peach);
	color: var(--burgundy);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: transform 0.2s ease;
}
.widget__btn-sm:hover { transform: translateY(-1px); }
.widget__chip {
	display: inline-block;
	padding: 5px 10px;
	background: var(--cream-deep);
	color: var(--burgundy);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	margin-right: 4px;
	margin-top: 4px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.widget__chip:hover { background: var(--peach); }

/* Pin button styling inside modal */
.modal__pin {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.modal__pin-secondary {
	display: block;
	margin-top: 14px;
	padding: 10px 16px;
	background: var(--accent-soft);
	color: var(--accent);
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.03em;
	border: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.modal__pin-secondary:hover { transform: translateY(-2px); }

/* Pinned state — sticker on board gets a subtle highlight */
.sticker.is-pinned::after {
	content: '📌';
	position: absolute;
	top: -6px;
	right: -6px;
	font-size: 14px;
	background: var(--cream);
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transform: rotate(calc(var(--rot, 0deg) * -1));
}

/* ============================================================
   RESET BUTTON — appears after 3 moves
   ============================================================ */
.reset-btn {
	position: fixed;
	/* Descendu : le sélecteur de langue occupe le coin haut droit. */
	top: 80px; right: 24px;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--cream);
	color: var(--burgundy);
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	opacity: 0;
	pointer-events: none;
	transform: scale(0.6) rotate(-180deg);
	transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2, .9, .3, 1.4), background 0.2s ease;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
}
body.show-reset .reset-btn {
	opacity: 1;
	pointer-events: auto;
	transform: scale(1) rotate(0deg);
}
.reset-btn:hover {
	background: var(--burgundy);
	color: var(--cream);
	transform: scale(1.08) rotate(360deg) !important;
}
.reset-btn__tip {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	background: var(--burgundy);
	color: var(--cream);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.reset-btn:hover .reset-btn__tip { opacity: 1; }

/* ============================================================
   TOAST — easter egg messages
   ============================================================ */
.toast {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--burgundy);
	color: var(--cream);
	padding: 14px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2, .9, .3, 1.2);
	z-index: 90;
}
.toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ============================================================
   MODALS (sticker as portal)
   ============================================================ */
.modal-layer {
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.modal {
	position: relative;
	width: min(1100px, 100%);
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--cream);
	border-radius: 32px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30), 0 8px 16px rgba(0, 0, 0, 0.10);
	opacity: 0;
	transform: translateY(28px) scale(0.96);
	pointer-events: auto;
	transition:
		opacity 0.5s cubic-bezier(0.25, 0.6, 0.4, 1),
		transform 0.6s cubic-bezier(0.25, 0.6, 0.4, 1);
	padding: 48px 56px 56px;
	scrollbar-width: thin;
	scrollbar-color: var(--accent) transparent;
}
.modal.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.modal__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease;
	z-index: 2;
}
.modal__close:hover { transform: scale(1.1); background: var(--accent); color: var(--cream); }

.modal__head {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 32px;
	align-items: center;
	margin-bottom: 32px;
}

.modal__sticker {
	width: 140px; height: 140px;
	display: flex; align-items: center; justify-content: center;
	transform: rotate(-6deg);
}
.modal__sticker img { width: 100%; height: 100%; object-fit: contain; }

.modal__heading .eyebrow {
	color: var(--accent);
	margin-bottom: 8px;
}
.modal__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: 56px;
	line-height: 1.0;
	color: var(--accent);
	letter-spacing: -0.01em;
}
.modal__sub {
	margin-top: 12px;
	font-size: 16px;
	color: var(--ink);
	line-height: 1.5;
	max-width: 600px;
}

.modal__body {
	color: var(--ink);
	font-size: 15px;
	line-height: 1.65;
}
.modal__body p + p { margin-top: 14px; }
.modal__body strong { color: var(--accent); }

.modal__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 14px 22px;
	background: var(--accent);
	color: var(--cream);
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	transition: transform 0.2s ease;
	border: 0;
	cursor: pointer;
}
.modal__cta:hover { transform: translateY(-2px); }
.modal__cta::after { content: '→'; transition: transform 0.2s ease; }
.modal__cta:hover::after { transform: translateX(4px); }

.m-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 28px;
}
.m-card {
	background: var(--accent-soft);
	border-radius: 18px;
	padding: 22px;
	display: grid;
	gap: 8px;
}
.m-card .eyebrow { color: var(--accent); }
.m-card h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 22px;
	color: var(--accent);
}
.m-card p { font-size: 13px; line-height: 1.5; color: var(--ink); }

.modal--mini {
	max-width: 540px;
	padding: 36px 40px 40px;
	text-align: center;
}
.modal--mini .modal__head {
	grid-template-columns: 1fr;
	gap: 18px;
	justify-items: center;
	text-align: center;
	margin-bottom: 20px;
}
.modal--mini .modal__sticker { width: 110px; height: 110px; }
.modal--mini .modal__title { font-size: 36px; }

.affirmation {
	margin-top: 24px;
	padding: 28px 24px;
	background: var(--accent-soft);
	border-radius: 18px;
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: 22px;
	color: var(--accent);
	line-height: 1.4;
	min-height: 100px;
	display: flex; align-items: center; justify-content: center;
	transition: opacity 0.3s ease;
}
.affirmation--reveal { animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.4); }

@keyframes pop {
	0%   { opacity: 0; transform: scale(0.8); }
	60%  { transform: scale(1.06); }
	100% { opacity: 1; transform: scale(1); }
}

/* Per-section themes */
.modal[data-theme="mirror"]    { --accent: #4A6FA5; --accent-soft: #E5EFF8; }
.modal[data-theme="heart"]     { --accent: #B33A3A; --accent-soft: #F8E0E0; background: #FEFBF7; }
.modal[data-theme="cheery"]    { --accent: #8B1A2B; --accent-soft: #FBE5E5; background: #FEFBF7; }
.modal[data-theme="envelope"]  { --accent: #5F191F; --accent-soft: #F8F0E5; }
.modal[data-theme="polaroid"]  { --accent: #2D3F5F; --accent-soft: #E5EFF8; }
.modal[data-theme="gift"]      { --accent: #A33644; --accent-soft: #FCE5DC; background: #FEFBF7; }
.modal[data-theme="iloveme"]   { --accent: #4A6FA5; --accent-soft: #E5EFF8; }
.modal[data-theme="stamp"]     { --accent: #5F191F; --accent-soft: #F8F0E5; }
.modal[data-theme="star"]      { --accent: #B8943D; --accent-soft: #FAF1DC; background: #FEFBF7; }
.modal[data-theme="ticket"]    { --accent: #C3556B; --accent-soft: #FBE5E9; background: #FEFBF7; }
.modal[data-theme="damn"]      { --accent: #5F191F; --accent-soft: #FCE8DA; background: #FEFBF7; }

/* Backdrop */
.backdrop {
	position: fixed;
	inset: 0;
	background: rgba(95, 25, 31, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	z-index: 99;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Sparkles emerging on stack-detection easter egg */
.sparkle {
	position: absolute;
	pointer-events: none;
	font-size: 18px;
	animation: sparkle-float 1.2s ease-out forwards;
	z-index: 60;
}
@keyframes sparkle-float {
	0%   { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
	30%  { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--ex, 30px), var(--ey, -50px)) scale(1.2) rotate(180deg); }
}

/* ============================================================
   FULL-VIEWPORT PAGES — secondary "slides" (no scroll, fit in 100vh)
   ============================================================ */
.page {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--cream);
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
	transition:
		opacity 0.5s cubic-bezier(0.25, 0.6, 0.4, 1),
		transform 0.6s cubic-bezier(0.25, 0.6, 0.4, 1);
	overflow: hidden;
}
.page.is-open {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

/* Page top bar — back/close */
.page__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 28px 40px;
	flex: 0 0 auto;
	z-index: 2;
}
.page__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
}
.page__brand img {
	width: 110px;
	display: block;
}
.page__back {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--burgundy);
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--cream-deep);
	transition: background 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	border: 0;
}
.page__back:hover { background: var(--burgundy); color: var(--cream); transform: translateX(-2px); }
.page__back-arrow { font-size: 16px; }

.page__close {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--cream-deep);
	color: var(--burgundy);
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
	cursor: pointer;
	border: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}
.page__close:hover { background: var(--burgundy); color: var(--cream); transform: scale(1.1); }

/* Page content area — flex column, fills remaining viewport, no scroll */
.page__main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 0 6vw 5vh;
	overflow: hidden;
	min-height: 0;
}

/* Page hero — eyebrow + huge title + sub */
.page__hero {
	flex: 0 0 auto;
	margin-bottom: 4vh;
	max-width: 1000px;
}
.page__eyebrow {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin-bottom: 12px;
}
.page__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: clamp(48px, 6.4vw, 92px);
	line-height: 1.0;
	color: var(--burgundy);
	letter-spacing: -0.01em;
}
.page__title .accent { color: var(--peach); }
.page__lead {
	margin-top: 20px;
	font-size: clamp(15px, 1.3vw, 19px);
	line-height: 1.5;
	color: var(--ink);
	max-width: 720px;
}

/* Page content — auto-fit grid (responsive by design) */
.page__grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(12px, 1.5vw, 28px);
	min-height: 0;
}
.p-card {
	background: var(--cream-deep);
	border-radius: 18px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	overflow: hidden;
}
.p-card .p-card__num {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 16px;
	color: var(--burgundy);
}
.p-card h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(22px, 1.8vw, 30px);
	color: var(--burgundy);
	line-height: 1.1;
	margin-bottom: 4px;
}
.p-card p {
	font-size: clamp(13px, 0.95vw, 15px);
	line-height: 1.5;
	color: var(--ink);
}
.p-card__sticker {
	width: 56px; height: 56px;
	margin-bottom: 6px;
}
.p-card__sticker img { width: 100%; height: 100%; object-fit: contain; }
.p-card__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--burgundy);
	color: var(--cream);
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: transform 0.2s ease;
	align-self: flex-start;
}
.p-card__cta:hover { transform: translateY(-2px); }

.p-card__price {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 26px;
	color: var(--burgundy);
	margin-top: 8px;
}
.p-card__details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}
.p-card__details span {
	font-size: 12px;
	color: var(--ink-dim);
	display: flex;
	align-items: center;
	gap: 6px;
}
.p-card__details span::before { content: '·'; color: var(--burgundy); font-weight: 700; }

/* Single-card page layouts (manifesto, mirror flow) */
.page__center {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 0;
}
.page__big-quote {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(28px, 3.2vw, 48px);
	line-height: 1.2;
	color: var(--burgundy);
	max-width: 1000px;
	margin-bottom: 24px;
}

/* ============================================================
   FULL-FRAME CAROUSEL — used in Stories page
   ============================================================ */
.page--carousel { padding: 0; }
.page--carousel .page__main {
	padding: 0;
	position: relative;
	overflow: hidden;
}
.page--carousel .page__top {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 10;
	padding: 24px 36px;
}

.carousel {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.cslide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.9s cubic-bezier(0.25, 0.6, 0.4, 1);
	overflow: hidden;
	background:
		radial-gradient(ellipse at 20% 30%, #FFE5D5 0%, transparent 55%),
		radial-gradient(ellipse at 80% 70%, #E5EFF8 0%, transparent 55%),
		var(--cream);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 5vw, 96px);
	align-items: center;
	padding: clamp(80px, 14vh, 140px) clamp(20px, 8vw, 120px) clamp(80px, 12vh, 130px);
}
.cslide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

/* Polaroid-style framed photo — bumped sizes for QHD/4K */
.cslide__photo-frame {
	position: relative;
	width: 100%;
	max-width: clamp(320px, 32vw, 720px);
	aspect-ratio: 4 / 5;
	background: #fff;
	padding: clamp(12px, 0.9vw, 22px);
	padding-bottom: clamp(40px, 3.6vw, 80px);
	box-shadow:
		0 28px 56px rgba(95, 25, 31, 0.20),
		0 6px 16px rgba(0, 0, 0, 0.10),
		inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	border-radius: 3px;
	transform: rotate(-2deg);
	justify-self: center;
	transition: transform 0.6s cubic-bezier(0.25, 0.6, 0.4, 1);
	will-change: transform;
}
.cslide:nth-child(even) .cslide__photo-frame {
	transform: rotate(2deg);
	order: 2;
}
.cslide:nth-child(even) .cslide__compo {
	order: 1;
	text-align: right;
	align-items: flex-end;
}
.cslide:nth-child(even) .cslide__author { justify-content: flex-end; }

/* Subtle hover : just lift + straighten the polaroid. No more text shifts. */
.cslide:hover .cslide__photo-frame {
	transform: rotate(-1deg) translateY(-6px);
}
.cslide:nth-child(even):hover .cslide__photo-frame {
	transform: rotate(1deg) translateY(-6px);
}

.cslide__photo-frame::after {
	content: attr(data-caption);
	position: absolute;
	bottom: clamp(12px, 1.1vw, 24px);
	left: 0; right: 0;
	text-align: center;
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: clamp(18px, 1.4vw, 32px);
	color: var(--burgundy);
}
.cslide__photo {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	background: var(--cream-deep);
}

/* Composition layer — text (sizes bumped for big screens) */
.cslide__compo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--burgundy);
	max-width: clamp(420px, 40vw, 820px);
	max-height: calc(100vh - 180px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 10px 56px 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(95, 25, 31, 0.35) transparent;
}

.cslide__num {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: clamp(11px, 0.78vw, 18px);
	color: var(--ink-dim);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: clamp(14px, 1.4vw, 28px);
}
.cslide__quote {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: clamp(32px, 4.2vw, 110px);
	line-height: 1.0;
	color: var(--burgundy);
	margin-bottom: clamp(18px, 1.8vw, 36px);
	letter-spacing: -0.01em;
}
.cslide__author {
	display: flex;
	align-items: baseline;
	gap: clamp(10px, 1vw, 18px);
	flex-wrap: wrap;
	margin-bottom: clamp(12px, 1.2vw, 22px);
}
.cslide__author-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(20px, 1.6vw, 42px);
	color: var(--burgundy);
}
.cslide__author-role {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: clamp(13px, 0.95vw, 22px);
	color: var(--ink-dim);
	letter-spacing: 0.04em;
}
.cslide__detail {
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: clamp(18px, 1.3vw, 32px);
	color: #2A3E6B;
	line-height: 1.3;
	/* always visible — no hover gating */
}

/* Sticker decoration — pinned on the polaroid frame */
.cslide__sticker {
	position: absolute;
	top: -22px;
	right: -22px;
	width: clamp(80px, 7.5vw, 160px);
	height: clamp(80px, 7.5vw, 160px);
	transform: rotate(12deg);
	transition: transform 0.5s cubic-bezier(0.25, 0.6, 0.4, 1);
	z-index: 3;
	pointer-events: none;
	filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}
.cslide:nth-child(even) .cslide__sticker {
	right: auto;
	left: -22px;
	transform: rotate(-12deg);
}
.cslide:hover .cslide__sticker {
	transform: rotate(8deg) scale(1.06);
}
.cslide:nth-child(even):hover .cslide__sticker {
	transform: rotate(-8deg) scale(1.06);
}
.cslide__sticker img { width: 100%; height: 100%; object-fit: contain; }

/* Tablet / smaller laptop */
@media (max-width: 1023px) {
	.cslide {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr auto;
		gap: 20px;
		padding: clamp(70px, 10vh, 100px) 6vw clamp(80px, 12vh, 110px);
	}
	.cslide__photo-frame {
		max-width: clamp(220px, 36vh, 320px);
		justify-self: center;
		grid-row: 1;
		order: 0 !important;
	}
	.cslide__compo {
		grid-row: 2;
		text-align: center !important;
		align-items: center !important;
		max-width: 600px;
		max-height: clamp(180px, 32vh, 320px);
		margin: 0 auto;
		padding: 4px 10px 48px;
	}
	.cslide__author { justify-content: center !important; }
	.cslide:nth-child(even) .cslide__photo-frame { order: 0 !important; }
	.cslide:nth-child(even) .cslide__compo { order: 0 !important; text-align: center; }
}

/* Carousel controls — dots + arrows */
.carousel__nav {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 18px;
	z-index: 5;
}
.carousel__arrow {
	width: 48px; height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--burgundy);
	display: flex; align-items: center; justify-content: center;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.carousel__arrow:hover { background: var(--peach); transform: scale(1.08); }
.carousel__dots {
	display: flex;
	gap: 10px;
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	padding: 8px 14px;
	border-radius: 999px;
	backdrop-filter: blur(8px);
}
.carousel__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.carousel__dot.is-active {
	background: var(--cream);
	width: 24px;
	border-radius: 4px;
}

/* Counter chip top-right */
.carousel__counter {
	position: absolute;
	top: 36px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	color: var(--cream);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	z-index: 11;
	background: rgba(0, 0, 0, 0.18);
	padding: 6px 16px;
	border-radius: 999px;
	backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
	.cslide__compo { padding: 0 6vw; }
	.cslide__quote { font-size: 32px; }
	.cslide__sticker { width: 80px; height: 80px; bottom: 14vh; right: 6vw; }
	.carousel__arrow { width: 40px; height: 40px; font-size: 14px; }
}

/* ============================================================
   PAGE-SPECIFIC LAYOUTS — clients, gallery, meet-asha
   ============================================================ */

/* Clients logos page (Stamp · Carpe Diem) */
.logos-grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: clamp(12px, 1.5vw, 28px);
	min-height: 0;
	align-items: center;
	justify-items: center;
}
.logo-cell {
	background: var(--cream-deep);
	border-radius: 14px;
	padding: clamp(20px, 2vw, 36px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 110px;
	transition: background 0.3s ease, transform 0.3s ease;
}
.logo-cell:hover { background: var(--peach-soft); transform: translateY(-3px); }
.logo-cell img {
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
	filter: grayscale(40%);
	opacity: 0.85;
	transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-cell:hover img { filter: grayscale(0%); opacity: 1; }

/* Photo gallery page (Damn good) */
.gallery-grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: clamp(8px, 1vw, 16px);
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--burgundy) transparent;
	padding: 2px 4px 12px;
}
.gallery-grid__item {
	appearance: none;
	border: 0;
	padding: 0;
	background: transparent;
	border-radius: 8px;
	cursor: zoom-in;
	min-width: 0;
}
.gallery-grid__item:focus-visible {
	outline: 3px solid var(--burgundy);
	outline-offset: 4px;
}
.gallery-grid img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
	transition: transform 0.4s cubic-bezier(0.25, 0.6, 0.4, 1), box-shadow 0.3s ease;
	cursor: zoom-in;
}
.gallery-grid img:hover {
	transform: scale(1.04) rotate(-1deg);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
	z-index: 2;
	position: relative;
}

/* ============================================================
   CONTACT DIALOG + FULL-SCREEN GALLERY
   ============================================================ */
.contact-dialog,
.gallery-lightbox {
	border: 0;
	padding: 0;
	color: var(--ink);
}
html.has-site-dialog { overflow: hidden; }
.contact-dialog::backdrop,
.gallery-lightbox::backdrop {
	background: rgba(36, 18, 20, 0.76);
	backdrop-filter: blur(8px);
}
.contact-dialog {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(92vw, 620px);
	max-height: calc(100dvh - 24px);
	max-width: none;
	border-radius: 24px;
	background: var(--cream);
	box-shadow: 0 28px 90px rgba(23, 8, 10, 0.42);
	overflow: auto;
}
.contact-dialog__panel {
	position: relative;
	padding: clamp(28px, 5vw, 54px);
}
.contact-dialog__title {
	margin-top: 8px;
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1;
	color: var(--burgundy);
}
.contact-dialog__context {
	margin-top: 20px;
	font-weight: 700;
	color: var(--burgundy-dark);
}
.contact-dialog__intro { margin-top: 8px; line-height: 1.6; }
.contact-dialog__actions { display: grid; gap: 12px; margin-top: 26px; }
.contact-dialog__actions .bya-cta { justify-self: start; }
.contact-dialog__secondary {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid rgba(95, 25, 31, 0.24);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--burgundy);
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.contact-dialog__secondary:hover,
.contact-dialog__secondary:focus-visible { background: #fff; outline: 2px solid var(--burgundy); outline-offset: 2px; }
.contact-dialog__status { min-height: 1.5em; margin-top: 14px; color: var(--burgundy); font-weight: 700; }

.overlay-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--burgundy);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}
.overlay-close:hover,
.overlay-close:focus-visible { background: #fff; outline: 3px solid var(--peach); outline-offset: 2px; }
.contact-dialog .overlay-close {
	position: sticky;
	float: right;
	top: 12px;
	margin-top: -14px;
	margin-right: -14px;
}

.gallery-lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	background: rgba(24, 12, 14, 0.96);
	overflow: hidden;
}
.gallery-lightbox[open] { display: flex; align-items: stretch; }
.gallery-lightbox__shell {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: clamp(58px, 7vh, 84px) clamp(12px, 2vw, 28px) 24px;
}
.gallery-lightbox__figure {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.gallery-lightbox__figure img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 150px);
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5);
}
.gallery-lightbox__caption {
	display: flex;
	min-height: 24px;
	gap: 18px;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	text-align: center;
}
.gallery-lightbox__caption [data-gallery-counter] { color: var(--peach); white-space: nowrap; }
.gallery-lightbox__nav {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 27px;
	cursor: pointer;
}
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible { background: var(--burgundy); outline: 3px solid var(--peach); outline-offset: 2px; }

@media (max-width: 600px) {
	.gallery-lightbox__shell {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		padding-inline: 4px;
	}
	.gallery-lightbox__nav { width: 44px; height: 44px; font-size: 22px; }
	.gallery-lightbox__figure img { max-height: calc(100dvh - 170px); }
}

/* Meet Asha page — photo + bio side by side */
.meet-grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(24px, 4vw, 80px);
	align-items: center;
	min-height: 0;
}
.meet-grid__photo {
	max-width: 460px;
	justify-self: end;
}
.meet-grid__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 24px 48px rgba(95, 25, 31, 0.20);
	transform: rotate(-2deg);
}
.meet-grid__text { max-width: 640px; }

@media (max-width: 1023px) {
	.meet-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		text-align: center;
	}
	.meet-grid__photo {
		justify-self: center;
		max-width: 280px;
	}
	.meet-grid__photo img { transform: rotate(0deg); }
}

/* Per-theme page accent */
.page[data-theme="heart"]    { --accent: #B33A3A; --accent-soft: #F8E0E0; background: #FEFBF7; }
.page[data-theme="cheery"]   { --accent: #8B1A2B; --accent-soft: #FBE5E5; background: #FEFBF7; }
.page[data-theme="gift"]     { --accent: #A33644; --accent-soft: #FCE5DC; background: #FEFBF7; }
.page[data-theme="polaroid"] { --accent: #2D3F5F; --accent-soft: #E5EFF8; }
.page[data-theme="mirror"]   { --accent: #4A6FA5; --accent-soft: #E5EFF8; }
.page[data-theme="stamp"]    { --accent: #5F191F; --accent-soft: #F8F0E5; }

@media (max-width: 768px) {
	.page__top { padding: 16px 18px; }
	.page__main { padding: 0 4vw 3vh; }
	.page__brand img { width: 90px; }
	.page__back { padding: 8px 12px; font-size: 11px; }
	.page__back span:not(.page__back-arrow) { display: none; }
	.page__title { font-size: 36px; }
	.page__lead { font-size: 14px; margin-top: 12px; }
	.page__grid { grid-template-columns: 1fr; gap: 12px; overflow-y: auto; }
	.p-card { padding: 18px 16px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============================================================
   RESPONSIVE — tablet portrait & mobile
   The "physical stickerboard" metaphor breaks on small screens,
   so we switch to a clean vertical scroll layout.
   ============================================================ */

/* Tablet portrait (768–1023 px) — card centered, no peel */
@media (max-width: 1023px) and (min-width: 769px) {
	:root { --bs: 0.85; }
	.board { margin: 16px; min-height: calc(100vh - 32px); }
	.board__title { width: 86vw; gap: 10px; top: 3vh; transform: translateX(-50%); }
	.board__title h1 { font-size: 44px; }
	.board__title p { font-size: 13px; max-width: 380px; }
	.washi { width: 90px; height: 22px; }
	/* Même bascule à gauche qu'au palier supérieur, pour les mêmes raisons.
	   Ici la carte fait 480px et est centrée : la gouttière gauche vaut
	   (100vw - 480px) / 2. La note s'y inscrit, moins sa propre marge, sinon
	   elle mord sur le bord de la carte (elle le faisait déjà avant). */
	.board__note { font-size: 15px; max-width: 240px; margin-top: 10px; }
	.board__hint { margin-top: 6px; font-size: 11px; }
	/* La colonne porte désormais note et invite : on la resserre pour qu'elle
	   n'atteigne pas la carte, qui remonte à ce palier. */
	.board__title-logo, .board__title.is-idle .board__title-logo { width: clamp(170px, 21vw, 240px); }

	/* Card moves to the bottom, full prominent */
	.sticker-card {
		position: absolute;
		top: auto;
		bottom: 60px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		width: clamp(300px, 50vw, 410px);
	}
}

/* Mobile (≤ 768 px) — sticker card occupies viewport, no peel */
@media (max-width: 768px) {
	html { height: auto; min-height: 100%; }
	body { height: auto; min-height: 100%; background: #E8D8C0; overflow-y: auto; }
	.board {
		width: calc(100% - 16px);
		margin: 8px;
		/* Card height follows the canonical 420/592 ratio. Reserve enough room
		   for the full card plus note, footer and social controls on short phones. */
		min-height: max(calc(100vh - 16px), calc(180px + min(100vw - 24px, 460px) * 1.409524 + 180px));
		padding: 0;
	}
	.board::before, .board::after { display: none; }
	.washi { display: none; }
	.move-counter, .board__hint { display: none; }
	.reset-btn { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 18px; }

	/* Hero compact above the card */
	.board__title {
		position: absolute;
		top: 24px;
		left: 50%;
		transform: translateX(-50%);
		width: calc(100% - 32px);
		max-width: 360px;
		gap: 8px;
		text-align: center;
	}
	.board__title h1 { font-size: 26px; line-height: 1.05; }
	.board__title h1 .title-line-1, .board__title h1 .title-line-2 { white-space: normal; }
	.board__title p { font-size: 12px; max-width: 280px; }
	.board__title-sticker { display: none; }

	/* The card is the main element on mobile — no peel, just tap to open */
	.sticker-card {
		position: absolute;
		top: 180px;
		left: 50%;
		right: auto;
		bottom: auto;
		transform: translateX(-50%);
		width: calc(100vw - 24px);
		max-width: 460px;
	}

	/* Note below the card */
	.board__note {
		position: absolute;
		top: calc(180px + min(100vw - 24px, 460px) * 1.409524 + 14px);
		bottom: auto;
		right: auto;
		left: 50%;
		transform: translateX(-50%) rotate(-2deg);
		text-align: center;
		font-size: 16px;
		max-width: 240px;
	}

	.board__footer {
		position: absolute;
		bottom: 24px;
		left: 50%;
		transform: translateX(-50%);
		font-size: 10px;
	}

	/* Modals : tight padding */
	.modal { padding: 28px 22px 32px; border-radius: 20px; max-width: calc(100% - 16px); }
	.modal__close {
		position: sticky;
		top: 12px;
		right: auto;
		margin-left: auto;
		margin-bottom: -44px;
		z-index: 3;
		width: 44px;
		height: 44px;
	}
	.modal__head { grid-template-columns: 70px 1fr; gap: 14px; margin-bottom: 18px; }
	.modal__sticker { width: 70px; height: 70px; }
	.modal__title { font-size: 26px; }
	.modal__sub { font-size: 14px; }
	.modal__body { font-size: 14px; }
	.m-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
	.m-card { padding: 16px; }
	.m-card h3 { font-size: 18px; }
	.modal--mini { padding: 28px 22px; }
	.modal--mini .modal__title { font-size: 24px; }
	.affirmation { font-size: 16px; padding: 18px 14px; min-height: 70px; }
}

/* ==================================================================
   AJOUTS DU THÈME WORDPRESS
   Le prototype n'avait ni liens sociaux en page principale, ni figure
   ou CTA dans les modales. BYA-Site.docx (2026-07-29) remonte les
   réseaux sur le board ; la modale « Winning » a besoin des deux autres.
   Tokens et matière repris du design system : ombres papier bordeaux,
   micro-rotations, pilules.
   ================================================================== */

.board__social {
	display: flex;
	gap: 10px;
	z-index: 6;
}

.board__social-link {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	color: #5F191F;
	background: rgba(248, 240, 229, 0.82);
	box-shadow:
		0 6px 16px rgba(95, 25, 31, 0.14),
		inset 0 0 0 1px rgba(95, 25, 31, 0.06);
	transition: transform 0.2s cubic-bezier(0.25, 0.6, 0.4, 1),
	            box-shadow 0.2s cubic-bezier(0.25, 0.6, 0.4, 1),
	            background 0.2s ease;
}

.board__social-link:nth-child(1) { transform: rotate(-4deg); }
.board__social-link:nth-child(2) { transform: rotate(2deg); }
.board__social-link:nth-child(3) { transform: rotate(-2deg); }

.board__social-link:hover,
.board__social-link:focus-visible {
	background: #F8F0E5;
	transform: translateY(-3px) rotate(0deg) scale(1.06);
	box-shadow:
		0 12px 24px rgba(95, 25, 31, 0.22),
		inset 0 0 0 1px rgba(95, 25, 31, 0.10);
}

.m-figure {
	margin: 26px 0 0;
	border-radius: 18px;
	overflow: hidden;
	transform: rotate(-1.2deg);
	box-shadow:
		0 24px 48px rgba(95, 25, 31, 0.16),
		0 6px 14px rgba(0, 0, 0, 0.08),
		inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.m-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.m-cta {
	margin: 26px 0 0;
}

.bya-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 26px;
	border: none;
	border-radius: 999px;
	background: var(--accent, #5F191F);
	color: #F8F0E5;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(95, 25, 31, 0.22);
	transition: transform 0.2s cubic-bezier(0.25, 0.6, 0.4, 1),
	            box-shadow 0.2s cubic-bezier(0.25, 0.6, 0.4, 1);
}

.bya-cta:hover,
.bya-cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(95, 25, 31, 0.28);
}

.bya-cta .arrow { transition: transform 0.2s cubic-bezier(0.25, 0.6, 0.4, 1); }
.bya-cta:hover .arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.board__social-link,
	.bya-cta,
	.bya-cta .arrow { transition: none; }
	.board__social-link:hover,
	.board__social-link:focus-visible { transform: none; }
}

@media (max-width: 768px) {
	.board__social-link { width: 44px; height: 44px; }

	/* A mobile page is a vertical composition, not an absolutely-positioned
	   miniature of the desktop board. Keep canonical geometry inside the card,
	   while allowing the surrounding content to reflow with the real viewport. */
	@media (orientation: portrait) {
		.board {
			display: flex;
			flex-direction: column;
			align-items: center;
			min-height: calc(100svh - 16px);
			padding: 56px 12px 20px;
			overflow: hidden;
		}
		.board__title {
			position: relative;
			top: auto;
			left: auto;
			order: 1;
			transform: none;
			width: 100%;
			max-width: 420px;
		}
		.board__title-text { min-width: 0; width: 100%; }
		.board__title .eyebrow {
			max-width: 100%;
			font-size: clamp(9px, 3vw, 11px);
			letter-spacing: clamp(0.1em, 0.55vw, 0.2em);
			line-height: 1.4;
			overflow-wrap: anywhere;
		}
		.board__title-logo { max-width: 100%; }
		.board__title p { width: 100%; max-width: 100%; margin-inline: auto; overflow-wrap: anywhere; }
		.board__note {
			position: relative;
			top: auto;
			left: auto;
			right: auto;
			order: 2;
			transform: rotate(-2deg);
			margin: 20px auto 16px;
			max-width: min(280px, 100%);
		}
		.sticker-card {
			position: relative;
			top: auto;
			left: auto;
			right: auto;
			order: 3;
			transform: none;
			--mobile-card-width: min(calc(100vw - 40px), 420px);
			width: min(100%, var(--mobile-card-width));
			flex: 0 0 auto;
		}
		/* Heart and Star carry content too: on touch screens their actual button
		   boxes—not only decorative pixels—must reach 44px. Keep each enlarged
		   box centered on its canonical position. */
		.sticker-card .s-heart {
			top: calc(54.895% - 22px);
			left: calc(52.495% - 22px);
			width: 44px;
			height: 44px;
			aspect-ratio: auto;
			display: grid;
			place-items: center;
		}
		.sticker-card .s-star {
			top: calc(91.81% - 22px);
			left: calc(90.715% - 22px);
			width: 44px;
			height: 44px;
			aspect-ratio: auto;
			display: grid;
			place-items: center;
		}
		.sticker-card .s-heart img {
			width: calc(var(--mobile-card-width) * 0.1119);
			height: auto;
			object-fit: contain;
		}
		.sticker-card .s-star img {
			width: calc(var(--mobile-card-width) * 0.0667);
			height: auto;
			object-fit: contain;
		}
		.board__bar {
			position: relative;
			left: auto;
			right: auto;
			bottom: auto;
			order: 4;
			width: 100%;
			flex-direction: column;
			justify-content: center;
			gap: 0;
			margin-top: 0;
		}
		.board__bar .board__footer { flex: 0 0 auto; }
		.board__footer {
			position: relative;
			bottom: auto;
			left: auto;
			order: 4;
			transform: none;
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			align-items: center;
			gap: 6px 10px;
			width: 100%;
			margin: 22px auto 14px;
			padding: 0 4px;
			font-size: 11px;
			line-height: 1.45;
			text-align: center;
			white-space: normal;
		}
		.board__footer a,
		.board__footer span { max-width: 100%; }
		.board__social {
			position: relative;
			left: auto;
			right: auto;
			bottom: auto;
			order: 5;
			justify-content: center;
			flex-wrap: nowrap;
			gap: 12px;
			margin: 0 auto;
		}
	}

	/* Let the close control occupy its own row. The previous negative margin
	   placed it over long headings such as WINNING! on narrow phones. */
	.modal__close {
		margin-bottom: 8px;
	}
	.modal__head {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.modal__sticker { display: none; }
	.modal__heading { min-width: 0; }
	.modal__title {
		max-width: 100%;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 360px) and (orientation: portrait) {
	.board { padding-inline: 8px; }
	.board__footer {
		flex-direction: column;
		gap: 4px;
		font-size: 11px;
	}
	.board__footer > span:nth-child(2),
	.board__footer > span:nth-child(4) { display: none; }
}

/* Short landscape phones: keep the complete canonical card visible beside a
   compact hero instead of vertically centering a 677px card in a 390px screen. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
	.board {
		min-height: calc(100vh - 16px);
	}
	.board__title {
		top: 50%;
		left: 24px;
		width: 38vw;
		max-width: 300px;
		transform: translateY(-50%);
		text-align: left;
	}
	.board__title h1 { font-size: clamp(22px, 4vw, 34px); }
	.board__title p { font-size: 12px; max-width: 280px; }
	.sticker-card {
		top: 50%;
		left: auto;
		right: 24px;
		bottom: auto;
		width: min(43vw, calc((100vh - 32px) * 0.70946));
		max-width: none;
		transform: translateY(-50%);
	}
	.board__note { display: none; }
	.move-counter, .board__hint { display: none; }
	.board__footer { font-size: 9px; }
	.board__social { gap: 6px; }
	.board__social-link { width: 44px; height: 44px; }
}

/* ============================================================
   SECTIONS EN CLAIR
   Le contenu s'ouvrait en modales et en panneaux pleine page ; il est
   désormais rendu dans la page, sous la planche. Les stickers y mènent.
   ============================================================ */
/* Même traitement que .board — carte crème posée sur le mur — pour que la
   page se lise d'un seul tenant au lieu de faire flotter le texte sur le
   fond brun. */
.sections {
	position: relative;
	width: calc(100% - 48px);
	margin: 0 24px 24px;
	padding: clamp(24px, 4vw, 64px) clamp(20px, 4vw, 72px) clamp(32px, 5vw, 72px);
	border-radius: 28px;
	background:
		radial-gradient(ellipse at 80% 0%, #FFE5D5 0%, transparent 40%),
		linear-gradient(180deg, #FFFCF6 0%, var(--cream) 100%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.7),
		0 4px 12px rgba(0, 0, 0, 0.06),
		0 24px 60px rgba(95, 25, 31, 0.14);
}

.section {
	padding: clamp(48px, 7vh, 96px) 0;
	border-top: 1px solid rgba(95, 25, 31, 0.12);
	scroll-margin-top: 24px;
}
.section:first-child { border-top: 0; }
.section:focus { outline: none; }
.section:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 6px; }

.section__inner {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

/* Le sticker décale l'en-tête vers la droite. Les deux mesures qui produisent
   ce décalage sont nommées ici parce que le corps de section doit s'aligner
   dessus — voir .section__body plus bas. */
.section {
	--section-sticker: clamp(52px, 6vw, 82px);
	--section-head-gap: clamp(14px, 2vw, 28px);
}
.section__head {
	display: flex;
	align-items: flex-start;
	gap: var(--section-head-gap);
	margin-bottom: 22px;
}
.section__sticker {
	flex: 0 0 auto;
	width: var(--section-sticker);
}
.section__sticker img { width: 100%; height: auto; display: block; }
.section__heading { min-width: 0; }

.section__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 900;
	font-size: clamp(30px, 4vw, 56px);
	line-height: 1.04;
	color: var(--burgundy);
	letter-spacing: -0.01em;
}
.section__sub {
	margin-top: 14px;
	font-size: clamp(15px, 1.2vw, 18px);
	line-height: 1.55;
	color: var(--ink);
	max-width: 720px;
}

.section__body { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: var(--ink); }
/* « Ici, là, il y a juste un décalage, si t'arrives à le mettre en aligné avec
   ça » (vidéo du 19/08, 2:55, sur le manifeste). L'en-tête est une ligne flex
   qui commence après le sticker ; le corps, lui, partait du bord du bloc. Titre
   et texte n'avaient donc pas le même bord gauche, d'un demi-sticker d'écart.

   L'indentation ne vaut qu'à partir de 769px : en dessous, le sticker fait
   encore 52px et les reprendre entamerait un sixième de la largeur de lecture.
   Les pages légales (.legal) n'ont pas de sticker et gardent le bord du bloc. */
@media (min-width: 769px) {
	.sections:not(.legal) .section__body {
		padding-inline-start: calc(var(--section-sticker) + var(--section-head-gap));
	}
}
.section__body > * + * { margin-top: 16px; }
.section__body p { max-width: 760px; }
.section__body h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	color: var(--burgundy);
	font-size: clamp(19px, 1.7vw, 24px);
}
.section__body .m-figure img,
.section__body figure img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

/* Les grilles étaient dimensionnées pour un panneau plein écran en flex
   (flex:1, min-height:0, scroll interne). Dans le flux, elles doivent
   simplement s'étendre. */
.section__body .logos-grid,
.section__body .gallery-grid {
	flex: none;
	min-height: 0;
	overflow: visible;
	margin-top: 28px;
}
.section__body .gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
}
.section__body .logo-cell img { max-width: 100%; height: auto; }

.section--contact .section__contact-lines {
	margin-top: 18px;
	font-size: clamp(16px, 1.4vw, 20px);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.section--contact a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid rgba(95, 25, 31, 0.3); }
.section--contact a:hover { border-bottom-color: var(--burgundy); }
.section__social { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }

@media (max-width: 768px) {
	.sections { width: calc(100% - 24px); margin: 0 12px 12px; padding: 20px 18px 28px; border-radius: 20px; }
	.section { --section-head-gap: 12px; }
}

/* Témoignages — listés en clair. Ils vivaient dans un carrousel derrière un
   clic ; il fallait naviguer slide à slide pour les lire. */
.testimonials { list-style: none; margin-top: 28px; display: grid; gap: clamp(18px, 2.4vw, 32px); }
.testimonial {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(95, 25, 31, 0.10);
	border-radius: 16px;
	padding: clamp(18px, 2.2vw, 30px);
}
.testimonial__quote {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: clamp(16px, 1.35vw, 20px);
	line-height: 1.55;
	color: var(--burgundy-dark);
	margin: 0;
}
.testimonial__by { margin-top: 14px; font-size: 14px; color: var(--ink-dim); }
.testimonial__name { font-weight: 700; color: var(--ink); }

@media (min-width: 900px) {
	.testimonials { grid-template-columns: repeat(2, 1fr); }
}

/* Photo de section — fournie par la cliente pour la section correspondante.
   Les originaux sont des portraits 2:3 : à 640 px de large ils feraient 960 px
   de haut et mangeraient l'écran entier. On plafonne la hauteur et on laisse
   la largeur suivre. */
.section__figure { margin-top: 28px; }
.section__figure img {
	max-width: min(100%, 640px);
	max-height: 460px;
	width: auto;
	height: auto;
	display: block;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(95, 25, 31, 0.14);
}
/* La planche des piliers est un visuel large à lire, pas un portrait. */
.section[data-theme="heart"] .section__figure img {
	width: 100%;
	max-width: 100%;
	max-height: none;
}

/* ============================================================
   RETOUR DU 17/08 — portrait des témoignages, photo de côté, bouton home
   ============================================================ */

/* V10 — le portrait était perdu au passage du carrousel au rendu en clair. */
.testimonial { display: flex; gap: clamp(14px, 1.6vw, 22px); align-items: flex-start; }
.testimonial__photo {
	flex: 0 0 auto;
	width: clamp(56px, 6vw, 84px);
	height: clamp(56px, 6vw, 84px);
	object-fit: cover;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(95, 25, 31, 0.16);
}
.testimonial__body { min-width: 0; }

/* V4 — « est-ce que la photo, elle peut être de côté ? » Le texte occupait
   toute la largeur et la photo se posait dessous, ce qui allongeait beaucoup
   une page qui compte déjà onze sections. */
@media (min-width: 900px) {
	/* column-gap seulement : chaque paragraphe est une rangée de la grille, et
	   un row-gap viendrait s'ajouter aux marges verticales existantes. */
	.section__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 3vw, 48px); row-gap: 0; align-items: start; }
	.section__body > .section__figure { grid-column: 2; grid-row: 1 / span 99; margin-top: 0; align-self: start; }
	.section__body > :not(.section__figure) { grid-column: 1; }
	/* Les grilles gardent toute la largeur : elles sont le contenu, pas un à-côté. */
	.section__body > .logos-grid,
	.section__body > .gallery-grid,
	.section__body > .testimonials { grid-column: 1 / -1; }
	.section__figure img { max-height: 420px; }
	/* Une infographie paysage ne tient pas dans la colonne de droite : elle y
	   prend toute la largeur disponible et réduit les paragraphes à quelques
	   caractères par ligne. Elle reste donc en flux, sous le texte.

	   La règle visait le manifeste, seule section concernée jusqu'au 19/08.
	   Heedership a reçu la sienne ce jour-là et reproduisait le même
	   écrasement : elle porte maintenant sur l'orientation de l'image, que
	   bya_section_photo() mesure et signale par section__figure--wide. */
	.section__body:has(> .section__figure--wide) {
		grid-template-columns: minmax(0, 1fr);
	}
	.section__body > .section__figure--wide {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
		margin-top: 28px;
	}
}

/* V1 — retour en haut. La page est longue depuis le passage aux sections et
   rien n'y ramenait : « il me faudra juste un truc home ». */
.home-btn {
	position: fixed;
	top: 18px;
	left: 18px;
	z-index: 95;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(248, 240, 229, 0.92);
	box-shadow: 0 6px 18px rgba(95, 25, 31, 0.16), inset 0 0 0 1px rgba(95, 25, 31, 0.08);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.home-btn img { display: block; height: 26px; width: auto; }
body.is-scrolled .home-btn { opacity: 1; visibility: visible; transform: none; }
.home-btn:hover, .home-btn:focus-visible { background: #F8F0E5; outline: none; }
@media (max-width: 768px) { .home-btn { top: 10px; left: 10px; padding: 6px 10px; } .home-btn img { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .home-btn { transition: none; } }

/* V12 — sélecteur de langue, groupé avec le reset en haut à droite. */
.lang-switch {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 95;
	display: flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(248, 240, 229, 0.92);
	box-shadow: 0 6px 18px rgba(95, 25, 31, 0.16), inset 0 0 0 1px rgba(95, 25, 31, 0.08);
	backdrop-filter: blur(6px);
}
.lang-switch button {
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--ink-dim);
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.is-active { background: var(--burgundy); color: var(--cream); }
.lang-switch button:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
@media (max-width: 768px) { .lang-switch { top: 10px; right: 10px; } .lang-switch button { padding: 6px 10px; } }

/* V13 — pages légales. Même carte crème que les sections, sans la planche. */
.sections.legal { margin-top: 24px; }
.legal .section__title { font-size: clamp(28px, 3.4vw, 46px); }
.legal .section__body h2 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--burgundy); font-size: clamp(20px, 1.9vw, 26px); margin-top: 28px; }
.legal .section__body ul { margin-left: 1.2em; list-style: disc; }
.legal .section__body a { color: var(--burgundy); }
.legal__back { margin-top: 36px; font-size: 15px; }
.legal__back a { color: var(--burgundy); }
.home-btn.is-static { position: absolute; opacity: 1; visibility: visible; transform: none; }
