/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- NOUVEAU LOOK "HANAMI" --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff9f9; /* Fond rose très pâle */
    color: #333;
    line-height: 1.6;
    padding: 15px;
    padding-bottom: 120px; 
}

/* En-tête */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #fce4ec; /* Ligne rose pâle */
    margin-bottom: 20px;
    position: relative; /* Ajouté pour que z-index fonctionne */
    z-index: 2000;      /* Ajouté (au-dessus de l'overlay à 1999) */
}

header h1 {
    color: #c2185b; /* Rose cerisier foncé */
    margin-bottom: 5px;
}
/* --- FIN NOUVEAU LOOK --- */

header p {
    font-size: 1.1em;
    color: #555;
}

/* Lien de retour */
.back-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 1em;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

/* Lien de déconnexion */
.logout-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
}

/* --- MISE À JOUR DU MENU D'ACCUEIL (FLEXBOX) --- */
.menu {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
    gap: 10px;
    margin-bottom: 20px;
    justify-content: space-between; /* Aligne les éléments "half" */
}

.menu-btn {
    display: block;
    background-color: #ec407a; /* Rose vif */
    color: #ffffff;
    text-decoration: none;
    padding: 20px 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
    box-sizing: border-box; /* Important pour le calcul de largeur */
}

.menu-btn:hover {
    background-color: #d81b60; /* Rose plus foncé au survol */
}

.menu-btn-full {
    width: 100%;
}

.menu-btn-half {
    width: calc(50% - 5px); /* 50% de la largeur moins la moitié du "gap" */
}
/* --- FIN DES STYLES DU MENU --- */


/* Cartes de contenu */
.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h2 {
    color: #c2185b; /* Rose cerisier foncé */
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
}

.card h4 {
    color: #555;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card p {
    margin-bottom: 10px;
}

/* Listes */
.card ul, .card ol {
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
}

/* Séparateur horizontal */
.card hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* Liens dans les cartes */
.card a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* Style spécifique pour la check-list (ancienne) */
.checklist ul {
    list-style-type: '☐ ';
    padding-left: 25px;
}

.checklist li {
    font-size: 1.1em;
    margin-bottom: 12px;
}

/* --- NOUVEAU LOOK "HANAMI" (ÉTAPES) --- */
.card.etape-tokyo1 {
    background-color: #e3f2fd; /* Bleu ciel pastel */
    border-color: #bbdefb;
}

.card.etape-nagoya {
    background-color: #e8f5e9; /* Vert thé pastel */
    border-color: #c8e6c9;
}

.card.etape-nara {
    background-color: #fef5e7; /* Beige/Sable pastel */
    border-color: #fde3a7;
}

.card.etape-osaka {
    background-color: #ffe6e6; /* Rose sakura pastel */
    border-color: #f8bbd0;
}

.card.etape-tokyo2 {
    background-color: #f3e5f5; /* Lavande pastel */
    border-color: #e1bee7;
}

/* --- NOUVEAU LOOK "HANAMI" (LIENS) --- */

/* Style pour les liens de localisation (Bleu) */
.location-link {
    display: block;
    background-color: #e6f2ff; 
    border: 1px solid #bbdefb;
    color: #0d47a1; /* Bleu foncé */
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
.location-link:hover {
    background-color: #bbdefb;
}

/* Style pour les liens de destination (Vert) */
.destination-link {
    display: block;
    background-color: #e8f5e9; 
    border: 1px solid #c8e6c9;
    color: #1b5e20; /* Vert foncé */
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
.destination-link:hover {
    background-color: #c8e6c9;
}

/* Style pour les E-Tickets (Rose) */
.ticket-link {
    display: block;
    background-color: #fce4ec; /* Rose pastel */
    border: 1px solid #f8bbd0;
    color: #880e4f; /* Rose foncé */
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    font-size: 0.9em;
}
.ticket-link:hover {
    background-color: #f8bbd0;
}
/* --- FIN NOUVEAU LOOK --- */


/* --- STYLES ACCORDÉON AVEC ICÔNES FONT AWESOME --- */
.card h3 {
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.card h3:hover {
    color: #ec407a; 
}

.card h3 i {
    font-size: 0.9em; 
    margin-left: 10px; 
    color: #6c757d; 
}

.card h3.active-header i {
    color: #ec407a; 
}

.accordion-content {
    display: none;
}

.accordion-content.active {
    display: block;
}

/* --- STYLES MIS À JOUR POUR LE BUDGET --- */
.cash-memo {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.cash-memo h4 {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 15px;
}
.cash-memo ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.cash-memo li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}
.cash-memo li span {
    font-weight: bold;
    color: #495057;
}

.reste-input {
    width: 100px;
    font-size: 0.95em;
    font-weight: bold;
    color: #007bff;
    border: 1px dashed #ccc;
    border-radius: 5px;
    padding: 5px;
    text-align: right;
    -moz-appearance: textfield;
}
.reste-input::-webkit-outer-spin-button,
.reste-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cash-memo .daily-total {
    border-top: 2px solid #333;
    border-bottom: none;
    font-size: 1.0em;
    font-weight: bold;
    margin-top: 10px;
}

.cash-memo .suggestion-total {
    border-top: 2px solid #d9534f;
    border-bottom: none;
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f;
    margin-top: 10px;
    padding-top: 10px;
}
.cash-memo .suggestion-total span {
    color: #d9534f;
}


/* --- STYLES FORMULAIRE DE CONNEXION --- */
.login-form div {
    margin-bottom: 15px;
}
.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-form button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #c2185b; /* Rose foncé */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.login-form button:hover {
    background-color: #880e4f; /* Rose encore plus foncé */
}

/* Bouton d'effacement */
.clear-budget-btn {
    display: block;
    width: 100%;
    background-color: #d9534f; /* Rouge (danger) */
    color: white;
    border: none;
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
}
.clear-budget-btn:hover {
    background-color: #c9302c;
}

/* Simulateur de date */
.date-simulator {
    background-color: #fffde7;
    border-color: #fff59d;
    padding: 15px;
}
.date-simulator h4 {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.date-simulator p {
    font-size: 0.9em;
    margin-bottom: 15px;
}
.date-simulator input[type="date"] {
    font-size: 1.1em;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}
.date-simulator button {
    font-size: 1em;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

/* Compteur de budget flottant */
#budget-floater {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4a148c; /* Prune foncé */
    color: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}
#budget-floater strong {
    font-size: 0.9em;
    color: #f3e5f5; /* Lavande très clair */
    display: block;
}
#budget-floater #floater-date {
    color: #ffc107; /* Jaune */
}
#budget-floater ul {
    list-style-type: none;
    padding: 0;
    margin: 5px 0 0 0;
    display: flex;
    justify-content: space-around;
}
#budget-floater li {
    font-size: 0.9em;
    text-align: center;
    border-bottom: none;
    padding: 0;
    align-items: center;
}
#budget-floater li span {
    font-size: 1.2em;
    display: block;
    font-weight: bold;
    color: #fff;
}
#budget-floater li #total-economie {
    color: #4caf50; /* Vert */
}
#budget-floater li #total-economie.negative {
    color: #f44336; /* Rouge */
}

/* --- STYLES MODIFIÉS POUR PAGE APERÇU --- */
.journey-image {
    display: block; 
    max-width: 100%;  /* PAR DÉFAUT : 100% sur mobile */
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 15px auto; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.journey-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    text-align: justify; /* Justifie le texte */
}

/* NOUVEAU STYLE POUR LES HAIKUS */
.haiku-box {
    background-color: #f8f9fa;
    border-left: 4px solid #f8bbd0; /* Bordure rose sakura */
    margin: 20px 0;
    padding: 15px 20px;
}
.haiku-box p {
    font-style: italic;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 10px;
}
.haiku-box cite {
    display: block;
    text-align: right;
    font-style: italic;
    font-size: 0.95em;
    color: #555;
}


/* --- AJUSTEMENT POUR PC (min-width: 992px) --- */
@media (min-width: 992px) {
    body {
        max-width: 1100px; /* Largeur max de tout le site (1100px) */
        margin: 0 auto; /* Centre le site */
        padding: 15px; 
        padding-bottom: 120px; 
    }
}

/* --- STYLES POUR LA PAGE ORGANISATION --- */
.checklist-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}
.checklist-container h2 {
    color: #fff;
    background-color: #c2185b; /* Rose cerisier foncé */
    padding: 15px 20px;
    margin: 0;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.checklist-container .content-wrapper {
    padding: 20px;
}

.add-task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.add-task-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.add-task-form button {
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #4caf50; /* Vert */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.task-list {
    list-style-type: none;
    padding: 0;
}
.task-item {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, text-decoration 0.2s;
}
.task-item:last-child {
    border-bottom: none;
}
.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}
.task-item span {
    transition: all 0.2s;
    flex-grow: 1; 
}
.task-item.checked span {
    text-decoration: line-through;
    color: #aaa;
}

.task-actions {
    flex-shrink: 0; 
    margin-left: 10px;
}
.task-actions i {
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px;
    transition: color 0.2s;
}
.task-actions .edit-btn {
    color: #007bff; 
}
.task-actions .delete-btn {
    color: #f08a5d; 
}
.task-actions .edit-btn:hover {
    color: #0056b3; 
}
.task-actions .delete-btn:hover {
    color: #d9534f; 
}

/* --- STYLES POUR LA PAGE "AUTOUR DE MOI" --- */
.results-container {
    display: none; 
}
.results-container h2 {
    margin-top: 20px;
}
.place-card {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden; 
}
.place-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}
.place-info {
    padding: 15px;
    flex-grow: 1;
}
.place-info h4 {
    margin: 0 0 5px 0;
    padding: 0;
    border: none;
    color: #c2185b; /* Rose */
}
.place-info p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}
.place-info .rating {
    font-weight: bold;
    color: #f57f17; /* Jaune */
}
.place-info .destination-link {
    font-size: 0.9em;
    padding: 8px;
}

.distance-selector {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
}
.distance-btn {
    flex-grow: 1; 
    flex-basis: calc(50% - 5px); 
    min-width: 80px; 
    
    background-color: #4caf50; 
    border: 1px solid #81c784;
    color: white;
    padding: 12px 5px; 
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em; 
    cursor: pointer;
}
.distance-btn:hover {
    background-color: #388e3c;
}
.distance-btn:disabled {
    background-color: #aaa;
    border-color: #999;
    cursor: not-allowed;
}

.place-distance {
    font-size: 0.9em;
    font-weight: bold;
    color: #4caf50; /* Vert */
    margin-bottom: 10px !important;
}

/* --- STYLES PAGE BUDGET PREVISIONNEL --- */
#lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999; /* Juste en dessous du bouton */
    display: none; /* Caché par défaut */
}
#lock-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4caf50; /* Vert (déverrouillé) */
    color: white;
    border: none;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 2000;
}
#lock-button.locked {
    background-color: #d9534f; /* Rouge (verrouillé) */
}

.prevision-table {
    width: 100%;
    border-collapse: collapse;
}
.prevision-table .prevision-jour {
    background-color: #f8f9fa;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #c2185b;
}
.prevision-row {
    border-bottom: 1px solid #eee;
}
.prevision-row td {
    padding: 8px 5px;
    vertical-align: middle;
}
.prevision-row label {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    display: block;
}
.prevision-row input[type="number"] {
    width: 100%;
    font-size: 1.1em;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}
.prevision-row select {
    width: 100%;
    font-size: 1.1em;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: transparent;
}
.prevision-row input[type="checkbox"] {
    width: 25px;
    height: 25px;
}

/* --- STYLES PAGE BUDGET (SUIVI) --- */
.budget-page .stat-box span.solde-global {
    color: #0d47a1; /* Bleu foncé */
    font-size: 1.6em;
}
.budget-page .stat-box span.solde-liquide {
    color: #4caf50; /* Vert */
    font-size: 1.6em;
}
.budget-page .stat-box span.solde-liquide.negative {
    color: #d9534f; /* Rouge */
}

/* NOUVEAU FORMULAIRE UNIFIÉ */
.transaction-form-unified {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes par défaut */
    gap: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}
.transaction-form-unified .form-group {
    /* Chaque groupe prend 1 colonne */
}
.transaction-form-unified .full-width {
    grid-column: 1 / -1; /* Prend toute la largeur */
}
.transaction-form-unified label {
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.transaction-form-unified input[type="number"],
.transaction-form-unified select {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.transaction-form-unified .montant-devise {
    display: flex;
    gap: 5px;
}
.transaction-form-unified .montant-devise input {
    flex-grow: 1; /* Le montant prend plus de place */
}
.transaction-form-unified .montant-devise select {
    flex-basis: 80px; /* Largeur fixe pour la devise */
    font-size: 1em;
}

.transaction-form-unified .button-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}
.transaction-form-unified button {
    flex-grow: 1;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.transaction-form-unified button i {
    margin-right: 8px;
}
.transaction-form-unified .expense-btn {
    background-color: #d9534f; /* Rouge */
}
.transaction-form-unified .expense-btn:hover {
    background-color: #c9302c;
}
.transaction-form-unified .withdrawal-btn {
    background-color: #4caf50; /* Vert */
}
.transaction-form-unified .withdrawal-btn:hover {
    background-color: #388e3c;
}
/* Fin des styles du formulaire unifié */

.history-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}
.history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.history-list li:last-child {
    border-bottom: none;
}
.history-list .history-info {
    display: flex;
    flex-direction: column;
}
.history-list .history-info strong {
    font-size: 1.1em;
}
.history-list .history-info small {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}
.history-list .history-amount-depense {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9534f;
}
.history-list .history-amount-retrait {
    font-size: 1.2em;
    font-weight: bold;
    color: #4caf50;
}

.history-right-side {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace entre le montant et les icônes */
}
.history-list .task-actions {
    flex-shrink: 0; 
    margin-left: 5px; /* Léger écart */
}
.history-list .task-actions i {
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px;
    transition: color 0.2s;
}
.history-list .task-actions .edit-btn {
    color: #007bff; /* Bleu par défaut */
}
.history-list .task-actions .delete-btn {
    color: #f08a5d; /* Orange/Rouge clair par défaut */
}
.history-list .task-actions .edit-btn:hover {
    color: #0056b3; /* Bleu foncé */
}
.history-list .task-actions .delete-btn:hover {
    color: #d9534f; /* Rouge foncé */
}

/* NOUVEAU STYLE POUR LE GRAPHIQUE */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 450px; /* Limite la taille sur grand écran */
    margin: 20px auto 0 auto; /* Centre le graphique */
    height: auto;
}

/* --- NOUVEAUX STYLES ACCUEIL --- */
.daily-briefing {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    /* Dégradé Hanami */
    background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
    border: 1px solid #f8bbd0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center; /* CENTRER TOUT LE BLOC */
}
.daily-briefing h2 {
    color: #c2185b;
    border-bottom: 2px solid rgba(255,255,255,0.7);
    margin: 0;
    padding-bottom: 10px;
}
.daily-briefing p {
    font-size: 1.1em;
    color: #333;
    margin: 15px 0;
}
.daily-briefing .cash-today {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 15px;
    gap: 10px;
}
.daily-briefing .cash-today div {
    background: rgba(255,255,255,0.5);
    padding: 10px 15px;
    border-radius: 8px;
    flex-grow: 1;
}
.daily-briefing .cash-today p {
    font-size: 0.9em;
    font-weight: bold;
    color: #4a148c; /* Prune */
    margin: 0 0 5px 0;
}
.daily-briefing .cash-today span {
    font-size: 1.4em;
    font-weight: bold;
    color: #c2185b; /* Rose */
}

/* NOUVEAU STYLE POUR CENTRER INFOS RAPIDES */
.text-center {
    text-align: center;
}

/* --- NOUVEAUX STYLES PAGE OUTILS --- */
.converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* [Champ] [Icône] [Champ] */
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}
.converter-grid input {
    width: 100%;
    padding: 12px;
    font-size: 1.3em;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}
.converter-grid i {
    font-size: 1.5em;
    color: #c2185b;
}
#btn-update-rate {
    width: 100%;
    padding: 10px;
    font-size: 0.9em;
    font-weight: bold;
    background-color: #f08a5d;
    border-color: #f4c7b3;
    color: #a33307;
    margin-top: 0;
}
#rate-status {
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
}

.logo-guide {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.logo-item {
    text-align: center;
}
.logo-item img {
    width: 100%;
    max-width: 100px; /* Empêche les logos d'être énormes */
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}
.logo-item p {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    margin-top: 5px;
}

.phrasebook-list {
    list-style-type: none;
    padding: 0;
}
.phrasebook-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 1.1em;
}
.phrasebook-list li strong {
    color: #c2185b; /* Rose */
    display: block; /* Met le japonais en dessous */
}

/* NOUVEAU : ADMIN JOURNAL */
.admin-journal-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) {
    .admin-journal-grid { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 15px; }
.form-group label { font-weight: bold; display: block; margin-bottom: 5px; }
.form-group select, .form-group textarea, .form-group input[type="text"] {
    width: 100%; padding: 10px; font-size: 1.1em; border: 1px solid #ccc; border-radius: 5px;
}
.form-group textarea { height: 250px; font-family: inherit; }
.form-group .button-group { display: flex; gap: 10px; }
.form-group button {
    flex-grow: 1; padding: 12px; font-size: 1.1em; font-weight: bold;
    color: #fff; border: none; border-radius: 5px; cursor: pointer;
}
.form-group .save-btn { background-color: #007bff; }
.form-group .reset-btn { background-color: #f08a5d; }

.drop-zone {
    border: 2px dashed #ccc; border-radius: 8px; padding: 20px;
    text-align: center; color: #777; font-weight: bold; cursor: pointer;
    transition: all 0.2s;
}
.drop-zone.dragover { background-color: #f0f8ff; border-color: #007bff; }

#image-preview {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px; margin-top: 15px;
}
.preview-img-container {
    position: relative; width: 100%;
    padding-top: 100%; /* Ratio 1:1 */
    border-radius: 5px;
    overflow: hidden;
}
.preview-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.preview-delete-btn {
    position: absolute; top: 2px; right: 2px;
    background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%;
    width: 24px; height: 24px;
    font-size: 12px; line-height: 24px;
    cursor: pointer;
}
.status-text { text-align:center; font-weight:bold; margin-top: 10px; }
#save-status.success { color: green; }
#save-status.error { color: red; }
#photo-status.success { color: green; }
#photo-status.error { color: red; }

.copy-link-btn {
    display: block;
    width: 100%;
    background-color: #0d47a1; /* Bleu foncé */
    border: 1px solid #0d47a1;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1em;
    cursor: pointer;
}
.copy-link-btn:hover {
    background-color: #004a99;
}
.copy-link-btn i {
    margin-right: 8px;
}

/* --- NOUVEAUX STYLES JOURNAL LIVE --- */
.live-recit-bloc {
    background: #e3f2fd; /* Bleu pastel */
    border: 1px solid #bbdefb;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.live-recit-bloc h3 {
    color: #0d47a1; /* Bleu foncé */
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
}
.live-recit-bloc p {
    font-size: 1.05em;
    line-height: 1.7;
    white-space: pre-wrap; /* Respecte les sauts de ligne */
}

.live-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}
.live-photos-grid .journey-image {
    margin: 0; /* Annule la marge 'auto' */
}

/* NOUVEAU : STYLES APERÇU LIVE ADMIN */
.live-preview-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    min-height: 100px;
}
.live-preview-box h4 {
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px dashed #eee;
}
/* Style pour l'aperçu du texte */
.live-preview-box .journey-text {
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
}
.live-preview-box .journey-text p {
    margin-bottom: 0;
}

/* NOUVEAU : CARTE DU VOYAGE */
#trip-map-container {
    padding: 10px; /* Moins de padding que les autres cartes */
}
#trip-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 1px solid #ddd;
}