:root {
  --page-bg: #f6fafc;
  --surface: #ffffff;
  --surface-strong: #071018;
  --text: #071018;
  --heading: #0b2b3a;
  --muted: #405563;
  --muted-strong: #263845;
  --accent: #0089c8;
  --accent-strong: #0fb8e8;
  --accent-soft: #d6e7ef;
  --panel-border: #d6e7ef;
  --shadow: 0 18px 48px rgba(7, 16, 24, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 108px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(15, 184, 232, 0.1), transparent 420px),
    var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.homepage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(320px, 2.4fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding: 24px;
}

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

.brand-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

.brand-name {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-tagline {
  color: #203523;
  font-size: 0.9rem;
}

.index-panel nav {
  display: grid;
  gap: 10px;
}

.index-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.index-panel a:hover,
.index-panel a:focus {
  border-color: var(--panel-border);
  background: #eef7fb;
  outline: none;
}

.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);
}

.main-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 64px 42px 42px;
}

.content-section {
  display: none;
  width: 100%;
}

.content-accueil,
.content-section:target {
  display: block;
}

.main-panel:has(.content-section:target) .content-accueil {
  display: none;
}

.main-panel:has(.content-accueil:target) .content-accueil {
  display: block;
}

body:not(:has(.content-section:target)) .nav-accueil,
body:has(.content-accueil:target) .nav-accueil,
body:has(.content-services:target) .nav-services,
body:has(.content-methode:target) .nav-methode,
body:has(.content-contact:target) .nav-contact {
  border-color: var(--accent);
  background: #e9f7fc;
  color: var(--heading);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.main-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 3.25rem;
  line-height: 1.05;
  text-wrap: balance;
}

.main-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.content-list li {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
}

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

.content-list span {
  color: var(--muted);
  line-height: 1.45;
}

.contact-list li {
  color: var(--muted);
  line-height: 1.45;
}

.steps-list li {
  grid-template-columns: 42px 1fr;
  align-items: start;
}

.steps-list b {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
}

.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(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: #e9f7fc;
  outline: none;
}

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

.button.primary:hover,
.button.primary:focus {
  background: #067daf;
}

.text-name::before {
  content: var(--name);
}

.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 {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

.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.76);
}

.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 strong {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
  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 (prefers-color-scheme: dark) {
  :root {
    --page-bg: #071018;
    --surface: #0e1a24;
    --surface-strong: #071018;
    --text: #eaf9ff;
    --heading: #dff8ff;
    --muted: #b9dceb;
    --muted-strong: #b9dceb;
    --accent: #0fb8e8;
    --accent-strong: #0fb8e8;
    --accent-soft: #1f5d78;
    --panel-border: #1f5d78;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  }

  body {
    background:
      linear-gradient(180deg, rgba(15, 184, 232, 0.12), transparent 420px),
      var(--page-bg);
  }

  .brand-tagline {
    color: #b9dceb;
  }

  .index-panel a:hover,
  .index-panel a:focus,
  body:not(:has(.content-section:target)) .nav-accueil,
  body:has(.content-accueil:target) .nav-accueil,
  body:has(.content-services:target) .nav-services,
  body:has(.content-methode:target) .nav-methode,
  body:has(.content-contact:target) .nav-contact,
  .button:hover,
  .button:focus {
    background: rgba(15, 184, 232, 0.12);
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: 168px;
  }

  .homepage {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .index-panel {
    gap: 20px;
  }

  .brand-block {
    grid-template-columns: 96px 1fr;
    column-gap: 14px;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .brand-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
  }

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

  .index-panel nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .index-panel a {
    justify-content: center;
    text-align: center;
  }

}

@media (max-width: 620px) {
  body {
    padding-top: 58px;
    padding-bottom: 206px;
  }

  .homepage {
    padding: 12px;
  }

  .site-footer {
    padding: 14px 18px;
  }

  .main-panel {
    padding: 18px;
  }

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

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

  .menu-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(0, 0, 0, 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(82vw, 320px);
    gap: 26px;
    padding: 72px 18px 24px;
    border-radius: 0 8px 8px 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);
  }

  .menu-line {
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .brand-block {
    grid-template-columns: 82px 1fr;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
  }

  .index-panel nav {
    grid-template-columns: 1fr;
  }

  .main-panel h2 {
    font-size: 2.25rem;
  }

  .steps-list li {
    grid-template-columns: 38px 1fr;
  }

  .actions {
    display: grid;
  }
}
