/* Styles spécifiques à la page d'accueil */

/* Style du logo */
.logo-link {
    text-decoration: none;
    position: relative;
    display: block;
}

.logo-text {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.header-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-social .social-icon {
    color: #888;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
    opacity: 0.7;
}

.header-social .social-icon:hover {
    color: #3D6AA2;
    transform: translateY(-2px);
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 24px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 150, 63, 0.9) 0%, rgba(0, 100, 50, 0.85) 100%), url('../images/news3.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 180px 20px 120px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

.features {
    padding: 30px 0;
    background-color: #f9f9f9;
    margin-top: 1rem;
}

.features .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deutz-green), #4CAF50);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 150, 63, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:first-child {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/image site 9.jpg') center/cover;
    justify-content: flex-end;
}

.feature-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature-card h2 {
    margin-bottom: 15px;
    color: #333;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    background-color: white;
}

.btn-outline:hover {
    background-color: #4CAF50;
    color: white;
}

.slider-nav button {
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Styles pour les sections actualités et occasions */
.news-section, .occasions-section {
    padding: 2.5rem 0;
    margin-top: 1rem;
}

.occasions-section {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/image 10.jpeg') center/cover;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-icon {
    font-size: 2rem;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin: 0;
    font-size: 2.2rem;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
}

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

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

.news-card:hover, .occasion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.news-image, .occasion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content, .occasion-content {
    padding: 1.5rem;
}

.news-date, .occasion-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title, .occasion-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.news-excerpt, .occasion-price {
    color: #666;
    margin-bottom: 1rem;
}

.read-more, .view-details {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover, .view-details:hover {
    color: #3e8e41;
}

.occasion-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e74c3c;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Styles pour le carrousel */
.custom-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 80px;
    margin-left: 0;
    margin-right: 0;
}

.carousel-container {
    width: 100%;
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.carousel-slide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

#home-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

.carousel-content h2 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.carousel-content .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.carousel-content .btn:hover {
    background-color: #45a049;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background: white;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
        min-height: 400px;
    }
    
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
}

/* Styles pour le carrousel d'actualités */
.news-carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.news-slide.active {
    opacity: 1;
    z-index: 1;
}

.news-slide-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    width: 100%;
}

.news-slide-title {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: white;
}

.news-slide-excerpt {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.news-slide-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.news-slide-link:hover {
    background: white;
    color: #333;
}

.news-carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
    transform: translateY(-50%);
}

.news-carousel-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.news-carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.news-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.news-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Bandeau Occasions */
.occasions-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/image 10.jpeg') center/cover;
    padding: 30px 20px;
    text-align: center;
    color: #333;
    margin-top: 0.7rem;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-banner {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-banner:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .occasions-banner {
        padding: 60px 15px;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .btn-banner {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

.facebook-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
}
