/* ==========================================================
   Accueil « Atlas des cités » — design de la branche Front-accueil,
   adapté au site PHP (portée limitée à .atlas pour ne rien casser ailleurs).
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

.atlas { --text: #edf1f5; --muted: #929cab; --faint: #657184; --line: #202b3a; --mono: 'DM Mono', monospace; --display: 'Space Grotesk', sans-serif;
  color: var(--text); font-family: var(--display); }

/* fond ambré de l'atlas à la place de l'illustration */
body.page-atlas { background: #120e0a; }
body.page-atlas .ciel { display: none; }
body.page-atlas .site-contenu { max-width: none; padding: 0; gap: 0; }
body.page-atlas .site-entete { background: rgba(23, 17, 12, .85); border-bottom-color: #efbd5433; }
body.page-atlas .menu a.actif { border-bottom-color: #efbd54; }
body.page-atlas .logo { background: #efbd54; color: #1a1208; box-shadow: 0 0 20px #efbd5466; }
body.page-atlas .titre-mini span { color: #efbd54; }
body.page-atlas .site-pied { background: #17110c; border-top-color: #ffffff14; }

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');


.atlas { --space: #17110c; --mint: #efbd54; position: relative; min-height: 100vh; overflow: hidden; padding: 0 6.5%; background: radial-gradient(ellipse at 76% 5%, #72502d 0, transparent 34%), radial-gradient(ellipse at 7% 58%, #49301f 0, transparent 31%), linear-gradient(145deg, #21170f 0%, #120e0a 58%, #1d140d 100%); }
.atlas::before { position: absolute; z-index: 0; inset: 0; pointer-events: none; background-image: radial-gradient(1px 1px at 12% 17%, #f3dcb087 50%, transparent 100%), radial-gradient(1px 1px at 62% 9%, #f3dcb087 50%, transparent 100%), radial-gradient(1px 1px at 89% 22%, #f3dcb087 50%, transparent 100%), radial-gradient(1px 1px at 48% 37%, #f3dcb087 50%, transparent 100%), radial-gradient(1px 1px at 77% 58%, #f3dcb087 50%, transparent 100%); content: ''; opacity: .45; }
.atlas-hero, .destinations, .atlas-section { position: relative; z-index: 1; width: min(1240px, 100%); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 78px; border-bottom: 1px solid #ffffff12; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #e9eef4; font: 600 0.6875rem var(--mono); letter-spacing: .13em; text-decoration: none; }
.brand-symbol { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border: 1px solid #efbd5470; border-radius: 50%; color: var(--mint); font-size: 1rem; }
.brand-divider { padding-inline: 8px; color: #657184; }
.network-status { display: flex; align-items: center; gap: 9px; color: #a2acb9; font: 0.5625rem var(--mono); letter-spacing: .12em; }
.status-light, .city-status i { width: 6px; height: 6px; border-radius: 50%; background: #efbd54; box-shadow: 0 0 10px #efbd5480; }
.status-year { color: #657184; }
.atlas-hero { display: grid; min-height: 360px; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 42px 0 25px; }
.atlas-hero-copy { z-index: 1; padding-block: 24px; }
.eyebrow, .section-kicker, .city-world, .city-status, .city-index, .scene-coordinate { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--mint); font-size: 0.5625rem; letter-spacing: .19em; }
.eyebrow-line { width: 30px; height: 1px; background: var(--mint); box-shadow: 0 0 10px #efbd5466; }
.atlas-hero h1 { margin: 0; color: #f1f4f7; font: 500 clamp(46px, 6vw, 76px)/.99 var(--display); letter-spacing: -.075em; }
.atlas-hero h1 span { color: var(--mint); }
.atlas-hero-intro { max-width: 445px; margin: 23px 0 0; color: #9aa5b4; font-size: 0.8125rem; line-height: 1.8; }
.planet-scene { position: relative; width: min(100%, 29.375rem); min-height: 20rem; justify-self: end; overflow: hidden; }
.planet-glow { position: absolute; top: 16%; left: 14%; width: 70%; height: 70%; border-radius: 50%; background: #d6944b30; filter: blur(56px); }
.planet { position: absolute; top: 19%; left: 19%; width: 60%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: radial-gradient(ellipse at 32% 24%, #f2d49a 0, #c78d55 20%, #986044 48%, #60402f 73%, #2e211a 100%); box-shadow: inset -34px -24px 48px #100b08c9, inset 16px 12px 24px #ffe2ad35, 0 0 60px #d59a572a; }
.planet::before { position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(165deg, transparent 0 17px, #ffe4b515 19px, transparent 22px 37px), radial-gradient(ellipse at 64% 61%, #a6ad7557 0 8%, transparent 9% 100%); content: ''; }
.planet::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 34%, #100b08a3 91%); content: ''; }
.planet-ring { position: absolute; z-index: 1; top: 39%; left: 8%; width: 85%; height: 28%; border: 1px solid #e8c99580; border-radius: 50%; transform: rotate(-19deg); box-shadow: 0 0 13px #e8c99521; }
.planet-shadow { position: absolute; right: 8%; bottom: 9%; left: 7%; height: 17%; border-radius: 50%; background: #d19b5c14; filter: blur(22px); }
.scene-star { position: absolute; color: #f2d596; text-shadow: 0 0 10px #f2d596; }
.star-a { top: 21%; right: 14%; font-size: 0.9375rem; }
.star-b { top: 48%; left: 7%; color: #d8b982; font-size: 1.5625rem; }
.star-c { top: 14%; left: 22%; color: #c99a64; font-size: 0.75rem; }
.scene-coordinate { position: absolute; right: 0; bottom: 13%; color: #76879a; font-size: 0.5rem; letter-spacing: .13em; }
.scene-coordinate span { color: var(--mint); }
.destinations { padding: 34px 0 74px; border-top: 1px solid #ffffff14; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-kicker { margin: 0 0 13px; color: #8290a2; font-size: 0.5rem; letter-spacing: .16em; }
.section-kicker span { color: #58677a; }
.section-heading h2 { margin: 0; font: 500 clamp(24px, 3.2vw, 35px)/1.1 var(--display); letter-spacing: -.05em; }
.section-heading h2 span { color: var(--mint); }
.section-note { margin: 0 0 3px; color: #788596; font-size: 0.625rem; line-height: 1.65; text-align: right; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.city-card { position: relative; display: flex; min-height: 202px; flex-direction: column; align-items: stretch; overflow: hidden; padding: 17px 18px 16px; border: 1px solid #c5a77b1b; border-radius: 3px; background: linear-gradient(145deg, #302216 0%, #1c140e 66%); color: var(--text); cursor: pointer; isolation: isolate; text-align: left; transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; }
.city-card::before { position: absolute; z-index: -1; top: 0; right: 0; width: 55%; height: 75%; background: radial-gradient(ellipse at top right, var(--city-glow, #efbd541c), transparent 70%); content: ''; opacity: .85; transition: opacity .25s ease; }
.city-card::after { position: absolute; right: -1px; bottom: -1px; left: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--city-accent, #efbd54), transparent); content: ''; opacity: 0; transition: opacity .25s ease; }
.city-card:hover, .city-card:focus-visible { z-index: 2; border-color: color-mix(in srgb, var(--city-accent, #efbd54) 55%, transparent); background-color: #392619; box-shadow: 0 12px 38px #0000002c; transform: translateY(-3px); }
.city-card:hover::after, .city-card:focus-visible::after { opacity: .7; }
.city-card:focus-visible { box-shadow: 0 0 0 2px var(--space), 0 0 0 4px var(--city-accent, #efbd54); }
.city-topline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.city-index { color: #718094; font-size: 0.5rem; }
.city-status { display: inline-flex; align-items: center; gap: 7px; color: #91a39d; font-size: 0.4375rem; letter-spacing: .1em; }
.city-status i { width: 5px; height: 5px; background: var(--city-accent, #efbd54); box-shadow: 0 0 8px var(--city-accent, #efbd54); }
.status-frontier { color: #dc8a62; }
.status-frontier i { background: #d65e3d; box-shadow: 0 0 8px #d65e3d; }
.city-orb { position: absolute; top: 24%; right: 18px; width: 112px; height: 76px; overflow: hidden; border: 1px solid #efbd5440; border-radius: 3px; background: #21170f; box-shadow: 0 8px 22px #00000055; }
.city-orb::before { position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: linear-gradient(135deg, #fff1 0%, transparent 42%, #1b100a55 100%); content: ''; pointer-events: none; }
.city-orb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.orb-aurora { --city-accent: #f0bd4d; --city-glow: #e8a43c35; --orb-background: radial-gradient(circle at 32% 28%, #ffe6a0, #e9a344 43%, #814b31 75%); }
.orb-nox { --city-accent: #d96542; --city-glow: #d9654235; --orb-background: radial-gradient(circle at 32% 28%, #ffd0a0, #d76a48 42%, #692f27 78%); }
.orb-nereide { --city-accent: #e2a64e; --city-glow: #e2a64e35; --orb-background: radial-gradient(circle at 32% 28%, #ffe5aa, #d99443 43%, #76502e 78%); }
.orb-vesta { --city-accent: #bd4b32; --city-glow: #bd4b3235; --orb-background: radial-gradient(circle at 32% 28%, #f7bc78, #bd5336 42%, #59291f 78%); }
.orb-solstice { --city-accent: #f1d17c; --city-glow: #f1d17c35; --orb-background: radial-gradient(circle at 32% 28%, #fff0bf, #e1bb69 42%, #79603d 78%); }
.orb-eden { --city-accent: #d58b4d; --city-glow: #d58b4d35; --orb-background: radial-gradient(circle at 32% 28%, #ffdda0, #cf8045 42%, #68402b 78%); }
.city-info { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; padding-top: 56px; }
.city-world { margin-bottom: 5px; color: #91a0b0; font-size: 0.4375rem; letter-spacing: .11em; }
.city-world span { padding-inline: 3px; color: var(--city-accent, var(--mint)); }
.city-name { font: 500 1.375rem/1.15 var(--display); letter-spacing: -.045em; }
.city-desc { margin-top: 5px; color: #8995a4; font-size: 0.5625rem; }
.city-arrow { position: absolute; right: 17px; bottom: 18px; color: var(--city-accent, var(--mint)); font-size: 0.9375rem; opacity: .65; transition: opacity .2s ease, transform .2s ease; }
.city-card:hover .city-arrow, .city-card:focus-visible .city-arrow { opacity: 1; transform: translate(2px, -2px); }
.city-aurora { --city-accent: #f0bd4d; --city-glow: #e8a43c1c; }
.city-nox { --city-accent: #d96542; --city-glow: #d965421c; }
.city-nereide { --city-accent: #e2a64e; --city-glow: #e2a64e1c; }
.city-vesta { --city-accent: #bd4b32; --city-glow: #bd4b321c; }
.city-solstice { --city-accent: #f1d17c; --city-glow: #f1d17c1c; }
.city-eden { --city-accent: #d58b4d; --city-glow: #d58b4d1c; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; border-top: 1px solid #ffffff14; color: #657184; font-size: 0.4375rem; letter-spacing: .08em; }
.footer-divider { padding-inline: 5px; color: #39485a; }
.footer-accent { color: #89979f; }

@media (max-width: 53.125em) {
  .atlas { padding-inline: 5%; }
  .atlas-hero { min-height: 320px; grid-template-columns: 1.1fr .9fr; }
  .planet-scene { min-height: 16.875rem; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 37.5em) {
  .atlas { padding-inline: 21px; }
  .topbar { height: 66px; }
  .brand { font-size: 0.5625rem; }
  .network-status { gap: 7px; font-size: 0.4375rem; letter-spacing: .08em; }
  .atlas-hero { min-height: auto; grid-template-columns: 1fr; padding: 47px 0 28px; }
  .atlas-hero h1 { font-size: clamp(45px, 12vw, 66px); }
  .atlas-hero-intro { max-width: 430px; margin-top: 17px; font-size: 0.75rem; }
  .planet-scene { width: min(100%, 24.375rem); min-height: 14.375rem; margin-top: 8px; justify-self: center; }
  .planet { top: 12%; left: 22%; width: 56%; }
  .planet-ring { top: 33%; left: 13%; width: 76%; }
  .destinations { padding-top: 27px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 1.6875rem; }
  .section-note { text-align: left; }
  .city-grid { gap: 9px; }
  .city-card { min-height: 188px; padding: 13px 12px; }
  .city-orb { top: 24%; right: 12px; width: 88px; height: 62px; }
  .city-name { font-size: 1.1875rem; }
  .city-world { max-width: calc(100% - 15px); font-size: 0.375rem; }
  .city-desc { max-width: calc(100% - 10px); font-size: 0.5rem; }
  .city-status { gap: 5px; font-size: 0.375rem; letter-spacing: .03em; }
  .page-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 17px; font-size: 0.375rem; }
}

@media (max-width: 23.125em) {
  .atlas { padding-inline: 15px; }
  .city-grid { grid-template-columns: 1fr; }
  .city-card { min-height: 165px; }
  .city-orb { top: 18%; right: 14px; width: 104px; height: 70px; }
  .city-info { padding-top: 42px; }
  .network-status { font-size: 0.375rem; }
}

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

/* ---------- Adaptations : lisibilité (tailles minimales), boutons, sections du site ---------- */
.atlas { overflow: visible; padding-bottom: 40px; }
.atlas .eyebrow, .atlas .section-kicker { font-size: 0.75rem; }
.atlas .hero-intro, .atlas-hero .hero-intro { font-size: 1rem; color: #b3bcc8; }
.atlas .section-note { font-size: 0.8125rem; color: #9aa5b4; }
.atlas .scene-coordinate { font-size: 0.625rem; }
.atlas .city-index, .atlas .city-status, .atlas .city-world { font-size: 0.625rem; }
.atlas .city-desc { font-size: 0.8125rem; color: #a7b1be; }
.atlas .network-status { font-size: 0.6875rem; margin: 18px 0 0; }
.atlas .city-grid > li { display: flex; }
.atlas .city-grid > li > .city-card { flex: 1; }

.atlas-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.atlas-bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font: 600 0.8125rem var(--mono); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: #1a1208; background: linear-gradient(90deg, #efbd54, #e08a4f); border: 1px solid transparent; transition: filter .2s, transform .1s; }
.atlas-bouton:hover { filter: brightness(1.1); }
.atlas-bouton.secondaire { color: #efbd54; background: transparent; border-color: #efbd5466; }
.atlas-bouton.secondaire:hover { background: #efbd5414; }

.atlas-section { padding: 34px 0 10px; border-top: 1px solid #ffffff14; }
.atlas-tuiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.atlas-tuile { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; color: var(--text); text-decoration: none;
  border: 1px solid #c5a77b1b; border-radius: 3px; background: linear-gradient(145deg, #302216 0%, #1c140e 66%);
  transition: border-color .25s, transform .25s, box-shadow .25s; }
.atlas-tuile:hover, .atlas-tuile:focus-visible { border-color: #efbd548c; transform: translateY(-3px); box-shadow: 0 12px 38px #0000002c; }
.atlas-tuile .icone { font-size: 1.5rem; line-height: 1; color: #efbd54; }
.atlas-tuile strong { font: 500 1.1875rem/1.2 var(--display); letter-spacing: -.02em; }
.atlas-tuile p, .atlas-tuile span.texte { margin: 0; font-size: 0.875rem; line-height: 1.5; color: #a7b1be; }
.atlas-tuile .kicker { font: 0.6875rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #efbd54; }
.atlas-tuile .suite { margin-top: auto; padding-top: 6px; font: 0.75rem var(--mono); letter-spacing: .08em; color: #efbd54; }
.atlas-tuile.vedette { border-color: #efbd5455; background: linear-gradient(145deg, #3d2a17 0%, #1c140e 70%); }
.atlas-tuile time { font: 0.6875rem var(--mono); letter-spacing: .1em; color: #8a96a6; }
@media (max-width: 37.5em) { .atlas { padding-inline: 16px; } }
.atlas .city-grid { list-style: none; margin: 0; padding: 0; }
.lien-atlas { color: #efbd54; text-decoration: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; }
.lien-atlas:hover { text-decoration: underline; }
body.page-atlas .fil { display: none; }
@media (max-width: 37.5em) {
  .atlas .city-grid { grid-template-columns: 1fr; }
  .atlas .city-card { min-height: 170px; }
  .atlas .city-orb { width: 120px; height: 80px; }
  .atlas .city-world { max-width: calc(100% - 135px); }
}
body.page-atlas .menu .menu-compte { color: #efbd54; border-color: #efbd5466; }
