/* =========================================================
   DANA DUYÊN · carnet de voyage éditorial
   ========================================================= */
:root {
  --ivory: #F6F3EE;
  --paper: #FBF9F5;
  --sand: #EDE6DC;
  --sand-2: #D9D1C6;
  --taupe: #A89B8D;
  --taupe-ink: #6E645A;
  --ink: #1E1E1E;
  --ink-soft: #3B3835;
  --burgundy: #6B1E2A;
  --olive: #6E7356;
  --line: rgba(30, 30, 30, .14);
  --line-light: rgba(246, 243, 238, .16);

  /* Novembre 2026 : titres en Noto Serif Display (gère le vietnamien), sans mot en italique. Playfair ne sert plus qu'au logo,
     identique aux PNG publiés dans img/logo/. Seuls restent en italique : « Duyên », sa définition, le texte de la carte postale. */
  --serif: "Noto Serif Display", "Playfair Display", Georgia, serif;
  --logo: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --hand: "Reenie Beanie", "Segoe Print", cursive;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-print: 0 1px 1px rgba(0, 0, 0, .04), 0 22px 44px -22px rgba(45, 28, 22, .38);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--burgundy); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* ---------- Atmosphère ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, 3%); }
  80% { transform: translate(3%, 1%); }
}

/* Marque-page en ruban : avance avec le scroll */
.bookmark {
  position: fixed; top: 0; right: clamp(8px, 1.4vw, 22px); z-index: 60;
  width: 14px; height: calc(48px + var(--p, 0) * (100vh - 110px));
  background: linear-gradient(90deg, #4E131D 0%, #7A2433 42%, #8E3343 55%, #56161F 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  pointer-events: none;
}

.curtain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--burgundy); transform: scaleY(0);
}

.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }
.cursor span {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--burgundy); color: var(--ivory);
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.on span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 96;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  padding: 12px 18px; font-size: 13px; box-shadow: var(--shadow-print);
  transition: opacity .4s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Typo commune ---------- */
/* Novembre 2026 : plus de libellé à trait au-dessus des titres ; il ne reste que la ligne de l'accueil, en texte courant.
   Les capitales espacées ne servent plus qu'à la carte postale et à la pellicule. */
.kicker { font-size: 15px; font-weight: 400; color: var(--taupe-ink); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em;
  max-width: 17ch;
}
.h2 em { font-style: italic; }
.hand { font-family: var(--hand); font-size: 30px; line-height: 1.05; color: var(--burgundy); font-weight: 400; }
.hand svg { width: 52px; height: 30px; vertical-align: middle; color: var(--burgundy); }
.mini-label { font-size: 14px; font-weight: 400; color: var(--taupe-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: background .35s, color .35s, border-color .35s;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary { background: var(--burgundy); color: var(--ivory); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-light { border-color: rgba(246, 243, 238, .35); color: var(--ivory); }
.btn-light:hover { background: var(--ivory); color: var(--ink); }
.btn-sm { padding: 12px 18px; font-size: 14px; }

.tape {
  position: absolute; z-index: 3; width: 96px; height: 26px; top: -13px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(225, 216, 202, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  clip-path: polygon(3% 0, 97% 0, 100% 16%, 96% 32%, 100% 50%, 96% 68%, 100% 84%, 97% 100%, 3% 100%, 0 84%, 4% 68%, 0 50%, 4% 32%, 0 16%);
}

.bow { display: block; overflow: visible; filter: drop-shadow(0 6px 8px rgba(60, 15, 20, .25)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px calc(var(--gutter) + 26px) 22px var(--gutter);
  transition: transform .55s var(--ease), background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 243, 238, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: 13px; padding-bottom: 13px; border-color: var(--line);
}
.site-header.hide { transform: translateY(-105%); }
.logo { position: relative; font-family: var(--logo); font-size: 30px; letter-spacing: .07em; line-height: 1; padding-top: 6px; }
.logo-duyen {
  position: absolute; left: -16px; top: -12px; transform: rotate(-12deg);
  font-family: var(--hand); font-size: 25px; letter-spacing: 0; color: var(--burgundy);
}
.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); font-size: 15px; font-weight: 400; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; font-size: 13px; }
.lang button { padding: 6px 6px; opacity: .4; transition: opacity .3s; }
.lang button:hover { opacity: .8; }
.lang button.on { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.burger { display: none; position: relative; width: 42px; height: 42px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ivory);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .75s var(--ease-io), visibility 0s .75s;
}
.mobile-menu.open { transform: none; visibility: visible; transition: transform .75s var(--ease-io), visibility 0s; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(38px, 11vw, 60px); line-height: 1.12;
}
.mobile-menu nav a span { font-family: var(--sans); font-size: 13px; color: var(--taupe-ink); }
.mobile-menu nav a b { font-weight: 400; }
.mobile-menu-foot .hand { font-size: 32px; margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: 1480px; margin: 0 auto; min-height: 100svh;
  display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 140px var(--gutter) 90px;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.3rem, 8.4vw, 9rem); line-height: .96; letter-spacing: -.028em;
  margin: 28px 0 34px;
}
.hero-title .line { display: block; }
.hero-title em { font-style: normal; }
.circled { position: relative; display: inline-block; padding: 0 .06em; }
.oval { position: absolute; left: -9%; top: -4%; width: 118%; height: 116%; overflow: visible; pointer-events: none; }
.oval path {
  fill: none; stroke: var(--burgundy); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.loaded .oval path { animation: draw 1.5s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-intro { max-width: 44ch; font-size: 17px; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; margin-top: 56px; max-width: 430px; }
.route-city { display: flex; flex-direction: column; gap: 6px; }
.route-city.right { text-align: right; }
.route-name { font-size: 14px; color: var(--taupe-ink); }
.route-time { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.route-line { position: relative; height: 1px; margin-bottom: 12px; border-top: 1px dashed var(--taupe); }
.route-line::before, .route-line::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--taupe-ink); background: var(--ivory);
}
.route-line::before { left: -3px; }
.route-line::after { right: -3px; }
.route-line i {
  position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--burgundy);
  animation: fly 6s var(--ease-io) infinite alternate;
}
@keyframes fly { to { left: calc(100% - 5px); } }

/* Animations d'entrée */
/* Novembre 2026 : l'accueil s'affiche d'un coup, seul l'ovale se dessine. */

/* Pile de cartes */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.deck { position: relative; width: min(390px, 82%); aspect-ratio: 4 / 5.25; cursor: pointer; outline-offset: 16px; }
.card {
  position: absolute; inset: 0; background: #fff; padding: 12px 12px 62px;
  box-shadow: var(--shadow-print);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform .95s var(--ease), opacity .7s;
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .cap { font-family: var(--hand); font-size: 27px; line-height: 1; color: var(--ink); }
.card .coord { font-size: 9px; letter-spacing: .14em; color: var(--taupe-ink); white-space: nowrap; }
.card.out { transform: translate(118%, -8%) rotate(16deg) !important; transition: transform .55s var(--ease-io); }
.bow-hero { position: absolute; z-index: 20; width: 100px; height: 94px; top: calc(50% - 300px); left: calc(50% - 250px); transform: rotate(-16deg); }
.seal {
  position: absolute; z-index: 20; width: 132px; height: 132px; right: 2%; bottom: 7%;
  color: var(--ink); font-family: var(--sans); fill: currentColor;
  animation: spin 32s linear infinite;
}
.seal-mid { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.deck-hint { position: absolute; z-index: 20; left: -2%; bottom: 14%; transform: rotate(-8deg); font-size: 28px; }
.deck-hint svg { transform: rotate(-10deg) translateY(-4px); }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 54px; padding-right: 54px; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 52px); line-height: 1.1;
}
.marquee-item::after { content: "✦"; font-style: normal; font-size: .36em; color: var(--burgundy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 10vw, 140px) 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { position: relative; margin-bottom: clamp(44px, 6vw, 84px); }
.section-head.split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
.section-head.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head.center .kicker::before { display: none; }
.section-head.center .h2 { max-width: none; }

/* Novembre 2026 : plus de fondu à l'apparition des blocs (main.js pose toujours la classe « in », sans effet visuel). */

/* ---------- Sommaire des univers ---------- */
.note-index { position: absolute; right: 3%; bottom: 4px; transform: rotate(-5deg); }
.note-index svg { transform: rotate(70deg) translateY(-6px); }
/* Novembre 2026 : page de carnet à intercalaires (les règles .index-list, .row et .index-preview plus bas ne servent plus) */
.book { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.book-page {
  grid-column: 1; grid-row: 1; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); min-height: 560px;
  background: var(--paper); border: 1px solid rgba(30, 30, 30, .09); box-shadow: var(--shadow-print);
}
.book-photo { display: block; padding: 16px; cursor: pointer; }
.book-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background-size: cover; background-position: center; }
.book-text {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(28px, 4.4vw, 70px);
}
.book-count { font-size: 14px; color: var(--taupe-ink); }
.book-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -.02em; margin: 12px 0 18px; }
.book-tag { font-size: 17px; color: var(--ink-soft); max-width: 30ch; }
.book-proof { margin-top: 10px; font-size: 14px; color: var(--taupe-ink); }
.book-text .btn { margin-top: 36px; }
.book-tabs { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 6px; padding: 28px 0; margin-left: -1px; }
.book-tab {
  min-width: 148px; padding: 13px 20px 13px 18px; text-align: left; font-size: 15px; line-height: 1.2;
  background: var(--sand); border: 1px solid rgba(30, 30, 30, .1); border-left: 0; border-radius: 0 9px 9px 0;
  transition: background .25s, color .25s, padding .25s;
}
.book-tab:hover { background: var(--sand-2); }
.book-tab[aria-selected="true"] { position: relative; z-index: 2; background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); padding-right: 34px; }
.index-list { border-bottom: 1px solid var(--line); counter-reset: none; }
.index-list li { position: relative; z-index: 0; }
.row {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 74px minmax(0, 1.25fr) minmax(0, 1fr) 46px; align-items: center; gap: 20px;
  padding: 22px 6px; border-top: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row-num { font-size: 14px; color: var(--taupe-ink); transition: color .4s; }
.row-title {
  font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.02em;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  transition: transform .6s var(--ease);
}
.row-tag { font-size: 14px; color: var(--ink-soft); }
.row-arrow { justify-self: end; font-size: 22px; transition: transform .5s var(--ease); }
.row-thumb { display: none; }
.row:hover .row-title, .row:focus-visible .row-title { transform: translateX(22px); }
.row:hover .row-num, .row:focus-visible .row-num { color: var(--burgundy); }
.row:hover .row-arrow { transform: rotate(45deg); }

.index-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 230px; aspect-ratio: 4 / 5;
  padding: 10px; background: #fff; box-shadow: var(--shadow-print);
  pointer-events: none; opacity: 0; transition: opacity .35s;
}
.index-preview.show { opacity: 1; }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .index-preview { display: none; } }

/* ---------- Reels / pellicule ---------- */
.motion { background: var(--sand); display: flex; flex-direction: column; padding-top: 0; }
.motion .film { order: -1; }
.motion > .wrap { width: 100%; }
.motion .section-head { margin: clamp(34px, 4.4vw, 56px) 0 0; }
.motion .h2 { max-width: none; }
.motion-note { transform: rotate(-4deg); text-align: right; font-size: 30px; }
.film { position: relative; background: #171615; padding: 34px 0 40px; cursor: grab; }
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(246, 243, 238, .8) 10px 22px, transparent 22px 32px);
}
.film::before { top: 12px; }
.film::after { bottom: 12px; }
.film-track {
  display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.film-track::-webkit-scrollbar { display: none; }
.film-track.dragging { scroll-snap-type: none; cursor: grabbing; }
.reel { flex: 0 0 auto; width: clamp(190px, 21vw, 270px); scroll-snap-align: start; }
.reel-edge { display: flex; justify-content: space-between; padding: 0 2px 8px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .16em; color: rgba(217, 168, 120, .7); }
.reel-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 3px; background: #262422; }
.reel-frame video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 6s var(--ease); }
.reel-link:hover video { transform: scale(1.06); }
.reel-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 24%, transparent 52%, rgba(0,0,0,.72) 100%); }
.reel-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-size: 12px; font-weight: 500; color: var(--ivory);
  background: rgba(30, 30, 30, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 9px; border-radius: 2px;
}
.reel-views { position: absolute; z-index: 2; left: 14px; bottom: 14px; color: var(--ivory); }
.reel-views b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.reel-views span { font-size: 13px; opacity: .82; }
.reel-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(246, 243, 238, .75); color: var(--ivory);
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease);
}
.reel-play svg { width: 16px; height: 16px; margin-left: 3px; fill: currentColor; }
.reel-link:hover .reel-play { opacity: 1; transform: none; }
.reel-link { color: inherit; -webkit-user-drag: none; }
.motion-hint { margin-top: 16px; font-size: 13px; color: var(--taupe-ink); }

/* ---------- Chiffres ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.stat-hero { position: relative; grid-column: 1 / -1; justify-self: start; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; font-size: inherit; font-weight: inherit; }
.stat-big { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 12vw, 11rem); line-height: .85; letter-spacing: -.035em; }
.stat-label { font-size: clamp(17px, 1.7vw, 22px); color: var(--ink-soft); max-width: 12ch; line-height: 1.3; }
.annot { display: block; position: absolute; right: 0; top: -46px; transform: rotate(-6deg); font-size: 28px; }
.annot svg { transform: scaleX(-1) rotate(-20deg) translateY(12px); }
.stat-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-block: 1px solid var(--line); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.9rem); line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-soft); max-width: 20ch; line-height: 1.45; }
.countries { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; margin-top: 54px; }
.postmarks { display: flex; flex-wrap: wrap; gap: clamp(10px, 3vw, 40px); }
.postmark { width: clamp(150px, 15vw, 196px); height: auto; color: var(--burgundy); overflow: visible; }
.postmark text { fill: currentColor; font-family: var(--sans); }
.postmark .pm-num { font-family: var(--serif); font-weight: 400; }
.numbers-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); }
.period { font-size: 12px; color: var(--taupe-ink); }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--burgundy); border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ---------- Services : fiches ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 30px; }
.svc-wrap { --d: 0s; }
.svc {
  position: relative; height: 100%; min-height: 400px; display: flex; flex-direction: column;
  padding: 64px 28px 28px; background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(107, 30, 42, .07) 31px 32px);
  background-position: 0 18px;
  border: 1px solid rgba(30, 30, 30, .08);
  transform: rotate(var(--r, 0deg));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}
.svc:hover { transform: rotate(0deg) translateY(-10px); box-shadow: 0 34px 50px -32px rgba(45, 28, 22, .45); }
.svc-ribbon {
  position: absolute; top: -7px; left: 26px; width: 36px; height: 66px; padding-top: 16px;
  display: flex; justify-content: center;
  background: linear-gradient(90deg, #4E131D 0%, #7A2433 45%, #56161F 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  color: var(--ivory); font-size: 12px; font-weight: 500;
}
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.16; letter-spacing: -.01em; margin-bottom: 14px; max-width: 15ch; }
.svc p { font-size: 14px; color: var(--ink-soft); max-width: 32ch; }
.svc-more { align-self: flex-start; margin: 14px 0 24px; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.svc-stamp {
  --rr: 5px;
  align-self: flex-end; margin-top: auto; width: 118px; transform: rotate(4deg);
  padding: calc(2 * var(--rr));
  background:
    radial-gradient(var(--rr), #0000 98%, #fff) round calc(-1.5 * var(--rr)) calc(-1.5 * var(--rr)) / calc(3 * var(--rr)) calc(3 * var(--rr)),
    linear-gradient(#fff 0 0) no-repeat 50% / calc(100% - 3 * var(--rr)) calc(100% - 3 * var(--rr));
  filter: drop-shadow(0 6px 10px rgba(45, 28, 22, .18));
  transition: transform .7s var(--ease);
}
.svc:hover .svc-stamp { transform: rotate(-3deg) scale(1.06); }
.svc-stamp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rates { display: flex; align-items: center; gap: 14px; margin-top: 64px; font-size: 14px; color: var(--taupe-ink); }
.bow-mini { width: 38px; height: 36px; flex: none; }

/* ---------- Marques ---------- */
.brands { overflow: hidden; }
.brands-h b { font-weight: inherit; }
.logo-wall {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  counter-reset: brand;
}
.logo-cell {
  --k: .86;
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 124px; padding: 20px 10px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  counter-increment: brand; transition: background .5s var(--ease);
}
.logo-cell::before {
  content: counter(brand, decimal-leading-zero);
  position: absolute; top: 10px; left: 12px;
  font-size: 10px; color: var(--taupe);
}
.logo-mark {
  display: block; flex: none; max-width: 100%;
  width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
  background: var(--ink); opacity: .8;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background .45s, opacity .45s, transform .7s var(--ease);
}
.logo-name {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11px; font-weight: 500; color: var(--taupe-ink);
  opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ease);
}
.logo-cell:hover { background: var(--paper); }
.logo-cell:hover .logo-mark { background: var(--burgundy); opacity: 1; transform: scale(1.06) translateY(-4px); }
.logo-cell:hover .logo-name { opacity: 1; transform: none; }

/* ---------- À propos ---------- */
.about { background: linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(44px, 7vw, 110px); align-items: center; }
.about-visual { position: relative; padding-bottom: 70px; }
.arch { width: 80%; aspect-ratio: 4 / 5.3; overflow: hidden; border-radius: 2px; } /* plus d'arche : tirage droit (novembre 2026) */
.arch img { width: 100%; height: 100%; object-fit: cover; }
.polaroid { position: absolute; background: #fff; padding: 10px 10px 48px; box-shadow: var(--shadow-print); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 14px; bottom: 10px; font-size: 26px; color: var(--ink); }
.p-about { width: 44%; right: 0; bottom: 0; transform: rotate(6deg); }
.bow-about { position: absolute; width: 92px; height: 86px; left: -18px; top: 20px; transform: rotate(-20deg); }
.letter {
  position: relative; background: var(--paper); padding: clamp(34px, 4.4vw, 60px);
  border: 1px solid rgba(30, 30, 30, .06); box-shadow: 0 30px 60px -44px rgba(45, 28, 22, .45);
  transform: rotate(-.8deg);
}
.letter.in { transform: rotate(-.8deg); }
.tape-letter { top: -12px; left: 18%; transform: rotate(-5deg); }
.letter-hello { font-size: 36px; margin-top: 18px; transform: rotate(-3deg); transform-origin: left; }
.letter-title { margin: 6px 0 24px; font-size: clamp(2.6rem, 4.6vw, 4rem); }
.letter p + p { margin-top: 14px; }
.definition { margin: 30px 0 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.def-word { font-family: var(--serif); font-style: italic; font-size: 30px; }
.def-type { margin-left: 8px; font-size: 12px; color: var(--taupe-ink); }
.def-text { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin-top: 4px !important; }
.langs { font-size: 14px; color: var(--taupe-ink); }
.signature { text-align: right; font-size: 60px; transform: rotate(-5deg); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); padding-top: clamp(100px, 12vw, 170px); }
.contact > .wrap { position: relative; z-index: 2; }
.contact-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 7.4vw, 7.4rem);
  line-height: .98; letter-spacing: -.028em; max-width: 13ch; margin: 24px 0 30px;
}
.contact-title em { font-style: italic; color: var(--sand-2); }
.contact-text { max-width: 46ch; font-size: 17px; color: rgba(246, 243, 238, .74); }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }

/* Carte QR (WhatsApp / Zalo) */
.qr-card {
  position: absolute; z-index: 5; top: calc(100% + 18px); left: 0; width: 248px;
  padding: 50px 26px 22px; background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  transform: rotate(-1.5deg) translateY(10px); opacity: 0;
  transition: opacity .35s, transform .55s var(--ease);
}
.qr-card.open { opacity: 1; transform: rotate(-1.5deg); }
.qr-ribbon {
  position: absolute; top: -7px; left: 22px; width: 26px; height: 46px;
  background: linear-gradient(90deg, #4E131D 0%, #7A2433 45%, #56161F 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.qr-close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: var(--taupe-ink); transition: background .3s, color .3s;
}
.qr-close:hover { background: var(--ink); color: var(--ivory); }
.qr-text { margin: 6px auto 16px; max-width: 22ch; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.qr-code { display: block; width: 176px; height: 176px; margin: 0 auto; padding: 10px; background: #fff; box-sizing: content-box; }
.qr-note { margin-top: 10px; font-size: 26px; transform: rotate(-3deg); }
.qr-open { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--burgundy); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
/* Formulaire en carte postale */
.postcard {
  position: relative; max-width: 1000px; margin-top: 52px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 44px;
  padding: 58px 44px 30px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .75);
}
.pc-head {
  position: absolute; top: 20px; left: 0; right: 0; text-align: center;
  font-size: 10px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe-ink);
}
.pc-left { display: flex; flex-direction: column; padding-right: 44px; border-right: 1px solid var(--line); }
.pc-label { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-ink); }
.postcard textarea {
  flex: 1; width: 100%; min-height: 232px; resize: vertical; padding: 0 2px; border: 0; outline: 0;
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 32px; color: var(--ink);
  background: transparent repeating-linear-gradient(180deg, transparent 0 31px, rgba(30, 30, 30, .16) 31px 32px);
}
.postcard textarea:focus { background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(107, 30, 42, .4) 31px 32px); }
.pc-sign { margin-top: 10px; font-size: 26px; }
.pc-right { position: relative; padding-top: 118px; }
.pc-stamp {
  --rr: 4px;
  position: absolute; top: -10px; right: 0; width: 88px; transform: rotate(3deg);
  padding: calc(2 * var(--rr));
  background:
    radial-gradient(var(--rr), #0000 98%, #fff) round calc(-1.5 * var(--rr)) calc(-1.5 * var(--rr)) / calc(3 * var(--rr)) calc(3 * var(--rr)),
    linear-gradient(#fff 0 0) no-repeat 50% / calc(100% - 3 * var(--rr)) calc(100% - 3 * var(--rr));
  filter: drop-shadow(0 4px 8px rgba(45, 28, 22, .2));
}
.pc-stamp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pc-postmark { position: absolute; top: 14px; right: 58px; width: 172px; color: var(--burgundy); opacity: .8; transform: rotate(-8deg); }
.pc-postmark text { fill: currentColor; font-family: var(--sans); }
.pc-pm-year { font-family: var(--serif) !important; font-style: italic; font-size: 16px; }
.postcard.sent .pc-postmark { animation: stamp-in .7s var(--ease); }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-8deg) scale(1.6); } to { opacity: .8; transform: rotate(-8deg) scale(1); } }
.pc-field + .pc-field { margin-top: 18px; }
.postcard input, .postcard select {
  width: 100%; padding: 8px 0 9px; border: 0; border-bottom: 1px solid rgba(30, 30, 30, .25); border-radius: 0; outline: 0;
  background: transparent; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.postcard input:focus, .postcard select:focus { border-color: var(--burgundy); box-shadow: 0 1px 0 var(--burgundy); }
.postcard select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E645A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.postcard option { color: var(--ink); background: var(--paper); }
.pc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pc-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pc-status { flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-soft); }
.pc-status[data-kind="error"] { color: var(--burgundy); }
.pc-status[data-kind="ok"] { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.postcard.sending .pc-send { opacity: .6; pointer-events: none; }
.contact-alt { margin-top: 64px; color: rgba(246, 243, 238, .55); }
.contact-mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.contact-mail {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.2;
  border-bottom: 1px solid rgba(246, 243, 238, .3); padding-bottom: 2px; transition: border-color .3s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { border-color: var(--ivory); }
.copy-mail {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px;
  border: 1px solid rgba(246, 243, 238, .25); border-radius: 99px; background: none; color: var(--ivory); cursor: pointer;
  font-size: 14px; font-weight: 500; transition: background .3s, color .3s;
}
.copy-mail svg { width: 15px; height: 15px; }
.copy-mail:hover { background: var(--ivory); color: var(--ink); }
.contact-mail-row + .contact-actions { margin-top: 26px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.socials a {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border: 1px solid rgba(246, 243, 238, .22); border-radius: 99px; font-size: 13px;
  transition: background .3s, color .3s;
}
.socials a:hover { background: var(--ivory); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.socials-dark a { border-color: var(--line); }
.socials-dark a:hover { background: var(--ink); color: var(--ivory); }
.bow-contact { position: absolute; z-index: 1; width: clamp(110px, 13vw, 190px); height: auto; aspect-ratio: 120 / 112; right: 8%; top: 13%; transform: rotate(12deg); }
.giant {
  position: relative; margin-top: clamp(80px, 10vw, 130px); text-align: center;
  font-family: var(--serif); font-size: 31vw; line-height: .74; letter-spacing: .02em;
  color: var(--ivory); opacity: .96; user-select: none;
  pointer-events: none; /* décor : sa boîte de texte déborde vers le haut et masquait les liens */
}
.giant-duyen {
  position: absolute; left: 13%; top: -7%; transform: rotate(-10deg);
  font-family: var(--hand); font-size: .3em; letter-spacing: 0; color: #C98F97;
}
.footer {
  position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  max-width: var(--wrap); margin: clamp(70px, 9vw, 120px) auto 0; padding: 26px var(--gutter) 30px;
  border-top: 1px solid var(--line-light); font-size: 12px; color: rgba(246, 243, 238, .58);
}
.footer .hand { font-size: 28px; color: var(--sand-2); }
.footer-stats { flex-basis: 100%; font-size: 11px; color: rgba(246, 243, 238, .55); }
.footer-stats button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .3s; }
.footer-stats button:hover { color: var(--ivory); }

/* ---------- Chapitre (overlay univers) ---------- */
.chapter { position: fixed; inset: 0; z-index: 80; background: var(--ivory); overflow-y: auto; overscroll-behavior: contain; }
.chapter[hidden] { display: none; }
.chapter-bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 14px calc(var(--gutter) + 26px) 14px var(--gutter);
  background: rgba(246, 243, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.chapter-close { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.chapter-close .x { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 13px; letter-spacing: 0; transition: background .3s, color .3s, transform .5s var(--ease); }
.chapter-close:hover .x { background: var(--ink); color: var(--ivory); transform: rotate(90deg); }
.ch-head { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 clamp(20px, 4vw, 50px); padding: clamp(60px, 9vw, 120px) 0 clamp(54px, 7vw, 96px); }
.ch-big { font-family: var(--serif); font-size: clamp(6rem, 16vw, 15rem); line-height: .78; color: transparent; -webkit-text-stroke: 1px var(--taupe); }
.ch-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 9vw, 8.6rem); line-height: .9; letter-spacing: -.03em; }
.ch-tag { margin-top: 18px; font-size: 16px; color: var(--taupe-ink); }
.ch-note { position: absolute; right: 2%; top: 26%; transform: rotate(-6deg); font-size: 36px; }
.ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px; align-items: start; padding-bottom: 60px; }
.ch-item { position: relative; margin: 0; }
.ch-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ch-item.print { background: #fff; padding: 10px 10px 46px; box-shadow: var(--shadow-print); }
.ch-post { position: relative; display: block; }
.ch-post::after {
  content: "↗"; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; color: var(--ink); background: rgba(246, 243, 238, .92);
  opacity: 0; transition: opacity .3s;
}
.ch-post:hover::after, .ch-post:focus-visible::after { opacity: 1; }
@media (hover: none) { .ch-post::after { opacity: 1; } }
.ch-video { justify-self: center; width: min(100%, 300px); }
.ch-item.print figcaption { position: absolute; left: 14px; bottom: 8px; font-family: var(--hand); font-size: 25px; line-height: 1; }
.ch-item:nth-child(6n+1) { grid-column: 1 / span 5; transform: rotate(-1.4deg); }
.ch-item:nth-child(6n+2) { grid-column: 7 / span 4; margin-top: 110px; }
.ch-item:nth-child(6n+3) { grid-column: 2 / span 4; transform: rotate(1.8deg); }
.ch-item:nth-child(6n+4) { grid-column: 7 / span 6; margin-top: 30px; }
.ch-item:nth-child(6n+4) img { aspect-ratio: 4 / 3.4; }
.ch-item:nth-child(6n+5) { grid-column: 1 / span 4; margin-top: 30px; transform: rotate(1deg); }
.ch-item:nth-child(6n+6) { grid-column: 6 / span 4; margin-top: 140px; transform: rotate(-2deg); }
.ch-soon {
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  border: 1px dashed var(--taupe); color: var(--taupe-ink); font-family: var(--hand); font-size: 28px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(168, 155, 141, .09) 12px 13px);
}
.ch-item.print .ch-soon { border: 0; }
.ch-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding: 44px 0 30px; border-top: 1px solid var(--line); }
/* Bas de chapitre en dossier : ce que Dana propose dans cet univers, avec un lien qui règle le formulaire */
.ch-dossier { grid-column: 1 / -1; }
.ch-dossier-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.ch-proof { margin-top: 12px; font-size: 15px; color: var(--taupe-ink); }
.ch-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; margin-top: 36px; }
.ch-svc { display: flex; flex-direction: column; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--ink); }
.ch-svc h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.ch-svc p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.ch-svc .svc-more { margin: 0 0 14px; }
.ch-ask { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; transition: background .3s, color .3s; }
.chip:hover { background: var(--ink); color: var(--ivory); }
.ch-next {
  grid-column: 1 / -1; width: 100%; text-align: left; margin-top: 30px; padding: 36px 0 90px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: clamp(34px, 5.4vw, 64px); line-height: 1;
}
.ch-next small { display: block; margin-bottom: 12px; font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--taupe-ink); }
.ch-next .arr { font-size: .6em; transition: transform .5s var(--ease); }
.ch-next:hover .arr { transform: translateX(10px); }
.ch-next em { font-style: normal; }
.ch-next:hover em { color: var(--burgundy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-cell { --k: 1; }
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 118px; gap: 10px; min-height: auto; }
  .hero-visual { min-height: 0; padding: 50px 0 40px; }
  .deck { width: min(340px, 74vw); }
  .bow-hero { top: 8px; left: calc(50% - min(170px, 37vw) - 34px); width: 84px; height: 78px; }
  .seal { width: 104px; height: 104px; right: 0; bottom: 2%; }
  .deck-hint { left: 0; bottom: -4px; font-size: 25px; }
  .route { margin-top: 42px; }

  .row { grid-template-columns: 34px minmax(0, 1fr) 64px; gap: 14px; padding: 16px 0; }
  .row-tag, .row-arrow { display: none; }
  .row-thumb { display: block; width: 64px; aspect-ratio: 4 / 5; background: #fff; padding: 4px; box-shadow: var(--shadow-print); transform: rotate(3deg); }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row:hover .row-title { transform: none; }
  .note-index { position: static; margin-top: 18px; }
  /* Carnet : les intercalaires passent au-dessus de la page, sur deux rangs */
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-tabs { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; gap: 5px 4px; padding: 0 6px; margin: 0 0 -1px; }
  .book-tab { min-width: 0; flex: 1 1 auto; padding: 11px 12px; text-align: center; font-size: 14px; border: 1px solid rgba(30, 30, 30, .1); border-radius: 9px 9px 0 0; }
  .book-tab[aria-selected="true"] { padding-right: 12px; }
  .book-page { grid-row: 2; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* Sur téléphone, le texte et le bouton passent au-dessus de la photo : on voit tout de suite qu'on peut ouvrir le chapitre */
  .book-text { order: -1; padding: 24px 22px 22px; }
  .book-text .btn { margin-top: 22px; }
  .book-photo { padding: 0 12px 12px; }
  .book-photo img { aspect-ratio: 4 / 4.2; }

  .section-head.split { grid-template-columns: 1fr; }
  .motion-note { text-align: left; }

  .stat-hero { margin-top: 30px; }
  .annot { top: -52px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 0 24px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .service-grid {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 30px; scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .svc-wrap { flex: 0 0 82%; scroll-snap-align: center; }
  .svc { min-height: 380px; }

  .postcard { grid-template-columns: 1fr; padding: 54px 22px 24px; }
  .pc-head { letter-spacing: .16em; font-size: 9px; }
  .pc-right { order: -1; padding-top: 104px; }
  .pc-left { padding-right: 0; border-right: 0; margin-top: 26px; }
  .postcard textarea { min-height: 192px; }
  .pc-postmark { right: 52px; width: 150px; }
  .pc-stamp { width: 76px; }

  .logo-cell { height: 116px; --k: .9; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }

  .ch-head { grid-template-columns: 1fr; }
  .ch-big { font-size: 5.5rem; margin-bottom: 8px; }
  .ch-note { position: static; margin-top: 18px; }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ch-item:nth-child(n) { grid-column: auto; margin-top: 0; }
  .ch-item:nth-child(3n+1) { grid-column: 1 / -1; }
  .ch-soon-item:nth-child(2) { grid-column: 1 / -1; }
  .ch-soon-item:nth-child(2) .ch-soon { aspect-ratio: 3 / 1; }
  .ch-item:nth-child(6n+4) img { aspect-ratio: 4 / 5; }
  .ch-foot { grid-template-columns: 1fr; }
  .ch-services { grid-template-columns: 1fr; }}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .site-header { padding-right: calc(var(--gutter) + 16px); }
  .logo { font-size: 26px; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-intro { font-size: 16px; }
  .btn { padding: 15px 20px; }
  .bookmark { width: 9px; }
  .stat-big { font-size: 5.4rem; }
  .bow-contact { top: 22px; right: 7%; width: 84px; } /* au-dessus du titre, pour ne pas recouvrir le texte */
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-cell { height: 92px; padding: 16px 10px; --k: .64; }
  .logo-cell:last-child:nth-child(3n+2) { grid-column: span 2; }
  .logo-cell::before { top: 6px; left: 8px; font-size: 10px; }
  .logo-name { display: none; }
  .footer { justify-content: center; text-align: center; padding-bottom: 64px; }
}

/* Vietnamien : les accents empilés ont besoin d'interligne */
:lang(vi) .h2, :lang(vi) .contact-title, :lang(vi) .ch-title { line-height: 1.22; }
:lang(vi) .row-title { line-height: 1.18; }
:lang(vi) .marquee-item { line-height: 1.35; }

@media (max-width: 560px) {
  .card { padding-bottom: 54px; }
  .card .cap { font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .coord { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-load], [data-reveal] { opacity: 1; transform: none; }
  .oval path { stroke-dashoffset: 0; }
}
