:root {
    --primary: #e91e63;
    --secondary: #2196f3;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4caf50;
    --warning: #ff9800;
    --japan: #bc002d;
    --philippines: #0038a8;
    --arrow-japan: #ff6b6b;
    --arrow-philippines: #4dabf7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page d'accueil */
#home-page {
    height: 100vh;
    background: linear-gradient(135deg, var(--japan) 0%, var(--philippines) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.home-content {
    max-width: 800px;
    z-index: 2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.love-quote {
    font-size: 2rem;
    font-style: italic;
    margin: 2rem 0;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Compte à rebours */
.countdown {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
}

.countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.enter-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.enter-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Pages de contenu */
#content-pages {
    display: none;
    min-height: 100vh;
}

/* Navigation */
.nav-header {
    background: linear-gradient(135deg, var(--japan) 0%, var(--philippines) 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.3);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 1rem;
}

.menu-link {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-link:hover, .menu-link.active {
    background: var(--primary);
    color: white;
    border-left-color: var(--secondary);
}

.back-home {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--secondary);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-home:hover {
    background: #1976d2;
}

/* Contenu principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* Styles communs aux pages */
.dropdown-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.day-dropdown, .city-dropdown {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.day-dropdown:focus, .city-dropdown:focus {
    outline: none;
    border-color: var(--secondary);
}

.day-details, .places-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f7ff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary);
}

.location a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.location a:hover {
    text-decoration: underline;
}

.activities {
    margin-bottom: 2rem;
}

.activity {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.activity:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.time {
    min-width: 100px;
    font-weight: 600;
    color: var(--dark);
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.activity-desc {
    color: #666;
}

.place-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--secondary);
    display: inline-block;
    margin-top: 0.5rem;
}

.place-link:hover {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.nearby-places {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.nearby-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.place-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.place-card:hover {
    transform: translateY(-5px);
}

.place-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.place-name a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.place-name a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.place-desc {
    font-size: 0.9rem;
    color: #666;
}

.country-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.japan-badge {
    background-color: rgba(188, 0, 45, 0.1);
    color: var(--japan);
}

.philippines-badge {
    background-color: rgba(0, 56, 168, 0.1);
    color: var(--philippines);
}

.hotel-info {
    background: #fff8e1;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    border-left: 4px solid #ffc107;
}

.hotel-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-icon {
    font-size: 1.2rem;
}

/* Styles pour la carte */
#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.map-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.map-btn:hover {
    background: #f0f0f0;
}

/* Styles pour le tableau des services hôteliers */
.hotel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.hotel-table th, .hotel-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.hotel-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
}

.hotel-table tr:hover {
    background-color: #f8f9fa;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.room-type {
    font-style: italic;
    color: #666;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* Légende de la carte */
#map-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Styles pour le convertisseur de devises */
.converter-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.converter-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    max-width: 500px;
    margin: 0 auto;
}

.converter-group {
    display: flex;
    flex-direction: column;
}

.converter-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.converter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

.converter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.converter-swap {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 0.5rem;
}

.converter-swap:hover {
    background: #1976d2;
}

.converter-result {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--success);
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.converter-rates {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.rate-item {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.warning-badge {
    background: #ffc107;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.undecided-hotel {
    background: #fff3cd;
}

.undecided-hotel:hover {
    background: #ffeaa7;
}

.budget-tips {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.planned-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.optional-badge {
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* NOUVEAU DESIGN DES FLÈCHES DE NAVIGATION - SANS FOND */
.day-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-image: linear-gradient(135deg, var(--arrow-japan) 0%, var(--arrow-philippines) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-arrow:hover:not(.disabled) {
    transform: translateY(-3px) scale(1.1);
    background-image: linear-gradient(135deg, var(--arrow-philippines) 0%, var(--arrow-japan) 100%);
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-arrow.disabled {
    background-image: none;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    text-shadow: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .love-quote {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-circle {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-form {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .converter-swap {
        order: 3;
        margin: 0.5rem auto;
    }
    
    .map-controls {
        flex-direction: column;
    }
    
    #map-legend {
        flex-direction: column;
    }
    
    .day-navigation {
        gap: 0.5rem;
    }
    
    .nav-arrow {
        font-size: 2.5rem;
    }
}