/* Shared project cards: the landing page and /realisations/ use the same markup. */
.breadcrumbs{display:block;font-size:14px;line-height:1.7;color:var(--muted)}
.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;list-style:none;padding:0;margin:0}
.breadcrumbs li{display:flex;align-items:center;gap:12px;min-width:0}
.breadcrumbs li+li::before{content:'/';color:#a79db7}
.breadcrumbs a,.breadcrumbs [aria-current]{display:inline-flex;align-items:center;min-height:44px}
.breadcrumbs a:hover{color:var(--purple);text-decoration:underline;text-underline-offset:4px}
.breadcrumbs a:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.projects-section {
  padding-block: 96px 100px;
}

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px 86px;
  margin-bottom: 42px;
}

.projects-heading h2 {
  max-width: 690px;
  font-size: clamp(46px, 4.7vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.projects-heading-copy p,
.projects-heading > div:first-child > p {
  max-width: 370px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.projects-heading > div:first-child > p {
  max-width: 620px;
  margin-top: 20px;
}

.projects-heading-copy .text-link,
.projects-heading > .text-link {
  margin-top: 16px;
  font-size: 14px;
  min-height: 44px;
  gap: 20px;
}

.projects-heading > .text-link {
  justify-self: end;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.projects-grid.projects-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.projects-grid-three .project-card-link{display:flex;flex-direction:column;height:100%}
.projects-grid-three .project-visual{flex-shrink:0}
.projects-grid-three .project-info{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.projects-grid-three .project-info>p{flex:1}

.project-card {
  min-width: 0;
}

.project-card-link{display:block;color:inherit;border-radius:14px}
.project-card-link:focus-visible{outline:3px solid var(--purple);outline-offset:8px}
.project-card-link:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.project-card-cta{display:inline-flex;align-items:center;gap:12px;min-height:44px;margin-top:12px;font-size:14px;font-weight:600;color:var(--purple)}
.project-card-cta>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.project-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #ded7cd;
  border-radius: 10px;
  isolation: isolate;
}

.project-visual-peach {
  background: #f0e1d5;
  color: #716050;
  border-color: #dfd0c2;
}

.project-visual-lilac {
  background: #e6e1f1;
  color: #625775;
  border-color: #d6cde5;
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
}

.project-visual::before,
.project-visual::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  border-color: currentColor;
  border-style: solid;
  opacity: .45;
}

.project-visual::before {
  top: 24px;
  left: 24px;
  border-width: 1px 0 0 1px;
}

.project-visual::after {
  right: 24px;
  bottom: 24px;
  border-width: 0 1px 1px 0;
}

.project-placeholder svg,
.project-visual > svg {
  display: block;
  width: 48px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.project-placeholder > span,
.project-visual > span {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.project-visual > span {
  padding-inline: 24px;
}

.project-visual > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Les visuels fournis incluent leur fond : conserver l’image entière. */
.project-visual.project-visual-image{display:block;aspect-ratio:4/3;background:transparent;border:0}
.project-visual-image::before,.project-visual-image::after{display:none}
.project-visual.project-visual-image>img{position:static;width:100%;height:auto;object-fit:contain}
.project-info>h3:first-child{margin-top:0}

.project-info {
  padding: 23px 1px 0;
}

.project-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #eeece5;
  border: 1px solid #dedbd0;
  border-radius: 4px;
  color: #66655c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.project-info h3 {
  font-family: Instrument, Georgia, serif;
  font-size: clamp(30px, 3vw, 39px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
  margin-top: 15px;
}

.project-info p {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Page-only layout leaves the existing landing typography untouched. */
.portfolio-page {
  font-size: 16px;
}

.portfolio-page .brand-parent,
.portfolio-page nav,
.portfolio-page .header-contact,
.portfolio-page .footer-inner > span,
.portfolio-page .footer-inner > a:last-child {
  font-size: 14px;
}

.portfolio-page nav {
  gap: 22px;
}

.portfolio-page .footer-inner > span {
  max-width: 215px;
}

.portfolio-main {
  padding-bottom: 88px;
}

.portfolio-intro {
  padding-block: 66px 48px;
}

.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.portfolio-back:hover {
  color: var(--coral);
}

.portfolio-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-intro h1 {
  max-width: 900px;
  margin-top: 26px;
  font-size: clamp(60px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
}

.portfolio-intro > p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.portfolio-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-top: 1px solid var(--line);
  margin-top: 66px;
  padding-top: 34px;
}

.portfolio-contact p {
  font-family: Instrument, Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
}

.portfolio-contact .button {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 14px;
  min-height: 56px;
}

@media (max-width: 1100px) {
  .projects-heading { gap: 35px 55px; }
  .projects-grid { gap: 27px; }
  .portfolio-page .brand-parent { display: none; }
  .portfolio-page .footer-inner > p { display: none; }
}

@media (max-width: 820px) {
  .projects-grid.projects-grid-three{grid-template-columns:1fr;gap:38px}
  .projects-section { padding-block: 70px 74px; }
  .projects-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 30px; }
  .projects-heading h2 { font-size: 49px; }
  .projects-grid { gap: 23px; }
  .project-placeholder { gap: 12px; }
  .project-placeholder svg,.project-visual > svg { width: 39px; height: 35px; }
  .project-visual::before { top: 18px; left: 18px; }
  .project-visual::after { right: 18px; bottom: 18px; }
  .project-info { padding-top: 20px; }
  .portfolio-page nav { display: none; }
  .portfolio-page .header-contact { margin-left: auto; }
  .portfolio-contact { gap: 25px; }
  .portfolio-contact p { font-size: 32px; }
  .portfolio-contact .button { font-size: 14px; gap: 15px; }
}

@media (max-width: 600px) {
  .projects-section { padding-block: 53px 58px; }
  .projects-heading { display: block; margin-bottom: 30px; }
  .projects-heading h2 { font-size: 46px; }
  .projects-heading-copy { margin-top: 21px; }
  .projects-heading-copy p { max-width: none; }
  .projects-heading-copy .text-link { margin-top: 12px; }
  .projects-heading > .text-link { margin-top: 16px; }
  .projects-grid { grid-template-columns: 1fr; gap: 38px; }
  .project-visual { border-radius: 8px; }
  .project-info h3 { font-size: 34px; }
  .project-info p { margin-top: 11px; }
  .portfolio-main { padding-bottom: 56px; }
  .portfolio-intro { padding-block: 37px 35px; }
  .portfolio-intro h1 { font-size: clamp(51px, 12.5vw, 70px); margin-top: 21px; }
  .portfolio-intro > p { font-size: 16px; margin-top: 21px; }
  .portfolio-contact { flex-direction: column; align-items: flex-start; margin-top: 45px; padding-top: 29px; gap: 25px; }
  .portfolio-contact p { font-size: 34px; }
  .portfolio-page .footer-inner { gap: 20px; }
  .portfolio-page .footer-inner > span { max-width: none; }
  .portfolio-page .footer-inner > a:last-child { margin: 0; }
  .portfolio-page .footer-inner > a:last-child .button-icon { margin-left: 4px; }
}

@media (max-width: 360px) {
  .portfolio-page .header-contact { padding-inline: 10px; gap: 12px; }
  .portfolio-page .header-inner { gap: 10px; }
  .portfolio-page .brand > span { font-size: 26px; }
  .portfolio-page .brand-mark { width: 24px; }
  .portfolio-page .footer-inner > a:last-child { flex-basis: 100%; }
}
