@import url('https://fonts.googleapis.com/css2?family=Jost:wght@700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --teal: #6192a5;
  --teal-deep: #00585b;
  --pink: #d8606e;
  --pink-bg: rgba(216, 96, 110, 0.1);
  --blue-bg: #e6edf0;
  --navy: #154357;
  --mint: #b7d0cf;
  --text-body: #565656;

  /* marge des blocs, alignée sur le texte du haut : 100px de chaque côté */
  --pad-x: 100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  padding: 0 var(--pad-x);
}

/* ---------- HEADER ---------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
}
.site-header .logo {
  width: 260px;
  height: auto;
  margin-bottom: 15px;
}

/* ---------- HERO : sort du .wrap, l'image reste collée au bord droit de l'écran ---------- */
.hero-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-top: 56px;
  padding-left: var(--pad-x);
  padding-right: 0;
}

.hero-text {
  flex: 1 1 68.6%; /* +5% supplémentaires */
  min-width: 0;
  max-width: 728px;
}

.hero-text h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 32px;
  line-height: 1.22;
  margin: 0 0 11px;
}

.hero-text .tagline {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 20px;
  margin: 0 0 26px;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: left;
}
.hero-text p:last-child { margin-bottom: 0; }
.hero-text strong { font-weight: 700; color: var(--text-body); }

.hero-visual {
  flex: 1 1 42%;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 240px;
}
.hero-visual img {
  width: 75%; /* +25% par rapport à la taille précédente */
  height: auto;
}

/* ---------- CARDS ---------- */
.cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

.card {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.card--nus { background: var(--blue-bg); }
.card--bailleurs { background: var(--pink-bg); }

.badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}
.card--nus .badge { background: var(--teal); }
.card--bailleurs .badge { background: var(--pink); }

.card ul {
  max-width: 500px;
  margin: 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
}
.card li { margin-bottom: 20px; }
.card li:last-child { margin-bottom: 0; }
.card--nus ul, .card--nus li { color: var(--teal); }
.card--bailleurs ul, .card--bailleurs li { color: var(--pink); }

/* ---------- CONTACT + FOOTER : le bloc contact chevauche l'aplat du bas de moitié ---------- */
.contact {
  position: relative;
  z-index: 2;
  background: var(--navy);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 40px;
  margin-bottom: 0;
  text-align: center;
  transform: translateY(50%);
}
.contact-title {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin: 0 0 12px;
}
.contact-sub {
  font-weight: 400;
  font-size: 16px;
  color: var(--mint);
  margin: 0 0 12px;
}
.contact-line {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--mint);
  margin-top: 0;
  padding: 75px 24px 24px;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 10.5px;
  color: var(--teal-deep);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  :root {
    --pad-x: 60px;
  }
  .site-header { padding: 28px 24px 0; }
  .site-header .logo { width: 200px; }

  .hero-row {
    flex-direction: column;
    padding-top: 32px;
    padding-right: var(--pad-x);
    gap: 28px;
  }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: 25px; }
  .hero-text .tagline { font-size: 17px; }
  .hero-text p { text-align: left; }

  .hero-visual {
    width: 100%;
    max-width: 420px;
    align-self: center;
    justify-content: center;
  }

  .cards { flex-direction: column; }
  .card ul { max-width: 100%; }
}

@media (max-width: 480px) {
  :root {
    --pad-x: 45px;
  }
  .hero-text h1 { font-size: 22px; }
  .card { padding: 22px; }
}
