/* styles.css */

/* Reset et styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #faf7f0; /* beige clair */
  color: #4a4031; /* marron doux */
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Conteneur principal */
.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  flex-grow: 1;
}

/* Header */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 2px solid #d6cbb3;
  background-color: #f0ead6; /* sable clair */
}

.logo-left,
.logo-right {
  width: 80px;
  height: auto;
}

.site-title h1 {
  font-size: 2.2rem;
  color: #5b4a2e; /* marron moyen */
  font-weight: 700;
  margin-bottom: 5px;
}

.site-title p {
  font-style: italic;
  color: #7c7051; /* beige un peu foncé */
  font-size: 1rem;
}

/* Navigation */
nav {
  background-color: #7c7051; /* beige foncé */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #faf7f0; /* beige clair */
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #a39167; /* beige moyen */
  color: #3e3217; /* marron foncé */
}

/* Intro section */
.intro {
  text-align: center;
  margin-bottom: 30px;
}

.intro h2 {
  font-size: 2.4rem;
  color: #5b4a2e;
  margin-bottom: 15px;
  font-weight: 700;
}

.intro p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #7c7051;
}

/* Features section */
.features {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline-offset: 4px;
}

.feature-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #5b4a2e;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: #7c7051;
  font-size: 1rem;
}

/* Hover & focus effects on cards */
.feature-card:hover,
.feature-card:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  outline: none;
}

/* Call to action */
.cta {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #5b4a2e;
}

.cta a {
  color: #a39167;
  font-weight: 700;
  text-decoration: underline;
}

.cta a:hover,
.cta a:focus {
  color: #3e3217;
  outline: none;
}

/* Related links */
.related-links {
  max-width: 400px;
  margin: 0 auto 60px;
  background-color: #f4f0db;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
  color: #5b4a2e;
}

.related-links h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

.related-links ul {
  list-style: none;
  padding-left: 0;
}

.related-links li {
  cursor: pointer;
  padding: 10px 15px;
  margin: 7px 0;
  background-color: #d6cbb3;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
  text-align: center;
}

.related-links li:hover,
.related-links li:focus {
  background-color: #a39167;
  color: #3e3217;
  outline: none;
}

/* Footer */
footer {
  background-color: #5b4a2e;
  color: #f4f0db;
  padding: 25px 15px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
}

.footer-left p {
  font-weight: 600;
}

.footer-right p {
  margin-bottom: 8px;
}

.footer-right a {
  color: #f4f0db;
  text-decoration: none;
}

.footer-right a:hover,
.footer-right a:focus {
  text-decoration: underline;
  outline: none;
}

/* Responsive */
@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 8px 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
