/* Composition Hamsterino : ciel ouvert, quais et escales illustrées. */
body { background: var(--sky); }
.sky-world { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, #eaf5fa 0, #f3f8f5 900px, #fffaf0 100%); }
.shell { width: 100%; max-width: 1360px; padding-inline: 40px; }
.header-inner { max-width: 1360px; min-height: 88px; padding-block: 12px; padding-inline: 40px; }
.brand img { width: 54px; height: 54px; }
.brand > span { font-size: 26px; }
.topbar { min-height: 52px; }
.sky-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; display: block; width: 210px; height: 54px; border-radius: 100%; background: #ffffffa6; }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 100%; background: inherit; bottom: 12px; }
.cloud::before { width: 100px; height: 84px; left: 23px; }
.cloud::after { width: 86px; height: 68px; right: 12px; }
.cloud-one { top: 210px; left: -110px; }
.cloud-two { top: 920px; right: -90px; transform: scale(1.5); }
.cloud-three { bottom: 430px; left: -80px; }
h1 em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--copper); }
.scene-art { display: block; pointer-events: none; user-select: none; min-width: 0; }
.scene-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.interior-main { padding-bottom: 25px; }
.home-main { padding-bottom: 0; }
.notice-container { position: relative; z-index: 5; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #fff0db; border: 1px solid #e6cba5; border-radius: 14px; color: var(--copper); }
.feature-icon .icon { width: 24px; height: 24px; }
.page-heading { padding-top: 16px; padding-bottom: 24px; }
.page-heading h1 { font-size: clamp(36px, 4vw, 54px); }
.illustrated-heading { min-height: 230px; gap: 36px; }
.illustrated-heading > div { max-width: 740px; }
.heading-art { width: 330px; flex-shrink: 0; align-self: center; }
.quota-pill { margin-top: 17px; }

/* Accueil : quatre couches d'illustrations autour d'une zone de lecture calme. */
.port-hero { position: relative; isolation: isolate; min-height: 650px; }
.hero-inner { position: relative; min-height: 650px; padding-top: 38px; padding-bottom: 68px; }
.port-scene { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.port-scene .scene-art { position: absolute; }
.harbour-islands { width: 1180px; right: max(-130px, calc((100vw - 1800px) / 2)); top: -22px; }
.harbour-hamster { width: 330px; right: max(9%, calc((100vw - 1360px) / 2 + 120px)); top: 260px; z-index: 2; }
.harbour-airship { width: 270px; right: max(5%, calc((100vw - 1360px) / 2 + 20px)); top: -16px; z-index: 3; animation: airship-bob 14s ease-in-out infinite; }
.harbour-quay { width: 530px; left: max(-185px, calc((100vw - 1800px) / 2)); bottom: -70px; }
.scene-cloud { position: absolute; display: block; background: radial-gradient(ellipse at 50% 70%, #fffdf8 15%, #fffdf8c9 42%, transparent 72%); pointer-events: none; }
.scene-cloud-drift { width: 500px; height: 130px; right: 16%; bottom: -8px; animation: harbour-cloud 42s ease-in-out infinite alternate; }
.scene-cloud-low { width: 100%; height: 120px; left: 0; bottom: -90px; background: linear-gradient(transparent, #f2f8f4 80%); }
.port-welcome { position: relative; max-width: 610px; z-index: 4; }
.welcome-tag { display: flex; align-items: center; gap: 9px; letter-spacing: .12em; font-size: 9px; }
.welcome-tag .icon { width: 20px; height: 20px; }
.port-welcome h1 { font-size: clamp(46px, 4.1vw, 66px); letter-spacing: -.055em; line-height: 1.06; margin: 24px 0 22px; }
.port-welcome h1 em { color: #a6501d; }
.title-dot { color: #a6501d; }
.hero-description { color: #435f69; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; max-width: 570px; }
.hero-actions .button { font-size: 13px; padding-inline: 17px; }
.hero-skin-link { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; min-height: 44px; font-size: 14px; font-weight: 700; color: #24586b; }
.hero-skin-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-skin-link .icon { width: 19px; height: 19px; }
.harbour-caption { position: absolute; bottom: 21px; right: 9%; font-size: 9px; letter-spacing: .13em; color: #506968; font-weight: 700; }
.harbour-caption span { color: var(--copper); margin-right: 9px; }

/* Les informations réelles du serveur restent indépendantes de l'illustration. */
.server-strip { display: grid; grid-template-columns: auto auto; column-gap: 22px; row-gap: 12px; max-width: 455px; padding: 17px 21px 12px; margin-top: 23px; border: 1px solid #ccdcd6; border-radius: 16px; background: #fffdf8f5; box-shadow: 0 8px 25px #385e6d08; }
.server-strip-item { min-width: 0; }
.server-strip-item strong { font-size: 14px; color: #38514a; }
.server-strip-item small { font-size: 11px; font-weight: 400; }
.server-strip .address-item { grid-column: 1 / -1; border-top: 1px solid #dce4da; padding-top: 10px; }
.label { font-size: 9px; letter-spacing: .1em; }
.copy-address { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 30px; padding: 0; border: 0; background: none; color: #24586b; font-size: 13px; font-weight: 700; text-align: left; }
.copy-address .icon { width: 18px; height: 18px; color: var(--copper); }
.port { font-size: 11px; font-weight: 400; }
.status-check { grid-column: 1 / -1; font-size: 10px; color: #546b6b; }

/* Les escales alternent illustrations, papier et accès directs. */
.home-escales { position: relative; padding-top: 12px; }
.wardrobe-stop { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 55px; padding-block: 28px 45px; }
.stop-art { position: relative; }
.stop-art .scene-art { width: 100%; }
.illustration-note { display: block; text-align: center; letter-spacing: .15em; font-size: 9px; font-weight: 700; color: #536c66; }
.stop-copy h2, .departure-copy h2 { font-size: clamp(30px, 3.1vw, 44px); margin: 13px 0 20px; }
.stop-copy > p:not(.eyebrow), .departure-copy > p:not(.eyebrow), .community-stop p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 500px; }
.stop-copy > .button { margin-top: 25px; }
.stop-copy .stop-note { font-size: 11px !important; margin-top: 10px; }
.account-log { padding: 17px 20px; margin-top: 21px; background: #fffdf5; border-left: 3px solid #c38943; border-radius: 0 13px 13px 0; }
.account-log strong { display: block; overflow-wrap: anywhere; }
.account-log p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.departure-stop { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 35px; padding: 42px 48px; margin-top: 25px; position: relative; border: 1px solid #dfd3bc; border-radius: 6px 28px 28px 6px; background: #fffaf0; box-shadow: -7px 7px 0 #e8ddc744; }
.departure-stop::before { content: ''; position: absolute; left: 17px; top: 30px; bottom: 30px; border-left: 1px dashed #cebc9c; }
.departure-art { max-width: 450px; }
.pack-details { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: 9px; letter-spacing: .07em; color: #70542e; margin-top: 20px; font-weight: 700; }
.community-stop { display: flex; align-items: center; justify-content: center; gap: 35px; padding: 48px 30px 0; }
.community-stop > .scene-art { width: 240px; flex-shrink: 0; }
.community-stop h2 { font-size: 30px; margin: 8px 0 12px; }
.community-stop .text-link { margin-top: 15px; }

/* Pages intérieures : le décor accompagne les contrôles et les chapitres. */
.skin-workspace { align-items: start; }
.viewer-panel { background: #fffdf8; }
.viewer-stage { background: radial-gradient(ellipse at 50% 55%, #fff0d6, transparent 65%), linear-gradient(#f0f8f9, #fffaf0); }
.collection-section { margin-top: 32px; }
.tutorial-intro { max-width: none; }
.tutorial-intro > div { max-width: 760px; }
.tutorial-nav { border-radius: 5px 16px 16px 5px; border-left: 3px solid #b57a3a; background: #fffaf0; }
.tutorial-section { border-color: #ded8c8; border-radius: 6px 20px 20px 6px; }
.tutorial-section .eyebrow { padding-bottom: 3px; }
.chapter-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chapter-heading .scene-art { width: 150px; flex-shrink: 0; }
.chapter-heading h2 { margin-bottom: 20px; }
.feed-grid { align-items: start; }
.feed-card { border-top: 3px solid #c18d55; }
.feed-card > .eyebrow { color: #81572d; }
.feed-card h2 { line-height: 1.25; }
.login-layout { padding: 22px 10px 30px; gap: 80px; }
.login-story h1 { font-size: clamp(39px, 4vw, 56px); }
.login-story > p:last-of-type { max-width: 430px; }
.cabin-scene { position: relative; margin-top: 10px; }
.cabin-scene > .scene-art { width: 100%; }
.cabin-scene img { max-width: none; margin: 0; width: 100%; }
.cabin-scene > .cabin-hamster { position: absolute; width: 150px; bottom: 7%; left: 5%; }
.login-panel { justify-self: center; width: 100%; box-shadow: 0 14px 40px #6d61350a; }
.confirmation-panel { max-width: 780px; margin: 40px auto; }
.confirmation-panel h1 { font-size: 38px; margin-block: 10px 20px; }
.confirmation-panel .empty-mascot { float: right; margin-left: 20px; }

/* Une dernière escale ferme la page, sans texture sous les liens. */
.site-footer { position: relative; display: block; isolation: isolate; margin-top: 30px; padding-top: 150px; color: #52665f; }
.footer-landscape { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.footer-landscape .scene-art { position: absolute; }
.footer-quay { width: 480px; left: max(-90px, calc((100vw - 1600px) / 2)); top: -55px; }
.footer-workshop { width: 350px; right: max(0px, calc((100vw - 1460px) / 2)); top: -50px; }
.footer-cloud { position: absolute; inset: 75px 0 0; background: linear-gradient(transparent 0, #fffaf1 90px); }
.footer-inner { position: relative; padding-bottom: 25px; }
.footer-heading { text-align: center; padding-bottom: 35px; }
.footer-heading > p:last-child { color: #4b574a; font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 5px; }
.footer-links { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #d7ddce; padding-top: 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #55402e; font-weight: 700; }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand small { display: block; font-size: 10px; font-weight: 400; margin-top: 2px; }
.footer-links > span { font-size: 11px; }
.footer-links .text-link { font-size: 12px; }

/* Tablette : moins d'éléments secondaires, mêmes repères. */
@media (max-width: 1100px) {
  .header-inner, .shell { padding-inline: 28px; }
  .header-inner { gap: 16px; }
  .brand > span { font-size: 23px; }
  .main-nav a { padding-inline: 10px; }
  .port-welcome { max-width: 540px; }
  .port-welcome h1 { font-size: 53px; }
  .harbour-islands { width: 970px; right: -210px; top: 30px; }
  .harbour-hamster { width: 260px; right: 4%; top: 295px; }
  .harbour-airship { width: 220px; right: 6%; top: 15px; }
  .wardrobe-stop { gap: 30px; }
  .departure-stop { padding: 34px; }
  .heading-art { width: 280px; }
  .login-layout { gap: 35px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 100px; padding-top: 13px; padding-bottom: 8px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .main-nav a { flex: 1; justify-content: center; }
  .hero-inner, .port-hero { min-height: 710px; }
  .port-welcome { max-width: 520px; }
  .port-welcome h1 { font-size: 49px; }
  .harbour-islands { width: 800px; right: -260px; top: 140px; }
  .harbour-hamster { width: 210px; right: 4%; top: 380px; }
  .harbour-airship { width: 195px; right: 1%; top: 75px; }
  .harbour-quay { width: 450px; left: -190px; bottom: -25px; }
  .harbour-caption { right: 4%; bottom: 15px; font-size: 8px; }
  .illustrated-heading { gap: 20px; }
  .heading-art { width: 230px; }
  .wardrobe-stop { grid-template-columns: 1fr 1fr; gap: 20px; }
  .departure-stop { grid-template-columns: 1.3fr 1fr; }
  .stop-copy h2, .departure-copy h2 { font-size: 32px; }
  .footer-links { flex-wrap: wrap; }
}

/* Téléphone : les actions d'abord, puis une scène recomposée et statique. */
@media (max-width: 650px) {
  .header-inner, .shell { padding-inline: 18px; }
  .header-inner { gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand > span { font-size: 23px; }
  .brand small { font-size: 7px; }
  .main-nav { gap: 1px; }
  .main-nav a { gap: 4px; padding: 7px 2px; font-size: 11px; }
  .main-nav a .icon { width: 17px; height: 17px; }
  .header-account .button { padding-inline: 11px; min-height: 42px; font-size: 11px; }
  .header-account .button .icon { display: none; }
  .topbar { min-height: 48px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span { margin-inline: 5px; }
  .status-pill { padding: 4px 9px; font-size: 10px; }
  .port-hero, .hero-inner { min-height: 0; }
  .hero-inner { padding-top: 18px; padding-bottom: 295px; }
  .port-welcome { max-width: none; }
  .welcome-tag { font-size: 8px; letter-spacing: .08em; }
  .welcome-tag .icon { width: 17px; }
  .port-welcome h1 { font-size: clamp(36px, 10vw, 51px); margin-block: 18px; }
  .hero-description { font-size: 14px; }
  .hero-actions { margin-top: 21px; gap: 10px; }
  .hero-actions .button { width: 100%; min-height: 48px; font-size: 13px; }
  .hero-skin-link { min-height: 44px; font-size: 13px; }
  .server-strip { margin-top: 15px; max-width: none; padding: 14px 16px 11px; gap: 9px 15px; }
  .server-strip-item strong { font-size: 13px; }
  .copy-address { font-size: 12px; }
  .port-scene { top: auto; height: 290px; bottom: 0; }
  .harbour-islands { width: 440px; max-width: 110%; right: -20px; top: -5px; }
  .harbour-hamster { width: 155px; right: 18%; top: 95px; }
  .harbour-airship { display: none; }
  .harbour-quay { width: 270px; left: -95px; bottom: -10px; }
  .harbour-caption { bottom: 0; font-size: 7px; right: 6%; }
  .scene-cloud-drift { width: 320px; height: 90px; right: 0; bottom: -10px; }
  .scene-cloud-low { bottom: -60px; }
  .harbour-airship, .scene-cloud-drift { animation: none; }
  .home-escales { padding-top: 10px; }
  .wardrobe-stop { display: flex; flex-direction: column; gap: 25px; padding-block: 16px 25px; }
  .stop-art { width: 100%; max-width: 440px; }
  .stop-copy { width: 100%; padding-inline: 6px; }
  .stop-copy h2, .departure-copy h2 { font-size: 32px; }
  .stop-copy > p:not(.eyebrow), .departure-copy > p:not(.eyebrow) { font-size: 14px; }
  .stop-copy .button { width: 100%; }
  .illustration-note { font-size: 8px; }
  .departure-stop { grid-template-columns: 1fr; padding: 27px 25px; gap: 12px; margin-top: 25px; border-radius: 5px 20px 20px 5px; }
  .departure-stop::before { left: 12px; }
  .departure-art { max-width: 280px; justify-self: center; }
  .departure-stop .button-row { margin-top: 22px; gap: 18px; }
  .departure-stop .button { width: 100%; }
  .community-stop { padding: 35px 5px 0; gap: 6px; flex-direction: column; align-items: flex-start; }
  .community-stop > .scene-art { width: 180px; align-self: center; }
  .community-stop h2 { font-size: 28px; }
  .community-stop p:not(.eyebrow) { font-size: 14px; }
  .page-heading { padding-top: 14px; }
  .page-heading h1 { font-size: 36px; }
  .illustrated-heading { min-height: 0; gap: 8px; flex-wrap: wrap; }
  .heading-art { width: 170px; margin-left: auto; margin-top: -10px; }
  .illustrated-heading > div { flex: 1 1 100%; }
  .quota-pill { margin-top: 14px; font-size: 11px; padding: 7px 12px; }
  .illustrated-heading .muted { font-size: 14px; }
  .tutorial-intro .heading-art { display: none; }
  .chapter-heading { gap: 8px; }
  .chapter-heading .scene-art { width: 85px; }
  .chapter-heading h2 { font-size: 25px; overflow-wrap: anywhere; }
  .login-layout { display: flex; flex-direction: column; gap: 22px; padding: 15px 0 10px; }
  .login-story { width: 100%; position: relative; }
  .login-story h1 { font-size: 39px; margin-block: 13px; }
  .login-story > p:last-of-type { font-size: 14px; max-width: none; }
  .cabin-scene { max-width: 260px; margin: 5px auto -5px; }
  .cabin-scene > .cabin-hamster { width: 80px; }
  .login-panel { max-width: none; }
  .collection-section .section-heading { align-items: center; }
  .collection-section .section-heading h2 { font-size: 26px; }
  .site-footer { padding-top: 140px; margin-top: 38px; }
  .footer-quay { width: 250px; left: -110px; top: 0; }
  .footer-workshop { width: 190px; right: -30px; top: -5px; }
  .footer-cloud { top: 60px; }
  .footer-heading { padding-bottom: 25px; }
  .footer-heading > p:last-child { font-size: 23px; }
  .footer-heading .eyebrow { font-size: 8px; }
  .footer-links { display: flex; gap: 19px; flex-direction: column; align-items: flex-start; }
  .footer-links > span { display: none; }
  .footer-brand { font-size: 17px; }
  .confirmation-panel h1 { font-size: 30px; }
  .confirmation-panel .empty-mascot { width: 75px; height: 75px; }
  .favorite-button, .viewer-controls .icon-button { min-width: 44px; min-height: 44px; }
  .skin-card-links a, .rename summary, .text-danger { min-height: 44px; display: inline-flex; align-items: center; }
  .sort-label select, .code-copy button { min-height: 44px; }
}
@media (max-width: 370px) {
  .header-inner, .shell { padding-inline: 14px; }
  .brand > span { font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .brand { gap: 7px; }
  .main-nav a { font-size: 10px; }
  .hero-inner { padding-bottom: 265px; }
  .port-scene { height: 260px; }
  .harbour-islands { top: -10px; }
  .harbour-hamster { width: 140px; top: 85px; }
}

/* Deux mouvements au maximum, sans déplacer les textes ni les contrôles. */
@keyframes airship-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(8px) rotate(0); } }
@keyframes harbour-cloud { from { transform: translateX(-12px); } to { transform: translateX(20px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
