:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --animation-timing: 0.3s;
}

/* Animations globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientBg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all var(--animation-timing);
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--animation-timing);
}

.logo:hover::after {
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 2rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--animation-timing);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('images/hero.jpg?v=1') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(44, 62, 80, 0.7), 
        rgba(231, 76, 60, 0.5)
    );
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin: 2rem 1rem 0;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button:first-child {
    margin-left: 0;
}

.cta-button:last-child {
    margin-right: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Dogs Section */
.dogs-section, .puppies-section {
    padding: 5rem 5%;
    background: var(--light-bg);
}

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

.dog-card, .puppy-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all var(--animation-timing);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dog-card::before, .puppy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all var(--animation-timing);
}

.dog-card:hover::before, .puppy-card:hover::before {
    border-color: var(--secondary-color);
    transform: scale(1.03);
}

.dog-card img, .puppy-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease-in-out;
}

.dog-card h3, .puppy-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.dog-card p, .puppy-info {
    padding: 0 1rem 1rem;
}

/* Puppies Section */
.portee-info {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.puppy-card {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all var(--animation-timing);
}

.puppy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.puppy-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease-in-out;
}

.puppy-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.puppy-info {
    padding: 1.5rem;
}

.puppy-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.puppy-details {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.puppy-price {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
    display: inline-block;
}

.puppy-characteristics {
    list-style: none;
    margin: 1rem 0;
}

.puppy-characteristics li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.5s forwards;
}

.puppy-characteristics i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.puppy-characteristics li:nth-child(1) { animation-delay: 0.1s; }
.puppy-characteristics li:nth-child(2) { animation-delay: 0.2s; }
.puppy-characteristics li:nth-child(3) { animation-delay: 0.3s; }

.contact-button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.contact-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.features {
    list-style: none;
    margin-top: 1rem;
}

.features li {
    margin-bottom: 0.5rem;
}

.features i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.4;
}

.social-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-contact h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

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

.social-links a {
    color: var(--white);
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all var(--animation-timing);
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.social-links a:hover {
    animation: pulse 1s infinite;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

.burger-menu.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .puppies-grid {
        grid-template-columns: 1fr;
    }
    
    .puppy-card {
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 1rem;
        max-width: 200px;
    }

    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.9rem;
        max-width: 150px;
    }
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.puppy-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.puppy-header h3 {
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 1rem;
}

.status-badge.available {
    background-color: #27ae60;
    color: white;
}

.status-badge.adopted {
    background-color: #e67e22;
    color: white;
}

.adopted {
    position: relative;
}

.adopted img {
    opacity: 0.7;
}

/* Blog Section */
.blog-section {
    padding: 5rem 5%;
    background: var(--white);
}

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

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.modal-body {
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-wrap;
}

.modal-image {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 60vh;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-image {
        height: 200px;
    }
}

/* Partners Section */
.partners-section {
    padding: 5rem 5% 3rem;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.partners-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.partners-section::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
    z-index: 2;
}

.partners-section::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
    z-index: 2;
}

.partners-container {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    right: -100%;
}

.partner-logo {
    flex: 0 0 auto;
    height: 120px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 300px;
    margin: 0 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

/* Styles pour les cartes de chiens */
.dog-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dog-card:hover {
    transform: scale(1.02);
}

/* Styles pour la modal d'image */
#imageModal .modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: 20px auto;
    background: transparent;
    box-shadow: none;
}

#imageModal .modal-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageModal .modal-image img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#imageModal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#imageModal .modal-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
} 