/* =========================
   RESET & BASE
========================= */


/* wrapper global si besoin */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f2f2f2;
  color: #1f2d3d;
  line-height: 1.6;
}

.section-title{
  text-align:center;
  margin: 30px;
}
a {
  text-decoration: none;
  color: inherit;
}

.frame {
  background: #ffffff;
  border: 2px solid #7a7a7a;
  border-radius: 20px;
  padding: 60px 60px 80px;
  margin: 40px auto;
}


/* =========================
   HEADER
========================= */

header {
  background: #ffffff;
  border-bottom: 3px solid #dcdcdc;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 18px;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav li a {
  font-size: 14px;
  color: #333;
}

.contact-btn {
  background: #5a9b9e;
  color: white;
  padding: 10px 22px;
  border-radius: 16px;
  border: 2px solid #5a9b9e;
  font-size: 14px;
  transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
  background: #4a8a8d;
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
}

.hero-top{
    margin-top: 10px;
    
}
.hero-centered {
  min-height: 420px;       /* PAS 70vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.hero-centered h1 {
  margin: 0;
}

.hero-centered p {
  max-width: 720px;
  margin: 0 auto;
  color: #555;
}


/* =========================
   CARDS
========================= */

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.card {
  background: #fff;
  border: 2px solid #9a9a9a;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-body {
  text-align: center;
}

.card-icon {
  background: #f0f0f0;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 13px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #555;
}

/* =========================
   CARD FOOTER
========================= */

.card-footer {
  margin-top: auto;
  text-align: center;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 26px;
  background-color: #5a9b9e;
  color: #fff;
  font-size: 14px;
  border-radius: 16px;
  border: 2px solid #5a9b9e;
  transition: background 0.3s, transform 0.2s;
}

.card-btn:hover {
  background-color: #4a8a8d;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .nav.container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .nav-brand {
    margin-bottom: 1rem;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-links li a {
    font-size: 1rem;
    text-align: center;
    white-space: nowrap; /* empêche la casse moche */
  }

  .nav-cta {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* ===== Burger ===== */

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background-color: #1f2a24;
  transition: all 0.3s ease;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {

  .nav.container {
    justify-content: space-between;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  /* Show menu */
  .nav-toggle:checked + .nav-burger + .nav-links {
    transform: translateY(0);
  }

  .nav-links li a {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  /* Contact en mobile */
  .nav-mobile-cta a {
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid #2f6b4f;
    border-radius: 4px;
    color: #2f6b4f;
    text-decoration: none;
  }
}

/* ===== Desktop ===== */

@media (min-width: 901px) {

  .nav-burger {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    transform: none;
  }

  .nav-mobile-cta {
    display: none;
  }
}

/* ===== Burger ===== */

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background-color: #1f2a24;
  transition: all 0.3s ease;
}

/* ===== Mobile ===== */

@media (max-width: 900px) {

  .nav.container {
    justify-content: space-between;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  /* Show menu */
  .nav-toggle:checked + .nav-burger + .nav-links {
    transform: translateY(0);
  }

  .nav-links li a {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  /* Contact en mobile */
  .nav-mobile-cta a {
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid #2f6b4f;
    border-radius: 4px;
    color: #2f6b4f;
    text-decoration: none;
  }
}

/* ===== Desktop ===== */

@media (min-width: 768px) {

  .nav-burger {
    display: none;
  }
  
  .hero-image {
    max-width: 140px;
    width: 60%;
  }

  .nav-links {
    display: flex;
    position: static;
    transform: none;
  }

  .nav-mobile-cta {
    display: none;
  }
}

