:root {
  --primary: #0b5d3b;
  --primary-dark: #120A6E;
  --accent: #f4b400;
  --text: #17221d;
  --muted: #607066;
  --light: #f5f8f6;
  --white: #ffffff;
  --border: #e1e9e3;
  --shadow: 0 12px 35px rgba(18, 57, 36, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Accueil */

.hero {
  min-height: 560px;
  color: var(--white);
  background:
   /* linear-gradient(135deg, rgba(4, 49, 30, 0.01), rgba(11, 93, 59, 0.01)),*/
    url("pictures/hello.jpg") center / cover no-repeat;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo {
  width: 86px;
  max-height: 62px;
  object-fit: contain;
}

.contact-link {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  font-weight: 700;
  transition: 0.25s ease;
}

.contact-link:hover {
  color: var(--primary-dark);
  background: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 92px 0 100px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
  display: inline-block;
  padding: 14px 23px;
  color: #6E0A19;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

/* Sections */

.section {
  padding: 82px 0;
}

.partners-section {
  background: var(--light);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.section-heading p:last-child {
  color: var(--muted);
}

/* Cartes */

.cards-grid {
  display: grid;
  gap: 22px;
}

.applications-grid {
  grid-template-columns: repeat(3, 1fr);
}

.partners-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(18, 57, 36, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.image-box {
  display: grid;
  height: 190px;
  padding: 25px;
  place-items: center;
  background: #f8fbf9;
}

.image-box img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.card-content {
  padding: 23px;
}

.card-content h3,
.partner-card h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.card-content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.card-content span {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.partner-card {
  display: flex;
  min-height: 210px;
  padding: 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.partner-card img {
  width: 120px;
  height: 105px;
  margin-bottom: 18px;
  object-fit: contain;
}

.partner-card h3 {
  margin: 0;
}

/* Pied de page */

footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--primary-dark);
}

.footer-content {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  width: 75px;
  max-height: 55px;
  object-fit: contain;
}

footer p + p {
  margin-top: 5px;
}

footer a {
  color: var(--white);
  font-weight: 700;
}

footer span {
  margin: 0 7px;
}

/* Tablette */

@media (max-width: 850px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 560px) {
  .container {
    width: min(100% - 30px, 1120px);
  }

  .hero {
    min-height: auto;
  }

  .navbar {
    padding: 18px 0;
  }

  .logo {
    width: 68px;
  }

  .hero-content {
    padding: 65px 0 75px;
  }

  .hero h1 br {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .applications-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}