/* ═══════════════════════════════════════════════
   Studio431 — styles.css
   studio431.fr
   ═══════════════════════════════════════════════ */

:root {
  --bg-primary:    #000000;
  --bg-secondary:  #080808;
  --bg-card:       #0f0f0f;
  --border:        rgba(255, 255, 255, 0.08);
  --border-mid:    rgba(255, 255, 255, 0.14);
  --border-hover:  rgba(255, 255, 255, 0.26);

  --text-primary:  #f5f5f5;
  --text-secondary: #909090;
  --text-muted:    #484848;

  --accent:        #c8c8c8;
  --accent-bright: #ffffff;
  --accent-subtle: rgba(255, 255, 255, 0.05);

  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --radius:    4px;
  --gap-section: clamp(5rem, 11vw, 9rem);
  --max-width:   1160px;
  --gutter:      clamp(1.5rem, 5vw, 4rem);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: clamp(0.9375rem, 1.4vw, 1rem);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Focus ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ── Container ──────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Typography ─────────────────────────────── */
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }

p { max-width: 62ch; }

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent-bright); }
.nav-logo-mark { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text-primary); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text-primary); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem var(--gutter) 5rem;
  background-image:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.72) 52%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    url('./assets/images/hero-celestial-map.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 46ch;
  line-height: 1.6;
  max-width: none;
}

.hero-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 52ch;
  border-left: 2px solid var(--border-hover);
  padding-left: 1.25rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Buttons ─ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary {
  background: #efefef;
  color: #080808;
}
.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}
.btn-secondary {
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── Hero visual ─ */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.celestial-chart {
  width: 100%;
  max-width: 460px;
}

/* ── Coords bar ─ */
.hero-coords {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-coords-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ══════════════════════════════════════════════
   SECTIONS — shared
   ══════════════════════════════════════════════ */
.section {
  padding: var(--gap-section) var(--gutter);
}

.section-header {
  margin-bottom: 3.5rem;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title { color: var(--text-primary); }
.section-desc {
  color: var(--text-secondary);
  margin-top: 0.875rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

/* ══════════════════════════════════════════════
   PROJET
   ══════════════════════════════════════════════ */
#projet { background: var(--bg-secondary); }

.projet-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.projet-card:hover { border-color: var(--border-mid); }

.projet-visual {
  position: relative;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  min-height: 280px;
  overflow: hidden;
}

/* Subtle grid pattern on the placeholder */
.projet-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.placeholder-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.45;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.projet-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projet-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-mid);
  border-radius: 2rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  align-self: flex-start;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.projet-title {
  margin-bottom: 1rem;
}

.projet-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: none;
}

.projet-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-subtle);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 2px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   STUDIO
   ══════════════════════════════════════════════ */
#studio { background: var(--bg-primary); }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.studio-text-block p {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  max-width: none;
}

.studio-principles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.principle {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-left-color 0.25s, background 0.25s;
}
.principle:hover {
  border-left-color: var(--accent-bright);
  background: var(--bg-card);
}
.principle-name {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.principle-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: none;
}

/* ══════════════════════════════════════════════
   JOURNAL
   ══════════════════════════════════════════════ */
#journal { background: var(--bg-secondary); }

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.journal-intro {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  max-width: none;
}

.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.journal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.journal-card-label {
  margin-bottom: 1rem;
}
.journal-card-title {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}
.journal-card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  max-width: none;
}
.btn-coming {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.125rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  pointer-events: none;
  user-select: none;
  font-family: var(--font);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
#contact { background: var(--bg-primary); }

.contact-inner { max-width: 580px; }

.contact-text {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: none;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email-link:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}
.contact-email-link svg {
  opacity: 0.45;
  flex-shrink: 0;
  display: inline;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 3rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.footer-brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.footer-brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   MENTIONS LÉGALES PAGE
   ══════════════════════════════════════════════ */
.legal-main {
  padding: 8rem var(--gutter) 6rem;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 500;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--text-primary); }
.legal-back svg { opacity: 0.6; }

.legal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 3.5rem;
  color: var(--text-primary);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: none;
  margin-bottom: 0.5rem;
}
.legal-section a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-section a:hover { border-bottom-color: var(--accent); }

.legal-divider {
  width: 2rem;
  height: 1px;
  background: var(--border-mid);
  margin: 2.5rem 0;
}

.placeholder-value {
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  .projet-card {
    grid-template-columns: 1fr;
  }
  .projet-visual {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 200px;
  }
  .studio-grid,
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.125rem;
    letter-spacing: 0.12em;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .hero-coords { display: none; }

  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .footer-links { gap: 1.25rem; }
  .footer-bottom { flex-direction: column; }

  .projet-body { padding: 1.75rem; }
}

/* ══════════════════════════════════════════════
   IMAGES — logo, hero, footer
   ══════════════════════════════════════════════ */

/* Logo dans le header — symbol PNG sur fond sombre */
.nav-logo-img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: lighten;
  opacity: 0.88;
}

/* Logo complet dans le hero (colonne droite) */
.hero-logo-full {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  mix-blend-mode: lighten;
  opacity: 0.82;
  margin: 0 auto;
}

/* Symbole dans le footer */
.footer-symbol {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0.55;
  margin-bottom: 0.875rem;
}

/* Symbole en filigrane dans la carte projet */
.projet-symbol-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: 110px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0.11;
  pointer-events: none;
}

/* Responsive : logo hero sur tablette */
@media (max-width: 900px) {
  .hero-logo-full {
    max-width: 260px;
  }
}

/* Responsive : logo hero sur mobile */
@media (max-width: 600px) {
  .hero-logo-full {
    max-width: 200px;
  }
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
}
