:root {
  --color-bg: #f3f1f1;
  --color-primary: #171e2c;
  --color-secondary: #8a2024;
  --color-accent: #8995ad;
  --color-soft: #a97c74;
  --color-white: #fff;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Titres et texte */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Container et layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header et navigation */
.header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(23, 30, 44, 0.04);
  /* box-shadow: 0 2px 8px var(--color-secondary); */
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  width: auto;
  border-radius: 0.5rem;
}

.nav {
  display: flex;
  /* gap: 1.5rem; */
  gap: 10px;
  align-items: center;
}



.nav a {
  color: var(--color-primary);
  text-decoration: none;
  /* font-weight: 600; */
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  /* font-size: 0.95rem; */
  font-size: 0.8rem;
}

.nav a.active,
.nav a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-dont {
  background-color: var(--color-secondary);
  color: white;
  font-weight: bold;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.slide-image {
  opacity: 0.5;
  width: 100%;
}

.menu-toggle:hover {
  background: var(--color-bg);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-soft) 100%);
  color: var(--color-white);
  text-align: center;
  /* padding: 4rem 0 3rem 0; */
  padding-bottom: 10px;
  border-radius: 0 0 2rem 2rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.slogan {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.mission {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Boutons */
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(138, 32, 36, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 30, 44, 0.3);
}

/* Highlights section */
.highlights {
  background: var(--color-white);
  margin-top: -2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(23, 30, 44, 0.08);
  padding: 2.5rem 0 2rem 0;
  margin-bottom: 2rem;
}

.highlights-flex {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.highlight {
  /* flex: 1 1 280px; */
  width: 300px;
  max-width: 100%;
  background: var(--color-bg);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(23, 30, 44, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(23, 30, 44, 0.12);
}

.highlight h2 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.highlight p {
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 0;
}

.highlight img {
  width: 100%;
  max-width: 100%;
}

/* Formulaires */
.don-form,
.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(23, 30, 44, 0.08);
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-bg);
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(137, 149, 173, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Articles et contenu */
article {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(23, 30, 44, 0.06);
}

article h2 {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  margin-top: 3rem;
  border-radius: 2rem 2rem 0 0;
}

footer {
  background: linear-gradient(90deg, #800000 0%, #a83232 100%);
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 60px;
  font-size: 1em;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.footer-logo-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo {
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.10);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffe0e0;
}

.footer-contact {
  min-width: 180px;
}

.footer-social {
  min-width: 140px;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-icons a {
  font-size: 1.6em;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.social-icons a:hover {
  background: #fff;
  color: #800000;
  transform: scale(1.12);
}

.footer-bottom {
  text-align: center;
  padding: 18px 0 10px 0;
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  font-size: 0.98em;
  margin-top: 30px;
}

/* Images et sections visuelles */
.section-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(23, 30, 44, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(23, 30, 44, 0.15);
}

.hero-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  object-fit: cover;
  border-radius: 1.5rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(23, 30, 44, 0.15);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.div-desck {
  display: flex;
  gap: 25px;
  align-items: center;
  max-width: 100%;

  box-sizing: border-box;
  font-size: 0.9rem;
}

.equipe-container {
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.membre {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  width: 200px;
  max-width: 200px;
  text-align: center;

}

.photo-membre {
  width: 100px;
  max-width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-secondary);
}

.photo-membre img {
  width: 100%;
  max-width: 100%;

}

.about-image {
  /* width: 100%; */
  max-width: 600px;
  height: 250px;
  object-fit: cover;
  border-radius: 1rem;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 16px rgba(23, 30, 44, 0.1);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(23, 30, 44, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(23, 30, 44, 0.12);
}

.image-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

.image-card h3 {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.image-card p {
  font-size: 0.9rem;
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 0;
}

.partner-logo {
  display: block;
  margin: 0 auto 1rem auto;
  height: 100px;
  width: auto;
  max-width: 120px;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.7rem;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(23, 30, 44, 0.07);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .highlights-flex {
    flex-direction: column;
    gap: 1.2rem;
  }

  .div-desck {
    flex-wrap: wrap;
  }

  .header-flex {
    flex-direction: row;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-white);
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    box-shadow: 0 4px 16px rgba(23, 30, 44, 0.12);
    border-radius: 1rem;
    padding: 1rem 0.5rem;
    display: none;
    z-index: 100;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: var(--color-secondary);
  }

  .header-flex {
    position: relative;
  }

  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem 0;
  }

  .logo {
    height: 44px;
  }

  .footer {
    font-size: 0.95rem;
  }

  .don-form,
  .contact-form {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .partner-logo {
    height: 80px;
    max-width: 80px;
    padding: 0.3rem 0.5rem;
  }

  .partners-grid {
    gap: 2rem;
  }
}

/* Responsive pour les images */
@media (max-width: 768px) {
  .section-image {
    height: 150px;
  }

  .hero-image {
    height: 200px;
  }

  .about-image {
    height: 180px;
  }

  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}