/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content{
    margin-top: 86px;
}

/* Header fixe - Style corrigé selon le design original */
.header {
    background: white !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #521B92;
    text-decoration: none;
}

/* Logo image sizing */
.logo img {
    height: auto;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 56px;
        width: auto;
    }

    .header-content {
        padding: 0.25rem 0;
    }
}

/* Ajustements desktop */
@media (min-width: 769px) {
    .header-content {
        padding: 0.5rem 0;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #521B92;
}

.header-donate {
    background: #C00001;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.header-donate:hover {
    background: #a00001;
}

/* Menu hamburger (masqué par défaut) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #521B92;
    cursor: pointer;
}

/* Décalage supplémentaire quand la barre d'admin WordPress est présente */
.admin-bar .header {
    top: 32px;
}

/* Responsive pour la barre d'admin sur mobile */
@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }

    .admin-bar .main-content {
        margin-top: 65px; /* 80px + 46px de la barre d'admin mobile */
    }
}

/* Section Hero */
.hero {
    background: linear-gradient(rgba(82, 27, 146, 0.8), rgba(82, 27, 146, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f4f8" width="1200" height="600"/></svg>');
    background-size: cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #FEC000;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #e6ac00;
}

.btn-secondary {
    background: #F79645;
    color: white;
}

.btn-secondary:hover {
    background: #e6865e;
}

/* Section À propos */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about h2 {
    color: #521B92;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Statistiques */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #521B92;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Animaux - Styles corrigés selon le design original */
.animals {
    padding: 4rem 0;
    background: #f8f9fa;
}

.animals h2 {
    text-align: center;
    color: #521B92;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.animal-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.animal-card:hover {
    transform: translateY(-5px);
}

.animal-image {
    height: 200px;
    background: linear-gradient(45deg, #FEC000, #F79645);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Badge Réservé */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}
.badge-reserve {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(192, 0, 1, 0.9);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.animal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.animal-info {
    padding: 1.5rem;
}

.animal-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #521B92;
    margin-bottom: 0.5rem;
}

.animal-name a {
    color: inherit;
    text-decoration: none;
}

.animal-name a:hover {
    color: #F79645;
}

.animal-details {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.animal-description {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.view-all-animals {
    text-align: center;
}

/* Section Don */
.donation {
    background: #F79645;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.donation h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.donation p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: #F79645;
}

.btn-white:hover {
    background: #f8f9fa;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #FEC000;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #FEC000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Styles WordPress spécifiques */

/* Articles et pages */
.page-header {
    text-align: center;
    padding: 2rem 0;
    background: white;
    margin-bottom: 2rem;
}

.page-title {
    color: #521B92;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-description {
    color: #666;
    font-size: 1.1rem;
}

/* Articles */

.entry-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #FEC000;
    padding-bottom: 1rem;
}

.entry-title {
    color: #521B92;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: #F79645;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: #F79645;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #521B92;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #521B92;
    margin: 2rem 0 1rem 0;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content blockquote {
    border-left: 4px solid #FEC000;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Navigation des articles */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #521B92;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-2px);
}

/* Commentaires */
.comments-area {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.comments-title {
    color: #521B92;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.comment-author {
    font-weight: bold;
    color: #521B92;
}

.comment-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-left: 1rem;
}

/* Formulaire de commentaire */
.comment-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #FEC000;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #521B92;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: #FEC000;
    outline: none;
}

.comment-form input[type="submit"] {
    background: #FEC000;
    color: #333;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: #e6ac00;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: #521B92;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FEC000;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #521B92;
}

/* Classes utilitaires WordPress */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #521B92;
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: #FEC000;
    border-color: #FEC000;
    color: #333;
}

/* 404 et recherche */
.error-404 .page-content,
.no-results .page-content {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

.error-404 .page-title,
.no-results .page-title {
    color: #521B92;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Recherche */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 5px;
}

.search-submit {
    background: #FEC000;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.search-submit:hover {
    background: #e6ac00;
}
