/* Studio Échelon — pages projets */

:root {
  --font: "DM Sans", system-ui, sans-serif;
  --stone: #8fa3b0;
  --teal: #2dd4bf;
  --teal-deep: #0d9488;
  --ice: #38bdf8;
  --ice-deep: #0284c7;
  --gold: #e8c547;
  --ink: #0f172a;
  --mist: #f1f5f9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Home ——— */

.page-home {
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(165deg, #e2e8f0 0%, #f8fafc 42%, #e0f2fe 100%);
}

.page-home main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.home-wrap {
  text-align: center;
  max-width: 36rem;
  width: 100%;
}

.home-logo {
  width: min(200px, 52vw);
  margin: 0 auto 1.5rem;
  border-radius: 1.25rem;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.home-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.home-tagline {
  margin: 0 0 2.25rem;
  color: #64748b;
  font-size: 1rem;
}

.branches {
  display: grid;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 520px) {
  .branches {
    grid-template-columns: 1fr 1fr;
  }
}

.branch-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.branch-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.branch-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.branch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-deep);
}

.branch-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.branch-card:hover .branch-link::after {
  transform: translateX(4px);
}

.branch-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(56, 189, 248, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.branch-card--featured .branch-link {
  color: var(--ice-deep);
}

.branch-card--featured:hover {
  box-shadow:
    0 12px 40px rgba(2, 132, 199, 0.12),
    0 0 0 1px rgba(56, 189, 248, 0.2);
}

.home-domain-hint {
  white-space: nowrap;
  font-weight: 600;
  color: #0369a1;
}

/* ——— Store (Azuriom shop landing) ——— */

.page-store {
  background: linear-gradient(180deg, #020617 0%, #0c1924 38%, #0e7490 100%);
  color: #e0f2fe;
}

.page-store .site-header {
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(8px);
}

.page-store .sub-footer-note {
  color: #7dd3fc;
  opacity: 0.65;
}

.store-hero {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.store-hero__logo {
  width: min(140px, 40vw);
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(125, 211, 252, 0.25);
}

.store-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
}

.store-hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f9ff;
  text-shadow: 0 0 48px rgba(56, 189, 248, 0.35);
}

.page-store .sub-lead {
  margin: 0 0 2rem;
  color: #bae6fd;
  opacity: 0.95;
}

.store-actions {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn--primary {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.35);
}

.store-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(14, 165, 233, 0.45);
}

.store-hint {
  margin: 0;
  max-width: 28rem;
  font-size: 0.8rem;
  color: #7dd3fc;
  opacity: 0.75;
  line-height: 1.45;
}

.store-hint code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.45);
}

/* ——— Subpages shared ——— */

.page-sub .site-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-sub .back {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

.page-sub .back:hover {
  opacity: 1;
}

.page-sub main {
  flex: 1;
}

.sub-hero {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.sub-hero img {
  max-width: min(520px, 100%);
  margin: 0 auto 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sub-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sub-lead {
  max-width: 32rem;
  margin: 0 auto;
  opacity: 0.88;
  font-size: 1rem;
}

.sub-footer-note {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  opacity: 0.55;
}

/* Harbor theme */
.page-harbor {
  background: linear-gradient(180deg, #0c1924 0%, #0f2937 40%, #134e4a 100%);
  color: #ecfdf5;
}

.page-harbor .site-header {
  background: rgba(6, 24, 32, 0.6);
  backdrop-filter: blur(8px);
}

.page-harbor .sub-hero h1 {
  color: #5eead4;
  text-shadow: 0 0 40px rgba(45, 212, 191, 0.35);
}

.page-harbor .sub-lead {
  color: #99f6e4;
}

.page-harbor .sub-footer-note {
  color: #5eead4;
}

/* Divide and Conquer theme */
.page-dac {
  background: linear-gradient(180deg, #0a0a0a 0%, #171717 50%, #262626 100%);
  color: #e5e5e5;
}

.page-dac .site-header {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.page-dac .sub-hero h1 {
  color: #fafafa;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.08);
}

.page-dac .sub-lead {
  color: #a3a3a3;
}

.page-dac .sub-footer-note {
  color: #737373;
}

/* ——— Panel page simple gate ——— */
.panel-wrap {
  text-align: center;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}

.panel-back {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.panel-login-card {
  max-width: 24rem;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  text-align: left;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.panel-login-card label {
  display: grid;
  gap: 0.35rem;
}

.panel-login-card label span {
  font-size: 0.85rem;
  color: #475569;
}

.panel-login-card input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.65rem;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.panel-login-card button {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.panel-msg {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.panel-msg.is-error {
  color: #dc2626;
}

.panel-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.is-hidden {
  display: none !important;
}
