/* ================================
   MODULES DIVI VOYAGES PARADIS
   ================================ */

/* === MODULE LISTE VOYAGES === */
.vp-voyages-wrapper {
    margin: 0 auto;
    max-width: 100%;
}

.vp-voyages-grid {
    display: grid;
    gap: 30px;
    margin: 0;
}

/* Colonnes responsive */
.vp-voyages-grid.vp-columns-1 {
    grid-template-columns: 1fr;
}

.vp-voyages-grid.vp-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.vp-voyages-grid.vp-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vp-voyages-grid.vp-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === CARTES VOYAGE === */
.vp-voyage-item {
    position: relative;
    height: 100%;
}

.vp-voyage-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vp-voyage-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.vp-voyage-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vp-voyage-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* === IMAGE === */
.vp-voyage-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
}

.vp-voyage-image .vp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vp-voyage-link:hover .vp-image {
    transform: scale(1.05);
}

/* === CONTENU === */
.vp-voyage-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vp-voyage-header {
    margin-bottom: 15px;
}

.vp-voyage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.vp-voyage-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* === INFORMATIONS === */
.vp-voyage-info {
    flex-grow: 1;
    margin-bottom: 20px;
}

.vp-voyage-price {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.vp-price-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.vp-price-amount {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.vp-price-request {
    background: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.vp-voyage-countries {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-voyage-countries img {
    border-radius: 2px;
}

.vp-voyage-duration {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.vp-voyage-duration:before {
    content: "⏱️ ";
    margin-right: 4px;
}

.vp-voyage-date {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 500;
}

.vp-voyage-date:before {
    content: "📅 ";
    margin-right: 4px;
}

/* === BOUTON === */
.vp-voyage-footer {
    margin-top: auto;
}

.vp-voyage-button {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    border: 2px solid #2c5aa0;
}

.vp-voyage-link:hover .vp-voyage-button {
    background: transparent;
    color: #2c5aa0;
}

/* === ÉTAT VIDE === */
.vp-voyages-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
    font-size: 1.1rem;
}

.vp-voyages-empty:before {
    content: "✈️";
    display: block;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* === MODULE UNIVERSEL === */
.vp-universal-module {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.vp-universal-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: 3px solid #1e4080;
}

.vp-universal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-title-icon {
    font-size: 1.6rem;
    display: inline-block;
}

.vp-universal-content {
    padding: 25px;
}

/* === STYLES POUR INCLUSIONS/EXCLUSIONS === */
.vp-universal-module .acf-bloc {
    background: transparent;
    box-shadow: none;
    margin: 0;
}

.vp-universal-module .acf-header {
    display: none; /* Masquer le header par défaut car on a le nôtre */
}

.vp-universal-module .acf-content {
    padding: 0;
}

.vp-universal-module .acf-inclusions-exclusions-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.vp-layout-stacked .acf-inclusions-exclusions-columns {
    grid-template-columns: 1fr;
    gap: 20px;
}

.vp-universal-module .acf-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.vp-universal-module .acf-column.inclusions {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
}

.vp-universal-module .acf-column.exclusions {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fde8e8 0%, #fef0f0 100%);
}

.vp-universal-module .acf-column h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-universal-module .acf-column.inclusions h4 {
    color: #28a745;
}

.vp-universal-module .acf-column.exclusions h4 {
    color: #dc3545;
}

.vp-universal-module .acf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-universal-module .acf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vp-universal-module .acf-item i {
    margin-top: 2px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === ONGLETS === */
.vp-layout-tabs .acf-inclusions-exclusions-columns {
    display: block;
}

.vp-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-bottom: none;
}

.vp-tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #6c757d;
}

.vp-tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.vp-tab-button.active {
    background: #2c5aa0;
    color: white;
}

.vp-tabs-content {
    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

.vp-tab-panel {
    display: none;
    padding: 20px;
}

.vp-tab-panel.active {
    display: block;
}

/* === ITINÉRAIRE === */
.vp-universal-module .acf-itineraire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.vp-universal-module .itineraire-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.vp-universal-module .itineraire-item:hover {
    transform: translateY(-2px);
}

.vp-universal-module .itineraire-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vp-universal-module .itineraire-texte {
    padding: 15px;
}

.vp-universal-module .itineraire-texte h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.vp-universal-module .itineraire-texte p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* === DÉTAILS PRIX === */
.vp-universal-module .acf-details-prix-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vp-universal-module .acf-details-text h4 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 1.2rem;
}

.vp-universal-module .acf-details-text ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.vp-universal-module .acf-details-text li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.vp-universal-module .acf-details-text li:last-child {
    border-bottom: none;
}

.vp-universal-module .acf-details-image img {
    width: 100%;
    border-radius: 8px;
}

/* === PAYS ET VILLES === */
.vp-universal-module .pays,
.vp-universal-module .villes-inline {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}

.vp-universal-module .pays img {
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}

/* === ÉTATS D'ERREUR === */
.vp-universal-empty,
.vp-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

.vp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .vp-voyages-grid {
        gap: 20px;
    }
    
    .vp-voyages-grid.vp-columns-2,
    .vp-voyages-grid.vp-columns-3,
    .vp-voyages-grid.vp-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .vp-voyage-content {
        padding: 16px;
    }
    
    .vp-voyage-title {
        font-size: 1.1rem;
    }
    
    .vp-universal-header {
        padding: 15px 20px;
    }
    
    .vp-universal-title {
        font-size: 1.2rem;
    }
    
    .vp-universal-content {
        padding: 20px;
    }
    
    .vp-universal-module .acf-inclusions-exclusions-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vp-universal-module .acf-details-prix-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vp-universal-module .acf-itineraire-grid {
        grid-template-columns: 1fr;
    }
    
    .vp-tabs-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .vp-voyage-image {
        height: 160px;
    }
    
    .vp-voyage-info > * {
        font-size: 0.85rem;
    }
    
    .vp-price-amount {
        font-size: 1.2rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vp-voyage-item {
    animation: fadeInUp 0.6s ease forwards;
}

.vp-voyage-item:nth-child(2) {
    animation-delay: 0.1s;
}

.vp-voyage-item:nth-child(3) {
    animation-delay: 0.2s;
}

.vp-voyage-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* === PERSONNALISATION DIVI === */
.et_pb_module.et_pb_vp_voyages_liste,
.et_pb_module.et_pb_vp_voyages_universal {
    margin-bottom: 0;
}

.et_pb_vp_voyages_liste .vp-voyages-wrapper,
.et_pb_vp_voyages_universal .vp-universal-module {
    max-width: none;
}

/* === ACCESSIBILITÉ === */
.vp-voyage-link:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.vp-voyage-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.vp-tab-button:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .vp-voyage-link,
    .vp-voyage-card,
    .vp-image,
    .vp-voyage-button,
    .vp-universal-module,
    .itineraire-item {
        transition: none;
    }
    
    .vp-voyage-item {
        animation: none;
    }
}
