/**
 * Styles pour la page des packs de services
 * Avec effet de dévoilement gauche-droite au survol
 */

/* Section des packs */
.packs-section {
    padding: 80px 0;
    background-color: var(--secondery-color);
    position: relative;
}

/* Style des cartes de pack */
.pack-card {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.pack-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Face avant de la carte */
.pack-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

/* Titre central en gras */
.pack-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
    transition: all 0.5s ease;
}

.pack-title-overlay h2 {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
    transition: all 0.4s ease;
    transform: scale(1);
}

.pack-card:hover .pack-title-overlay {
    opacity: 0;
    visibility: hidden;
}

.pack-card:not(:hover) .pack-title-overlay {
    opacity: 1;
    visibility: visible;
}

/* Overlay pour améliorer la lisibilité du texte sur l'image */
.pack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Contenu visible sur la face avant */
.pack-content {
    text-align: center;
    color: var(--white-color);
    position: relative;
    z-index: 2;
    padding: 20px;
}

.pack-content h3 {
    color: var(--white-color);
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pack-tagline {
    font-size: 18px;
    display: block;
    opacity: 0.8;
    font-weight: 500;
}

/* Détails du pack (face arrière) - initialement masqué */
.pack-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #222222;
    display: flex;
    align-items: center;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    overflow: hidden;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.pack-detail-content {
    padding: 25px 20px;
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0.2s;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Effet de dévoilement au survol */
.pack-card:hover .pack-front {
    width: 30%;
    border-radius: 10px 0 0 10px;
}

.pack-card:hover .pack-details {
    width: 70%;
    right: 0;
    left: auto;
}

.pack-card:hover .pack-detail-content {
    opacity: 1;
}

/* Styles pour le contenu des détails */
.pack-details h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pack-details h4 span {
    color: var(--accent-color);
    font-weight: 700;
}

.pack-details p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.pack-features li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    color: var(--white-color);
    font-size: 15px;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s ease;
    background-color: rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    backdrop-filter: blur(3px);
}

.feature-icon {
    color: var(--white-color);
    font-size: 18px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 8px;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pack-features li:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-color);
    background-color: var(--white-color);
}

.feature-text {
    flex: 1;
    padding-right: 10px;
}

.pack-features li span {
    font-weight: 700;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Animation décalée pour les éléments de la liste au survol */
.pack-card:hover .pack-features li {
    transform: translateX(0);
    opacity: 1;
}

.pack-card:hover .pack-features li:nth-child(1) { transition-delay: 0.3s; }
.pack-card:hover .pack-features li:nth-child(2) { transition-delay: 0.4s; }
.pack-card:hover .pack-features li:nth-child(3) { transition-delay: 0.5s; }
.pack-card:hover .pack-features li:nth-child(4) { transition-delay: 0.6s; }
.pack-card:hover .pack-features li:nth-child(5) { transition-delay: 0.7s; }

/* Style du bouton d'action */
.pack-btn {
    margin-top: 15px;
    padding: 12px 25px;
    font-weight: 500;
    font-size: 15px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 1px solid var(--white-color);
}

/* Section d'information sur les packs */
.pack-info {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.pack-info p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Modal de contact */
.modal-dialog {
    max-width: 650px;
    margin: 1.75rem auto;
}

.modal-header {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 20px 25px;
}

.modal-title {
    color: var(--white-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 22px;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    background-color: var(--secondery-color);
}

.modal-body {
    padding: 30px;
}

#packContactForm .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--white-color);
    transition: all 0.3s ease;
}

#packContactForm .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
}

#packContactModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

#packContactModal .modal-dialog {
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

#packContactModal.show .modal-dialog {
    transform: translateY(0);
}

/* Styles pour l'affichage du pack sélectionné */
.selected-pack-info {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 25px;
}

.pack-name-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 22px;
}

.pack-name-display span {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.pack-description {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.85;
}

#packContactForm label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

#packContactForm label i {
    color: var(--accent-color);
    width: 20px;
}

/* Styles responsifs */
@media (max-width: 1199px) {
    .pack-card {
        height: 380px;
    }
    
    .pack-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .pack-card {
        height: 350px;
    }
    
    .pack-content h3 {
        font-size: 24px;
    }
    
    .pack-features li {
        padding: 6px 0 6px 25px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .pack-card {
        height: 320px;
        margin-bottom: 20px;
    }
    
    /* Adaptation pour les petits écrans - on change l'orientation du dévoilement */
    .pack-card:hover .pack-front {
        width: 100%;
        height: 40%;
        border-radius: 10px 10px 0 0;
    }
    
    .pack-card:hover .pack-details {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        left: 0;
    }
    
    .pack-detail-content {
        padding: 20px;
    }
    
    .pack-details h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .pack-features {
        margin-bottom: 15px;
    }
    
    .pack-features li {
        margin-bottom: 3px;
    }
    
    .pack-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .pack-card {
        height: 300px;
    }
    
    .pack-content h3 {
        font-size: 20px;
    }
    
    .pack-tagline {
        font-size: 16px;
    }
}
