:root {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #eaf0f8;
  --text: #16263c;
  --text-muted: #516377;
  --color-primary: #0f4f8f;
  --color-primary-strong: #0b3d71;
  --color-accent: #d38a2b;
  --color-line: #d8e2ee;
  --success: #1a7f5a;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-1: 0 8px 30px rgba(20, 50, 88, 0.12);
  --shadow-2: 0 16px 48px rgba(16, 40, 75, 0.16);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -8%, rgba(11, 61, 113, 0.22), rgba(11, 61, 113, 0) 45%),
    radial-gradient(circle at 96% 4%, rgba(211, 138, 43, 0.18), rgba(211, 138, 43, 0) 34%),
    var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

p {
  margin: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 99999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--space-8) 0;
}

.section-head {
  max-width: 820px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 2.7vw, 3rem);
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

.section-head p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.translate-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(3px);
}

.translate-container select {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--text);
}

#google_translate_element2 {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 39, 66, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-label {
  font-size: 0.95rem;
  color: #dce8f4;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-toggle:focus-visible,
.primary-links a:focus-visible,
.cta-link:focus-visible,
.primary-cta:focus-visible,
.secondary-cta:focus-visible,
.contact-card a:focus-visible,
.form-shell button:focus-visible,
.form-shell input:focus-visible,
.form-shell select:focus-visible,
.form-shell textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.primary-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.primary-links a {
  color: #f4f8fc;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 10px 16px;
}

.hero {
  padding: var(--space-8) 0;
  position: relative;
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  min-height: 520px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(8, 35, 65, 0.86) 0%, rgba(15, 79, 143, 0.6) 56%, rgba(15, 79, 143, 0.16) 100%),
    url("wa_images/sans titre(28).png?v=1hnaq6m") center/cover no-repeat;
}

.hero-copy {
  max-width: 580px;
  margin-left: clamp(22px, 7vw, 86px);
  color: #fff;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffdfb5;
  font-size: 0.84rem;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #e7f1fc;
  margin-bottom: 28px;
}

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

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-cta {
  background: var(--color-accent);
  color: #1c1c1c;
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.primary-cta:hover,
.secondary-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.intro-card {
  background: var(--bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 28px 24px;
  text-align: center;
}

.intro-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.intro-card h3 {
  font-size: 1.45rem;
  color: var(--color-primary-strong);
  margin-bottom: 10px;
}

.intro-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.arrow-link img {
  width: 14px;
  height: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.about-content h2 {
  color: var(--color-primary-strong);
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  margin-bottom: var(--space-4);
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
  text-align: justify;
}

.services {
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(6, 41, 80, 0.92), rgba(13, 89, 150, 0.88)),
    url("wa_images/sans titre(29)_1.png?v=1hnaqcu") center/cover no-repeat;
  z-index: -1;
}

.services .section-head h2 {
  color: #f5f8ff;
}

.services .section-head p {
  color: #d4e5fb;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  backdrop-filter: blur(2px);
}

.service-card img {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.service-card p {
  color: #e8f2ff;
  font-size: 0.95rem;
}

.services-cta-wrap {
  margin-top: var(--space-5);
  text-align: center;
}

.services-cta-wrap .primary-cta {
  background: #fff;
  color: var(--color-primary-strong);
}

.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 28px;
}

.contact-card h2 {
  color: var(--color-primary-strong);
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-muted);
}

.contact-line img {
  width: 24px;
  height: 24px;
}

.form-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 26px;
}

.form-shell .form-horizontal {
  margin: 0;
}

.form-shell .form-group {
  margin-bottom: 12px;
}

.form-shell .form-control {
  width: 100%;
  border: 1px solid #c9d8e8;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.96rem;
  color: var(--text);
  background: #fff;
}

.form-shell textarea.form-control {
  min-height: 128px;
  resize: vertical;
}

.form-shell button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 26px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.contact-form--mobile {
  display: none;
}

.modern-hidden {
  display: none !important;
}

.site-footer {
  margin-top: var(--space-6);
  background:
    linear-gradient(180deg, rgba(11, 44, 78, 0.05), rgba(11, 44, 78, 0.14)),
    #eaf2fb;
  padding: 28px 0 42px;
}

.footer-box {
  width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.footer-meta {
  text-align: left;
}

.footer-logo {
  margin: 0 0 8px;
  width: 32px;
  height: 32px;
}

.footer-language {
  margin-left: auto;
}

.translate-container--footer {
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #c5d4e7;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(23, 53, 84, 0.12);
}

.translate-container--footer select {
  min-height: 38px;
  border-color: #b9cbdf;
  font-weight: 700;
  background: #f8fbff;
}

.translate-container--footer select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .about-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-links {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(14, 39, 66, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px;
    gap: 10px;
  }

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

  .primary-links a {
    padding: 9px 6px;
  }

  .hero-card {
    min-height: 420px;
    background-position: 64% center;
  }

  .hero-copy {
    margin: 24px;
  }

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

@media (max-width: 767px) {
  :root {
    --space-8: 76px;
    --space-7: 58px;
  }

  .footer-box {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-meta {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 8px;
  }

  .footer-language {
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand-label {
    display: none;
  }

  .hero-card {
    border-radius: 20px;
    min-height: 370px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }

  .contact-form--desktop {
    display: none;
  }

  .contact-form--mobile {
    display: block;
  }
}
