/* Couleurs principales : modifier ces variables pour changer l'ambiance. */
:root {
  --paper: #fafbf9;
  --ink: #242625;
  --muted: #626760;
  --line: #d9dfd6;
  --blue: #235dc6;
  --pink: #b43459;
  --green: #28704d;
  --yellow: #826109;
  --width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #f7e78d; color: var(--ink); }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.16; overflow-wrap: anywhere; }
h2 { font-size: 34px; font-weight: 650; }
h3 { font-size: 29px; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font: 600 11px/1.6 "Courier New", monospace; text-transform: uppercase; margin-bottom: 17px; }
.handwritten { font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 19px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; padding: 15px; background: white; }
.header { width: min(1320px, calc(100% - 64px)); margin: auto; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 650; }
.monogram { font-size: 29px; font-family: Georgia, serif; font-style: italic; color: var(--blue); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; font-size: 13px; }
nav a { padding-block: 12px; text-decoration: none; }
nav a:hover { color: var(--blue); text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 9px 14px; border-radius: 4px; }
.intro { padding-block: 66px 46px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); }
h1 { font-size: 18px; font-weight: 550; }
h1 > span { display: block; font-size: 64px; font-weight: 600; margin-top: 12px; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; text-decoration: underline; text-decoration-color: #edb8c7; text-decoration-thickness: 4px; text-underline-offset: 9px; }
.intro-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 26px; }
.intro-bottom > p { max-width: 590px; color: var(--muted); font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 14px 22px; background: var(--ink); color: white; text-decoration: none; border: 1px solid var(--ink); border-radius: 4px; font-size: 14px; font-weight: 600; }
.button:hover { background: var(--blue); border-color: var(--blue); }
.intro-note { margin-top: 30px; color: var(--green); }
.projects-section { padding-block: 52px 32px; border-block: 1px solid var(--line); background-color: #f2f5f0; background-image: linear-gradient(#e3e9df 1px, transparent 1px), linear-gradient(90deg, #e3e9df 1px, transparent 1px); background-size: 28px 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.section-heading > p { max-width: 310px; color: var(--muted); font-size: 14px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { background: var(--paper); border: 1px solid #b5beb1; border-radius: 4px; min-height: 44px; padding: 8px 16px; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.filters button:hover { border-color: var(--blue); }
.filters button span { margin-left: 10px; font: 11px "Courier New", monospace; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; align-items: start; }
.project { min-width: 0; background: white; border: 1px solid #c7cfc1; border-radius: 6px; box-shadow: 0 3px 0 #dce2d7; position: relative; }
.project::before { content: ""; position: absolute; width: 76px; height: 20px; background: var(--tape); top: -10px; left: calc(50% - 38px); transform: rotate(-4deg); z-index: 1; opacity: .85; }
.blue { --accent: var(--blue); --wash: #ecf2fc; --tape: #a9c7f8; }
.pink { --accent: var(--pink); --wash: #fbeef2; --tape: #efadc1; }
.green { --accent: var(--green); --wash: #eaf3e9; --tape: #9fccb0; }
.yellow { --accent: var(--yellow); --wash: #fbf7df; --tape: #eed76b; }
.project-visual { padding: 24px 24px 18px; background: var(--wash); border-radius: 5px 5px 0 0; border-bottom: 1px solid var(--line); }
.project-index { font: 11px/1.5 "Courier New", monospace; text-transform: uppercase; }
.asset { width: 100%; aspect-ratio: 1.75; position: relative; margin-block: 8px; }
.asset img { width: 100%; height: 100%; object-fit: contain; }
.image-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 9px; }
.image-fallback strong { color: var(--accent); font: italic 600 44px/1.2 Georgia, serif; max-width: 100%; overflow-wrap: anywhere; }
.image-fallback span { font-size: 13px; }
.image-fallback small { font: 10px/1.5 "Courier New", monospace; color: var(--muted); text-transform: uppercase; }
.visual-caption { display: block; text-align: center; font-size: 15px; color: var(--accent); }
.project-content { padding: 26px; }
.project-type { font: 10px/1.5 "Courier New", monospace; color: var(--muted); text-transform: uppercase; margin-bottom: 9px; }
.project-content > p:not(.project-type) { color: var(--muted); font-size: 15px; margin-top: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 22px 0; }
.tags li { font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; }
details { border-top: 1px solid var(--line); }
summary { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 12px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 23px; font-weight: 400; transition: transform .15s; }
details[open] summary > span { transform: rotate(45deg); }
.project-details { padding-top: 12px; }
.project-details h4 { margin: 18px 0 8px; font-size: 14px; }
.project-details p { font-size: 14px; color: var(--muted); }
.project-details .next-step { margin-top: 20px; padding-left: 13px; border-left: 3px solid var(--accent); }
.next-step strong { display: block; color: var(--accent); margin-bottom: 3px; }
.board-note { text-align: center; margin-top: 35px; color: var(--muted); }
.method { padding-block: 76px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 44px 0 0; list-style: none; gap: 27px; }
.steps li { border-top: 2px solid var(--line); padding-top: 18px; }
.step-number { font: 13px "Courier New", monospace; color: var(--blue); }
.steps h3 { font-size: 21px; margin-block: 18px 12px; }
.steps p { font-size: 14px; color: var(--muted); }
.about { background: #eaf0fc; border-block: 1px solid #cbd7ef; padding-block: 64px; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-layout > div > p:not(.eyebrow) + p { margin-top: 18px; }
.about-layout > div:nth-child(2) { font-size: 15px; }
.signature { font-size: 27px; color: var(--blue); }
.contact { padding-block: 65px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact h2 { margin-bottom: 16px; }
.contact p:not(.eyebrow) { color: var(--muted); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 28px; font-size: 11px; color: var(--muted); }
@media (max-width: 850px) {
  h1 > span { font-size: 54px; }
  h2 { font-size: 28px; }
  .header { flex-wrap: wrap; gap: 0 18px; padding-block: 17px; min-height: 78px; }
  nav { gap: 17px; }
  .brand > span:last-child { font-size: 12px; }
  .intro-bottom { align-items: start; }
  .intro-bottom > p { max-width: 420px; }
  .button { flex-shrink: 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; max-width: 540px; }
  .asset { aspect-ratio: 1.25; }
  .image-fallback strong { font-size: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { gap: 30px; }
}
@media (max-width: 600px) {
  .wrap, .header { width: calc(100% - 36px); }
  .menu-toggle:not([hidden]) { display: block; }
  nav { width: 100%; flex-wrap: wrap; padding-top: 14px; }
  .js nav:not(.is-open) { display: none; }
  nav a { min-height: 44px; }
  .intro { padding-block: 38px 34px; }
  h1 { font-size: 16px; }
  h1 > span { font-size: 40px; }
  h2 { font-size: 27px; }
  .intro-bottom { display: block; }
  .intro-bottom > p { font-size: 16px; }
  .intro-bottom .button { margin-top: 23px; }
  .intro-note { font-size: 16px; }
  .projects-section { padding-top: 35px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .asset { aspect-ratio: 1.5; }
  .project-content { padding: 23px; }
  .project-visual { padding-inline: 18px; }
  .visual-caption { font-size: 13px; }
  .board-note { font-size: 16px; }
  .method { padding-block: 48px; }
  .steps { gap: 25px 18px; }
  .steps h3 { font-size: 18px; }
  .about { padding-block: 42px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .contact { flex-direction: column; align-items: start; padding-block: 44px; }
  .footer { align-items: start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: white; color: black; }
  .header nav, .menu-toggle, .filters, .button, .skip-link, .footer a { display: none !important; }
  .wrap, .header { width: 100%; }
  .intro { padding-block: 25px; }
  h1 > span { font-size: 38px; }
  .projects-section { background: white; }
  .project-grid { display: block; }
  .project { margin-block: 24px; break-inside: avoid; box-shadow: none; }
  .project[hidden] { display: block !important; }
  .asset { height: 160px; aspect-ratio: auto; }
  .method, .about { padding-block: 30px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Cartes sobres et cliquables */
.projects-section {
  background: #f4f4f3;
}

.project-grid {
  gap: 26px;
}

.project {
  background: white;
  border: 1px solid #b9bcb7;
  border-radius: 0;
  box-shadow: none;
}

.project::before {
  display: none;
}

.project-visual {
  padding: 20px;
  background: white;
  border-radius: 0;
}

.project-index,
.visual-caption {
  display: none;
}

.asset {
  aspect-ratio: 1.6;
  margin: 0;
}

.image-fallback strong {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-style: normal;
}

.tags li {
  border-radius: 0;
}

/* Le clic sur la carte ouvre les détails */
.project summary::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* Une fois ouverte, son contenu reste accessible */
.project details[open] summary::after {
  display: none;
}

.project:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@media (hover: hover) {
  .project:hover {
    border-color: var(--ink);
    box-shadow: 0 4px 16px #24262512;
  }
}

@media print {
  .project summary::after {
    display: none;
  }
}
.project-visual {
  padding: 0;
}

.asset {
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
}

.asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project {
  cursor: pointer;
}

.project .project-details {
  cursor: auto;
}

/* Remplace le précédent système de clic */
.project summary::after,
.project details[open] summary::after {
  display: none;
}

@media print {
  .asset {
    height: 160px;
    aspect-ratio: auto;
  }
}
