
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('images/sous bois.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

header {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    height: 60px;
    margin-right: 20px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #ddd;
}

.main-buttons {
    text-align: center;
    margin-top: 40px;
}

.category-block {
    display: inline-block;
    margin: 20px;
    text-align: center;
}

.category-block img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    border: 2px solid #ccc;
}

.category-block a {
    display: block;
    text-decoration: none;
    color: #fff;
    background-color: #5a8d3f;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.category-block a:hover {
    background-color: #476f31;
}


/* Styles ajoutés depuis les pages HTML */

        .header-title {
            text-align: center;
            margin-top: 40px;
            font-family: 'Georgia', serif;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
        }
        .header-subtitle {
            text-align: center;
            margin: 10px auto 40px auto;
            font-size: 1.2em;
            color: #f8f8f8;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
    

        body {
            background-image: url('images/sous bois.jpg');
            background-attachment: fixed;
            background-size: cover;
            color: white;
            font-family: Georgia, serif;
            padding: 20px;
            max-width: 900px;
            margin: auto;
        }
    


/* Lisibilité des encadrés */
.card, .contact-block, .chat-block {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #000 !important;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 1rem auto;
  width: 90%;
  max-width: 600px;
}

/* Bloc de contact centré */
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-block a {
  color: #000 !important;
  text-decoration: underline;
}



/* Rendre tous les <p> en noir dans males et femelles */
.card p, .chat-block p, .chatons-grid p {
  color: #000 !important;
}

/* Encarts pour chatons */
.chatons-titre {
  background-color: #fff;
  color: #000;
  padding: 1rem;
  text-align: center;
  font-size: 1.8rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
}

.chatons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.encart-chaton {
  background-color: #fff;
  color: #000;
  border-radius: 12px;
  padding: 1rem;
  flex: 1 1 350px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  text-align: center;
}

.encart-chaton img {
  width: 100%;
  border-radius: 10px;
  margin: 0.5rem 0;
}

.encart-chaton p {
  margin: 0.3rem 0;
  font-weight: normal;
  white-space: pre-line;
}

/* Bloc contact avec icônes */
.contact-block p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* Texte en noir sous les photos */
.card p, .card .description, .description {
  color: #000 !important;
}

.card .description, .card p {
  color: #000 !important;
  background-color: #fff !important;
  padding: 0.5rem;
  border-radius: 8px;
}


/* Correction : texte sous les photos des mâles et femelles */
img + p {
  color: #000 !important;
  background-color: #fff !important;
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-block;
}


/* Correction ciblée : texte noir uniquement dans <main> */
main p {
  color: #000 !important;
}
