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

/* ========== CARROUSEL SECTION ========== */
.carousel-section {
    position: relative;
    height: 40vh;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    margin-bottom: 0rem;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #ff4d79 0%, #ff6b6b 70%, #ff9d6c 100%);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions sans couper */
    object-position: center; /* Centre l'image */
    opacity: 0.8;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Boutons de navigation du carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* Points indicateurs */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

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

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

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========== SECTION PRÉSENTATION ========== */
.presentation-section {
    padding: 7rem 0;
    background: #fff;
    margin-top: -3rem;
}

.presentation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.presentation-text {
    padding-right: 2rem;
}

.presentation-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff4d79, #ff6b6b, #ff9d6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff4d79;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.presentation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.target-groups {
    background: linear-gradient(135deg, rgba(255,77,121,0.05) 0%, rgba(255,107,107,0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #ff4d79;
}

.group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.group:last-child {
    margin-bottom: 0;
}

.emoji {
    font-size: 1.5rem;
    min-width: 2rem;
    margin-top: 0.2rem;
}

.group p {
    margin: 0;
    font-size: 1.05rem;
}

.contact-call {
    background: linear-gradient(135deg, #58e8b8 0%, #a9f5b3 100%);
    color: #333 !important;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.1rem !important;
    text-align: center;
    margin-top: 2rem !important;
    box-shadow: 0 5px 15px rgba(88, 232, 184, 0.3);
}

.presentation-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 2rem;
}

.presentation-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.presentation-image img:hover {
    transform: scale(1.05);
}

/* ========== CARTES PRINCIPALES ========== */
.main-cards {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255,77,121,0.02) 0%, rgba(255,107,107,0.02) 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.main-card {
    background: #fff;
    border-radius: 25px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 3px solid transparent;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.main-card > * {
    position: relative;
    z-index: 2;
}

.activites-card {
    background: linear-gradient(135deg, #ff4d79 0%, #ff6b6b 100%);
    color: #fff;
}

.adhesion-card {
    background: linear-gradient(135deg, #4facfe 0%, #43cbff 100%);
    color: #fff;
}

.main-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.main-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.card-arrow {
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.main-card:hover .card-arrow {
    transform: translateX(10px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .presentation-text {
        padding-right: 0;
    }
    
    .presentation-image {
        order: -1;
        position: static;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 60vh;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .presentation-text h2 {
        font-size: 2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 1rem;
    }
    
    .next-btn {
        right: 1rem;
    }
    
    .main-card {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .main-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .presentation-text h2 {
        font-size: 1.7rem;
    }
    
    .target-groups {
        padding: 1.5rem;
    }
    
    .group {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}