/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #e5a954;
    overflow-x: hidden;
    background: #f8fafc;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(246, 156, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(216, 129, 29, 0.05) 0%, transparent 50%);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: #ff843d;
    font-family: 'Inter', sans-serif;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    color: #ffdfb3;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #f5945d 0%, #ff843d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 178, 59, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff843d 0%, #ff843d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(246, 178, 59, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #f5945d;
    border: 2px solid #f5945d;
    box-shadow: 0 4px 15px rgba(246, 153, 59, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f5945d 0%, #ff843d 100%);
    color: white;
    border-color: #f5945d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(246, 178, 59, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff843d 0%, #f9b994 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 3px solid #f5945d;
    box-shadow: 0 2px 20px rgba(246, 153, 59, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.nav-logo p {
    font-size: 0.9rem;
    margin: 0;
    color: white;
    font-style: italic;
}

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

.nav-link {
    text-decoration: none;
    color:white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav-link:hover {
    color: #efdacd;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #efdacd;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff8ef 50%, #feeedb 0%, #fedcbf 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ff843d;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #514637;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(246, 153, 59, 0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #fff7ef;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(251,191,36,0.05)"/><circle cx="90" cy="20" r="0.8" fill="rgba(251,191,36,0.05)"/><circle cx="30" cy="90" r="1.2" fill="rgba(251,191,36,0.05)"/></svg>');
    animation: float 15s ease-in-out infinite reverse;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff843d;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f5945d, #ff843d);
    border-radius: 2px;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(246, 153, 59, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #fff0e0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(246, 153, 59, 0.2);
    border-color: #f5945d;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5945d 0%, #ff843d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff8e4d 0%, #ff843d 100%);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    color: #ff843d;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.service-card p {
    color: #514637;
    line-height: 1.7;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: #fff0e1;
    position: relative;
}

.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border: none;
    border-top: 3px solid #f5945d;
    border-bottom: 3px solid #f5945d;
}

.carousel-slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 400%; /* 4 slides = 400% */
}

.carousel-slide {
    width: 25%; /* Each slide takes 25% of the container (100% / 4 slides) */
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    margin: 0 auto;
    display: block;
    object-fit: contain; /* pour s'assurer que l'image n'est pas déformée */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(2px);
}

.slide-caption h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.slide-caption p {
    color: #f8f6f0;
    margin: 0;
    font-size: 1rem;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(246, 159, 59, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgb(246, 146, 59);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f5945d;
}

.indicator.active {
    background: #f5945d;
    transform: scale(1.2);
}

.indicator:hover {
    background: #ff843d;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff7ef;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="15" cy="15" r="1.5" fill="rgba(251,191,36,0.08)"/><circle cx="85" cy="35" r="1" fill="rgba(251,191,36,0.08)"/><circle cx="25" cy="85" r="1.8" fill="rgba(251,191,36,0.08)"/></svg>');
    animation: float 18s ease-in-out infinite;
}

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

.about-text h2 {
    color: #ff843d;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.about-text p {
    color: #514637;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.credentials {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(246, 153, 59, 0.1);
    margin-top: 2rem;
    border: 2px solid #fff0e0;
    transition: all 0.3s ease;
}

.credentials:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(246, 153, 59, 0.2);
    border-color: #f5945d;
}

.credentials h3 {
    color: #ff843d;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f5945d;
    font-weight: bold;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(246, 153, 59, 0.2);
    border: 3px solid #f5945d;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #fff0e1;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="5" cy="5" r="1" fill="rgba(251,191,36,0.06)"/><circle cx="95" cy="25" r="0.8" fill="rgba(251,191,36,0.06)"/><circle cx="35" cy="95" r="1.2" fill="rgba(251,191,36,0.06)"/></svg>');
    animation: float 12s ease-in-out infinite reverse;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(246, 153, 59, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #fff0e0;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(246, 153, 59, 0.2);
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(246, 153, 59, 0.2);
    border-color: #f5945d;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #514637;
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: #ff843d;
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.testimonial-author span {
    color: #f5945d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #fff7ef;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1.2" fill="rgba(251,191,36,0.07)"/><circle cx="75" cy="45" r="0.9" fill="rgba(251,191,36,0.07)"/><circle cx="45" cy="75" r="1.5" fill="rgba(251,191,36,0.07)"/></svg>');
    animation: float 16s ease-in-out infinite;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #ff843d;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #f5945d;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: #ff843d;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-item p {
    color: #514637;
    margin: 0;
}

.contact-item a {
    color: #f5945d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff843d;
}

.contact-form h3 {
    color: #ff843d;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.contact-doctolib {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* Ajustez selon vos besoins */
    text-align: center;
    padding: 20px;
}

/* Footer */
.footer {
    background: #9a5222;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #fdc893;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fdcf93;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: linear-gradient(135deg, rgb(255, 132, 61) 0%, rgb(249, 185, 148) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .carousel-slide img {
        height: 400px;
    }
    
    .slide-caption {
        padding: 1.5rem;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-slide img {
        height: 300px;
    }
    
    .slide-caption {
        padding: 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

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

.service-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.hero {
    position: relative; /* necessary for absolute children */
    min-height: 100vh;
    overflow: hidden;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
  }

  .footprints-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* behind your content */
  }
  
  .paw {
    position: absolute;
    width: clamp(2rem, 4vw, 6rem); /* Responsive size with min/max limits */
    height: clamp(2rem, 4vw, 6rem);
    opacity: 0;
    transform-origin: center center;
    transition: opacity 0.4s ease-in-out, transform 0.4s linear;
  }
  
  .paw img {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-fit: contain; /* Ensures the image maintains aspect ratio and fits completely */
  }
  