/* Sylvarn — V1.3.1 statique. Les couleurs et dimensions communes sont centralisées ici. */
:root {
  color-scheme: dark;
  --night: #070f1b;
  --panel: #091421;
  --parchment: #e8cfab;
  --ivory: #ded5cb;
  --muted: #b4acb1;
  --gold: #d5a55f;
  --copper: #9a653c;
  --line: #665037;
  --manga: #9a63c5;
  --wow: #c14247;
  --rpg: #4fa5cf;
  --content-width: 1200px;
  --band-width: 1280px;
  --atlas: url('../images/worlds-atlas.jpg');
  --hero-image: url('../images/hero-v1.1.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: absolute; inset: 200px 0 0; z-index: -1; background: radial-gradient(ellipse at 0 28%, #152b4738, transparent 50%), radial-gradient(ellipse at 100% 30%, #20264540, transparent 55%); pointer-events: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #edbf77; outline-offset: 5px; }
::selection { color: #fff0d7; background: #673b73; }
svg { display: block; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .universe-emblem, .stat-icon, .corner { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 12px; padding: 10px 18px; z-index: 20; background: var(--panel); border: 1px solid var(--gold); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }

/* Le header conserve le petit nom de domaine, sans logo imposé. */
.site-header { position: relative; z-index: 5; height: 64px; border-bottom: 1px solid #976235; background: linear-gradient(90deg, #080c13ed, #08111bed 72%, #080d17f5); box-shadow: 0 1px 0 #c2883a30, 0 4px 20px #0004; }
.header-inner { width: min(100% - 64px, 1240px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.navigation { display: flex; align-self: stretch; align-items: stretch; gap: 10px; margin-left: auto; }
.nav-link { position: relative; display: grid; align-items: center; padding: 0 17px; color: #b8adb2; font-size: 18px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #e7ba6b; }
.nav-link.active { text-shadow: 0 0 16px #ca883030; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; height: 2px; left: 0; right: 0; background: #d7a24e; box-shadow: 0 -2px 10px #df9d4760; }
.nav-link.active::before { content: ''; position: absolute; bottom: -3px; left: calc(50% - 3px); width: 6px; height: 6px; background: #dfb66d; transform: rotate(45deg); }
.header-tools { display: flex; gap: 16px; margin-left: auto; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid #81502c80; padding: 7px; color: #d09658; background: #08111b60; transition: background .2s, color .2s, border-color .2s; }
.icon-button:hover, .icon-button[aria-pressed='true'] { background: #6b412130; color: #f0c988; border-color: #bf874d; }
.icon-button .icon { width: 18px; height: 18px; }
.wordmark { padding: 7px 12px 7px 35px; border-left: 1px solid #7e532e; color: #b7a7a3; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.header-jewel { position: absolute; bottom: -11px; left: calc(50% - 11px); color: #b67c39; font-size: 24px; line-height: 20px; text-shadow: 0 0 5px #090b13; }
.menu-toggle { display: none; }

@media (min-width: 821px) {
  .navigation { position: absolute; top: 0; bottom: 0; left: calc(50% - 50px); margin-left: 0; transform: translateX(-50%); }
}

/* Bandeaux plafonnés : 40 px de débord de chaque côté du contenu sur grand écran.
   Le hero utilise une image dédiée ; l’atlas validé des cartes reste intact. */
.hero, .ambiance {
  width: 100%; max-width: var(--band-width); margin-inline: auto;
  --edge-fade: clamp(20px, 4vw, 56px);
  --edge-gradient: linear-gradient(90deg, var(--night), transparent var(--edge-fade), transparent calc(100% - var(--edge-fade)), var(--night));
}
.hero {
  --edge-fade: clamp(40px, 16vw, 200px);
  --hero-bottom-fade: 12%;
  --hero-mask: linear-gradient(90deg,
    transparent 0%,
    #0000000a calc(var(--edge-fade) * .15),
    #0000003d calc(var(--edge-fade) * .4),
    #00000099 calc(var(--edge-fade) * .65),
    #000000e6 calc(var(--edge-fade) * .85),
    #000 var(--edge-fade),
    #000 calc(100% - var(--edge-fade)),
    #000000e6 calc(100% - var(--edge-fade) * .85),
    #00000099 calc(100% - var(--edge-fade) * .65),
    #0000003d calc(100% - var(--edge-fade) * .4),
    #0000000a calc(100% - var(--edge-fade) * .15),
    transparent 100%);
}
.ambiance { --edge-fade: clamp(24px, 5vw, 76px); }
.ambiance::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--edge-gradient); pointer-events: none; }
.ambiance::after { background: linear-gradient(0deg, var(--night), transparent 40px), linear-gradient(180deg, var(--night), transparent 12px), var(--edge-gradient); }
.hero { position: relative; min-height: 324px; isolation: isolate; }
/* Seule l'illustration perd son opacité : le vrai fond apparaît derrière,
   sans surcouche bleue, sans flou et sans masquer le texte. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hero-image) center top / 100% 100% no-repeat;
  -webkit-mask-image: var(--hero-mask), linear-gradient(180deg, #000 calc(100% - var(--hero-bottom-fade)), transparent);
  mask-image: var(--hero-mask), linear-gradient(180deg, #000 calc(100% - var(--hero-bottom-fade)), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-inner { width: min(100% - 64px, var(--content-width)); margin-inline: auto; padding: 65px 0 32px 215px; }
.hero h1 { margin: 0 0 9px; color: #f0d2a4; font-weight: 400; font-size: clamp(30px, 2.8vw, 39px); line-height: 1.04; letter-spacing: .005em; text-shadow: 0 2px 8px #000; }
.hero p { margin: 12px 0 13px; color: #ccc0b8; line-height: 1.7; font-size: 16px; text-shadow: 0 1px 6px #000; }
.ornamental-rule { position: relative; display: block; width: 136px; height: 14px; color: var(--gold); }
.ornamental-rule::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #d0a157, #c0965340, transparent); }
.ornamental-rule span { position: absolute; left: 24px; top: -4px; font-size: 18px; line-height: 20px; }
.main-content { position: relative; width: min(100% - 64px, var(--content-width)); margin: 0 auto; }

/* Grandes cartes. Le cadre interne et ses coins restent purement décoratifs. */
.universes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.universe-card { --frame: #a94932; position: relative; height: 375px; overflow: hidden; isolation: isolate; border: 1px solid var(--frame); border-radius: 6px; background-color: #1b0b0b; background-image: var(--atlas); background-size: 300% 229.25%; background-position: 0% 59.123%; box-shadow: 0 0 0 2px #080d17, 0 0 0 3px #68402865, 0 12px 32px #0004; scroll-margin-top: 24px; transition: transform .25s, box-shadow .25s; }
.universe-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #160506e6 0%, #1605068a 35%, transparent 75%); }
.universe-manga { --frame: #8862a3; background-color: #170c28; background-position-x: 50%; box-shadow: 0 0 0 2px #080d17, 0 0 0 3px #71568270, 0 12px 32px #0004; }
.universe-manga::before { background: linear-gradient(0deg, #150721ee 0%, #15072190 35%, transparent 72%); }
.universe-rpg { --frame: #638491; background-color: #071923; background-position-x: 100%; box-shadow: 0 0 0 2px #080d17, 0 0 0 3px #78604970, 0 12px 32px #0004; }
.universe-rpg::before { background: linear-gradient(0deg, #05141eec 0%, #05141e90 35%, transparent 72%); }
.card-frame { position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--frame) 70%, transparent); border-radius: 14px 3px; pointer-events: none; }
.corner { position: absolute; width: 29px; height: 29px; color: var(--frame); opacity: .85; }
.corner:nth-child(1) { top: -3px; left: -3px; }
.corner:nth-child(2) { top: -3px; right: -3px; transform: rotate(90deg); }
.corner:nth-child(3) { bottom: -3px; right: -3px; transform: rotate(180deg); }
.corner:nth-child(4) { bottom: -3px; left: -3px; transform: rotate(270deg); }
.card-content { position: absolute; inset: auto 30px 17px; display: flex; flex-direction: column; align-items: flex-start; }
.universe-emblem { width: 65px; height: 65px; margin-bottom: 8px; color: #e2b570; filter: drop-shadow(0 2px 4px #000); stroke-width: 1.3; }
.wow-emblem { width: 71px; height: 71px; margin-left: -3px; margin-bottom: 2px; }
.book-emblem { padding: 7px; border: 1px solid #bc934c; border-radius: 17px 12px; background: #110d2080; }
.card-content h2 { margin: 0 0 6px; color: #eed0a2; font-size: 35px; line-height: 1.2; font-weight: 400; text-shadow: 0 2px 4px #0008; }
.card-content p { margin: 2px 0 16px; min-height: 68px; color: #d0bec4; font-size: 17px; line-height: 1.35; text-shadow: 0 1px 5px #000; }
.universe-rpg .card-content p { color: #c1bfc3; }
.explore-button { position: relative; width: 201px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 24px; border: 1px solid #dca54f; border-radius: 20px; color: #e5b45f; background: #070b13b8; font-size: 16px; box-shadow: inset 0 0 0 1px #a36c3530; transition: background .2s, box-shadow .2s; }
.explore-button .icon { width: 15px; height: 15px; }
.explore-button:hover { background: #aa733026; box-shadow: inset 0 0 0 1px #dca54f45, 0 0 17px #c18c2725; }
.universe-rpg .explore-button { border-color: #c98a4b; color: #e1a15c; }

/* Derniers ajouts et points de ralliement : deux largeurs complémentaires. */
.activity-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: 20px; margin: 36px -20px 24px; }
.panel { position: relative; border: 1px solid #78604285; border-radius: 18px 5px 12px 5px; padding: 0 20px 24px; min-width: 0; background: linear-gradient(125deg, #0c1b2bba, #07111de8); box-shadow: inset 0 0 25px #0003; }
.panel::before, .panel::after { content: ''; position: absolute; width: 20px; height: 20px; border: 1px solid #bc864b80; pointer-events: none; }
.panel::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0; }
.panel::after { bottom: 5px; right: 5px; border-top: 0; border-left: 0; border-radius: 0 0 8px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; border-bottom: 1px solid #69758219; margin-bottom: 12px; }
.panel-heading h2 { display: flex; align-items: center; gap: 11px; margin: 0; color: #e1bc8d; font-size: 18px; font-weight: 400; white-space: nowrap; }
.panel-heading h2 .icon { width: 23px; height: 23px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; padding: 6px 0 6px 6px; background: none; color: #d5c8c4; font-size: 12px; white-space: nowrap; }
.text-button .icon { color: #4ea5d0; width: 14px; height: 14px; }
.text-button:hover { color: #f3c68a; }
.additions-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.addition { display: flex; gap: 11px; align-items: flex-start; padding: 0; text-align: left; border: 0; background: none; min-width: 0; border-radius: 3px; }
.cover { position: relative; display: block; flex: 0 0 63px; width: 63px; height: 113px; overflow: hidden; border-radius: 2px; border: 1px solid #9a7b6880; box-shadow: 2px 2px 5px #0008; transition: transform .2s; }
.addition:hover .cover { transform: translateY(-3px); }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ffffff20, transparent 8%, transparent 90%, #0005); pointer-events: none; }
.cover-solo { background: radial-gradient(ellipse at 30% 20%, #bea4ff 0, #8373c4 12%, transparent 44%), linear-gradient(150deg, #65528d, #091b37 60%, #a650a2); }
.cover-solo::before { content: ''; position: absolute; inset: 27px 10px -5px 17px; background: #090b1e; clip-path: polygon(35% 0, 69% 3%, 81% 12%, 61% 26%, 83% 40%, 100% 100%, 0 100%, 10% 45%, 33% 25%, 14% 15%); transform: rotate(-10deg); }
.cover-moon { position: absolute; top: 10px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #d7c3fa; box-shadow: 0 0 17px #aa86ee; }
.cover-title { position: absolute; bottom: 8px; left: 0; right: 0; padding: 0 3px; color: #eee0d1; text-align: center; font-size: 13px; line-height: 1.05; text-shadow: 1px 1px 3px #000; }
.cover-solo .cover-title { font-style: italic; font-size: 17px; color: #e5b6e6; }
.cover-beginning { background: radial-gradient(ellipse at 50% 45%, #ddae8b 0 14%, transparent 15%), radial-gradient(ellipse at 47% 36%, #722428 0 25%, transparent 26%), linear-gradient(135deg, #e2ac9b, #541d2b 55%, #101521); }
.cover-beginning::before { content: ''; position: absolute; top: 64px; left: 7px; width: 49px; height: 62px; background: linear-gradient(110deg, #412930, #0f1629); clip-path: polygon(28% 0, 64% 0, 100% 32%, 90% 100%, 0 100%, 3% 30%); }
.cover-beginning .cover-title { bottom: auto; top: 5px; font-size: 10px; }
.cover-classic { background-image: var(--atlas); background-size: 640% 300%; background-position: 62% 0; }
.cover-classic .cover-title { font-size: 10px; letter-spacing: .06em; }
.cover-map { background-image: var(--atlas); background-size: 550% 229.25%; background-position: 96% 59.123%; }
.cover-map .icon { position: absolute; width: 43px; height: 43px; left: 9px; bottom: 8px; color: #3b2418; filter: drop-shadow(0 0 3px #ead0a7); }
.addition-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding-top: 8px; font-size: 13px; line-height: 1.4; }
.addition-copy strong { color: #e5d8c7; font-weight: 400; }
.addition-copy > span:not(.tag) { color: #bab1b5; }
.tag { display: inline-block; border: 1px solid #9663c52e; border-radius: 3px; padding: 4px 7px; color: #d5bee9; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.addition-copy .tag { margin-top: 2px; }
.tag-manga { background: #532a795e; border-color: #8752b24a; }
.tag-wow { color: #e5acac; background: #6f222a70; border-color: #94333c4f; }
.tag-rpg { color: #b6d4e5; background: #1b4f735e; border-color: #2c769649; }
.rally-panel { padding-bottom: 12px; }
.rally-panel .panel-heading { margin-bottom: 4px; }
.rally-list { list-style: none; margin: 0; padding: 0; }
.rally-row { display: grid; grid-template-columns: 28px 68px minmax(max-content, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; }
.rally-row + .rally-row { border-top: 1px solid #9c714126; }
.service-logo { display: block; width: 28px; height: 28px; object-fit: contain; }
.service-name { margin: 0; color: var(--ivory); font-size: 13px; line-height: 1.3; font-weight: 400; white-space: nowrap; }
.service-id { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.service-action { justify-self: end; }
.rally-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 64px; min-height: 32px; padding: 4px 9px; border: 1px solid #a1784666; border-radius: 4px; background: #070f1b80; color: #c7a477; font-size: 12px; white-space: nowrap; transition: border-color .2s, background .2s; }
.rally-button:hover { border-color: #c19760; background: #9a653c26; }
.rally-button[aria-busy='true'] { cursor: wait; }
/* Retour flottant : son coin inférieur gauche est ancré au-dessus du clic. */
.copy-tooltip { position: fixed; z-index: 30; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #ac7b4680; border-radius: 6px 2px; background: linear-gradient(135deg, #101c2c, #0c1220); color: var(--ivory); box-shadow: 0 4px 18px #0005; font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; visibility: hidden; opacity: 0; transform: translateY(-100%); transition: opacity .18s ease, visibility .18s; }
.copy-tooltip.is-visible { visibility: visible; opacity: 1; }
.copy-tooltip-icon { color: #b9cfa9; }

/* Panorama inférieur, citation et statistiques de la maquette. */
.ambiance { position: relative; min-height: 188px; border-top: 1px solid transparent; background: var(--atlas) center bottom / 100% 433.91% no-repeat; isolation: isolate; }
.ambiance::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent 10%, #07101b45 33%, #07101bce 70%, #07101bed), linear-gradient(0deg, #07101b45, transparent 85%); }
.ambiance-inner { width: min(100% - 64px, var(--content-width)); min-height: 188px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 26px; }
.ambiance-quote { text-align: center; padding-left: 265px; }
blockquote { margin: 0; font-size: 17px; line-height: 1.45; color: #ddd0ce; text-shadow: 0 2px 4px #000; }
.ambiance-quote .ornamental-rule { width: 180px; margin: 13px auto 0; }
.ambiance-quote .ornamental-rule::before { background: linear-gradient(90deg, transparent, #c29656 48%, transparent); }
.ambiance-quote .ornamental-rule span { left: calc(50% - 7px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.stats > div { position: relative; text-align: center; padding: 0 10px; }
.stats > div + div { border-left: 1px solid #9c714122; }
.stats dt { display: flex; flex-direction: column; align-items: center; gap: 34px; color: #bcb2b2; font-size: 14px; line-height: 1.2; }
.stat-icon { width: 33px; height: 33px; color: #ca9b5a; }
.stats dd { position: absolute; top: 40px; left: 0; right: 0; margin: 0; color: #e4c397; font-size: 18px; }

/* Interactions locales : dialogues natifs, clavier et recherche. */
.detail-dialog { width: min(560px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 34px; border: 1px solid #ac7b46; border-radius: 12px 3px; background: linear-gradient(135deg, #101c2c, #0c1220); color: var(--ivory); box-shadow: 0 20px 100px #0008; }
.detail-dialog::backdrop { background: #030712cf; backdrop-filter: blur(5px); }
.detail-dialog h2 { font-weight: 400; color: var(--parchment); font-size: 30px; line-height: 1.2; margin: 8px 30px 18px 0; }
.detail-dialog h3 { font-size: 18px; font-weight: 400; color: #e1bc8d; margin: 22px 0 8px; }
.detail-dialog p, .detail-dialog li { color: #c7bdc2; }
.detail-dialog ul { padding-left: 21px; }
.detail-dialog li { margin-block: 8px; }
.entry-link { display: inline-block; margin-top: 8px; color: #c7a477; font-size: 14px; text-decoration: underline; text-decoration-color: #c7a47755; text-underline-offset: 4px; }
.entry-link:hover { color: var(--parchment); text-decoration-color: currentColor; }
.dialog-close { position: absolute; top: 12px; right: 12px; font-family: Arial, sans-serif; font-size: 24px; line-height: 1; }
.dialog-eyebrow { color: #b99462; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.search-dialog label { display: block; color: #b8adb5; font-size: 14px; margin-bottom: 8px; }
.search-dialog input { width: 100%; padding: 12px; border: 1px solid #856341; background: #08111e; border-radius: 4px; color: #eee0d1; }
.search-count { font-size: 13px; }
.search-results { padding: 0 !important; list-style: none; }
.search-results button { width: 100%; text-align: left; border: 1px solid #70523855; padding: 12px; background: #19253865; border-radius: 4px; }
.search-results button:hover { background: #352a3d; }
.search-results .tag { margin-left: 8px; }
body.candlelight { --parchment: #f1d3a5; }
body.candlelight .hero::before { background-image: linear-gradient(90deg, #3113184d, transparent 70%), var(--hero-image); }
body.candlelight .panel { background: linear-gradient(120deg, #211d2bd9, #141421e8); border-color: #ac754d90; }
body.candlelight .universe-card { box-shadow: 0 0 0 2px #080d17, 0 0 0 3px #a67a4560, 0 0 30px #bd722115; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .universe-card:hover { transform: translateY(-3px); }
}

/* Tablette paysage : alléger les marges et rendre l’activité plus aérée. */
@media (max-width: 1150px) {
  .hero-inner { padding-left: 16%; }
  .card-content { left: 23px; right: 23px; }
  .card-content h2 { font-size: 30px; }
  .card-content p { font-size: 15px; min-height: 72px; }
  .desktop-break { display: none; }
  .activity-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-inline: 0; }
  .panel { padding-inline: 14px; }
  .additions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .addition-copy { font-size: 13px; }
  .rally-row { grid-template-columns: 24px auto minmax(max-content, 1fr) auto; gap: 8px; }
  .service-logo { width: 24px; height: 24px; }
  .ambiance-quote { padding-left: 100px; }
  .ambiance-inner { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  blockquote { font-size: 16px; }
}

@media (max-width: 820px) {
  .header-inner { width: calc(100% - 40px); gap: 12px; }
  .navigation { margin-left: 0; gap: 2px; }
  .nav-link { font-size: 16px; padding-inline: 11px; }
  .header-tools { gap: 8px; }
  .wordmark { padding-left: 16px; padding-right: 0; }
  .hero { min-height: 310px; --hero-bottom-fade: 14%; }
  .hero::before { background-size: 145% 100%; background-position-x: 56%; }
  .hero-inner { width: calc(100% - 48px); padding: 52px 0 30px 8%; }
  .hero h1 { font-size: 34px; }
  .main-content { width: calc(100% - 40px); }
  .universes { gap: 15px; }
  .universe-card { height: 360px; }
  .card-content { left: 16px; right: 16px; }
  .card-content h2 { font-size: 27px; }
  .card-content p { font-size: 14px; min-height: 96px; margin-bottom: 12px; }
  .universe-emblem { width: 53px; height: 53px; }
  .explore-button { width: 100%; max-width: 200px; font-size: 15px; }
  .activity-grid { grid-template-columns: 1fr; gap: 18px; }
  .panel { padding: 0 20px 18px; }
  .additions-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
  .addition { gap: 8px; }
  .cover { flex-basis: 54px; width: 54px; height: 96px; }
  .addition-copy { font-size: 11px; padding-top: 3px; }
  .tag { font-size: 10px; padding: 4px 5px; }
  .ambiance { margin-top: 20px; }
  .ambiance-inner { width: calc(100% - 40px); min-height: 240px; grid-template-columns: 1fr 300px; }
  .ambiance-quote { padding-left: 0; }
  blockquote br { display: none; }
}

/* Mobile : le paysage reste visible, les trois univers se lisent verticalement. */
@media (max-width: 620px) {
  .site-header { height: 61px; }
  .header-inner { width: calc(100% - 32px); gap: 10px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 35px; height: 35px; flex: 0 0 auto; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: currentColor; }
  .wordmark { order: 1; margin-right: auto; border: 0; padding: 0 4px; font-size: 16px; color: #d0b89d; }
  .header-tools { order: 2; margin: 0; gap: 7px; }
  .header-tools .icon-button { width: 32px; height: 32px; }
  .navigation { position: absolute; top: 60px; left: 0; right: 0; display: none; padding: 12px 16px; border-bottom: 1px solid #936737; background: #08111bf5; box-shadow: 0 15px 25px #0005; }
  .navigation.is-open { display: flex; }
  .nav-link { flex: 1; text-align: center; padding: 12px 7px; font-size: 15px; }
  .header-jewel { font-size: 18px; left: calc(50% - 7px); bottom: -10px; }
  .hero { min-height: 335px; --hero-bottom-fade: 20%; }
  .hero-inner { width: calc(100% - 48px); padding: 52px 0 36px; }
  .hero h1 { font-size: clamp(31px, 8.4vw, 39px); line-height: 1.12; }
  .hero p { max-width: 335px; font-size: 14px; line-height: 1.65; }
  .hero p br { display: none; }
  .hero::before { background-size: 245% 100%; background-position-x: 57%; }
  .main-content { width: calc(100% - 36px); }
  .universes { grid-template-columns: 1fr; gap: 22px; }
  .universe-card { height: 350px; }
  .card-content { left: 26px; right: 26px; bottom: 20px; }
  .card-content h2 { font-size: 34px; }
  .card-content p { max-width: 320px; font-size: 16px; min-height: 66px; margin: 3px 0 16px; }
  .universe-emblem { width: 58px; height: 58px; }
  .wow-emblem { width: 65px; height: 65px; }
  .explore-button { width: 195px; min-height: 40px; font-size: 16px; }
  .activity-grid { margin-top: 32px; }
  .panel { padding-inline: 16px; padding-bottom: 20px; }
  .panel-heading { height: 51px; margin-bottom: 17px; }
  .panel-heading h2 { font-size: 17px; gap: 8px; }
  .additions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .cover { flex-basis: 55px; width: 55px; height: 102px; }
  .addition-copy { font-size: 12px; gap: 6px; }
  .ambiance { background-size: 220% 433.91%; background-position-x: 32%; }
  .ambiance::before { background: linear-gradient(0deg, #07101bef, #07101b88 62%, #07101b55); }
  .ambiance-inner { min-height: 295px; padding-block: 30px; grid-template-columns: 1fr; gap: 24px; }
  blockquote { max-width: 345px; margin-inline: auto; font-size: 16px; }
  .stats { max-width: 390px; width: 100%; margin-inline: auto; }
  .stats dt { font-size: 12px; }
  .stats dd { font-size: 17px; }
  .detail-dialog { padding: 28px 22px; }
  .detail-dialog h2 { font-size: 26px; }
}

@media (max-width: 360px) {
  .header-tools { gap: 5px; }
  .header-inner { width: calc(100% - 24px); gap: 6px; }
  .wordmark { font-size: 14px; }
  .panel { padding-inline: 12px; }
  .panel-heading h2 { font-size: 16px; }
  .additions-list { gap: 18px 8px; }
  .addition { gap: 6px; }
  .cover { width: 44px; flex-basis: 44px; height: 86px; }
  .addition-copy { font-size: 11px; }
  .tag { padding-inline: 4px; font-size: 9px; }
}

/* Les identifiants restent entiers, même sur les très petits écrans. */
@media (max-width: 360px) {
  .rally-row { gap: 6px; }
  .service-name, .service-id { font-size: 12px; }
  .rally-button { padding-inline: 7px; }
}

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