:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #19192b;
  background: #fff;
  font-weight: 400;
  --muted: #626376;
  --accent: #ff6a27;
  --line: rgba(25, 25, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.masthead {
  position: relative;
  isolation: isolate;
  color: #19192b;
  background: #fff;
}

.site-header {
  width: min(900px, calc(100% - 48px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-family: Poppins, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo-crop {
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-crop--small {
  width: 46px;
  height: 43px;
}

.brand-mark,
.hero-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.entities-link {
  border: 1px solid rgba(25, 25, 43, 0.18);
  border-radius: 999px;
  padding: 7px 15px;
  color: #626376;
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.entities-link:hover {
  border-color: rgba(246, 94, 55, 0.55);
  color: #19192b;
  background: rgba(246, 94, 55, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch:not([hidden]) {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(25, 25, 43, 0.18);
  border-radius: 999px;
}

.language-switch button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #626376;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: #19192b;
  color: #fff;
}

.language-switch button:hover:not([aria-pressed="true"]) {
  background: #f2eef0;
  color: #19192b;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 30px;
  text-align: center;
}

.hero-mark {
  width: 190px;
  height: 175px;
  object-fit: contain;
}

.eyebrow {
  margin: 16px 0 17px;
  color: #626376;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.eyebrow span {
  padding: 0 3px;
  color: #b94a76;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  color: #19192b;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  transform: scaleX(1.16);
}

.hero h1 span:last-child {
  color: #ed3466;
  background: linear-gradient(90deg, #ff9a1f 0%, #fb4b25 26%, #e80079 55%, #9a22a9 78%, #4f2dc3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 500px;
  margin: 20px 0 0;
  color: #626376;
  font-size: 14px;
  line-height: 1.6;
}

.gradient-rule {
  width: 120px;
  height: 1px;
  margin-top: 30px;
  background: linear-gradient(90deg, #ed9c1e, #ed3b3f 52%, #8b24ee);
}

.entities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, calc(100% - 48px));
  margin: 60px auto 72px;
}

.entity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 43, 0.12);
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  isolation: isolate;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.entity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 106, 50, 0.45);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.12);
}

.card-image {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 288 / 207;
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  filter: brightness(1.15);
  transition: transform 350ms ease;
}

.entity-card:hover .card-image {
  transform: scale(1.06);
}

.card-destination {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
}

.card-destination:focus-visible {
  outline: 3px solid #ed3466;
  outline-offset: -4px;
}

.entity-card--construction .card-image {
  background-image: url("assets/connexion.png");
}

.entity-card--training .card-image {
  background-image: url("assets/exams-trainings.png");
}

.entity-card--digital .card-image {
  background-image: url("assets/digital.png");
}

.card-arrow {
  position: absolute;
  z-index: 1;
}

.card-arrow {
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(229, 224, 245, 0.19);
  border-radius: 50%;
  background: rgba(9, 10, 23, 0.52);
  color: #fff;
  font-size: 14px;
  transition: background 160ms ease, transform 160ms ease;
}

.entity-card:hover .card-arrow,
.card-destination:focus-visible .card-arrow {
  transform: translate(1px, -1px);
  background: rgba(220, 73, 61, 0.5);
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 23px;
  background: #fff;
}

.card-category,
.card-brand {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-category {
  color: #bd480e;
}

.card-brand {
  margin-top: 10px;
  color: #626376;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.card-content h2 {
  margin: 2px 0 0;
  color: #19192b;
  font-family: Poppins, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.card-description {
  margin: 10px 0 14px;
  color: #444758;
  font-size: 15px;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: #19192b;
  font-size: 10px;
  font-weight: 700;
}

.card-link .card-link-rule {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, #f8a22a, #e5248a);
  transition: width 160ms ease;
}

.card-destination:hover .card-link-rule,
.card-destination:focus-visible .card-link-rule {
  width: 28px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-height: 174px;
  align-items: center;
  padding: 25px max(5.5vw, calc((100% - 1246px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.value-item {
  text-align: center;
}

.value-item svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #ff6b20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.value-item h2 {
  margin: 12px 0 9px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  width: min(1246px, calc(100% - 64px));
  min-height: 96px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  gap: 12px;
  color: #626376;
  font-size: 14px;
}

.footer-brand .brand-mark {
  mix-blend-mode: normal;
}

.footer-brand .logo-crop--small {
  width: 46px;
  height: 43px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav span {
  color: #626376;
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid #ff8a37;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 36px);
    height: 56px;
  }

  .header-actions {
    gap: 6px;
  }

  .entities-link {
    padding: 7px 9px;
  }

  .hero {
    padding-top: 27px;
  }

  .hero-mark {
    width: 150px;
    height: 139px;
  }

  .eyebrow {
    margin-top: 16px;
    font-size: 7px;
    letter-spacing: 0.17em;
  }

  .hero h1 {
    font-size: clamp(32px, 8.5vw, 44px);
  }

  .hero-copy {
    max-width: 340px;
    font-size: 12px;
  }

  .entities {
    grid-template-columns: 1fr;
    width: min(400px, calc(100% - 36px));
    gap: 14px;
    margin-top: 35px;
    margin-bottom: 42px;
  }

  .entity-card {
    min-height: 330px;
  }

  .card-content {
    padding: 18px 19px 19px;
  }

  .card-category {
    font-size: 9px;
  }

  .card-brand {
    font-size: 8px;
  }

  .card-content h2 {
    font-size: 23px;
  }

  .card-description {
    max-width: 300px;
  }

  .card-link {
    font-size: 9px;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 30px 12px;
    padding: 34px 18px;
  }

  .value-item h2 {
    font-size: 13px;
  }

  .value-item p {
    font-size: 11px;
  }

  .site-footer {
    width: calc(100% - 36px);
    min-height: 125px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 17px;
  }

  .footer-brand {
    gap: 9px;
    font-size: 11px;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-nav span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
