/* Mrs. Max Velin — CSS principal (extrait de la maquette HTML validée) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --off-white: #F8F7F4;
  --ink: #1A1714;
  --ink-mid: #7A7570;
  --ink-faint: rgba(26,23,20,0.10);
  --sidebar-w: 210px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Tenor Sans', sans-serif;
}

html, body { height: 100%; background: var(--off-white); color: var(--ink); }
body { margin: 0; overflow-x: hidden; }

.layout { display: flex; min-height: 100vh; width: 100vw; }

/* SIDEBAR — fixe */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; height: 100vh; background: var(--off-white); border-right: 1px solid var(--ink-faint); display: flex; flex-direction: column; padding: 32px 26px 30px 22px; position: fixed; top: 0; left: 0; z-index: 10; }
.sb-name { flex-shrink: 0; margin-left: -3px; }
.sb-mrs { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; letter-spacing: 0.05em; color: rgba(26,23,20,0.55); display: block; margin-bottom: 1px; line-height: 1; }
.sb-maxvelin { display: flex; align-items: baseline; gap: 0.10em; }
.sb-max, .sb-velin { font-family: var(--sans); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); line-height: 1.0; }
.sb-spacer { flex: 1; }
.sb-nav { display: flex; flex-direction: column; }
.sb-nav-section-label { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-mid); margin-bottom: 10px; opacity: 0.7; }
.sb-nav-link { font-family: var(--sans); font-size: 9px; font-weight: 400; letter-spacing: 0.20em; text-transform: uppercase; color: var(--ink-mid); text-decoration: none; padding: 5px 0; display: block; transition: color 0.2s; position: relative; }
.sb-nav-link::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity 0.2s; }
.sb-nav-link:hover { color: var(--ink); }
.sb-nav-link:hover::before { opacity: 0.4; }
.sb-nav-link.active { color: var(--ink); }
.sb-nav-link.active::before { opacity: 1; }
.sb-footer { margin-top: 22px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 9px; letter-spacing: 0.08em; color: var(--ink-mid); opacity: 0.45; }

/* MAIN — défilement libre, sidebar fixe à côté */
.main { flex: 1; min-height: 100vh; margin-left: var(--sidebar-w); display: flex; flex-direction: column; position: relative; padding-top: 32px; }
.mv-wrap { position: fixed; top: 0; left: var(--sidebar-w); right: 0; text-align: center; z-index: 20; padding: 8px 0; pointer-events: none; background: var(--off-white); border-bottom: 1px solid var(--ink-faint); }
.mv-initials { font-family: var(--sans); font-weight: 400; font-size: 16px; letter-spacing: -0.06em; text-transform: uppercase; color: var(--ink); }

.section { display: flex; flex-direction: column; min-height: calc(100vh - 32px); }

/* HERO */
.hero { flex: 1; min-height: 60vh; position: relative; overflow: hidden; margin-top: 0; }
.hero-placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #EAE6E0 0px, #EAE6E0 1px, #E4E0DA 1px, #E4E0DA 20px); }
.hero-placeholder-lbl { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--sans); font-size: 8px; font-weight: 400; letter-spacing: 0.30em; text-transform: uppercase; color: rgba(26,23,20,0.20); text-align: center; line-height: 2.4; }

/* GRID HOME */
.grid-wrap { flex-shrink: 0; border-top: 1px solid var(--ink-faint); }
.grid-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 32px; border-bottom: 1px solid var(--ink-faint); }
.grid-header-label { font-family: var(--sans); font-size: 7px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-mid); opacity: 0.6; }
.grid-header-count { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-mid); opacity: 0.45; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.grid-cell { aspect-ratio: 3/4; position: relative; overflow: hidden; border-right: 1px solid var(--ink-faint); transition: opacity 0.3s; }
.grid-cell:last-child { border-right: none; }
.grid-cell:hover { opacity: 0.82; }
.gc-bg { position: absolute; inset: 0; transition: transform 0.55s ease; background-size: cover; background-position: center; }
.grid-cell:hover .gc-bg { transform: scale(1.05); }
.gc-1 .gc-bg:not([style]) { background: repeating-linear-gradient(0deg, #D8D4CC 0, #D8D4CC 1px, #D0CCC4 1px, #D0CCC4 13px); }
.gc-2 .gc-bg:not([style]) { background: repeating-linear-gradient(90deg, #252118 0, #252118 2px, #1A1714 2px, #1A1714 18px); }
.gc-3 .gc-bg:not([style]) { background: repeating-linear-gradient(-45deg, #D6D2CA 0, #D6D2CA 1px, #CECAC2 1px, #CECAC2 15px); }
.gc-4 .gc-bg:not([style]) { background: repeating-linear-gradient(60deg, #E2DED6 0, #E2DED6 1px, #D8D4CC 1px, #D8D4CC 16px); }
.gc-5 .gc-bg:not([style]) { background: repeating-linear-gradient(30deg, #1E1C18 0, #1E1C18 2px, #161410 2px, #161410 20px); }
.gc-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px 9px; background: linear-gradient(transparent, rgba(248,247,244,0.93)); }
.gc-2 .gc-meta, .gc-5 .gc-meta { background: linear-gradient(transparent, rgba(18,16,14,0.88)); }
.gc-cat { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 7.5px; letter-spacing: 0.08em; color: rgba(26,23,20,0.45); display: block; }
.gc-2 .gc-cat, .gc-5 .gc-cat { color: rgba(248,247,244,0.5); }
.gc-title { font-family: var(--sans); font-size: 8px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); display: block; margin-top: 2px; }
.gc-2 .gc-title, .gc-5 .gc-title { color: rgba(248,247,244,0.88); }

/* PROJECTS PAGE */
.projects-page { padding-top: 32px; flex: 1; display: flex; flex-direction: column; }
.page-header { padding: 0 36px 20px 36px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: baseline; }
.page-title { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); }
.page-count { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 10px; color: var(--ink-mid); opacity: 0.5; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-faint); margin: 0 36px 36px 36px; border: 1px solid var(--ink-faint); }
.proj-card { background: var(--off-white); position: relative; overflow: hidden; transition: opacity 0.3s; }
.proj-card:hover { opacity: 0.85; }
.proj-card-bg { position: absolute; inset: 0; transition: transform 0.55s ease; background-size: cover; background-position: center; }
.proj-card:hover .proj-card-bg { transform: scale(1.04); }
.p1 .proj-card-bg:not([style]) { background: repeating-linear-gradient(-45deg, #E0DCD4 0, #E0DCD4 1px, #D8D4CC 1px, #D8D4CC 18px); }
.p2 .proj-card-bg:not([style]) { background: repeating-linear-gradient(90deg, #242018 0, #242018 2px, #1A1714 2px, #1A1714 16px); }
.p3 .proj-card-bg:not([style]) { background: repeating-linear-gradient(0deg, #D0CCC4 0, #D0CCC4 1px, #C8C4BC 1px, #C8C4BC 14px); }
.p4 .proj-card-bg:not([style]) { background: repeating-linear-gradient(45deg, #DEDAD2 0, #DEDAD2 1px, #D6D2CA 1px, #D6D2CA 20px); }
.p5 .proj-card-bg:not([style]) { background: repeating-linear-gradient(30deg, #201E1A 0, #201E1A 2px, #181614 2px, #181614 18px); }
.p6 .proj-card-bg:not([style]) { background: repeating-linear-gradient(-30deg, #E4E0D8 0, #E4E0D8 1px, #DCD8D0 1px, #DCD8D0 15px); }
.proj-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.25)); }
.proj-cat { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 9px; letter-spacing: 0.08em; display: block; opacity: 0.85; }
.proj-name { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-top: 4px; }
.proj-year { font-family: var(--sans); font-size: 8px; letter-spacing: 0.14em; display: block; margin-top: 4px; }

/* SERVICES */
.services-page { padding-top: 32px; flex: 1; display: flex; flex-direction: column; }
.services-body { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 36px 36px 36px; }
.service-item { padding: 16px 28px 16px 0; border-right: 1px solid var(--ink-faint); display: flex; flex-direction: column; }
.service-item:last-child { border-right: none; }
.service-item:not(:first-child) { padding-left: 28px; padding-right: 0; }
.service-item:nth-child(2) { padding-right: 28px; }
.svc-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 10px; color: var(--ink-mid); opacity: 0.35; margin-bottom: 16px; }
.svc-name { font-family: var(--sans); font-size: 18px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.svc-desc { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mid); line-height: 1.9; flex: 1; }
.svc-link { margin-top: 20px; font-family: var(--sans); font-size: 7.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mid); opacity: 0; transition: opacity 0.25s; display: flex; align-items: center; gap: 8px; }
.svc-link::after { content: '→'; font-size: 11px; }
.service-item:hover .svc-link { opacity: 0.7; }

/* Mobile responsive */
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidebar { position: relative; width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--ink-faint); padding: 20px; }
  .sb-spacer { display: none; }
  .sb-nav { flex-direction: row; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
  .sb-nav-section-label { display: none; }
  .sb-footer { display: none; }
  .main { margin-left: 0; }
  .mv-wrap { position: absolute; left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .services-body { grid-template-columns: 1fr; }
  .service-item, .service-item:not(:first-child), .service-item:nth-child(2) { padding: 20px 0; border-right: none; border-bottom: 1px solid var(--ink-faint); }
}

/* PAGE PAR DÉFAUT — pour toute page sans modèle spécifique */
.page-default { padding: 80px 60px 60px; min-height: calc(100vh - 32px); }
.pd-inner { max-width: 920px; margin: 0 auto; }
.pd-title { font-family: var(--sans); font-weight: 400; font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 40px; line-height: 1.15; }
.pd-content { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--ink); }
.pd-content > * { margin-bottom: 1.4em; }
.pd-content > *:last-child { margin-bottom: 0; }
.pd-content h1, .pd-content h2, .pd-content h3, .pd-content h4 { font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-top: 2em; margin-bottom: 0.7em; line-height: 1.25; }
.pd-content h2 { font-size: 18px; }
.pd-content h3 { font-size: 14px; }
.pd-content p { font-family: var(--serif); font-style: italic; font-weight: 300; }
.pd-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pd-content img { max-width: 100%; height: auto; }
.pd-content ul, .pd-content ol { padding-left: 1.5em; }
.pd-content blockquote { border-left: 2px solid var(--ink-faint); padding-left: 20px; font-style: italic; color: var(--ink-mid); }

/* SINGLE PROJET — sidebar masquée, juste le bandeau initiales */
body.single-projet .sidebar { display: none; }
body.single-projet .main { margin-left: 0; padding-top: 0; }
body.single-projet .mv-wrap { left: 0; padding: 14px 0; border-bottom: 1px solid var(--ink-faint); background: var(--off-white); z-index: 100; }
body.single-projet .mv-initials { font-size: 18px; }

/* Page projet — contenu */
.single-project-content { padding-top: 60px; }
.spc-hero { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.spc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 60px; border-top: 1px solid var(--ink-faint); }
.spc-info--notop { border-top: none; padding-top: 60px; }
.spc-cat { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 12px; color: var(--ink-mid); margin-bottom: 10px; letter-spacing: 0.06em; }
.spc-title { font-family: var(--sans); font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); font-weight: 400; margin-bottom: 18px; line-height: 1.15; }
.spc-year { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 14px; color: var(--ink-mid); }
.spc-desc { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 14px; line-height: 1.85; color: var(--ink-mid); }
.spc-back { padding: 0 60px 60px; }
.spc-back a { font-family: var(--sans); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mid); text-decoration: none; }
.spc-back a:hover { color: var(--ink); }

/* Zone de contenu libre (Gutenberg) — élégante, dans la veine du site */
.spc-free { padding: 0 60px 60px; max-width: 920px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 15px; line-height: 1.85; color: var(--ink); }
.spc-free > * { margin-bottom: 1.4em; }
.spc-free > *:last-child { margin-bottom: 0; }
.spc-free h1, .spc-free h2, .spc-free h3, .spc-free h4 { font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-top: 2.2em; margin-bottom: 0.8em; line-height: 1.25; }
.spc-free h1 { font-size: 22px; }
.spc-free h2 { font-size: 18px; }
.spc-free h3 { font-size: 14px; letter-spacing: 0.14em; }
.spc-free h4 { font-size: 11px; letter-spacing: 0.22em; }
.spc-free p { margin-bottom: 1.2em; }
.spc-free img, .spc-free .wp-block-image img { max-width: 100%; height: auto; display: block; margin: 1.6em auto; }
.spc-free figure { margin: 2em 0; }
.spc-free figcaption { font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mid); text-align: center; margin-top: 10px; }
.spc-free .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 2em 0; }
.spc-free .wp-block-gallery figure { margin: 0; }
.spc-free blockquote { border-left: 2px solid var(--ink); padding-left: 24px; margin: 2em 0; font-size: 18px; color: var(--ink); }
.spc-free a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.spc-free hr { border: none; border-top: 1px solid var(--ink-faint); margin: 3em 0; }
@media (max-width: 720px) {
  .spc-info { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .spc-back { padding: 0 24px 40px; }
}
