/* ==========================================================================
   layout.css — header, nav, footer, sections, cartes, statuts, visuels data
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand { font-size: 1.7rem; line-height: 1; color: var(--ink); text-decoration: none; }

.site-nav ul { display: flex; gap: 1.8rem; list-style: none; padding: 0; }
.site-nav a {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.25rem var(--gutter) 1rem; }
  .site-nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current] { border-color: var(--line); color: var(--ink); font-weight: 700; }
}

/* ---------- Sections ---------- */
main { display: block; overflow-x: clip; }
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; justify-self: start; }

.page-hero { padding: 5.5rem 0 4.5rem; }
.page-hero .label { margin-top: 0.9rem; display: block; }
.page-hero h1, .page-hero .lede { max-width: none; }
.page-hero .lede { margin-top: 2.6rem; }

.breadcrumb { margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Liens d'action ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: transparent; color: var(--ink); }

.more {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.more::after { content: " →"; }

/* ---------- Statuts : carré plein ou contour ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.72em;
  height: 0.72em;
  border-radius: 2px;
  background: var(--ink);
}
.status-live::before   { background: var(--green); }
.status-dev::before    { background: var(--blue); }
.status-invite::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.status-soon::before   { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- Cartes projet : à plat, filet supérieur ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 0.9rem; }
.card-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.02); }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding-top: 0.9rem; border-top: 1px solid var(--ink); }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; }
.card p { color: var(--ink-soft); }

/* Emplacement de visuel en attente */
.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  padding: 1.25rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 3rem; border-top: 1px solid var(--ink); margin-top: 3rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer .mark { font-size: 2.4rem; line-height: 1; color: var(--ink); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.colophon { flex-basis: 100%; max-width: none; text-align: left; }
