/*
Theme Name: studio—no.logo
Theme URI: https://studio-nologo.fr
Author: studio—no.logo
Description: Thème sur mesure du studio — design, identités, direction artistique.
Version: 1.12.2
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: nologo
*/

/* ============================================================
   studio—no.logo — feuille de style commune
   ============================================================ */

:root {
  --bg: #0c0c0d;
  --bg-soft: #121214;
  --ink: #f4f4f2;
  --ink-dim: #9a9a96;
  --line: #2a2a2c;
  --card: #e3e3e1;
  --violet: #6f5cf1;
  --bleu: #2b2be0;       /* Sonsorielle */
  --lime: #d8f24b;       /* Stamina */
  --vert: #123b2e;       /* Stamina foncé */
  --lavande: #ddd2f0;
  --creme: #f2e6c9;
  --radius: 14px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: "Space Mono", monospace;
  --font-body: "Space Grotesk", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
nav { display: flex; gap: 34px; align-items: center; }
nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
}
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { opacity: 1; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; }

/* ---------- Pastille ovale pointillée ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 22px 26px;
  min-width: 96px;
  white-space: nowrap;
  flex-shrink: 0;
}
a.pill { transition: border-color 0.2s, color 0.2s; }
a.pill:hover { border-color: var(--ink); }

/* ---------- Sections / grilles ---------- */
section { border-top: 1px solid var(--line); }
.cell-pad { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
section.no-line { border-top: none; }

.row {
  display: grid;
  grid-template-columns: 140px 1px 1fr;
  gap: 0 clamp(20px, 4vw, 56px);
  align-items: stretch;
}
.row .divider { width: 1px; background: var(--line); }
.row .pill { justify-self: center; align-self: center; }
.row > div:last-child { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.card.tall { aspect-ratio: 4 / 5; }
.card.square { aspect-ratio: 1 / 1; }
.card img { width: 100%; height: 100%; object-fit: cover; }

.caption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.caption strong { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.caption span {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.gallery { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.gallery .duo, .gallery .trio { padding: 0; }
.duo-with-pill {
  display: grid;
  grid-template-columns: 1fr 1fr 1px 140px;
  gap: 0 clamp(16px, 3vw, 32px);
  align-items: stretch;
}
.duo-with-pill .divider { width: 1px; background: var(--line); }
.duo-with-pill > div:not(.divider) { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.duo-with-pill .pill { align-self: center; }
.duo-with-pill .pill { justify-self: center; }

/* ---------- Statements ---------- */
.statement {
  text-align: center;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 44px);
  letter-spacing: -0.01em;
  padding: clamp(56px, 9vw, 130px) var(--pad);
  border-top: 1px solid var(--line);
}

/* ---------- Hero homepage ---------- */
.hero {
  position: relative;
  min-height: clamp(320px, 46vh, 600px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--pad);
  background:
    radial-gradient(42% 65% at 16% 0%, rgba(226, 221, 240, 0.5), transparent 58%),
    radial-gradient(55% 85% at 60% 5%, rgba(122, 102, 255, 0.85), transparent 62%),
    radial-gradient(38% 60% at 96% 22%, rgba(86, 72, 220, 0.55), transparent 68%),
    linear-gradient(180deg, #2b2840 0%, #121016 58%, var(--bg) 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(90px, 22vw, 300px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  transform: translateY(6%);
  user-select: none;
}

/* ---------- Page projet ---------- */
.project-top {
  display: grid;
  grid-template-columns: 220px 1px 1fr;
  gap: 0 clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.project-top .divider { width: 1px; background: var(--line); }
.project-hero-cell {
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px) clamp(12px, 2vw, 24px);
  display: flex;
  align-items: center;
}
.project-meta { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 56px) 0; }
.project-meta dt {
  font-family: var(--font-display);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.project-meta dd { font-size: 13px; line-height: 1.6; }

.project-hero {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-hero .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.02em;
}
.project-hero.bleu { background: var(--bleu); color: #fff; }
.project-hero.lime { background: var(--lime); color: var(--vert); }

.project-about {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.project-about .label {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  align-self: start;
}
.project-about p { max-width: 60ch; color: var(--ink); font-size: 15px; line-height: 1.7; }
.project-about .pill { justify-self: center; }

.gallery { display: flex; flex-direction: column; gap: clamp(16px, 3vw, 32px); }

/* Cartes colorées spéciales (Stamina) */
.card.flat { display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(24px, 4vw, 48px); }
.card.flat.lavande { background: var(--lavande); color: #1c1633; }
.card.flat.creme { background: var(--creme); color: var(--vert); }
.card.flat.vert { background: var(--vert); color: var(--lime); }
.card.flat h3 { font-size: clamp(24px, 4vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.card.flat .big-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.card.flat p { font-size: 14px; }

/* ---------- Page logotypes ---------- */
.page-title {
  padding-top: 130px;
  padding-bottom: clamp(32px, 5vw, 56px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

/* ---------- Page à propos ---------- */
.about-hero { padding-top: 130px; padding-bottom: clamp(40px, 6vw, 80px); }
.about-hero .eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 20px;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 190px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  transform: scaleY(1.15);
  transform-origin: bottom;
}
.about-intro {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 90px);
}
.about-intro p { max-width: 60ch; font-size: 15px; line-height: 1.8; }

.services {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.services h2 { font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.services ul { list-style: none; }
.services li {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.services li:first-child { padding-top: 0; }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--pad);
  border-top: 1px solid var(--line);
}
.contact.no-line { border-top: none; }
.contact .pill { border-radius: 50%; padding: 44px 56px; font-size: 12px; }
.contact .arrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  margin: 30px auto 34px;
  display: block;
  color: var(--ink);
}
.contact .pill { text-transform: uppercase; }
.contact a.email {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.contact a.email:hover, .contact a.email:focus-visible { border-color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 90px) var(--pad) 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-grid .label {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 14px;
}
.footer-grid h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid li a {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.footer-grid li a:hover, .footer-grid li a:focus-visible { color: var(--ink); }

.footer-bottom {
  max-width: 1240px;
  margin: 64px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-bottom .meta {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  gap: 40px;
}
.footer-bottom .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav { display: none; }
  nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  nav.open a { font-size: 16px; }
  .burger {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 60;
  }
  header { mix-blend-mode: normal; }

  .row { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .row .divider { display: none; }
  .row .pill { justify-self: start; align-self: start; }
  .row > div:last-child { padding-top: 0; padding-bottom: 0; }

  .duo, .trio { grid-template-columns: 1fr; }
  .duo-with-pill { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .duo-with-pill .pill { justify-self: start; align-self: start; }
  .duo-with-pill > div:not(.divider) { padding-top: 0; padding-bottom: 0; }
  .duo-with-pill .divider, .project-about-panel .divider { display: none; }

  .project-top { grid-template-columns: 1fr; align-items: start; }
  .project-top .divider { display: none; }
  .project-hero-cell { padding-left: 0; }
  .project-meta { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
  .project-about { grid-template-columns: 1fr; }
  .project-about .pill { justify-self: start; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); }

  .services { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .meta { flex-direction: column; gap: 8px; }
}

/* ---------- Compléments WordPress ---------- */
.card.clickable { transition: transform 0.3s ease; }
a:hover .card.clickable { transform: scale(0.99); }
.doc p, .single-content p { margin-bottom: 1em; }
.project-hero.violet { background: var(--violet); color: #fff; }
.project-hero.neutre { background: var(--card); color: var(--bg); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.card.flat.bleu { background: var(--bleu); color: #fff; }
.card.flat.lime { background: var(--lime); color: var(--vert); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-size: 13px; padding: 12px 20px;
}
.skip-link:focus { left: 0; }
body.no-scroll { overflow: hidden; }

.visually-hidden, .screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Palier tablette */
@media (max-width: 1100px) and (min-width: 861px) {
  .trio { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: 200px 1fr 1fr; }
}
@media (max-width: 860px) {
  nav.open a { padding: 12px 24px; }
  .pill { padding: 18px 22px; min-width: 84px; }
  .project-top { padding-top: 90px; }
  .page-title, .about-hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(72px, 24vw, 140px); }
}
@media (max-width: 400px) {
  :root { --pad: 16px; }
  .footer-bottom .mark { font-size: 40px; }
}
@media print {
  header, .contact, footer .footer-grid { display: none; }
  body { background: #fff; color: #000; }
}

/* Menu WordPress (ul/li transparents pour garder le style des liens) */
nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
nav li { display: contents; }
nav .current-menu-item > a { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Décale le header sous la barre d'admin WordPress (utilisateur connecté) */
body.admin-bar header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header { top: 46px; }
  body.admin-bar nav.open { top: 46px; }
}


/* ---------- Fidélité maquette HD ---------- */

/* Header : logo SVG + tagline */
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-img { height: 15px; width: auto; display: block; }
.logo-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Hero : wordmark SVG */
.hero-wordmark {
  width: 100%;
  max-width: 1360px;
  height: auto;
  display: block;
  margin-bottom: clamp(24px, 3vw, 48px);
  user-select: none;
}

/* Panneau « À propos » du projet (fond sombre, année en ovale) */
.project-about-panel {
  display: grid;
  grid-template-columns: 1fr 1px 200px;
  gap: 0 clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.project-about-panel .divider { width: 1px; background: var(--line); }
.project-about-panel > div:first-child { padding: clamp(32px, 5vw, 64px) 0; }
.project-about-panel .pill-annee { align-self: center; }
.project-about-titre {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.project-about-panel .doc { max-width: 62ch; font-size: 15px; line-height: 1.75; }
.pill-annee {
  font-size: 14px;
  padding: 26px 38px;
  justify-self: center;
}

/* Footer : blocs adresse / téléphone */
.footer-bottom .meta { align-items: flex-start; }
.footer-bottom .meta-bloc { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom .meta-bloc strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.footer-bottom .meta-bloc span, .footer-bottom .meta-bloc a { color: var(--ink-dim); }
.footer-bottom .meta-bloc a:hover { color: var(--ink); }
.footer-bottom .mark img { height: clamp(34px, 4.5vw, 56px); width: auto; display: block; }

@media (max-width: 860px) {
  .project-about-panel { grid-template-columns: 1fr; }
  .project-about-panel .divider { display: none; }
  .pill-annee { justify-self: start; }
  .logo-tagline { display: none; }
}


/* ---------- Header : bandeau statique bordé hors homepage ---------- */
body:not(.home) header {
  position: static;
  mix-blend-mode: normal;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
body:not(.home).admin-bar header { top: auto; }
.logo-texte {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
/* Les hauts de page n'ont plus à compenser un header flottant */
body:not(.home) .page-title,
body:not(.home) .about-hero { padding-top: clamp(48px, 7vw, 90px); }


/* ---------- Conteneur de page pleine largeur (lignes intérieures reliées) ---------- */
.cadre { position: relative; }

/* (bloc barre flottante supprimé — header intégré au cadre, voir v1.6) */

/* Le contact est bordé en haut et le footer aussi : lignes continues */
.statement { border-top: 1px solid var(--line); border-bottom: none; }


/* ============================================================
   Animations modernes (désactivées si prefers-reduced-motion)
   ============================================================ */

/* Entrée du hero et du header */
@keyframes nologo-hero-in {
  from { opacity: 0; transform: translateY(46px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nologo-fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}
.hero-wordmark {
  position: relative;
  z-index: 1;
  animation: nologo-hero-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
body.home header { animation: nologo-fade-down 0.8s ease 0.35s backwards; }

/* Dérive lente du dégradé */
.hero::after {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(38% 48% at 62% 22%, rgba(150, 130, 255, 0.28), transparent 62%);
  animation: nologo-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes nologo-drift {
  from { transform: translate(-4%, -2%) scale(1); }
  to   { transform: translate(4%, 3%) scale(1.06); }
}

/* Apparition en cascade des cartes dans les sections révélées */
.reveal > div:not(.divider) {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible > div:not(.divider) { opacity: 1; transform: none; }
.reveal.visible > div:nth-child(2):not(.divider) { transition-delay: 0.12s; }
.reveal.visible > div:nth-child(3):not(.divider) { transition-delay: 0.2s; }
.reveal.visible > div:nth-child(4):not(.divider) { transition-delay: 0.28s; }

/* Survol des cartes : légère élévation + zoom doux de l'image */
.card { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
a:hover .card { transform: translateY(-5px); }
a:hover .card img { transform: scale(1.045); }

/* Survol des pastilles cliquables : inversion */
a.pill { transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
a.pill:hover, a.pill:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Soulignement animé de la navigation */
nav a { position: relative; }
nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }

/* Flèche du contact : flottement doux */
.contact .arrow { animation: nologo-float 2.6s ease-in-out infinite; }
@keyframes nologo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}


/* ============================================================
   v1.6 — Cadre pleine page (home & projet), dégradé en fond
   Le cadre englobe header + contenu + footer ; toutes les
   lignes internes rejoignent ses bords. Le dégradé de la home
   est peint derrière le cadre, bord à bord du viewport.
   ============================================================ */

body { position: relative; }

.cadre {
  position: relative;
  margin: clamp(24px, 3.9vw, 58px) clamp(18px, 3.3vw, 48px);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

/* Header : dans le flux, en haut du cadre, ligne interne dessous */
header,
body:not(.home) header,
body.home header {
  position: static;
  mix-blend-mode: normal;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.6vw, 40px);
  animation: none;
}
body.home header {
  border-bottom-color: rgba(244, 244, 242, 0.55);
  animation: nologo-fade-down 0.8s ease 0.35s backwards;
}
header, body.home header, body:not(.home) header { inset: auto; }
body.admin-bar header, body.home.admin-bar header { top: auto; }

/* Dégradé de la home : fond du body, du pixel 0 du document, pleine largeur */
body.home {
  background-color: var(--bg);
  background-image:
    radial-gradient(42% 65% at 16% 0%, rgba(226, 221, 240, 0.5), transparent 58%),
    radial-gradient(55% 85% at 60% 5%, rgba(122, 102, 255, 0.85), transparent 62%),
    radial-gradient(38% 60% at 96% 22%, rgba(86, 72, 220, 0.55), transparent 68%),
    linear-gradient(180deg, #2b2840 0%, #121016 58%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% calc(clamp(320px, 46vh, 600px) + 220px);
}

/* Le hero devient transparent : il laisse voir le dégradé du body,
   qui traverse ainsi la ligne du cadre sans rupture */
.hero { background: none; }

@media (max-width: 860px) {
  .cadre { margin: 10px; border-radius: 10px; }
}


/* ============================================================
   v1.7 — Cadre dessiné au scroll (tracé SVG amorti)
   ============================================================ */
.cadre-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}
.cadre-trace path {
  fill: none;
  stroke: rgba(244, 244, 242, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
@media (prefers-reduced-motion: reduce) {
  .cadre-trace path { stroke-dashoffset: 0 !important; }
}


/* ============================================================
   v1.8 — Toutes les lignes de la page se dessinent à l'écran
   (horizontales de gauche à droite, verticales de haut en bas)
   Fallback : bordures statiques si JS absent ou reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  html.js section:not(.no-line),
  html.js .statement,
  html.js .contact:not(.no-line),
  html.js footer { border-top-color: transparent; position: relative; }
  html.js header { border-bottom-color: transparent; position: relative; }

  html.js :where(section:not(.no-line), .statement, .contact:not(.no-line), footer)::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.22, 0.85, 0.3, 1);
  }
  html.js :where(header)::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--ligne-header, var(--line));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.22, 0.85, 0.3, 1);
  }
  body.home header::after {
    mix-blend-mode: difference;
    background: rgba(244, 244, 242, 0.85);
  }
  /* Trait sous les statements (même style que sous l'image du premier projet) */
  html.js :where(.statement)::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.22, 0.85, 0.3, 1);
  }
  body.home header { --ligne-header: rgba(244, 244, 242, 0.55); }

  html.js .divider {
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.95s cubic-bezier(0.3, 1.25, 0.4, 1) 0.35s;
  }
  html.js :where(.statement)::before {
    transform-origin: center center;
  }

  html.js .ligne-ok::before,
  html.js .ligne-ok::after { transform: scaleX(1); }
  html.js .divider.ligne-ok { transform: scaleY(1); }
}


/* ---------- Page projet : bande « À propos » et ovale année (maquette) ---------- */
.section-apropos { background: #131314; }
.pill-annee {
  background: var(--bg);
  border-color: rgba(244, 244, 242, 0.7);
}


/* ============================================================
   v1.10 — Les ovales et les dernières lignes se dessinent aussi
   ============================================================ */
@property --nologo-arc {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@media (prefers-reduced-motion: no-preference) {

  /* Ovales (pastilles) : le contour se trace dans le sens horaire */
  html.js .pill { border-color: transparent; position: relative; }
  html.js .pill::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid currentColor;
    pointer-events: none;
    -webkit-mask: conic-gradient(#000 var(--nologo-arc), transparent 0);
    mask: conic-gradient(#000 var(--nologo-arc), transparent 0);
    transition: --nologo-arc 1.1s cubic-bezier(0.3, 0.9, 0.3, 1) 0.45s;
  }
  html.js .ligne-ok .pill::before,
  html.js .pill.ligne-ok::before { --nologo-arc: 100%; }
  html.js a.pill:hover { border-color: transparent; }

  /* Lignes de la liste des services (page À propos) : tracé en cascade */
  html.js .services li { border-bottom-color: transparent; position: relative; }
  html.js :where(.services li)::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.22, 0.85, 0.3, 1);
  }
  html.js .services.ligne-ok li::after { transform: scaleX(1); }
  html.js .services.ligne-ok li:nth-child(2)::after { transition-delay: 0.1s; }
  html.js .services.ligne-ok li:nth-child(3)::after { transition-delay: 0.2s; }
  html.js .services.ligne-ok li:nth-child(4)::after { transition-delay: 0.3s; }
  html.js .services.ligne-ok li:nth-child(5)::after { transition-delay: 0.4s; }
}


/* ---------- Respiration des blocs oubliés par la refonte des lignes ---------- */
.services { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.logo-grid { padding-bottom: clamp(48px, 8vw, 110px); }
.about-intro { padding-top: clamp(24px, 4vw, 48px); }


/* ============================================================
   v1.11 — Transitions de pages, parallaxe galerie, finitions
   ============================================================ */

/* Scrollbar et sélection assorties au thème */
html { scrollbar-color: #2a2a2c var(--bg); }
::selection { background: rgba(111, 92, 241, 0.9); color: #fff; }

/* Transitions entre pages (View Transitions API, MPA) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition-old(root) {
  animation: nologo-vt-out 0.3s ease both;
}
::view-transition-new(root) {
  animation: nologo-vt-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (prefers-reduced-motion: no-preference) {

  /* Parallaxe galerie : décalage appliqué via la propriété translate
     (indépendante de transform → aucun conflit avec les hovers/reveals) */
  html.js .gallery .card img { scale: 1.09; will-change: translate; }
}

@keyframes nologo-vt-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes nologo-vt-in {
  from { opacity: 0; transform: translateY(14px); }
}


/* ============================================================
   v1.12 — Menu mobile animé, entrée des pages projet
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* Ouverture du menu mobile : fondu + liens en cascade */
  @media (max-width: 860px) {
    nav.open { animation: nologo-menu-in 0.3s ease both; }
    nav.open a {
      opacity: 0;
      animation: nologo-menu-lien 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    nav.open a:nth-of-type(1), nav.open li:nth-child(1) a { animation-delay: 0.08s; }
    nav.open a:nth-of-type(2), nav.open li:nth-child(2) a { animation-delay: 0.15s; }
    nav.open a:nth-of-type(3), nav.open li:nth-child(3) a { animation-delay: 0.22s; }
    nav.open a:nth-of-type(4), nav.open li:nth-child(4) a { animation-delay: 0.29s; }
  }

  /* Entrée des pages projet : méta en cascade + visuel en fondu */
  html.js .project-meta > div {
    opacity: 0;
    animation: nologo-fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  html.js .project-meta > div:nth-child(1) { animation-delay: 0.15s; }
  html.js .project-meta > div:nth-child(2) { animation-delay: 0.24s; }
  html.js .project-meta > div:nth-child(3) { animation-delay: 0.33s; }
  html.js .project-meta > div:nth-child(4) { animation-delay: 0.42s; }
  html.js .project-meta > div:nth-child(5) { animation-delay: 0.51s; }
  html.js .project-hero-cell {
    opacity: 0;
    animation: nologo-fade-up 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }

  /* Wordmark du footer : fondu à l'arrivée à l'écran */
  html.js .footer-bottom .mark {
    opacity: 0;
    transition: opacity 1s ease 0.3s;
  }
  html.js footer.ligne-ok .footer-bottom .mark { opacity: 1; }
}

@keyframes nologo-menu-in {
  from { opacity: 0; }
}
@keyframes nologo-menu-lien {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nologo-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
