/* Atlas Master — site vitrine
   Palette reprise de lib/core/theme/app_theme.dart
   Aucune dépendance, aucune webfont. */

:root {
  --navy: #162238;
  --navy-light: #1a2a47;
  --navy-deep: #0f1728;
  --gold: #bfa76f;
  --gold-bright: #d4b96a;
  --terracotta: #e8845a;
  --cream: #f5efe0;
  --cream-dim: #cdc7b8;
  --radius: 14px;
  --maxw: 1080px;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--navy);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(191, 167, 111, 0.28);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}
.site-header nav a {
  color: var(--cream-dim);
  font-size: 15px;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--gold-bright); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 0 56px; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 620px;
  height: 620px;
  max-width: 130vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 185, 106, 0.20) 0%, rgba(22, 34, 56, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero img.logo { width: 168px; height: 168px; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); color: var(--cream); }
.hero .tagline {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  margin-top: 10px;
}
.hero p.lead {
  max-width: 620px;
  margin: 20px auto 30px;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42); }
.btn:active { transform: translateY(0); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; border-top: 1px solid rgba(191, 167, 111, 0.16); }
section.block h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 8px;
}
section.block .sub {
  text-align: center;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 38px;
}

/* ---------- Concept cards ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--navy-light);
  border: 1px solid rgba(191, 167, 111, 0.30);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(212, 185, 106, 0.14);
  border: 1px solid rgba(191, 167, 111, 0.4);
  margin-bottom: 14px;
}
.card h3 { color: var(--gold-bright); font-size: 1.2rem; margin-bottom: 6px; }
.card p { color: var(--cream-dim); font-size: 0.98rem; }

/* ---------- Store band ---------- */
.store-band { text-align: center; }
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(191, 167, 111, 0.35);
  background: var(--navy-deep);
  color: var(--cream-dim);
  cursor: pointer;
  min-width: 210px;
  text-align: left;
  font-family: var(--sans);
  opacity: 0.78;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}
.store:hover { opacity: 1; border-color: var(--gold-bright); }
.store .store-ic { display: flex; align-items: center; justify-content: center; width: 28px; flex: none; }
.store .store-ic svg { display: block; }
.store .store-txt small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.store .store-txt strong { font-size: 1.05rem; color: var(--cream); font-weight: 600; }
.store .badge-soon {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold-bright);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(191, 167, 111, 0.24);
  background: var(--navy-deep);
  padding: 34px 0;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.9rem;
}
.site-footer nav { margin-bottom: 12px; }
.site-footer nav a { margin: 0 10px; color: var(--cream-dim); }
.site-footer nav a:hover { color: var(--gold-bright); }
.site-footer .contact-line { margin-bottom: 12px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 24, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal img { width: 72px; height: 72px; margin: 0 auto 14px; }
.modal h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 10px; }
.modal p { color: var(--cream-dim); font-size: 0.98rem; margin-bottom: 22px; }
.modal .btn { padding: 11px 26px; font-size: 0.95rem; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 48px 0 64px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--cream); margin-bottom: 6px; }
.legal-page .version { color: var(--cream-dim); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 {
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(191, 167, 111, 0.18);
}
.legal-page h3 { font-size: 1.05rem; color: var(--cream); margin: 20px 0 6px; }
.legal-page p, .legal-page li { color: var(--cream-dim); }
.legal-page ul { margin: 8px 0 8px 22px; }
.legal-page li { margin-bottom: 4px; }
.legal-page .back { display: inline-block; margin-top: 36px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero { padding: 88px 0 72px; }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
/* En dessous de ~600px, le logo + "ATLAS MASTER" + les 2 liens ne tiennent
   plus sur une ligne : on empile les liens à droite (alignés, sans coupure
   au milieu d'un libellé) plutôt que de laisser "Mentions légales" passer
   sous "Le concept". */
@media (max-width: 600px) {
  .site-header .wrap { align-items: center; }
  .site-header .brand span { white-space: nowrap; }
  .site-header nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .site-header nav a { font-size: 14px; }
}
@media (max-width: 420px) {
  .site-header .brand span { font-size: 16px; letter-spacing: 0.1em; }
  .site-header .brand img { width: 34px; height: 34px; }
  .store { min-width: 100%; }
}
