/* =============================================================
   THEOLOGIA REFORMATA — Carte interactive des voyages
   Style cohérent avec l'identité bordeaux/safran/parchemin
   ============================================================= */

.carte-voyages-conteneur {
    background: linear-gradient(135deg, #fdf6e3 0%, #f4ead4 100%);
    border: 2px solid #d4c5b0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(155, 28, 28, 0.08);
    font-family: Georgia, 'EB Garamond', serif;
}

.carte-voyages-titre {
    font-size: 1.3rem;
    color: #5a2828;
    margin: 0 0 1rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.carte-voyages-svg {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    background: linear-gradient(180deg, #e8f1f5 0%, #d4e1e8 100%);
    border: 1px solid #b0a080;
    border-radius: 8px;
}

/* Tracés des voyages */
.tracé-voyage {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.25;
    transition: opacity 0.3s ease;
    stroke-dasharray: 8 4;
}
.tracé-voyage.actif {
    opacity: 1;
    stroke-dasharray: none;
}

.tracé-voyage-1 { stroke: #9b1c1c; }   /* Bordeaux : 1er voyage */
.tracé-voyage-2 { stroke: #2e7d4f; }   /* Vert : 2e voyage */
.tracé-voyage-3 { stroke: #1e5a8a; }   /* Bleu : 3e voyage */
.tracé-voyage-4 { stroke: #6b3a8c; }   /* Violet : voyage à Rome */

/* Villes */
.ville-point {
    fill: #5a2828;
    stroke: #fdf6e3;
    stroke-width: 1.5;
    cursor: pointer;
    transition: r 0.2s ease, fill 0.2s ease;
}
.ville-point:hover {
    fill: #e8a532;
    r: 8;
}
.ville-label {
    font-family: Georgia, serif;
    font-size: 11px;
    fill: #2c1810;
    pointer-events: none;
    font-weight: 500;
}
.ville-label-majeure {
    font-size: 13px;
    font-weight: bold;
    fill: #5a2828;
}

/* Régions textuelles (mers, pays) */
.label-region {
    font-family: Georgia, serif;
    font-style: italic;
    fill: #7a6a50;
    pointer-events: none;
}

/* Personnage Paul animé */
.personnage-paul {
    transition: opacity 0.3s ease;
}
.personnage-paul-cercle {
    fill: #9b1c1c;
    stroke: #fdf6e3;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(155, 28, 28, 0.6));
}
.personnage-paul-icone {
    fill: #fdf6e3;
    pointer-events: none;
}

/* Contrôles */
.carte-controles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    align-items: center;
    justify-content: center;
}
.carte-bouton {
    background: #fdf6e3;
    border: 2px solid #d4c5b0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    color: #5a2828;
    transition: all 0.2s ease;
    font-weight: 500;
}
.carte-bouton:hover {
    background: #f4ead4;
    border-color: #e8a532;
}
.carte-bouton.actif {
    background: #9b1c1c;
    color: #fdf6e3;
    border-color: #9b1c1c;
}
.carte-bouton-voyage-1.actif { background: #9b1c1c; border-color: #9b1c1c; }
.carte-bouton-voyage-2.actif { background: #2e7d4f; border-color: #2e7d4f; }
.carte-bouton-voyage-3.actif { background: #1e5a8a; border-color: #1e5a8a; }
.carte-bouton-voyage-4.actif { background: #6b3a8c; border-color: #6b3a8c; }

.carte-vitesse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a2828;
    font-size: 0.9rem;
}
.carte-vitesse input[type="range"] {
    width: 100px;
    cursor: pointer;
}

/* Panneau info ville */
.carte-info-ville {
    background: rgba(253, 246, 227, 0.95);
    border-left: 4px solid #9b1c1c;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    min-height: 60px;
    font-size: 0.92rem;
    color: #2c1810;
    transition: all 0.3s ease;
}
.carte-info-ville-titre {
    font-weight: bold;
    color: #5a2828;
    margin: 0 0 0.3rem;
    font-size: 1rem;
}
.carte-info-ville-date {
    font-style: italic;
    color: #7a5a3a;
    font-size: 0.85rem;
    margin: 0 0 0.3rem;
}
.carte-info-ville-evt {
    margin: 0;
    line-height: 1.5;
}

/* Légende */
.carte-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: #5a2828;
}
.carte-legende-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.carte-legende-couleur {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

/* Tooltip de survol */
.carte-tooltip {
    position: absolute;
    background: rgba(45, 24, 16, 0.95);
    color: #fdf6e3;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.carte-tooltip.visible {
    opacity: 1;
}

/* Mers (rectangles colorés pour donner du contexte) */
.zone-mer {
    fill: #c8d8e0;
    opacity: 0.4;
}

/* Responsive mobile */
@media (max-width: 700px) {
    .carte-voyages-conteneur { padding: 1rem; }
    .carte-controles { flex-direction: column; align-items: stretch; }
    .carte-bouton { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .ville-label { font-size: 9px; }
    .ville-label-majeure { font-size: 11px; }
}
