/* Composition de lecture initiale, avec fiches développées. */
.projects-view main { min-height: 0; }
.project-screen__content { width: min(100% - 4rem, 70rem); margin-inline: auto; }
.projects-view .project-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 720;
  text-wrap: balance;
}
.projects-view .project-lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: #53657d;
  font-size: 1.075rem;
  line-height: 1.65;
}
.projects-view .project-back {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin-bottom: 1.5rem;
  color: #53657d;
  font-size: .875rem;
  font-weight: 550;
  text-decoration: none;
}
.project-back:hover { color: var(--accent-strong); }
.project-screen--detail { padding-top: 1.5rem; padding-bottom: 2.6rem; }
.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: 1.6rem 5rem;
  align-items: start;
}
.project-heading { grid-column: 1; }
.project-category {
  margin: 0 0 .75rem;
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .025em;
}
.project-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(255 255 255 / .65);
}
.project-price { margin: 0 0 1rem; font-size: 1rem; font-weight: 650; }
.theme--apple-mix.projects-view .project-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-height: 3rem;
  padding: .75rem .8rem;
  white-space: normal;
  font-size: .9rem;
  line-height: 1.35;
  letter-spacing: 0;
  background: #1459c7;
  color: #fff;
  box-shadow: none;
  transition: background-color 150ms ease, transform 100ms ease;
}
.theme--apple-mix.projects-view .project-cta:hover { background: #104dab; }
.theme--apple-mix.projects-view .project-cta:active { transform: scale(.98); }
.project-action-note { margin: .9rem 0 0; color: #607086; font-size: .8rem; line-height: 1.55; }
.project-essentials { grid-column: 1; }
.projects-view .project-essentials h2,
.projects-view .project-other h2 {
  margin: 0 0 .65rem;
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 0;
}
.project-points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.project-points li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  border-bottom: 1px solid var(--line);
  padding: .8rem 0;
  color: #263348;
  font-size: 1rem;
  line-height: 1.5;
}
.project-points li::before { content: ''; flex: 0 0 .3rem; height: .3rem; border-radius: 100%; background: var(--accent); transform: translateY(-.18rem); }
.project-note { margin: 1rem 0 0; color: #607086; font-size: .9rem; line-height: 1.65; }
.project-other { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.project-other ul { display: flex; flex-wrap: wrap; column-gap: 1.6rem; row-gap: 0; list-style: none; padding: 0; margin: 0; }
.project-other a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #53657d; font-size: .85rem; text-decoration: none; }
.project-other a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: .2em; }
.project-screen--index { padding-block: 1.75rem 2.5rem; }
.project-screen--index .project-heading { margin-bottom: 2rem; }
.project-screen--index .project-heading .project-lead { max-width: 65ch; }
.project-directory { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.project-directory li { border-bottom: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 7.5rem; align-items: center; gap: 2rem; padding: 1.4rem .75rem; text-decoration: none; border-radius: .5rem; transition: background-color 130ms ease; }
.project-row:hover { background: rgb(255 255 255 / .8); }
.project-row:active { background: #e9f1ff; }
.projects-view .project-row h2 { margin: 0; font-size: 1.1rem; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
.project-row p { margin: 0; color: #53657d; font-size: .95rem; line-height: 1.65; }
.project-row__action { justify-self: end; display: inline-flex; gap: .65rem; align-items: center; color: var(--accent-strong); white-space: nowrap; font-size: .85rem; font-weight: 600; }
.project-index-contact { margin: 1.25rem 0 0; font-size: .9rem; color: #607086; }
.project-index-contact a { color: var(--accent-strong); font-weight: 600; text-underline-offset: .2em; }
@media (max-width: 60rem) {
  .project-detail-layout { column-gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 16rem; }
  .project-row { grid-template-columns: 10.5rem minmax(0, 1fr) 6.5rem; gap: 1.2rem; }
}
@media (max-width: 47.99rem) {
  .project-screen__content { width: calc(100% - 2.5rem); }
  .project-screen--detail { padding-top: .65rem; padding-bottom: 1.5rem; }
  .projects-view .project-back { margin-bottom: 1rem; }
  .project-detail-layout { display: flex; flex-direction: column; gap: 1.5rem; }
  .project-heading, .project-action, .project-essentials { width: 100%; }
  .projects-view .project-title { font-size: clamp(2rem, 6.8vw, 2.5rem); line-height: 1.13; letter-spacing: -.045em; }
  .projects-view .project-lead { margin-top: .8rem; font-size: 1rem; line-height: 1.6; }
  .project-category { margin-bottom: .6rem; }
  .project-action { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .project-price { grid-column: 2; grid-row: 1; margin: 0; font-size: .85rem; font-weight: 550; white-space: nowrap; }
  .projects-view .project-cta { grid-column: 1; grid-row: 1; min-width: 0; padding-inline: .85rem; }
  .project-action-note { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
  .project-points li { padding-block: .75rem; font-size: .95rem; }
  .project-other { margin-top: 1.6rem; padding-top: 1rem; }
  .project-other ul { column-gap: 1.25rem; }
  .project-screen--index { padding-top: 1.65rem; }
  .project-screen--index .project-heading { margin-bottom: 1.5rem; }
  .project-row { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding: 1.15rem 0; }
  .project-row h2 { grid-column: 1; }
  .project-row p { grid-column: 1 / -1; grid-row: 2; padding-right: .6rem; font-size: .9rem; }
  .project-row__action { grid-column: 2; grid-row: 1; font-size: .75rem; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .projects-view *, .projects-view *::before, .projects-view *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  .project-action, .project-points, .project-points li, .project-directory, .project-directory li, .project-other { border-color: #607086; }
}

.project-screen { width: 100%; min-height: calc(100vh - var(--header)); min-height: calc(100dvh - var(--header)); text-align: left; }
.project-description { max-width: 65ch; margin-top: 1.25rem; color: #53657d; }
.project-description p { max-width: none; margin: 0 0 1rem; font-size: 1rem; line-height: 1.7; }
.project-description p:last-child { margin-bottom: 0; }
.project-action .project-preview { width: 100%; max-width: none; margin: 0 0 1rem; }
.project-action .project-preview img { width: 100%; height: auto; }
.project-action .project-preview figcaption { margin-top: .45rem; color: #607086; font-size: .78rem; line-height: 1.45; }
.project-action .product-preview__button { border-radius: .75rem; }
.project-action .product-preview__button span { right: .55rem; bottom: .55rem; padding: .45rem .6rem; font-size: .72rem; }

@media (max-width: 47.99rem) {
  .project-action--with-media .project-preview { grid-column: 1 / -1; grid-row: 1; margin: 0; }
  .project-action--with-media .project-price { grid-row: 2; }
  .projects-view .project-action--with-media .project-cta { grid-row: 2; }
  .project-action--with-media .project-action-note { grid-row: 3; }
  .project-action .product-preview__button img { aspect-ratio: 16 / 10; object-fit: cover; }
}

/* Sélecteur et vues Projets. Les fiches conservent leur composition de lecture. */
.project-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: .25rem;
  padding: .3rem;
  margin: 0 auto 1.75rem;
  border: 1px solid #d2ddea;
  border-radius: 999px;
  background: #e9eff7;
}
.project-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1.35rem;
  border-radius: 999px;
  color: #42536b;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.project-switch a[aria-current="page"] {
  color: #102038;
  background: #fff;
  box-shadow: 0 1px 4px rgb(24 40 65 / .12);
}
.project-switch a:active { background: #dce8fa; }
.project-switch a:focus-visible, .project-card:focus-visible, .project-client-slide a:focus-visible, .project-client-carousel__controls button:focus-visible {
  outline: 3px solid #1459c7;
  outline-offset: 4px;
}
.project-panel[hidden] { display: none !important; }
.projects-view .project-panel-title { margin: 0 0 1.1rem; color: #102038; font-size: 1rem; line-height: 1.4; font-weight: 650; letter-spacing: 0; }
.project-panel-intro { margin: 0 0 1.1rem; color: #53657d; font-size: .925rem; line-height: 1.6; }
.project-cards { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.project-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-cards > li { min-width: 0; }
.project-cards__featured { grid-column: 1 / -1; }
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #d2ddea;
  border-radius: 1.1rem;
  background: rgb(255 255 255 / .76);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.project-card:hover { background: #fff; border-color: #95b2dc; }
.project-card:active { background: #edf4ff; }
.project-card__symbol { display: inline-flex; color: #1459c7; margin-bottom: 1.2rem; }
.project-card__symbol svg { width: 1.75rem; height: 1.75rem; }
.projects-view .project-card h3 { margin: 0 0 .65rem; font-size: 1.2rem; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.project-card p { margin: 0 0 1.25rem; color: #53657d; font-size: .925rem; line-height: 1.65; }
.project-card__action { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; min-height: 1.75rem; color: #1459c7; font-size: .85rem; font-weight: 600; }
.project-card--custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.75rem;
  background: #eaf2ff;
  border-color: #bdd2f0;
}
.project-card--custom:hover { background: #e3eeff; }
.project-card--custom .project-card__symbol { margin: 0; }
.project-card--custom .project-card__symbol svg { width: 2.5rem; height: 2.5rem; }
.project-card--custom p { margin: 0; max-width: 66ch; }
.project-card--custom .project-card__action { margin: 0; white-space: nowrap; }
.project-client-carousel { min-width: 0; }
.project-client-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  border-radius: 1.1rem;
}
.project-client-carousel__viewport::-webkit-scrollbar { display: none; }
.project-client-carousel__track { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.project-client-slide { flex: 0 0 calc((100% - 2rem) / 3); min-width: 0; scroll-snap-align: start; }
.project-client-slide__content {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  min-height: 11rem;
  padding: 1.5rem;
  border: 1px solid #d2ddea;
  border-radius: 1.1rem;
  background: rgb(255 255 255 / .76);
  color: #102038;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
a.project-client-slide__content:hover { border-color: #95b2dc; background: #fff; }
a.project-client-slide__content:active { background: #edf4ff; }
.project-client-slide__content img { width: min(100%, 13rem); height: 5.25rem; object-fit: contain; }
.project-client-carousel__controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.project-client-carousel__controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #d2ddea;
  border-radius: 50%;
  background: rgb(255 255 255 / .76);
  color: #102038;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 140ms ease, transform 100ms ease;
}
.project-client-carousel__controls button:hover { background: #fff; }
.project-client-carousel__controls button:active { transform: scale(.96); }
.project-client-carousel__controls button:disabled { opacity: .38; cursor: default; }
.no-js .project-client-carousel__controls { display: none; }
.no-js .project-client-carousel__viewport { scrollbar-width: auto; }
.no-js .project-client-carousel__viewport::-webkit-scrollbar { display: initial; }
.project-screen--index .project-index-contact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.project-index-contact p { margin: 0; }
.project-index-contact > a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; white-space: nowrap; }
@media (max-width: 60rem) {
  .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
  .project-switch { display: flex; width: 100%; margin-bottom: 1.4rem; }
  .project-switch a { flex: 1 1 0; min-width: 0; padding-inline: .65rem; font-size: .85rem; }
  .project-cards { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .project-card { padding: 1.25rem; }
  .project-card__symbol { margin-bottom: 1rem; }
  .project-card--custom { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; }
  .project-card--custom .project-card__symbol { align-self: start; }
  .project-card--custom .project-card__symbol svg { width: 1.75rem; height: 1.75rem; }
  .project-card--custom .project-card__action { grid-column: 2; }
  .project-card--custom .project-card__copy { min-width: 0; }
  .project-client-slide { flex-basis: min(82vw, 19rem); }
  .project-client-slide__content { min-height: 9rem; padding: 1.2rem; }
  .project-screen--index .project-index-contact { flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-switch a, .project-card, .project-client-slide__content, .project-client-carousel__controls button { transition: none; }
  .project-client-carousel__viewport { scroll-behavior: auto; }
}
@media (prefers-contrast: more) {
  .project-switch, .project-card, .project-client-slide__content, .project-client-carousel__controls button { border-color: #53657d; }
  .project-switch a[aria-current="page"] { outline: 1px solid currentColor; outline-offset: -1px; }
}
