/* Blue Cactus Venture — feuille de style commune */

:root {
  color-scheme: light;

  --navy: #121d4f;
  --navy-deep: #0c1436;
  --navy-soft: #2b3a72;
  --ink: #171a21;
  --muted: #5b6172;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --line: #e2e5ec;
  --line-strong: #cdd2de;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--navy-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- structure ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.section--alt {
  background-color: var(--bg-alt);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
  flex: none;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 20ch;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background-color: var(--navy);
  color: #fff;
  text-decoration: none;
}

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

/* ---------- en-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

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

.brand-text {
  display: block;
  color: var(--navy);
}

.brand-text b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1;
}

.brand-text i {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1;
  color: var(--navy-soft);
}

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

.nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.nav a.nav-cta {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background-color: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--navy-deep);
}

.btn--ghost {
  background-color: transparent;
  color: var(--navy);
}

.btn--ghost:hover {
  background-color: rgba(18, 29, 79, 0.06);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  padding-block: clamp(72px, 11vw, 140px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: min(420px, 45vw);
  aspect-ratio: 1;
  background: url("../img/favicon.svg") no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  max-width: 14ch;
}

.hero .lede {
  max-width: 54ch;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- texte long ---------- */

.prose {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- principes ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 48px;
  background-color: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle {
  background-color: var(--bg);
  padding: 32px;
}

.section--alt .principle {
  background-color: var(--bg-alt);
}

.principle span {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--line-strong);
  margin-bottom: 14px;
}

.principle h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.principle p {
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- fiche société ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 48px;
  margin: 40px 0 0;
  max-width: 900px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
  flex: none;
}

.facts dd {
  margin: 0;
  text-align: right;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.facts-note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact {
  background-color: var(--navy);
  color: #fff;
  border-top: none;
}

.contact h2,
.contact .eyebrow {
  color: #fff;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.contact .prose {
  color: rgba(255, 255, 255, 0.75);
}

.contact-mail {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 32px);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  border-bottom-color: #fff;
}

.contact :focus-visible {
  outline-color: #fff;
}

/* ---------- pied de page ---------- */

.site-footer {
  background-color: var(--bg);
  padding-block: 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer img {
  height: 84px;
  width: auto;
  display: block;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.site-footer a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.site-footer .legal-line {
  width: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- pages secondaires ---------- */

.page {
  padding-block: clamp(56px, 8vw, 88px);
}

.page h1 {
  font-size: clamp(30px, 4.6vw, 44px);
}

.page-body {
  max-width: 74ch;
  margin-top: 32px;
}

.page-body h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}

.page-body p {
  color: var(--muted);
}

.page-body strong {
  color: var(--ink);
  font-weight: 600;
}

.page-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 15px;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page .wrap {
  max-width: 560px;
}

.error-code {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}
