:root {
  color-scheme: dark;
  --text: #f9f9fc;
  --line: rgba(255, 255, 255, 0.24);
  --red: #f20813;
  --purple: #9b19ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #050508;
  color: var(--text);
}

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 34%, rgba(242, 8, 19, 0.4), transparent 22rem),
    radial-gradient(circle at 22% 68%, rgba(155, 25, 255, 0.32), transparent 24rem),
    linear-gradient(120deg, #e2e4e7 0%, #787d82 16%, #111216 42%, #170b12 72%, #050508 100%);
}

.home::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25vh;
  width: min(1280px, 132vw);
  height: 68vh;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(242, 8, 19, 0.86) 0 2.4%, transparent 2.6% 97.4%, rgba(155, 25, 255, 0.86) 97.6% 100%),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255, 255, 255, 0.76) 60px 64px, transparent 66px 116px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.34));
  border: 5px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  transform: translateX(-50%) perspective(780px) rotateX(62deg);
  transform-origin: bottom center;
  box-shadow:
    0 -34px 90px rgba(0, 0, 0, 0.62),
    inset 0 0 86px rgba(0, 0, 0, 0.66),
    0 0 26px rgba(242, 8, 19, 0.22);
}

.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 72px 100%;
}

.language-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(9px, 1.8vw, 16px);
  padding: clamp(14px, 3vh, 28px) 16px 0;
}

.language-bar a {
  min-width: clamp(136px, 16vw, 188px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.72);
  color: var(--text);
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
}

.language-bar a:first-child {
  border-bottom-color: var(--red);
}

.language-bar a:last-child {
  border-bottom-color: #ffd230;
}

.swiss-flag {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  background: #e31d2b;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 0 20px rgba(242, 8, 19, 0.38);
}

.swiss-flag::before,
.swiss-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.swiss-flag::before {
  width: 20px;
  height: 7px;
}

.swiss-flag::after {
  width: 7px;
  height: 20px;
}

.logo-stage {
  display: grid;
  place-items: start center;
  min-height: 0;
  padding: clamp(8px, 1.5vh, 18px) 14px clamp(18px, 4vh, 40px);
}

.logo-stage img {
  display: block;
  width: min(980px, 96vw);
  max-height: min(72vh, 690px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 34px 54px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 30px rgba(155, 25, 255, 0.24))
    drop-shadow(0 0 22px rgba(242, 8, 19, 0.18));
}

.blank-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 18px;
  background:
    radial-gradient(circle at 74% 34%, rgba(242, 8, 19, 0.34), transparent 22rem),
    radial-gradient(circle at 22% 68%, rgba(155, 25, 255, 0.26), transparent 24rem),
    linear-gradient(120deg, #d7dade 0%, #777c82 16%, #111216 42%, #170b12 72%, #050508 100%);
}

.content-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 70% 26%, rgba(242, 8, 19, 0.32), transparent 22rem),
    radial-gradient(circle at 22% 70%, rgba(155, 25, 255, 0.28), transparent 24rem),
    linear-gradient(120deg, #d7dade 0%, #777c82 16%, #111216 42%, #170b12 72%, #050508 100%);
}

.page-back {
  position: fixed;
  left: clamp(14px, 2.4vw, 28px);
  top: clamp(14px, 2.4vw, 28px);
  z-index: 5;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.74);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.top-contact {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  top: clamp(14px, 2.4vw, 28px);
  z-index: 6;
  display: inline-flex;
  align-items: stretch;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
}

.contact-link,
.whatsapp-mini {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.contact-link {
  min-width: 106px;
  padding: 13px 16px;
  border-radius: 8px 0 0 8px;
  background: rgba(5, 5, 8, 0.74);
}

.whatsapp-mini {
  min-width: 58px;
  padding: 13px 12px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(23, 167, 84, 0.9);
}

.whatsapp-mini svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.text-panel {
  width: min(980px, 100%);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.74);
  color: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
}

.contact-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: clamp(76px, 9vw, 110px) clamp(18px, 5vw, 64px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 70% 26%, rgba(242, 8, 19, 0.32), transparent 22rem),
    radial-gradient(circle at 22% 70%, rgba(155, 25, 255, 0.28), transparent 24rem),
    linear-gradient(120deg, #d7dade 0%, #777c82 16%, #111216 42%, #170b12 72%, #050508 100%);
}

.contact-panel {
  width: min(900px, 100%);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.76);
  color: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
}

.contact-panel h1 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hidden-field {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #eef0f5;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  padding: 12px 13px;
  outline: none;
}

.contact-form input[type="file"] {
  padding: 10px;
}

.contact-form button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--red));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-panel h1,
.text-panel h2,
.text-panel p {
  margin-top: 0;
}

.text-panel h1 {
  display: none;
}

.text-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(0.92rem, 1.45vw, 1.14rem);
  text-transform: uppercase;
}

.text-panel p,
.text-panel li {
  color: #eef0f5;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.48;
}

.text-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.text-panel li {
  position: relative;
  padding-left: 18px;
}

.text-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--red));
  box-shadow: 0 0 12px rgba(155, 25, 255, 0.8);
}

.services-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 42px) clamp(22px, 4vw, 46px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(155, 25, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 62%, rgba(242, 8, 19, 0.18), transparent 24rem),
    linear-gradient(180deg, #07070b, #020204);
}

.services-grid {
  width: min(1460px, 100%);
  margin: clamp(58px, 7vw, 92px) auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 34px);
}

.service-link {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.service-disc {
  width: clamp(82px, 7.5vw, 112px);
  height: clamp(82px, 7.5vw, 112px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, #a42cff, #6815d2 72%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.55),
    0 0 38px rgba(155, 25, 255, 0.44);
}

.heart-disc {
  border-radius: 54% 46% 50% 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(145deg, #ff2a58, #9b19ff 76%);
}

.service-disc svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heart-disc svg {
  width: 52%;
  height: 52%;
  fill: none;
}

.service-title {
  color: #fff;
  font-size: clamp(0.76rem, 1.25vw, 1.42rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #000, 0 8px 18px rgba(0, 0, 0, 0.95);
}

.services-logo {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-top: clamp(18px, 4vh, 44px);
}

.services-logo img {
  display: block;
  width: min(880px, 94vw);
  max-height: min(58vh, 540px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 32px 50px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 30px rgba(155, 25, 255, 0.24))
    drop-shadow(0 0 22px rgba(242, 8, 19, 0.18));
}

@media (max-width: 620px) {
  .language-bar {
    gap: 8px;
    padding-top: 12px;
  }

  .language-bar a {
    min-width: 118px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .swiss-flag {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .logo-stage img {
    width: min(110vw, 700px);
    max-height: 70vh;
  }

  .services-page {
    padding: 24px 14px;
    overflow: hidden;
  }

  .services-grid {
    margin-top: 58px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .service-disc {
    width: clamp(44px, 13vw, 64px);
    height: clamp(44px, 13vw, 64px);
  }

  .service-link {
    gap: 7px;
  }

  .service-title {
    font-size: clamp(0.42rem, 2.2vw, 0.64rem);
    line-height: 1.04;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 0 #000, 0 6px 12px rgba(0, 0, 0, 0.95);
  }

  .services-logo img {
    width: min(106vw, 700px);
    max-height: 58vh;
  }

  .text-panel ul {
    grid-template-columns: 1fr;
  }

  .top-contact {
    right: 10px;
  }

  .contact-link {
    min-width: 82px;
    font-size: 0.68rem;
    padding-inline: 9px;
  }

  .whatsapp-mini {
    min-width: 46px;
    font-size: 0.68rem;
  }

  .whatsapp-mini svg {
    width: 21px;
    height: 21px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Version amelioree */
body {
  line-height: 1.4;
}

.language-bar a,
.page-back,
.contact-link,
.whatsapp-mini,
.service-link,
.contact-form button {
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-bar a:hover,
.language-bar a:focus-visible,
.page-back:hover,
.page-back:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(10, 10, 15, 0.86);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52), 0 0 22px rgba(155, 25, 255, 0.2);
}

.logo-stage {
  transform: translateY(-1.8vh);
}

.content-page {
  padding: clamp(88px, 9vw, 118px) clamp(18px, 5vw, 64px) clamp(30px, 5vw, 64px);
}

.text-panel,
.contact-panel {
  position: relative;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.82), rgba(5, 5, 8, 0.76));
}

.text-panel::before,
.contact-panel::before {
  content: "";
  position: absolute;
  left: clamp(22px, 4vw, 42px);
  right: clamp(22px, 4vw, 42px);
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--purple), var(--red));
  box-shadow: 0 0 22px rgba(155, 25, 255, 0.38);
}

.text-panel p,
.text-panel li {
  line-height: 1.54;
}

.service-link:hover,
.service-link:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.service-disc {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-link:hover .service-disc,
.service-link:focus-visible .service-disc {
  transform: scale(1.03);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(155, 25, 255, 0.58);
}

.contact-link:hover,
.contact-link:focus-visible,
.whatsapp-mini:hover,
.whatsapp-mini:focus-visible {
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.contact-form input,
.contact-form textarea {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(155, 25, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(155, 25, 255, 0.18);
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@media (max-width: 620px) {
  .content-page {
    padding-top: 82px;
  }

  .services-page {
    padding-inline: 10px;
  }

  .service-title {
    font-size: clamp(0.4rem, 2.05vw, 0.62rem);
  }
}

/* Fond global Carboxing */
.home,
.blank-page,
.content-page,
.contact-page,
.services-page {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.66)),
    radial-gradient(circle at 18% 62%, rgba(155, 25, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 64%, rgba(242, 8, 19, 0.18), transparent 24rem),
    url("hero-ring-engine-tools.png") center / cover no-repeat fixed;
}

.home::before {
  display: none;
}

.home::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 100%;
}
