/* Variante claire de la refonte orange. Les médias et les données projet restent inchangés. */
:root {
  --ink: #181818;
  --paper: #171717;
  --muted: #696969;
  --line: #dededb;
  --orange: #f05a2a;
  --orange-light: #e45629;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--paper);
  background: #f4f4f2;
}
body { background: #f4f4f2; }
button, a, .kicker, .service-row span, .carousel-hint, .carousel-controls span, .dialog-bottom span {
  font-family: 'Inter', system-ui, sans-serif;
}
.site-shell { background: #fff; box-shadow: 0 26px 85px #25252517; }
.kicker, .accent { color: var(--orange-light); }

/* Hero : une seule composition centrée, avec le CTA blanc de la référence. */
.hero { color: #fff; }
.hero-wash {
  background: linear-gradient(90deg, #4b120e80, #41130c36 42%, #17070582),
              linear-gradient(0deg, #1c080ac4, transparent 35%);
}
.brand, .top-nav { color: #fff; }
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(24px, 4.8vw, 72px) 80px;
  text-align: center;
}
.hero-identity { max-width: 1030px; margin: auto; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(58px, 8.3vw, 116px); line-height: 1; }
.hero-period { color: #fff; }
.hero-role {
  max-width: 870px;
  margin: 30px auto 0;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.52;
  font-weight: 600;
  text-wrap: balance;
}
.hero-role span { display: inline-block; margin-top: 8px; font-weight: 500; }
.hero-cta {
  min-height: 61px;
  margin-top: 31px;
  padding: 0 35px;
  background: #fff;
  color: #121317;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 11px 28px #0002;
}
.hero-cta:hover { background: #f0f0f0; }
.service-row { color: #fff; }

/* Réseau et surfaces claires. */
.partners { background: #eeeeeb; }
.partners h2 { color: #333; }
.partner-logos img {
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .72;
}
.projects-section { background: #fff; }
.section-intro { display: block; max-width: 1220px; margin: 0 auto; text-align: center; }
.section-intro .kicker { margin-bottom: 31px; font-size: clamp(18px, 2vw, 27px); font-weight: 600; }
.section-intro h2 { font-size: clamp(48px, 7.1vw, 108px); line-height: 1.01; }
.section-intro-description {
  max-width: 960px;
  margin: 35px auto 0;
  color: #717171;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}
.project-filters { justify-content: center; }
.project-filters button { border-color: #e1e1df; background: #f7f7f5; color: #474747; }
.project-filters button:hover { border-color: var(--orange); color: var(--orange); }
.project-filters button[aria-pressed="true"] { color: #fff; }
.carousel-stage::before { background: radial-gradient(ellipse, #ef65301f 0%, transparent 68%); }
.project-card { box-shadow: 0 20px 55px #15151535; }
.project-card-category {
  border: 0;
  background: #ffffff38;
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 3px 18px #0002;
}
.carousel-controls button { border-color: #d5d5d2; color: #191919; }
.carousel-controls button:hover { color: #fff; }
.carousel-controls span { color: #555; }
.carousel-hint { color: #858585; }

/* À propos : texte élargi et tags non cliquables. */
.about-section { background: #f7f7f5; }
.about-copy { display: block; max-width: 1160px; margin: 0 auto; text-align: center; }
.about-copy .kicker { margin-bottom: 27px; font-size: clamp(18px, 2vw, 27px); font-weight: 600; }
.about-copy h2 { max-width: 1060px; margin: 0 auto; font-size: clamp(47px, 6.5vw, 93px); line-height: 1.04; }
.about-text {
  max-width: 1010px;
  margin: 35px auto 0;
  padding: 0;
  color: #575757;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
}
.about-text p { margin: 0 0 22px; }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}
.skill-tags li {
  padding: 11px 18px;
  border: 1px solid #d7d7d4;
  border-radius: 999px;
  background: #fff;
  color: #303030;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
}

/* Pied de page clair, panneau de contact orange conservé. */
.site-footer { background: #fff; color: #5e5e5e; }
.footer-top, .site-footer details { border-color: #dededb; }
.footer-top a, .legal-grid a { color: #252525; }
.site-footer summary { color: #242424; }
.legal-grid h3 { color: #222; }
.footer-rights { color: #777; }

/* Une fiche projet tient toujours dans la hauteur du navigateur.
   Le texte long défile dans sa zone, les médias et la navigation restent visibles. */
.project-dialog {
  width: min(calc(100vw - 28px), 1200px);
  height: calc(100dvh - 28px);
  max-height: calc(100dvh - 28px);
  border: 1px solid #dededb;
  background: #fff;
  color: #171717;
  overflow: hidden;
}
.project-dialog::backdrop { background: #151515b8; }
.dialog-shell {
  display: grid;
  grid-template-rows: minmax(0, 48%) minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.dialog-media { min-height: 0; overflow: hidden; }
.dialog-media-content { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.dialog-media-content img, .dialog-media-content video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 270px);
  gap: 30px;
  padding: 25px 34px;
}
.dialog-description { min-width: 0; }
.dialog-subtitle { color: #777; }
.dialog-tags span { background: #f1f1ef; color: #404040; }
.dialog-text { color: #535353; }
.dialog-thumbnails { grid-template-columns: repeat(3, 1fr); }
.dialog-thumbnails button { background: #ededeb; }
.dialog-bottom { flex: none; border-color: #e5e5e3; background: #fff; }
.dialog-bottom button { color: #222; }
.dialog-bottom span { color: #777; }

@media (max-width: 767px) {
  .site-shell { margin: 0; }
  .nav-links { background: #171717f5; }
  .hero-grid { padding: 50px 22px; }
  .hero-identity { max-width: 100%; }
  .hero h1 { font-size: clamp(49px, 12vw, 78px); line-height: 1.02; }
  .hero-role { max-width: 37ch; margin-top: 23px; font-size: clamp(15px, 4vw, 18px); }
  .hero-role span { margin-top: 9px; }
  .hero-cta { min-height: 55px; padding: 0 29px; font-size: 14px; }
  .section-intro h2, .about-copy h2 { font-size: clamp(40px, 10vw, 65px); }
  .section-intro-description { margin-top: 25px; font-size: 17px; }
  .project-filters { justify-content: flex-start; }
  .about-section { padding-top: 76px; }
  .about-text { margin-top: 28px; font-size: 16px; line-height: 1.65; }
  .skill-tags { margin-top: 30px; gap: 8px; }
  .skill-tags li { padding: 9px 13px; font-size: 12px; }
  .project-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .dialog-shell { grid-template-rows: minmax(0, 43%) minmax(0, 1fr) auto; }
  .dialog-media, .dialog-media-content { min-height: 0; }
  .dialog-body { display: block; padding: 22px; }
  .dialog-thumbnails { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 12vw; }
  .hero-role { font-size: 14px; }
  .hero-cta { margin-top: 23px; }
  .dialog-shell { grid-template-rows: minmax(0, 39%) minmax(0, 1fr) auto; }
}
