:root {
  color-scheme: light;
  --bg: #eef4f8;
  --card: #ffffff;
  --text: #16212f;
  --muted: #4e5d70;
  --border: #d8e3ec;
  --primary: #0c6a84;
  --primary-strong: #095065;
  --accent: #f1a84b;
  --shadow: 0 18px 50px rgba(10, 36, 64, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(12, 106, 132, 0.2) 0, transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(241, 168, 75, 0.22) 0, transparent 30%),
    linear-gradient(165deg, #f4f9fc 0%, var(--bg) 55%, #e8f0f6 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 24px;
}

.topbar {
  width: min(980px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  position: relative;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(280px, 35vw, 460px);
  height: auto;
  display: block;
  filter: contrast(1.08) saturate(1.06) drop-shadow(0 2px 3px rgba(8, 43, 63, 0.2));
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 64, 0.08);
  position: absolute;
  right: 0;
  top: -2px;
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--primary);
}

.container {
  width: min(980px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border-radius: 18px;
  background:
    linear-gradient(122deg, rgba(12, 106, 132, 0.08) 0%, rgba(12, 106, 132, 0.02) 60%),
    #ffffff;
  border: 1px solid #d9e8f1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr minmax(250px, 360px);
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(241, 168, 75, 0.2) 0%, transparent 72%);
}

.hero-name {
  margin: 0 0 10px;
  color: #0f3042;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.3rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.hero-media {
  margin: 0;
  border-radius: 16px;
  border: 1px solid #cfe0eb;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(10, 36, 64, 0.2);
  background: #e8f1f7;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 3.7vw, 3rem);
  line-height: 1.08;
}

.hero-signature {
  margin: 0 0 10px;
  color: #24465f;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-keywords {
  margin: 0 0 10px;
  color: #0d5a72;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lead,
p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 0 0 20px;
  max-width: 62ch;
  position: relative;
  z-index: 1;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.cta:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.cta.secondary {
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid #b9d0dc;
}

.hero-contact {
  margin: 0;
  font-size: 0.95rem;
}

.hero-contact a,
.contact-card a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.section {
  margin-top: clamp(28px, 4vw, 42px);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

p {
  margin: 0 0 12px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 18px;
  align-items: start;
}

.portrait-frame {
  margin: 0;
  border: 1px solid #dbe9f2;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fcff;
  box-shadow: 0 10px 30px rgba(10, 36, 64, 0.12);
}

.portrait-frame.missing {
  min-height: 270px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.photo-credit {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 0.75rem;
  color: #5f7488;
  line-height: 1.35;
}


.photo-credit a {
  color: #365c79;
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 92, 121, 0.28);
}

.photo-credit a:hover {
  border-bottom-color: rgba(54, 92, 121, 0.56);
}

.portrait-frame.missing::before {
  content: "Photo d'Olivier Brunel";
  color: #2f4d63;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portrait-photo {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 56% 44%;
}

.portrait-frame figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #3f566d;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy {
  padding: 0 12px;
}

.about-copy p {
  margin: 0 0 12px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 16px;
  background: #f9fcff;
  border: 1px solid #dbe9f3;
  border-radius: 14px;
}

.expertise-grid .card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
}

.service-icon {
  width: auto;
  height: 44px;
  max-width: 52px;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.expertise-grid .card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.expertise-grid .card p {
  grid-column: 1 / -1;
  margin: 0;
}

.values-kicker {
  margin: 0 0 16px;
  color: #46647c;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.values-manifesto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.value-block {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid #cfe0eb;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 253, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(8, 41, 66, 0.08);
}

.value-block h3 {
  margin: 0 0 6px;
  color: #103249;
  font-size: 1.3rem;
}

.value-block p {
  margin: 0;
  color: #4b6276;
  line-height: 1.55;
}

.inspiration-band {
  margin: 0;
  border: 1px solid #d2e3ef;
  border-radius: 14px;
  overflow: hidden;
  background: #edf5fa;
  box-shadow: 0 10px 26px rgba(9, 42, 66, 0.12);
}

#values .inspiration-band {
  margin: 0 0 14px;
}

.inspiration-photo {
  width: 100%;
  max-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.inspiration-band figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  color: #35536b;
  font-size: 0.9rem;
  font-style: italic;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 250, 255, 0.95) 100%);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.trust-item {
  margin: 0;
  padding: 6px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 0 1 230px;
}

.trust-logo {
  width: auto;
  max-width: 240px;
  max-height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  opacity: 0.95;
}

.trust-item:nth-child(1) .trust-logo {
  max-width: 300px;
  max-height: 100px;
}

.trust-item:nth-child(2) .trust-logo {
  max-width: 270px;
  max-height: 76px;
}

.trust-item:nth-child(3) .trust-logo {
  max-width: 220px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  color: #29465f;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c5d9e7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2em;
  margin: 2px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #1f7a42;
}

.form-status.is-error {
  color: #9f2f2f;
}

.contact-card {
  align-self: start;
  border: 1px solid #dbe9f2;
  border-radius: 12px;
  padding: 14px;
  background: #f8fcff;
}

.contact-name {
  margin: 0 0 10px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.16rem;
  color: #0a3447;
}

.contact-brand-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 22px auto 0;
  filter: contrast(1.04) saturate(1.03);
}

.site-footer {
  width: min(980px, 100%);
  margin-top: 14px;
  padding: 10px 4px 4px;
  text-align: center;
  color: #5f7182;
}

.legal-page .section {
  margin-top: 16px;
}

.legal-page h2 {
  margin: 0 0 6px;
}

.legal-page p {
  margin: 0 0 4px;
  line-height: 1.35;
}

.footer-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.footer-links a {
  color: #2f5f7e;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 95, 126, 0.28);
}

.footer-links a:hover {
  border-bottom-color: rgba(47, 95, 126, 0.62);
}

.footer-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
}

@media (max-width: 840px) {
  .hero-grid,
  .about-layout,
  .expertise-grid,
  .values-manifesto,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    gap: 10px 16px;
  }

  .trust-item {
    flex-basis: 45%;
  }

  .trust-item:nth-child(2n),
  .trust-item:nth-child(3n) {
    margin-top: 0;
  }

  .hero-media {
    max-width: 430px;
  }

  .topbar,
  .container {
    width: min(760px, 100%);
  }

  .brand-logo {
    width: clamp(210px, 48vw, 340px);
  }

  .topbar {
    justify-content: center;
  }

  .language-switch {
    position: absolute;
    right: 0;
    top: -3px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section,
  .topbar {
    animation: rise 560ms ease both;
  }

  .section:nth-of-type(2) {
    animation-delay: 90ms;
  }

  .section:nth-of-type(3) {
    animation-delay: 160ms;
  }

  .section:nth-of-type(4) {
    animation-delay: 220ms;
  }

  .section:nth-of-type(5) {
    animation-delay: 280ms;
  }

  .section:nth-of-type(6) {
    animation-delay: 340ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
