:root {
  --navy: #061a4a;
  --navy-2: #0b2a6f;
  --gold: #d89400;
  --gold-2: #f0b22a;
  --ink: #18223a;
  --muted: #657089;
  --paper: #ffffff;
  --bg: #f5f7fb;
  --soft: #eef2f8;
  --line: #dfe6f1;
  --shadow: 0 18px 48px rgba(6, 26, 74, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

body[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 188px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--navy);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold);
}

.lang-switch,
.menu-btn {
  border: 0;
  cursor: pointer;
}

.lang-switch {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  place-items: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  padding: 82px 0 54px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.96) 0 48%, rgba(6,26,74,.95) 48.2% 100%),
    url("assets/fiche-kodobe-fr.png") center/cover;
}

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

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

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

.hero h1 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: .9;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tagline {
  width: fit-content;
  margin: 0 0 22px;
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 1.16rem;
  font-weight: 900;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: #303a52;
  font-size: 1.08rem;
}

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

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.btn.primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 20px rgba(216, 148, 0, .25);
}

.btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-visual {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: min(100%, 460px);
  margin: 0 auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metrics div {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  text-align: center;
}

.metrics strong {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.metrics span {
  color: var(--navy);
  font-size: .86rem;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.split,
.model-grid,
.values-grid,
.brochure-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 42px;
  align-items: start;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-intro {
  max-width: 640px;
}

h2 {
  margin: 12px 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.2;
}

.section-head p,
.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.about,
.contact {
  background: #fff;
}

.statement-list {
  display: grid;
  gap: 16px;
}

.statement,
.company-card,
.sector,
.contact-card,
.brochure-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 26, 74, .07);
}

.statement {
  padding: 24px;
}

.statement-mark {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
}

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

.company-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 388px;
  flex-direction: column;
  padding: 18px;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--gold));
}

.logo-box {
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.logo-box img {
  max-height: 112px;
  object-fit: contain;
}

.sector-label {
  margin: 0 0 10px;
  color: var(--accent, var(--gold));
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.company-card h3 {
  min-height: 58px;
  font-size: 1rem;
}

.company-card h3 span {
  color: var(--accent, var(--gold));
}

.company-card p:not(.sector-label) {
  margin: 0;
  color: #414b63;
  font-size: .92rem;
}

.company-card a {
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.company-card a:hover {
  color: var(--accent, var(--gold));
}

.green { --accent: #198414; }
.purple { --accent: #4c188f; }
.orange { --accent: #f46b12; }
.pink { --accent: #df0a5f; }
.gold { --accent: #d89400; }

.model {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

.sector-list {
  display: grid;
  gap: 12px;
}

.sector {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.sector span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.sector p {
  margin: 0;
  color: var(--muted);
}

.values {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(6,26,74,.98), rgba(11,42,111,.95)),
    url("assets/logo-kodobe-groupe.png") right 8% center/420px auto no-repeat;
}

.values h2,
.values h3 {
  color: #fff;
}

.values .section-intro p {
  color: #dce5ff;
}

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

.value {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}

.value strong {
  color: #fff;
  text-transform: uppercase;
}

.value span {
  color: #e7edff;
}

.brochure {
  background: #fff;
}

.brochure-grid {
  align-items: center;
}

.brochure-preview {
  display: block;
  overflow: hidden;
}

.brochure-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.contact-card {
  padding: 26px;
}

.contact-card p {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card p:first-child {
  padding-top: 0;
}

.contact-card p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card strong {
  color: var(--gold);
  text-transform: uppercase;
}

.contact-card a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.footer {
  padding: 26px 0;
  background: #031236;
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer img {
  width: 132px;
  padding: 5px;
  border-radius: var(--radius);
  background: #fff;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

body[dir="rtl"] .eyebrow::before {
  order: 2;
}

body[dir="rtl"] .hero {
  background:
    linear-gradient(245deg, rgba(255,255,255,.96) 0 48%, rgba(6,26,74,.95) 48.2% 100%),
    url("assets/fiche-kodobe-ar.png") center/cover;
}

body[dir="rtl"] .hero h1 {
  letter-spacing: 0;
}

body[dir="rtl"] .nav-links {
  direction: rtl;
}

body[dir="rtl"] .contact-card p {
  grid-template-columns: 1fr 136px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .menu-btn {
    display: grid;
  }

  .nav-links {
    position: absolute;
    inset: 78px 4vw auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .lang-switch {
    min-height: 44px;
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 46px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0 60%, rgba(6,26,74,.94) 60.2% 100%),
      url("assets/fiche-kodobe-fr.png") center/cover;
  }

  body[dir="rtl"] .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0 60%, rgba(6,26,74,.94) 60.2% 100%),
      url("assets/fiche-kodobe-ar.png") center/cover;
  }

  .hero-grid,
  .split,
  .model-grid,
  .values-grid,
  .brochure-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .section {
    padding: 62px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 158px;
  }

  .company-grid,
  .value-list {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .contact-card p,
  body[dir="rtl"] .contact-card p {
    grid-template-columns: 1fr;
  }

  .sector {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .brochure-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
