/* ═══════════════════════════════════════════════════════════ */
/* RESET & VARIABLES                                           */
/* ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #F7F5F0;
  --ink: #1A1714;
  --ink-muted: #7A756E;
  --accent: #00d4c0;
  --accent-dark: #009e92;
  --border: #E2DDD6;
  --surface: #ECEAE4;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════════════ */
/* BASE                                                        */
/* ═══════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; transition: 0.2s; color: inherit; }

/* ═══════════════════════════════════════════════════════════ */
/* TYPOGRAPHIE COMMUNE                                         */
/* ═══════════════════════════════════════════════════════════ */

h1,
.principes-header h2,
.notify-inner h2,
.piece-title,
.principe-item h4,
.logo-text,
.footer-tagline {
  font-family: var(--serif);
  color: var(--ink);
}

h1 em,
.principes-header h2 em,
.notify-inner h2 em { font-style: italic; color: var(--accent-dark); }

.hero-label,
.section-label,
.logo-domain,
.piece-meta,
.principe-num { font-family: var(--mono); }

.hero-desc,
.principe-item p,
.notify-inner p { color: var(--ink-muted); line-height: 1.6; }

.footer-tagline { font-size: 0.75rem; font-style: italic; color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════ */
/* LAYOUT WRAPPERS                                             */
/* ═══════════════════════════════════════════════════════════ */

.hero,
.exhibition,
.principes,
.notify-inner { max-width: 1200px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════ */
/* HEADER                                                      */
/* ═══════════════════════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 212, 192, 0.04);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 192, 0.08);
  box-shadow: 0 4px 30px rgba(0, 212, 192, 0.03);
}

.header-left,
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }

.logo-img, .footer-logo { width: 24px; height: 24px; object-fit: contain; }
.logo-img { width: 28px; height: 28px; }
.logo-text { font-size: 1.1rem; }
.logo-domain { font-size: 0.9rem; color: var(--accent-dark); }

.header-nav { display: flex; gap: 1.8rem; margin-left: auto; }

.header-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.header-nav a:hover,
.footer-legal:hover { color: var(--ink); }

.header-back {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
}

.header-back:hover { color: var(--accent-dark); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════ */
/* HERO                                                        */
/* ═══════════════════════════════════════════════════════════ */

.hero {
  padding: 8rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  animation: fadeUp 0.8s ease both;
}

.hero-label { grid-column: 1 / -1; font-size: 0.72rem; color: var(--accent-dark); text-transform: uppercase; }

h1 { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; }

.hero-right { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 1rem; }
.hero-desc { font-size: 1rem; line-height: 1.75; max-width: 38ch; }
.hero-line { grid-column: 1 / -1; height: 1px; background: var(--border); margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════════ */
/* BADGE & BOUTON                                              */
/* ═══════════════════════════════════════════════════════════ */

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(0, 212, 192, 0.08);
  border: 1px solid rgba(0, 212, 192, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  width: fit-content;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.btn-primary {
  display: inline-flex;
  padding: 0.75rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 99px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

@media (min-width: 769px) {
  .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 158, 146, 0.25);
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* SECTION LABEL                                               */
/* ═══════════════════════════════════════════════════════════ */

.section-label {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════ */
/* GALERIE                                                     */
/* ═══════════════════════════════════════════════════════════ */

.exhibition { padding: 5rem 3rem; animation: fadeUp 0.8s 0.1s ease both; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.art-piece { display: flex; flex-direction: column; gap: 1rem; cursor: crosshair; }

.piece-canvas {
  background: var(--surface);
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
  .art-piece:hover .piece-canvas { transform: scale(0.98); border-color: rgba(0, 212, 192, 0.4); }
}

.piece-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.piece-title { font-size: 1.2rem; }
.piece-meta { font-size: 0.65rem; color: var(--ink-muted); text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════ */
/* MANIFESTE / PRINCIPES                                       */
/* ═══════════════════════════════════════════════════════════ */

.principes {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.principes-header h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 400; }
.principes-list { border-top: 1px solid var(--border); }

.principe-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.principe-num { color: var(--accent); }
.principe-item h4 { font-size: 1.2rem; font-weight: 400; margin-bottom: 0.3rem; }
.principe-item p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════ */
/* NOTIFICATION                                                */
/* ═══════════════════════════════════════════════════════════ */

.notify-section { padding: 7rem 3rem; }

.notify-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.notify-inner h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; font-weight: 400; }
.notify-inner p { font-size: 0.95rem; max-width: 40ch; }

.notify-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

.notify-input {
  padding: 0.75rem 1.1rem;
  font-family: var(--sans);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  min-width: 250px;
  outline: none;
  transition: 0.2s;
  background: var(--bg);
}

.notify-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 192, 0.1); }
.notify-success { display: none; color: var(--accent-dark); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER                                                      */
/* ═══════════════════════════════════════════════════════════ */

footer { background: var(--surface); border-top: 1px solid var(--border); }

.footer-bottom {
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-legal { font-size: 0.73rem; color: var(--ink-muted); }
.footer-copy { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════ */
/* ANIMATIONS                                                  */
/* ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.8); opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                  */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  header { padding: 1.2rem 1.5rem; justify-content: space-between; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem; }
  .art-grid { grid-template-columns: 1fr; }
  .exhibition, .principes, .notify-section { padding: 3rem 1.5rem; }
  .principes { grid-template-columns: 1fr; gap: 2rem; }
  .notify-form { flex-direction: column; gap: 0.8rem; align-items: center; }
  footer { border-top: none; }
  .footer-bottom { flex-direction: column; justify-content: center; gap: 1rem; padding: 1.4rem 2rem; text-align: center; }
  .footer-copy { margin-left: 0; }
}
