/* Hero Section Adoptés */
.hero-adoptes {
    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: 6rem 2rem 4rem;
    text-align: center;
}

.hero-adoptes h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-adoptes p {
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.1em !important;
    opacity: 0.9;
}

/* Statistiques */
.stats-adoptes {
    padding: 4rem 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: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #3caf74;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-size: 1.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;
}

.filter-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #3caf74;
    color: #3caf74;
    border-radius: 30px;
    font-size: 1.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);
}

/* Section Adoptés */
.adoptes-section {
    padding: 4rem 2rem;
    background: white;
}

.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;
}

/* Badge Adopté */
.badge-adopte {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Message aucun animal */
.no-animals {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-animals p {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px dashed #ddd;
    font-size: 1.1em;
}

/* CTA Adoptés */
.cta-adoptes {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #3caf74 0%, #8fe6a2 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: #3caf74;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Animation d'apparition */
.animal-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animal-card:nth-child(1) { animation-delay: 0.1s; }
.animal-card:nth-child(2) { animation-delay: 0.2s; }
.animal-card:nth-child(3) { animation-delay: 0.3s; }
.animal-card:nth-child(4) { animation-delay: 0.4s; }
.animal-card:nth-child(5) { animation-delay: 0.5s; }
.animal-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-adoptes h1 {
        font-size: 2em;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .category-title {
        font-size: 1.5em;
    }

    .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;
    }
}