:root {
  --page-bg: #f4f4f4;
  --ink: #000000;
  --ink-soft: #222222;
  --muted: #555555;
  --surface: #ffffff;
  --surface-alt: #eeeeee;
  --line: rgba(17, 21, 28, 0.12);
  --line-strong: rgba(17, 21, 28, 0.2);
  --brand: #000000;
  --brand-strong: #000000;
  --accent: #444444;
  --gold: #111111;
  --shadow: 0 24px 80px rgba(17, 21, 28, 0.12);
  --radius: 8px;
  --viewport-gap: 28px;
  --footer-space: 118px;
  --stage-height: calc(100vh - var(--footer-space) - (var(--viewport-gap) * 2));
  --layout-width: min(1280px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 34rem),
    linear-gradient(315deg, rgba(0, 0, 0, 0.04), transparent 30rem),
    var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.homepage {
  width: var(--layout-width);
  min-height: var(--stage-height);
  margin: 0 auto;
  padding: var(--viewport-gap) 0 18px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.menu-toggle,
.menu-button,
.menu-backdrop {
  display: none;
}

.menu-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.index-panel {
  position: sticky;
  top: var(--viewport-gap);
  align-self: start;
  min-height: var(--stage-height);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.brand-block {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.brand-media {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 28px;
}

.brand-logo {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 6px;
  padding: 14px 12px 12px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

.brand-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #000000;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

.brand-logo img {
  width: 76%;
  max-height: 100%;
  object-fit: contain;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-logo span {
  color: #000000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.brand-name,
.brand-subtitle,
.brand-tagline {
  margin: 0;
}

.brand-name {
  max-width: 12rem;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-tagline {
  max-width: 12rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.brand-subtitle {
  max-width: 12rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.index-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.index-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.index-panel a:hover,
.index-panel a:focus {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  outline: none;
  transform: translateX(3px);
}

.nav-accueil::before { content: var(--nav-accueil); }
.nav-services::before { content: var(--nav-services); }
.nav-methode::before { content: var(--nav-methode); }
.nav-contact::before { content: var(--nav-contact); }

body:not(.has-scrollspy):not(:has(.content-section:target)) .nav-accueil,
body:not(.has-scrollspy):has(.content-accueil:target) .nav-accueil,
body:not(.has-scrollspy):has(.content-services:target) .nav-services,
body:not(.has-scrollspy):has(.content-methode:target) .nav-methode,
body:not(.has-scrollspy):has(.content-contact:target) .nav-contact,
.index-panel a.is-active {
  border-color: #000000;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 249, 0.92)),
    #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
}

.main-panel {
  overflow: hidden;
  background: var(--surface);
}

@media (min-width: 981px) {
  .main-panel {
    position: sticky;
    top: var(--viewport-gap);
    align-self: start;
    max-height: var(--stage-height);
    overflow-y: auto;
    scrollbar-color: rgba(0, 0, 0, 0.34) transparent;
  }

  .hero-column {
    grid-column: 2;
  }
}

@media (min-width: 1180px) {
  :root {
    --layout-width: min(1320px, calc(100% - 56px));
  }

  .homepage {
    grid-template-columns: 270px minmax(560px, 1fr) minmax(280px, 340px);
  }

  .hero-column {
    grid-column: auto;
    position: sticky;
    top: var(--viewport-gap);
    align-self: start;
    max-height: var(--stage-height);
  }
}

.content-section {
  scroll-margin-top: 28px;
  position: relative;
  isolation: isolate;
  padding: clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 244, 0.92)),
    #ffffff;
  overflow: hidden;
}

.content-section::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.content-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(42%, 260px);
  height: 5px;
  background: #111827;
}

.content-section:last-child {
  border-bottom: 0;
}

.content-section > * {
  position: relative;
  z-index: 1;
}

.content-accueil {
  min-height: auto;
  padding-top: 22px;
  padding-bottom: clamp(34px, 5vw, 64px);
}

.content-accueil .eyebrow {
  margin-top: clamp(1.4rem, 3vw, 2.9rem);
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 18px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.32);
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
.main-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: none;
  font-size: clamp(2.65rem, 4.8vw, 5.2rem);
  line-height: 0.96;
  white-space: nowrap;
}

.main-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.main-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

.content-accueil .hero-copy > p:not(.eyebrow) {
  max-width: 780px;
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.hero-column {
  display: grid;
  gap: 18px;
}

.hero-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.94), rgba(51, 51, 51, 0.9)),
    #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
  display: grid;
  align-content: end;
  padding: 18px;
}

.hero-visual-production {
  min-height: 300px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 232, 232, 0.9)),
    #ffffff;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.36;
}

.hero-visual img {
  position: absolute;
  inset: 8% 5% auto;
  width: 90%;
  height: auto;
  filter: grayscale(1) contrast(1.08) brightness(1.14);
  opacity: 0.68;
}

.hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(7, 17, 22, 0.48);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.hero-card strong {
  font-size: 1.08rem;
}

.hero-card-top {
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-card-bottom {
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual-production::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

.hero-visual-production img {
  filter: grayscale(1) invert(1) contrast(1.08) brightness(0.96);
  opacity: 0.44;
}

.hero-visual-production .hero-card {
  border-top-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: #000000;
}

.hero-visual-production .hero-card span {
  color: rgba(0, 0, 0, 0.64);
}

.hero-visual-production .hero-card-bottom {
  background: rgba(0, 0, 0, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus {
  border-color: rgba(0, 0, 0, 0.42);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17, 21, 28, 0.12);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
}

.content-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.content-services .content-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.content-services .content-list li:first-child {
  grid-column: span 2;
}

.content-list li {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 244, 0.86));
  box-shadow: 0 12px 40px rgba(17, 21, 28, 0.06);
}

.content-list strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.content-list span,
.contact-list li {
  color: var(--muted);
  line-height: 1.55;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

.steps-list {
  counter-reset: step;
}

.steps-list li {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
}

.steps-list b {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.92rem;
}

.contact-list {
  max-width: 680px;
}

.contact-list li {
  min-height: 0;
  background: #ffffff;
}

.text-name::before { content: var(--name); }
.text-brand-subtitle::before { content: var(--brand-subtitle); }
.text-brand-tagline::before { content: var(--brand-tagline); }
.text-accueil-eyebrow::before { content: var(--accueil-eyebrow); }
.text-accueil-body-1::before { content: var(--accueil-body-1); }
.text-accueil-body-2::before { content: var(--accueil-body-2); }
.text-services-eyebrow::before { content: var(--services-eyebrow); }
.text-services-title::before { content: var(--services-title); }
.text-services-body-1::before { content: var(--services-body-1); }
.text-service-1-title::before { content: var(--service-1-title); }
.text-service-1-body::before { content: var(--service-1-body); }
.text-service-2-title::before { content: var(--service-2-title); }
.text-service-2-body::before { content: var(--service-2-body); }
.text-service-3-title::before { content: var(--service-3-title); }
.text-service-3-body::before { content: var(--service-3-body); }
.text-service-4-title::before { content: var(--service-4-title); }
.text-service-4-body::before { content: var(--service-4-body); }
.text-service-5-title::before { content: var(--service-5-title); }
.text-service-5-body::before { content: var(--service-5-body); }
.text-methode-eyebrow::before { content: var(--methode-eyebrow); }
.text-methode-title::before { content: var(--methode-title); }
.text-methode-body-1::before { content: var(--methode-body-1); }
.text-step-1-title::before { content: var(--step-1-title); }
.text-step-1-body::before { content: var(--step-1-body); }
.text-step-2-title::before { content: var(--step-2-title); }
.text-step-2-body::before { content: var(--step-2-body); }
.text-step-3-title::before { content: var(--step-3-title); }
.text-step-3-body::before { content: var(--step-3-body); }
.text-step-4-title::before { content: var(--step-4-title); }
.text-step-4-body::before { content: var(--step-4-body); }
.text-contact-eyebrow::before { content: var(--contact-eyebrow); }
.text-contact-title::before { content: var(--contact-title); }
.text-contact-body-1::before { content: var(--contact-body-1); }
.text-contact-email::before { content: var(--contact-email-label) var(--email); }
.text-contact-zone::before { content: var(--contact-zone); }
.text-contact-status::before { content: var(--contact-status); }
.btn-services::before { content: var(--button-services); }
.btn-method::before { content: var(--button-method); }
.btn-contact::before { content: var(--button-contact); }
.btn-email::before { content: var(--button-email); }
.btn-profile::before { content: var(--button-profile); }

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  width: var(--layout-width);
  margin: 0 auto 28px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 54px rgba(17, 21, 28, 0.18);
  backdrop-filter: blur(16px);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  line-height: 1.45;
}

.footer-details,
.footer-legal {
  color: rgba(255, 255, 255, 0.72);
}

.footer-details {
  justify-content: flex-start;
}

.footer-contact {
  justify-content: flex-end;
}

.footer-legal {
  grid-column: 1 / -1;
  justify-content: center;
  font-size: 0.86rem;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  outline: none;
}

.text-footer-zone::before { content: var(--footer-zone); }
.text-footer-status::before { content: var(--footer-status); }
.text-footer-services::before { content: var(--footer-services); }
.text-footer-email::before { content: var(--footer-email-label) var(--email); }
.text-footer-legal::before { content: var(--footer-legal); }

@media (max-width: 980px) {
  .homepage {
    grid-template-columns: 1fr;
  }

  .index-panel {
    position: static;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 24px;
  }

  .brand-block {
    grid-template-columns: 162px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .brand-media {
    grid-template-columns: repeat(2, 76px);
    gap: 10px;
    width: auto;
    grid-row: span 3;
    margin-bottom: 0;
  }

  .brand-logo {
    width: 76px;
    height: 76px;
    grid-row: span 2;
    gap: 3px;
    padding: 7px 5px 6px;
  }

  .brand-logo span {
    font-size: 0.42rem;
  }

  .brand-subtitle,
  .brand-tagline {
    grid-column: 2;
  }

  .index-panel nav {
    grid-template-columns: repeat(4, minmax(0, auto));
    padding-top: 0;
    border-top: 0;
  }

  .content-accueil {
    min-height: auto;
  }

  .hero-column {
    order: 3;
  }

  .hero-visual {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  :root {
    --viewport-gap: 12px;
    --footer-space: 178px;
    --layout-width: min(100% - 24px, 1180px);
  }

  .homepage,
  .site-footer {
    width: var(--layout-width);
  }

  .homepage {
    min-height: auto;
    padding-top: 74px;
    padding-bottom: 14px;
  }

  .menu-toggle {
    position: fixed;
    display: block;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 40;
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
  }

  .menu-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(17, 21, 28, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .index-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    width: min(86vw, 340px);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding: 78px 18px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .menu-toggle:checked ~ .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle:checked ~ .index-panel {
    transform: translateX(0);
  }

  .menu-toggle:checked ~ .menu-button .menu-line:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-button .menu-line:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-button .menu-line:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .index-panel nav,
  .content-services .content-list {
    grid-template-columns: 1fr;
  }

  .content-services .content-list li:first-child {
    grid-column: auto;
  }

  .content-section {
    padding: 28px 20px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-card {
    min-width: 0;
    max-width: none;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
    padding: 14px 18px;
  }

  .footer-details,
  .footer-contact,
  .footer-legal {
    justify-content: flex-start;
  }
}
