/* ============================================
   STUDIO ULTRAVIOLET — DESIGN TOKENS
   ============================================ */
:root {
  /* Couleurs — identité validée */
  --nuit: #1A0D3F;
  --ultraviolet: #5C3FBF;
  --lumiere: #7F5FD4;
  --brume: #C9BAFC;
  --craie: #F3F1EA;
  --or: #EFBF04;
  --terre: #C4A882;
  --matiere: #2C2C2A;

  --bg: var(--craie);
  --bg-paper: #FAF8F4;
  --ink: var(--nuit);
  --ink-soft: #4B3F7A;
  --accent: var(--or);
  --rule: rgba(26, 13, 63, 0.18);
  --rule-strong: rgba(26, 13, 63, 0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --margin: clamp(20px, 5vw, 64px);
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ultraviolet); outline-offset: 3px; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Liseré de marge — motif "carnet" */
.margin-rule {
  position: fixed;
  top: 0; bottom: 0;
  left: calc(var(--margin) - 1px);
  width: 1px;
  background: var(--rule);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 700px) { .margin-rule { display: none; } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--margin) 24px;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 124px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-list a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-list a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 16px !important;
  font-family: var(--font-mono);
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Dropdown "Agence" */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 14px;
  min-width: 190px;
  z-index: 20;
}
.nav-dropdown-inner {
  background: var(--bg-paper);
  border: 1px solid var(--rule-strong);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-inner a {
  padding: 9px 10px;
  font-size: 14.5px;
  display: block;
}
.nav-dropdown-inner a:hover { background: var(--craie); }
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown { display: block; }
@media (max-width: 760px) {
  .nav-dropdown {
    display: block;
    position: static;
    padding-top: 6px;
  }
  .nav-dropdown-inner { border: none; padding: 2px 0 0 14px; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%; right: var(--margin);
    background: var(--bg-paper);
    border: 1px solid var(--rule-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    min-width: 200px;
  }
  .nav-list.open { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 100px) var(--margin) clamp(60px, 10vw, 120px);
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-frame { max-width: 760px; }

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ultraviolet);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hl {
  color: var(--ultraviolet);
  font-style: normal;
}

.hero-lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg-paper); }
.btn-primary:hover { background: var(--ultraviolet); border-color: var(--ultraviolet); }
.btn-ghost:hover { background: var(--ink); color: var(--bg-paper); }
.btn-large { padding: 16px 36px; font-size: 16px; }

.hero-tag {
  position: absolute;
  top: clamp(40px, 8vw, 100px);
  right: var(--margin);
  width: 96px;
  height: 96px;
  color: var(--rule-strong);
  display: none;
}
@media (min-width: 900px) { .hero-tag { display: block; } }
.tag-svg { width: 100%; height: 100%; }
.tag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink);
  font-weight: 700;
}
.tag-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--ultraviolet);
}

/* ============================================
   STRIP — bande de méthode
   ============================================ */
.strip {
  display: flex;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  max-width: var(--max-width);
  margin: 0 auto;
}
.strip-item {
  flex: 1;
  padding: 28px var(--margin);
}
.strip-rule { width: 1px; background: var(--rule-strong); }
.strip-label {
  font-size: 12px;
  color: var(--ultraviolet);
  margin: 0 0 8px;
}
.strip-value {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .strip { flex-direction: column; }
  .strip-rule { width: 100%; height: 1px; }
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--margin);
}
.manifesto-num {
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 8px;
}
.manifesto-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.manifesto-text p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 24px;
}
.text-link {
  font-family: var(--font-mono);
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
@media (max-width: 600px) {
  .manifesto { grid-template-columns: 1fr; }
}

/* ============================================
   PROJECTS PREVIEW
   ============================================ */
.projects-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--margin) clamp(60px, 8vw, 100px);
}
.section-head { margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}
.project-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.project-visual {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.project-visual .visual-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: none;
  margin: 0;
}
.project-card a.project-visual:hover img { transform: scale(1.04); }
.ph-label {
  font-size: 11px;
  color: rgba(26,13,63,0.45);
  border: 1px dashed rgba(26,13,63,0.3);
  padding: 5px 10px;
  background: rgba(255,255,255,0.4);
}
.ph-yellow { background: repeating-linear-gradient(135deg, #EFBF04 0, #EFBF04 2px, var(--craie) 2px, var(--craie) 14px); }
.ph-slate { background: repeating-linear-gradient(135deg, var(--matiere) 0, var(--matiere) 2px, var(--craie) 2px, var(--craie) 14px); }
.ph-honfleur { background: repeating-linear-gradient(135deg, var(--ultraviolet) 0, var(--ultraviolet) 2px, var(--craie) 2px, var(--craie) 14px); }

.project-meta { padding: 24px; flex: 1; }
.meta-line {
  font-size: 11px;
  color: var(--ultraviolet);
  margin: 0 0 10px;
}
.project-meta h3 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.project-meta p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.projects-all { display: inline-block; margin-top: 36px; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--ink);
  color: var(--bg-paper);
  text-align: center;
  padding: clamp(60px, 9vw, 110px) var(--margin);
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cta-band p {
  color: var(--brume);
  font-size: 17px;
  margin: 0 0 36px;
}
.cta-band .btn-primary {
  background: var(--accent);
  color: var(--nuit);
  border-color: var(--accent);
}
.cta-band .btn-primary:hover {
  background: var(--bg-paper);
  border-color: var(--bg-paper);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 80px) var(--margin) 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo-img { height: 46px; }
.footer-tagline { font-size: 13px; color: var(--ink-soft); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading {
  font-size: 12px;
  color: var(--ultraviolet);
  margin: 0 0 6px;
}
.footer-col a, .footer-static {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   PAGE HEADER (pages internes)
   ============================================ */
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) var(--margin) clamp(40px, 6vw, 70px);
}
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin: 6px 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-hero .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}

/* ============================================
   PROJET — fiche détaillée
   ============================================ */
.project-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) var(--margin);
  border-top: 1px solid var(--rule-strong);
}
.project-detail:first-of-type { border-top: none; }

.pd-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.pd-lot {
  font-size: 13px;
  color: var(--ultraviolet);
  padding-top: 6px;
}
.pd-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pd-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pd-tag {
  font-size: 11.5px;
  font-family: var(--font-mono);
  border: 1px solid var(--rule-strong);
  padding: 4px 10px;
  color: var(--ink-soft);
}
.pd-tag.expertise {
  border-color: var(--ultraviolet);
  color: var(--ultraviolet);
  font-weight: 700;
}

.pd-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}
.pd-text p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 18px;
}
.pd-text p:last-child { margin-bottom: 0; }

.pd-gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
  border: 1px solid var(--rule);
}
.pd-gallery .visual-placeholder {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
}
.pd-gallery.feature {
  grid-template-columns: 1fr;
}
.pd-gallery.feature img { aspect-ratio: auto; }
.pd-gallery.two { grid-template-columns: 1fr 1fr; }

.pd-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule-strong);
}

@media (max-width: 700px) {
  .pd-head, .pd-body { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   À PROPOS — manifeste + portrait
   ============================================ */
.about-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.about-intro .lede-large {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 640px;
  margin: 0;
}
.about-portrait {
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--rule-strong);
}
.about-portrait.circle {
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  max-width: 360px;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-portrait { max-width: 280px; }
}

.principles-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.principle {
  padding: 36px 28px;
  border-left: 1px solid var(--rule-strong);
}
.principle:first-child { border-left: none; }
.principle .p-num { font-family: var(--font-mono); font-size: 12px; color: var(--ultraviolet); margin: 0 0 14px; }
.principle h3 { font-size: 18px; margin: 0 0 10px; }
.principle p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-left: none; border-top: 1px solid var(--rule-strong); }
  .principle:first-child { border-top: none; }
}

.timeline-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) var(--margin);
}
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.timeline-item:first-child { border-top: none; }
.t-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.t-content h4 { font-size: 16.5px; margin: 0 0 4px; }
.t-content p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================================
   SERVICES
   ============================================ */
.services-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 90px);
}
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-strong);
}
.service-row:last-child { border-bottom: 1px solid var(--rule-strong); }
.s-num { font-family: var(--font-mono); font-size: 13px; color: var(--ultraviolet); padding-top: 4px; }
.service-row h3 { font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.service-row .s-desc { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.service-row .s-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}

.process-band {
  background: var(--ink);
  color: var(--bg-paper);
  padding: clamp(50px, 7vw, 90px) var(--margin);
}
.process-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.process-band h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 40px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step .ps-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.process-step h4 { font-size: 17px; margin: 0 0 8px; }
.process-step p { font-size: 14px; color: var(--brume); margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { font-size: 24px; margin: 0 0 18px; }
.contact-info p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 28px; max-width: 420px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail .cd-label { font-family: var(--font-mono); font-size: 12px; color: var(--ultraviolet); margin: 0 0 4px; }
.contact-detail a, .contact-detail span { font-size: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font-family: var(--font-display);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-paper);
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--ultraviolet); outline-offset: 0; }
.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Active nav link */
.nav-list a.active::after { width: 100%; }

/* ============================================
   MANIFESTE COMPLET (page À propos)
   ============================================ */
.manifesto-full {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) var(--margin) clamp(70px, 10vw, 120px);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
}
.manifesto-full-text {
  max-width: 700px;
}
.manifesto-full-text p {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 32px;
  font-weight: 400;
}
.manifesto-full-text p:first-child::first-letter {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--ultraviolet);
}
.manifesto-signature {
  font-weight: 700 !important;
  color: var(--ultraviolet) !important;
  border-top: 1px solid var(--rule-strong);
  padding-top: 28px;
  margin-top: 8px !important;
}
@media (max-width: 700px) {
  .manifesto-full { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT TEXT (parcours détaillé)
   ============================================ */
.about-text p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ============================================
   PLACEHOLDER VISUEL (visuel à venir)
   ============================================ */
.visual-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-paper);
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.visual-placeholder.square { aspect-ratio: 1/1; }
.visual-placeholder.wide { aspect-ratio: 16/7; }
.visual-placeholder .vp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 0;
}

/* ============================================
   BANDEAU ACCUEIL — vignettes projets
   ============================================ */
.home-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 80px);
}
.home-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.home-banner-grid .visual-placeholder,
.home-banner-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .home-banner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROJETS — grille de vignettes (page Projets)
   ============================================ */
.projects-index-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.projects-index-grid .project-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule-strong);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.projects-index-grid .project-card:hover {
  box-shadow: 0 10px 24px rgba(26, 13, 63, 0.12);
  transform: translateY(-3px);
}
@media (max-width: 900px) {
  .projects-index-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .projects-index-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================
   AGENCE — cartes sous-pages
   ============================================ */
.agence-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.agence-card {
  padding: 40px 30px;
  border-left: 1px solid var(--rule-strong);
  display: block;
}
.agence-card:first-child { border-left: none; }
.agence-card .ac-num { font-family: var(--font-mono); font-size: 12px; color: var(--ultraviolet); margin: 0 0 14px; }
.agence-card h3 { font-size: 20px; margin: 0 0 10px; }
.agence-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.55; }
.agence-card .ac-link { font-family: var(--font-mono); font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
@media (max-width: 760px) {
  .agence-grid { grid-template-columns: 1fr; }
  .agence-card { border-left: none; border-top: 1px solid var(--rule-strong); }
  .agence-card:first-child { border-top: none; }
}

/* ============================================
   TRAVAIL EN COLLECTIF
   ============================================ */
.collectif-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) var(--margin);
}
.collectif-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.collectif-item {
  border: 1px solid var(--rule-strong);
  padding: 26px 24px;
}
.collectif-item h4 { font-size: 17px; margin: 0 0 8px; }
.collectif-item p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.collectif-item a.text-link { font-size: 13px; }
@media (max-width: 700px) {
  .collectif-list { grid-template-columns: 1fr; }
}

/* ============================================
   EXPERTISES — liste courte "Nos expertises"
   ============================================ */
.expertise-tags-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.expertise-tag-item {
  padding: 28px 18px;
  border-left: 1px solid var(--rule-strong);
  text-align: left;
}
.expertise-tag-item:first-child { border-left: none; }
.expertise-tag-item h4 { font-size: 15.5px; margin: 0 0 8px; }
.expertise-tag-item p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.45; }
@media (max-width: 900px) {
  .expertise-tags-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-tag-item { border-left: none; border-top: 1px solid var(--rule-strong); }
  .expertise-tag-item:nth-child(odd) { border-left: none; }
}
@media (max-width: 560px) {
  .expertise-tags-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ACTUALITÉS — état vide
   ============================================ */
.empty-state {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) var(--margin) clamp(80px, 10vw, 130px);
  text-align: left;
  border-top: 1px solid var(--rule-strong);
}
.empty-state p { color: var(--ink-soft); font-size: 15.5px; max-width: 520px; }

.footer-oa-badge {
  display: block;
  height: 34px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  object-fit: contain;
  margin-top: 2px;
}

.pd-text h3 {
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
}

/* ============================================
   LIGHTBOX (agrandissement des images galerie)
   ============================================ */
.pd-gallery img {
  cursor: zoom-in;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 13, 63, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay .lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--bg-paper);
  font-size: 40px;
  line-height: 1;
  font-family: var(--font-mono);
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { opacity: 0.7; }
body.lightbox-active { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 8px; right: 10px; font-size: 32px; }
}
