/* Styles pour la section Parcours - Mosaïque Hexagonale */
.parcours {
    background-color: #f5f0e6; /* Fond beige */
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.parcours .section-title {
    margin-bottom: 15px;
}

.parcours .section-tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 80%;
    font-weight: 400;
}

/* Conteneur principal en mosaïque */
.parcours-mosaic {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
}

/* Styles pour la section Parcours */
.parcours-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: #f9f9f9;
    min-height: 800px;
}

/* Style du conteneur principal */
.parcours-cards {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style de l'introduction */
.parcours-intro {
    text-align: center;
    margin-bottom: 40px;
}

.parcours-intro-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(to right, rgba(228, 188, 245, 0.1), rgba(229, 249, 211, 0.1));
    border-radius: 15px;
}

.parcours-logo {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.parcours-intro h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.parcours-intro p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Conteneur des cartes */
.cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cards-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding: 20px 0 40px; /* Padding pour permettre l'affichage des ombres */
    gap: 30px;
}

/* Masquer la scrollbar mais garder la fonctionnalité */
.cards-scroller {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.cards-scroller::-webkit-scrollbar {
    display: none; /* Chrome et Safari */
}

/* Style des cartes */
.card-item {
    flex: 0 0 auto;
    width: 320px;
    height: 420px;
    perspective: 1000px;
    scroll-snap-align: center;
    position: relative;
    padding-top: 10px;
    display: flex;
    align-items: stretch;
    /* Forcer la même hauteur pour toutes les cartes */
    min-height: 420px;
    max-height: 420px;
}

/* Date en haut de la carte - supprimée */
.card-item:before {
    display: none;
}

/* Contenu de la carte */
.card-content {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(0) rotateX(0);
    flex: 1;
    /* Forcer une hauteur uniforme */
    height: 420px;
    min-height: 420px;
    max-height: 420px;
}

.card-item:hover .card-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-15px) rotateX(5deg);
}

/* En-tête de la carte */
.card-header {
    padding: 15px 15px;
    background: linear-gradient(135deg, rgba(228, 188, 245, 0.5), rgba(229, 249, 211, 0.5));
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Hauteur fixe plus grande pour tous les en-têtes */
    min-height: 120px; /* Hauteur minimale pour garantir la cohérence */
    max-height: 120px; /* Hauteur maximale pour garantir l'uniformité */
    box-sizing: border-box; /* S'assurer que le padding est inclus dans la hauteur */
    overflow: hidden; /* Éviter tout débordement */
}

.card-role {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 0;
    padding-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    height: 100%; /* Remplir toute la hauteur disponible */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-company {
    font-size: 15px;
    opacity: 0.8;
}

/* Corps de la carte */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    height: 220px; /* Hauteur fixe pour uniformiser les corps de cartes */
    overflow: hidden; /* Empêcher le débordement du contenu */
}

.card-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    top: -35px; /* Remonter le logo pour chevaucher l'en-tête */
    margin-bottom: -15px; /* Compenser le décalage */
    border: 3px solid white;
    overflow: hidden; /* Contenir les logos agrandis */
}

.card-logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

/* Taille standard pour Galahad */
.card-logo img[alt="Galahad"] {
    width: 85px;
    height: 85px;
}

/* Taille réduite pour Oji */
.card-logo img[alt="Oji"] {
    width: 60px;
    height: 60px;
}

/* Agrandissement pour Abbana */
.card-logo img[alt="Abbana"] {
    width: 95px;
    height: 95px;
}

/* Agrandissement supplémentaire pour BC et Quartz */
.card-logo img[alt="BC"],
.card-logo img[alt="Quartz"] {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Agrandissement maximum pour Groupama */
.card-logo img[alt="Groupama"] {
    width: 450px;
    height: 450px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.card-details {
    text-align: center;
    padding: 0 10px;
}

.card-details p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Pied de la carte */
.card-footer {
    padding: 10px 5px;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #eee;
    height: 60px; /* Hauteur fixe pour les pieds de cartes */
    align-items: center;
    overflow: hidden;
}

.card-tag {
    font-size: 10px;
    background-color: rgba(229, 249, 211, 0.5);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

/* Navigation des cartes */
.cards-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(228, 188, 245, 0.5);
    color: #333;
}

.nav-dots {
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: rgba(228, 188, 245, 0.5);
    transform: scale(1.2);
}

/* Media queries pour le responsive */
@media (max-width: 992px) {
    .cards-scroller {
        gap: 20px;
    }
    
    .card-item {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .cards-scroller {
        padding: 10px 0 30px;
        gap: 15px;
    }
    
    .card-item {
        width: 280px;
    }
    
    .card-content {
        height: 340px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-role {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card-item {
        width: 260px;
    }
    
    .card-content {
        height: 320px;
    }
    
    .parcours-intro h3 {
        font-size: 20px;
    }
    
    .parcours-intro p {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .parcours-container {
        padding-right: 30px;
    }
    
    .parcours-item {
        flex-direction: column-reverse;
    }
    
    .parcours-content {
        padding-right: 0;
        padding-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    .parcours-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .parcours-line {
        right: 10px;
    }
}
