/* ============================================================
   CARGO — LINE GUILLOD
   Direction : Éditorial noir et blanc minimaliste
   ============================================================
   01. RESET DIVI
   02. VARIABLES
   03. BASE
   04. HEADER
   05. MENU OVERLAY
   06. WORKS + LIGHTBOX
   07. ABOUT
   08. PUBLICATIONS
   09. CONTACT
   10. FOOTER
   11. SINGLE OEUVRE
   12. RESPONSIVE
   ============================================================ */

/* ===== 01. RESET DIVI ===== */
.et_pb_section    { padding: 0 !important; background: transparent !important; }
.et_pb_row        { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.et_pb_column     { padding: 0 !important; }
#page-container   { padding-top: 0 !important; }
.et_pb_with_border .et_pb_column { border: none !important; }

#main-header, .et-l--header, header#main-header,
#main-footer, .et-l--footer, footer#main-footer { display: none !important; }

/* ===== 02. VARIABLES ===== */
:root {
  --bg:     #ffffff;
  --ink:    #000000;
  --muted:  #6f6f6f;
  --rule:   rgba(0,0,0,0.14);
  --serif:  'EB Garamond', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', 'SF Mono', monospace;
  --pad:    clamp(24px, 3.5vw, 64px);
  --gap:    clamp(20px, 2.5vw, 40px);
}

/* ===== 03. BASE ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
body:not(.home):not(.home-page) .site,
body:not(.home):not(.home-page) #page { min-height: auto; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== 04. HEADER ===== */
.cargo-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.4rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 500;
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.cargo-header .logo,
.cargo-header .header-right,
.cargo-header .menu-btn { pointer-events: auto; }
.cargo-header .logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.cargo-header .header-right { display: flex; align-items: center; gap: 2rem; }
.cargo-header .header-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.menu-btn {
  background: none; border: none; color: inherit; font: inherit;
  cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 0;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 3px; }
.menu-btn .bars span {
  display: block; width: 22px; height: 1px;
  background: currentColor;
  transition: transform .35s ease, opacity .25s;
}
body.menu-open .menu-btn .bars span:first-child { transform: translateY(2px)  rotate(45deg); }
body.menu-open .menu-btn .bars span:last-child  { transform: translateY(-2px) rotate(-45deg); }

/* ===== 05. MENU OVERLAY ===== */
.menu-overlay {
  position: fixed; inset: 0;
  background: #000; color: #fff;
  z-index: 400;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
}
body.menu-open .menu-overlay {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.menu-overlay nav { display: flex; flex-direction: column; gap: 0.2rem; }
.menu-overlay a {
  color: inherit; text-decoration: none;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 9vw, 8rem);
  line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease, color .3s;
}
.menu-overlay a:hover { color: #fff; opacity: .7; }
.menu-overlay a .num {
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 400;
  opacity: 0.5; letter-spacing: 0;
}
body.menu-open .menu-overlay a { opacity: 1; transform: translateY(0); }
body.menu-open .menu-overlay a:nth-child(1) { transition-delay: .15s; }
body.menu-open .menu-overlay a:nth-child(2) { transition-delay: .22s; }
body.menu-open .menu-overlay a:nth-child(3) { transition-delay: .29s; }
body.menu-open .menu-overlay a:nth-child(4) { transition-delay: .36s; }
body.menu-open .menu-overlay a:nth-child(5) { transition-delay: .43s; }
.menu-footer {
  margin-top: 3rem; display: flex; gap: 3rem;
  font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; opacity: 0;
  transition: opacity .5s .5s;
}
body.menu-open .menu-footer { opacity: 0.6; }
body.menu-open { overflow: hidden; }

/* ===== 06. WORKS + LIGHTBOX ===== */
.works-wrap { padding: 120px 0 0; }
.works-head {
  padding: 0 var(--pad) 48px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.works-head .label {
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}

.works-grid {
  background: #ffffff; /* Force le fond blanc derrière les images */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.work {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1/1; background: #eee;
  cursor: pointer; border: none; padding: 0; margin: 0;
  text-align: left; font: inherit; color: inherit;
}
.work-img { position: absolute; inset: 0; }
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .5s;
  filter: grayscale(100%);
}
.work:hover .work-img img { transform: scale(1.03); filter: grayscale(0%); }

.work-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,0) 75%);
  color: #fff; opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.work:hover .work-caption { opacity: 1; }
.work-caption h3 {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15; margin: 0 0 16px;
  letter-spacing: -.01em; color: #fff;
}
.work-caption .nb {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: 14px;
}
.work-caption dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 6px 16px; margin: 0;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase;
}
.work-caption dt { color: rgba(255,255,255,.55); }
.work-caption dd { margin: 0; color: #fff; }

.grid-empty {
  font-family: var(--mono);
  font-size: 12px; color: var(--muted);
  padding: 6rem 2rem; text-align: center;
}

/* ===== LIGHTBOX ===== */
body.lb-open { overflow: hidden; }

.lb {
  position: fixed; inset: 0; background: #0a0a0a;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.lb.open {
  opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}
.lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 90px; overflow: hidden;
}
.lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; opacity: 0;
  transition: opacity .25s ease;
  user-select: none; -webkit-user-drag: none;
}
.lb-img.ready { opacity: 1; }

.lb-btn {
  position: fixed; background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .25s, color .25s, border-color .25s;
  font-family: var(--mono);
  font-size: 14px; z-index: 1001;
}
.lb-btn:hover { background: #fff; color: #000; border-color: #fff; }
.lb-close { top: 20px; right: 20px; }
.lb-info-toggle { top: 20px; right: 74px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-info-toggle.active { background: #fff; color: #000; border-color: #fff; }

.lb-counter {
  position: fixed; bottom: 24px; right: 24px;
  color: rgba(255,255,255,.55);
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; z-index: 1001;
  pointer-events: none;
}
.lb-title-min {
  position: fixed; bottom: 24px; left: 24px;
  color: rgba(255,255,255,.55);
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; z-index: 1001;
  pointer-events: none; transition: opacity .3s;
}
.lb-title-min.hidden { opacity: 0; }

.lb-info {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,.08);
  color: #fff; padding: 80px 32px 32px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  z-index: 1000; overflow-y: auto;
}
.lb-info.open { transform: translateX(0); }
.lb-info .cat {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.lb-info h2 {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: 32px; line-height: 1.1;
  letter-spacing: -.015em; margin: 0;
}
.lb-info dl { display: flex; flex-direction: column; gap: 0; margin: 0; }
.lb-info dl > div {
  display: flex; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lb-info dt {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.lb-info dd { margin: 0; font-size: 14px; text-align: right; color: #fff; }
.lb-info .desc { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.82); margin: 0; }

/* ===== 07. ABOUT ===== */
.about {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
  margin-top: 90px;
}
.about .container,
.about-grid { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap) * 2); align-items: start;
}
.about .label {
  display: inline-block; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.about-title,
.about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1; letter-spacing: -.02em;
  margin: 20px 0 0;
}
.about-title em,
.about h2 em { font-style: italic; }
.about-right p,
.about .text p {
  font-size: 16px; line-height: 1.65;
  max-width: 52ch; margin: 0 0 18px;
}
.link-arrow,
.about .text a.about-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; margin-top: 8px;
  color: var(--ink);
}
.link-arrow span,
.about .text a.about-link span { transition: transform .3s; }
.link-arrow:hover span,
.about .text a.about-link:hover span { transform: translateX(4px); }

/* ===== 08. PUBLICATIONS ===== */
.publications {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}
.publications .container { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.publications .section-head,
.pub-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 48px;
}
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li {
  display: grid; grid-template-columns: 48px 90px 1fr 240px 40px;
  gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  transition: padding-left .3s;
}
.pub-list li:hover { padding-left: 12px; }
.pub-num, .pub-date {
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
}
.pub-title {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.2;
}
.pub-source { font-size: 13px; color: var(--muted); }
.pub-link {
  text-align: right; font-size: 14px; color: var(--muted);
  transition: color .3s;
}
.pub-list li:hover .pub-link { color: var(--ink); }

/* ===== 09. CONTACT ===== */
.contact {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}
.contact .container,
.contact-grid { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap) * 2); align-items: start;
}
.contact .label {
  display: inline-block; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.contact-title,
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 88px); line-height: 1.02;
  letter-spacing: -.025em; margin: 20px 0 0;
}
.contact-title em,
.contact h2 em { font-style: italic; }
.contact-info {
  display: flex; flex-direction: column; gap: 20px; padding-top: 12px;
}
.contact-email, .contact-phone {
  font-family: var(--serif); font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1; border-bottom: 1px solid var(--rule);
  padding-bottom: 16px; transition: border-color .3s;
}
.contact-email:hover, .contact-phone:hover { border-color: var(--ink); }

/* Formulaire contact (styles existants conservés) */
.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label {
  font-family: var(--mono);
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: transparent; border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0; outline: none;
  transition: border-color .3s; width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--ink); opacity: .5; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-submit {
  align-self: flex-start;
  background: var(--ink); color: #fff;
  border: none; padding: 0.9rem 1.8rem;
  font-family: var(--mono);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em; cursor: pointer;
  transition: background .3s, color .3s;
}
.contact-form .btn-submit:hover { background: var(--muted); color: #fff; }
.form-msg {
  font-family: var(--mono); font-size: 0.85rem;
  padding: 1rem 1.2rem; margin-bottom: 2rem;
  border-left: 3px solid var(--ink);
}
.form-msg--ok  { border-left-color: var(--ink); }
.form-msg--err { border-left-color: #c0392b; }
.form-msg a    { color: var(--ink); }
.hp-field {
  position: absolute !important; left: -9999px !important;
  opacity: 0; height: 0; overflow: hidden;
}

/* ===== 10. FOOTER ===== */
.cargo-footer {
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  background: var(--bg);
  color: var(--ink);
}
.cargo-footer h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0;
}
.cargo-footer h2 em { font-style: italic; }
.cargo-footer .col .label {
  font-family: var(--mono);
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted);
  display: block; margin-bottom: 1rem;
}
.cargo-footer .col p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.cargo-footer .col a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.cargo-footer .col a:hover { border-color: var(--ink); }
.cargo-footer .copyright {
  grid-column: 1 / -1;
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

/* ===== 11. SINGLE OEUVRE ===== */
.oeuvre-single {
  padding: 8rem 2rem 6rem;
  max-width: 1400px; margin: 0 auto;
}
.oeuvre-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted);
  text-decoration: none; margin-bottom: 3rem;
  transition: color .3s;
}
.oeuvre-back:hover { color: var(--ink); }
.oeuvre-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem; margin-bottom: 3rem;
}
.oeuvre-meta-top {
  display: flex; gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted);
  margin-bottom: 1.5rem;
}
.oeuvre-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.oeuvre-body {
  display: grid; grid-template-columns: 1.8fr 1fr;
  gap: 4rem; align-items: start;
}
.oeuvre-image img { width: 100%; height: auto; display: block; }
.oeuvre-infos { position: sticky; top: 6rem; }
.oeuvre-infos .info-line {
  border-bottom: 1px solid var(--rule); padding: 1rem 0;
}
.oeuvre-infos .info-line .label {
  font-family: var(--mono);
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted);
  display: block; margin-bottom: 0.4rem;
}
.oeuvre-infos .info-line p {
  font-family: var(--sans);
  font-size: 1rem; margin: 0; color: var(--ink);
}
.oeuvre-infos .oeuvre-desc {
  margin-top: 2rem; font-size: 1rem; line-height: 1.65;
}
.oeuvre-infos .oeuvre-desc p { margin-bottom: 1rem; }

/* ===== 12. RESPONSIVE ===== */
@media (max-width: 1000px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-caption { padding: 20px; }
  .work-caption h3 { font-size: 20px; margin-bottom: 12px; }
  .work-caption dl { font-size: 10px; gap: 4px 12px; }
  .lb-stage { padding: 60px 60px; }
  .pub-list li { grid-template-columns: 40px 80px 1fr 30px; gap: 16px; }
  .pub-source { display: none; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cargo-footer { grid-template-columns: 1fr; padding: 3rem 1rem 1rem; gap: 2rem; }
  .oeuvre-single { padding: 6rem 1rem 4rem; }
  .oeuvre-body { grid-template-columns: 1fr; gap: 2rem; }
  .oeuvre-infos { position: static; }
  .about, .contact, .publications { padding: 64px 0; }
}
@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-caption {
    opacity: 1;
    background: linear-gradient(to top,
      rgba(0,0,0,.85) 0%,
      rgba(0,0,0,.5) 40%,
      rgba(0,0,0,0) 70%);
  }
  .works-wrap { padding: 90px 0 0; }
  .works-head { padding: 0 20px 32px; }
  .pub-list li { grid-template-columns: 32px 1fr 30px; gap: 12px; }
  .pub-num { display: none; }
  .pub-title { font-size: 18px; }
  .lb-stage { padding: 70px 20px; }
  .lb-prev { left: 12px; width: 38px; height: 38px; }
  .lb-next { right: 12px; width: 38px; height: 38px; }
  .lb-close { top: 16px; right: 16px; width: 38px; height: 38px; }
  .lb-info-toggle { top: 16px; right: 62px; width: 38px; height: 38px; }
  .lb-counter { bottom: 20px; right: 20px; font-size: 10.5px; }
  .lb-title-min { bottom: 20px; left: 20px; font-size: 10.5px; max-width: 60%; }
  .lb-info { width: 100%; border-left: none; }
  .cargo-header { padding: 1rem 1.2rem; font-size: 0.65rem; }
  .cargo-header .header-right { gap: 1rem; }
  .cargo-header .header-meta { display: none; }
}
/* ===== FIX About + Contact — grille sur le conteneur direct ===== */

/* About : 2 colonnes */
.about {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 4rem !important;
  align-items: start;
}
.about > * { min-width: 0; }

/* Contact : 2 colonnes */
.contact {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 4rem !important;
  align-items: start;
}
.contact > * { min-width: 0; }

/* Formulaire : ne prend que sa colonne */
.contact .contact-form {
  max-width: 100% !important;
  width: 100% !important;
}

/* Mobile : repasse en 1 colonne */
@media (max-width: 900px) {
  .about,
  .contact {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}
/* ===== ALIGNEMENT GLOBAL — tout au même padding que le header ===== */

/* On harmonise le header sur --pad */
.cargo-header {
  padding: 1.4rem var(--pad) !important;
}

/* About : grid + padding horizontal identique au header */
.about {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 4rem !important;
  align-items: start;
  padding: 90px var(--pad) !important;
  max-width: 1440px;
  margin: 90px auto 0 !important;
}
.about > * { min-width: 0; }

/* Contact : pareil */
.contact {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 4rem !important;
  align-items: start;
  padding: 90px var(--pad) !important;
  max-width: 1440px;
  margin: 0 auto !important;
}
.contact > * { min-width: 0; }

/* Footer : aligne aussi */
.cargo-footer {
  padding: 5rem var(--pad) 2rem !important;
  max-width: 1440px;
  margin: 0 auto !important;
}

/* Titre contact moins écrasant */
.contact h2,
.contact .contact-title {
  font-size: clamp(36px, 4.5vw, 64px) !important;
  line-height: 1.05 !important;
}

/* Mobile */
@media (max-width: 900px) {
  .about, .contact {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 64px var(--pad) !important;
    margin-top: 64px !important;
  }
  .cargo-footer {
    padding: 3rem var(--pad) 1rem !important;
  }
}
.works-head { display: none !important; }
.works-wrap { padding-top: 100px !important; }
/* ===== FIX PUBLICATIONS ===== */

/* Wrapper principal — même padding que le reste */
.pub-list {
  padding: 120px var(--pad) 4rem !important;
  max-width: 1440px;
  margin: 0 auto !important;
}
.pub-list .pub-year {
  margin-bottom: 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.pub-list .pub-year:first-child { border-top: none; padding-top: 0; }

.pub-list .pub-year-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-weight: 400;
}

.pub-list .pub-items { list-style: none; padding: 0; margin: 0; }
.pub-list .pub-item  { margin: 0; }

/* LA ligne qui manquait : c'est le .pub-link (le <a>) qui est en grid */
.pub-list .pub-link {
  display: grid !important;
  grid-template-columns: 4rem 1fr auto !important;
  column-gap: 1.25rem;
  row-gap: .2rem;
  align-items: baseline;
  padding: .85rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .25s, border-color .25s, padding-left .25s;
}
.pub-list .pub-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  padding-left: .4rem;
}
.pub-list .pub-date {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--muted);
}
.pub-list .pub-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
}
.pub-list .pub-source {
  grid-column: 2;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
}
.pub-list .pub-arrow {
  font-size: .95rem;
  color: var(--muted);
  transition: transform .25s, color .25s;
}
.pub-list .pub-link:hover .pub-arrow {
  color: var(--ink);
  transform: translate(3px,-3px);
}

/* Mobile */
@media (max-width: 640px) {
  .pub-list { padding: 90px var(--pad) 3rem !important; }
  .pub-list .pub-link {
    grid-template-columns: 3.25rem 1fr !important;
    column-gap: .9rem;
  }
  .pub-list .pub-title { font-size: 1.02rem; }
  .pub-list .pub-arrow { display: none; }
}
/* ============================================================
   FIX FINAL — Publications + masquage works-head
   ============================================================ */

/* 1. Masquer la barre "Œuvres sélectionnées / X projets" */
.works-head { display: none !important; }
.works-wrap { padding-top: 100px !important; }

/* 2. Publications — reset complet puis reconstruction */

/* On annule TOUT ce qui peut exister sur .pub-list li */
.pub-list,
.pub-list *,
.pub-list li,
.pub-list .pub-item {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: auto !important;
  max-width: none !important;
}

/* Le wrapper global */
.pub-list {
  padding: 120px var(--pad) 4rem !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}

/* Année */
.pub-list .pub-year {
  margin-bottom: 3rem !important;
  border-top: 1px solid var(--rule) !important;
  padding-top: 1.25rem !important;
}
.pub-list .pub-year:first-child {
  border-top: none !important;
  padding-top: 0 !important;
}
.pub-list .pub-year-label {
  font-family: var(--mono) !important;
  font-size: .7rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin: 0 0 1.25rem 0 !important;
  font-weight: 400 !important;
  display: block !important;
}

/* Liste interne */
.pub-list .pub-items {
  padding: 0 !important;
  margin: 0 !important;
}

/* Chaque ligne = un lien en grid 3 colonnes */
.pub-list .pub-link {
  display: grid !important;
  grid-template-columns: 4rem 1fr auto !important;
  column-gap: 1.25rem !important;
  row-gap: .2rem !important;
  align-items: baseline !important;
  padding: .85rem 0 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--rule) !important;
  transition: border-color .25s, padding-left .25s !important;
  width: 100% !important;
}
.pub-list .pub-link:hover {
  border-bottom-color: var(--ink) !important;
  padding-left: .4rem !important;
}

.pub-list .pub-date {
  font-family: var(--mono) !important;
  font-size: .72rem !important;
  letter-spacing: .05em !important;
  color: var(--muted) !important;
  grid-column: 1 !important;
  display: inline !important;
}
.pub-list .pub-title {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  grid-column: 2 !important;
  display: inline !important;
}
.pub-list .pub-source {
  grid-column: 2 !important;
  font-family: var(--sans) !important;
  font-size: .82rem !important;
  color: var(--muted) !important;
  display: inline !important;
}
.pub-list .pub-arrow {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  font-size: .95rem !important;
  color: var(--muted) !important;
  transition: transform .25s, color .25s !important;
  display: inline !important;
}
.pub-list .pub-link:hover .pub-arrow {
  color: var(--ink) !important;
  transform: translate(3px,-3px) !important;
}

/* Titre de page "Publications" si visible */
.page .entry-header,
.page .entry-title {
  display: none !important;
}

/* Mobile */
@media (max-width: 640px) {
  .pub-list { padding: 90px var(--pad) 3rem !important; }
  .pub-list .pub-link {
    grid-template-columns: 3.25rem 1fr !important;
    column-gap: .9rem !important;
  }
  .pub-list .pub-title { font-size: 1.02rem !important; }
  .pub-list .pub-arrow { display: none !important; }
}
/* ===== MASQUER SIDEBAR WP DÉFAUT ===== */
#sidebar,
.widget-area,
.widget-area-sidebar,
#secondary,
.et_pb_widget_area,
aside.widget-area {
  display: none !important;
}
#main-content,
#left-area,
.content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
/* ===== FILTRES PORTFOLIO ===== */
.works-filters {
  padding: 0 var(--pad) 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .25s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); }
.filter-btn.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .works-filters {
    padding: 0 var(--pad) 24px;
    gap: 18px;
    justify-content: flex-start;
  }
}
/* ===== FIX ABOUT — grille cassée ===== */

.about {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(400px, 1.6fr) !important;
  gap: 4rem !important;
  align-items: start !important;
  padding: 90px var(--pad) !important;
  max-width: 1440px !important;
  margin: 90px auto 0 !important;
}

.about > * {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* Colonne gauche : titre */
.about-left,
.about > div:first-child {
  min-width: 280px !important;
}

/* Colonne droite : le texte */
.about-right,
.about > div:last-child {
  min-width: 400px !important;
  max-width: 100% !important;
}

/* Les paragraphes se répartissent sur toute la colonne */
.about-right p,
.about .text p,
.about > div:last-child p {
  max-width: none !important;
  width: 100% !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 0 1.2rem 0 !important;
}

.about-right p:last-of-type {
  margin-bottom: 2rem !important;
}

/* Titre */
.about h2,
.about .about-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  margin: 20px 0 0 0 !important;
}
.about h2 em,
.about .about-title em {
  font-style: italic !important;
}

/* Mobile */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 64px var(--pad) !important;
    margin-top: 64px !important;
  }
  .about-left,
  .about-right,
  .about > div:first-child,
  .about > div:last-child {
    min-width: 0 !important;
  }
}