:root {
  --ink: #06101f;
  --navy: #07182d;
  --navy-2: #0a2341;
  --blue: #075fd3;
  --blue-soft: #dcecff;
  --white: #ffffff;
  --paper: #f6f8fb;
  --line: rgba(7, 24, 45, 0.14);
  --muted: #536173;
  --gold: #c59b47;
  --shadow: 0 24px 70px rgba(6, 16, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 10px max(20px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background: rgba(6, 16, 31, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background-color: var(--white);
  background-image: url("assets/h-polyvalence-flyer.jpeg");
  background-size: 235px auto;
  background-position: -24px -22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy span {
  color: #b9c8dc;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #dce7f7;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-button {
  min-width: 44px;
  min-height: 36px;
  color: #cfe0f6;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lang-button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  min-height: min(780px, 82svh);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(96deg, rgba(6, 16, 31, 0.94) 0%, rgba(6, 16, 31, 0.78) 48%, rgba(6, 16, 31, 0.24) 100%),
    url("assets/h-polyvalence-flyer.jpeg") right center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--blue), var(--gold), transparent);
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 16, 31, 0.36) 100%),
    radial-gradient(circle at 24% 28%, rgba(7, 95, 211, 0.28), transparent 32%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
  padding: 86px 0 94px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8cbcff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 730px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  text-transform: uppercase;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #e9f2ff;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(7, 95, 211, 0.33);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 790px;
  margin: 40px 0 0;
}

.hero-facts div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-facts dt {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: #b9c8dc;
  font-size: 0.92rem;
}

.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 22px;
  background: var(--white);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--blue);
  border: 2px solid var(--blue-soft);
  font-weight: 900;
}

.trust-grid p {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  max-width: 620px;
  margin-bottom: 0;
}

.section-heading h2,
.founder-copy h2,
.contact-copy h2,
.proof-copy h2 {
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  text-transform: uppercase;
}

.section-heading p:not(.eyebrow),
.founder-copy > p,
.proof-copy p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 300px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-2), var(--ink));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(6, 16, 31, 0.12);
}

.service-card:nth-child(even) {
  background: linear-gradient(180deg, #102b4c, var(--ink));
}

.service-index {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  min-height: 58px;
  font-size: 1.42rem;
  text-transform: uppercase;
}

.service-card p {
  margin: 18px 0 0;
  color: #ccd8e8;
}

.founder-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 16, 31, 0.98), rgba(7, 24, 45, 0.94)),
    linear-gradient(135deg, var(--navy), var(--ink));
}

.founder-layout,
.training-layout,
.proof-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.founder-copy > p {
  color: #cbd8e8;
}

.credential-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.credential-list div {
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

.credential-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  text-transform: uppercase;
}

.credential-list span {
  color: #b9c8dc;
}

.founder-media {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 16px;
  align-items: end;
}

.portrait-frame,
.mission-frame,
.flyer-frame {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.portrait-frame {
  aspect-ratio: 0.78;
}

.mission-frame {
  aspect-ratio: 0.62;
  transform: translateY(32px);
}

.portrait-frame img,
.mission-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame img {
  object-position: 50% 28%;
}

.mission-frame img {
  object-position: 50% 34%;
}

.about-me-section {
  padding: clamp(64px, 7vw, 92px) 0;
  background: var(--paper);
}

.about-me-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.about-me-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  text-transform: uppercase;
}

.about-me-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.source-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-me-panel {
  display: grid;
  gap: 18px;
}

.about-me-panel blockquote {
  margin: 0;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}

.about-me-panel blockquote p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-highlights article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.highlight-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--gold);
  background: rgba(197, 155, 71, 0.12);
  font-weight: 900;
}

.highlight-copy {
  display: grid;
  gap: 7px;
}

.highlight-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.highlight-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.training-section {
  background: var(--white);
}

.training-layout {
  grid-template-columns: 0.8fr 1.2fr;
}

.training-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.training-list article {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.training-list h3 {
  font-size: 1.18rem;
  text-transform: uppercase;
}

.training-list p {
  color: var(--muted);
}

.method-section {
  background: #edf3fb;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.method-steps li {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.method-steps span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--blue);
  font-weight: 900;
}

.method-steps h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
}

.method-steps p {
  color: var(--muted);
}

.proof-section {
  background: var(--paper);
}

.proof-layout {
  grid-template-columns: 0.8fr 1.2fr;
}

.flyer-frame {
  aspect-ratio: 1.42;
  border: 10px solid var(--white);
}

.flyer-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.contact-section {
  padding: clamp(72px, 9vw, 118px) 0;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(6, 16, 31, 0.98), rgba(8, 29, 55, 0.94)),
    var(--ink);
}

.contact-layout {
  align-items: start;
}

.contact-copy > p {
  color: #cbd8e8;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-style: normal;
}

.contact-list a,
.contact-list p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list span {
  color: #90a7c3;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--white);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 36px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 211, 0.16);
}

.contact-form .button {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 26px 0;
  color: #cbd8e8;
  background: #030913;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(6, 16, 31, 0.3);
  font-weight: 900;
}

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

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
  }

  .hero-content {
    padding: 74px 0 76px;
  }

  .hero-facts,
  .trust-grid,
  .service-grid,
  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-layout,
  .about-me-layout,
  .training-layout,
  .proof-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading.narrow {
    max-width: 740px;
    margin-bottom: 36px;
  }

  .mission-frame {
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    gap: 14px;
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    background-size: 202px auto;
    background-position: -22px -20px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 38px);
  }

  .lang-button {
    min-width: 38px;
    min-height: 34px;
    font-size: 0.86rem;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(6, 16, 31, 0.92) 0%, rgba(6, 16, 31, 0.86) 62%, rgba(6, 16, 31, 0.64) 100%),
      url("assets/h-polyvalence-flyer.jpeg") center top / cover no-repeat;
  }

  .hero-content {
    padding: 56px 0 60px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .trust-grid,
  .service-grid,
  .about-highlights,
  .training-list,
  .method-steps,
  .founder-media {
    grid-template-columns: 1fr;
  }

  .hero-facts div,
  .trust-grid > div,
  .service-card,
  .training-list article,
  .about-highlights article,
  .method-steps li {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .service-index,
  .method-steps span {
    margin-bottom: 26px;
  }

  .service-card h3 {
    min-height: 0;
  }

  .portrait-frame,
  .mission-frame {
    aspect-ratio: 0.84;
  }

  .flyer-frame {
    aspect-ratio: 0.78;
  }

  .footer-content {
    display: grid;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}
