/* Hero Section */
.hero-tous-animaux {
    background: linear-gradient(135deg, rgba(60, 175, 116, 0.95) 0%, rgba(143, 230, 162, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/><path fill="%23e0e0e0" d="M0 400 Q300 350 600 400 T1200 400 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.hero-tous-animaux h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-tous-animaux p {
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Statistiques */
.stats-animaux {
    padding: 3rem 2rem;
    background: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #3caf74;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* Filtres */
.filters-section {
    padding: 2rem;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #3caf74;
    color: #3caf74;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3caf74 0%, #8fe6a2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(60, 175, 116, 0.3);
}

/* Barre de recherche */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: #3caf74;
    box-shadow: 0 0 0 3px rgba(60, 175, 116, 0.1);
}

.search-bar button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3caf74 0%, #8fe6a2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(60, 175, 116, 0.3);
}

/* Section Animaux */
.animaux-section {
    padding: 3rem 2rem;
    background: white;
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1em;
    color: #666;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3caf74;
}

.category-icon {
    font-size: 1.5em;
    background: linear-gradient(135deg, #3caf74 0%, #8fe6a2 100%);
    padding: 0.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.no-animals {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-animals p {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-tous-animaux h1 {
        font-size: 2em;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
    }

    .stat-number {
        font-size: 2em;
    }
}

/* Modal - Layout horizontal */
.animal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.animal-modal.show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10000;
    display: grid;
    grid-template-columns: 50% 50%; /* 50% image, 50% infos */
}

/* Bouton fermer */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* IMAGE À GAUCHE - Toute la hauteur */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.modal-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Boutons de navigation */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 10;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 10px;
}

.modal-nav-next {
    right: 10px;
}

/* Compteur d'images */
.modal-image-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 10;
}

/* Indicateurs (dots) */
.modal-image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-image-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.modal-image-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.modal-image-dots .dot.active {
    background: white;
    transform: scale(1.3);
}

/* INFOS À DROITE */
.modal-info {
    padding: 2.5rem;
    overflow-y: auto;
    background: white;
}

.modal-title {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-details {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 1rem;
}

.animal-badge-modal {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
}

.modal-section {
    margin-top: 1.5rem;
}

.modal-section h3 {
    font-size: 1.3em;
    margin-bottom: 0.8rem;
    color: #3caf74;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description {
    color: #555;
    line-height: 1.6;
    font-size: 1.05em;
}

.animal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #e8f5e9;
    color: #3caf74;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-adopt {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, #3caf74 0%, #8fe6a2 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
}

.btn-adopt:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 175, 116, 0.4);
}

.btn-contact {
    flex: 1;
    padding: 1rem;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #3caf74;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

/* Responsive - Sur mobile, revenir en vertical */
@media (max-width: 968px) {
    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 50% 50%;
        width: 95%;
        height: 95vh;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        grid-template-rows: 40% 60%;
    }

    .modal-nav-btn {
        padding: 0.8rem 1rem;
        font-size: 1.5em;
    }

    .modal-image-counter {
        font-size: 0.8em;
        padding: 0.4rem 0.8rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}