:root {
  --brand: #026685;
  --brand-dark: #014c63;
  --brand-soft: #e9f4f7;
  --ink: #172127;
  --muted: #5d6a70;
  --line: #dbe3e6;
  --paper: #ffffff;
  --surface: #f7f9fa;
  --max: 1080px;
}

/* =========================
   BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.60;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

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

/* =========================
   EN-TÊTE
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 118px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

nav a:hover {
  color: var(--brand);
}

.lang {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: var(--brand);
}

/* =========================
   ACCUEIL
   ========================= */

.hero {
  padding: 68px 0 58px;
  background:
    linear-gradient(
      180deg,
      var(--brand-soft) 0%,
      rgba(233, 244, 247, 0) 100%
    );
}

.hero-grid {
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 0 0 20px;
  max-width: 930px;
  font-size: clamp(1.50rem, 2.00vw, 1.90rem);
  line-height: 1.20;
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 1.85vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.30;
}

.lead {
  max-width: 830px;
  margin: 0;
  color: #314047;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.70;
}

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

.button {
  display: inline-block;
  padding: 10px 17px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* =========================
   SECTIONS
   ========================= */

section {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--muted);
}

.alt {
  background: var(--surface);
}

/* =========================
   CARTES D'EXPERTISE
   ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card img,
.card svg {
  display: block;
  width: 100%;
  max-width: 255px;
  height: 165px;
  margin: 0 auto 18px;
  object-fit: contain;
}

/* =========================
   MISSIONS
   ========================= */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.clean-list li:last-child {
  border-bottom: 0;
}

/* =========================
   À PROPOS
   ========================= */

.about p {
  max-width: 850px;
  margin-top: 0;
  margin-bottom: 18px;
}

/* =========================
   CONTACT
   ========================= */

.contact-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 5px;
  background: var(--paper);
}

.contact-box p {
  margin: 0.35rem 0;
}

/* =========================
   MENTIONS LÉGALES
   ========================= */

.legal {
  font-size: 0.90rem;
  color: var(--muted);
}

.legal details {
  max-width: 850px;
}

.legal summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

/* =========================
   PIED DE PAGE
   ========================= */

footer {
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* =========================
   TABLETTES
   ========================= */

@media (max-width: 820px) {

  html {
    scroll-padding-top: 150px;
  }

  .nav-wrap {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 0 12px;
  }

  .brand img {
    width: 94px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 10px 14px;
  }

  nav a {
    font-size: 0.84rem;
  }

  .lang {
    padding-left: 14px;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  section {
    padding: 52px 0;
  }
}

/* =========================
   MOBILES
   ========================= */

@media (max-width: 520px) {

  html {
    scroll-padding-top: 145px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .nav-wrap {
    gap: 12px;
    padding: 12px 0 10px;
  }

  .brand img {
    width: 82px;
  }

  nav {
    gap: 7px 10px;
  }

  nav a {
    font-size: 0.77rem;
  }

  .lang {
    border-left: none;
    padding-left: 0;
    color: var(--brand);
  }

  .hero {
    padding: 38px 0 36px;
  }

  .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.38rem;
    line-height: 1.19;
    letter-spacing: -0.018em;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 1.32rem;
    margin-bottom: 18px;
  }

  h3 {
    font-size: 1.02rem;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .button {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  section {
    padding: 44px 0;
  }

  .card {
    padding: 19px;
  }

  .contact-box {
    padding: 22px;
  }

  footer {
    padding: 22px 0 28px;
  }
}


/* =========================
   FORMULAIRE DE CONTACT
   ========================= */

.contact-form {
  max-width: 760px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}


.section-title {
  margin: 0 0 20px;
  color: var(--brand);
  font-size: clamp(1.35rem, 1.85vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 700;
}

@media (max-width: 520px) {
  .section-title {
    font-size: 1.32rem;
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .section-title {
    color: var(--brand);
    font-size: 1.30rem;
    margin-bottom: 16px;
  }
}
