.container.shadow.bg-light {
    padding-bottom: 2rem; /* Ajuste si besoin, 2rem = ~32px */
}
.zoomable {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.zoomed {
    transform: scale(1.3);
    cursor: zoom-out;
    z-index: 10;
    position: relative;
}

.img-hover-zoom {
    transition: transform 0.3s ease;
}

.img-hover-zoom:hover {
    transform: scale(1.03);
}

a.no-style {
    text-decoration: none;
    color: inherit;
}
.timeline-container {
    width: 100%;
    overflow-x: auto;       /* Scroll horizontal */
    overflow-y: hidden;     /* Pas de scroll vertical */
    padding: 20px 0;
}

.timeline {
    position: relative;
    min-width: 1550px;      /* Plus grand = plus de place */
    height: 400px;          /* Moins haut = plus compact */
    display: flex;
    justify-content: flex-start;
    gap: 120px;             /* ← Espacement horizontal augmenté */
    padding: 0 40px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #3498db;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-event {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

/* Bulles d'événements */
.event-bubble {
    position: absolute;
    width: 160px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.event-bubble::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.event-bubble.top {
    bottom: 65%;
    margin-bottom: 5px; /* Réduit l’écart vertical */
}

.event-bubble.top::before {
    top: 100%;
    border-top-color: #3498db;
}

.event-bubble.bottom {
    top: 65%;
    margin-top: 5px; /* Réduit l’écart vertical */
}

.event-bubble.bottom::before {
    bottom: 100%;
    border-bottom-color: #3498db;
}

.event-bubble.top::after,
.event-bubble.bottom::after {
    content: '';
    position: absolute;
    left: 18%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #3498db;
    z-index: -1; /* pour passer sous la bulle */
}

.event-bubble.top::after {
    top: 100%;
    height: 69px; /* longueur du trait à ajuster */
}

.event-bubble.bottom::after {
    bottom: 100%;
    height: 69px; /* longueur du trait à ajuster */
}
.event-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 4px;
    font-size: 14px;
}

.event-text {
    font-size: 13px;
}

.timeline-event a {
  color: inherit;
  text-decoration: none;
}

.timeline-event a:hover .event-bubble {
  opacity: 0.9;
  cursor: pointer;
}

.parchemin{
    background-image: url('libs/img/parchemin.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 1000px;
    height: 70vh;
    margin: auto;
    padding: 2rem;
    overflow-y: auto;
    border: 2px solid #a67c52;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    color: #2c1b10;
    background-color: #fdf5e6e0;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
}

.parchemin::-webkit-scrollbar {
    width: 8px;
}
.parchemin::-webkit-scrollbar-thumb {
    background-color: #b18a6f;
    border-radius: 4px;
}

.avatar-defaut {
    width: 60px;
    height: 60px;
    background-color: black;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #000;
}

.autocomplete-results {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.autocomplete-item {
    padding: 0.5rem;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.selected-personnages span {
    margin-right: 5px;
}

input[type="file"] {
    margin-bottom: 10px;
}

.canvas-container {
    position: relative;
    width: 500px;
    height: 500px;
    border: 1px solid #ccc;
}

#imageCanvas {
    display: block;
    width: 500px;
    height: 500px;
}

#selectionBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background-color: rgba(0, 123, 255, 0.3);
    border: 2px solid #007bff;
    cursor: move;
    display: none;
    box-sizing: border-box;
}

#resizer {
    position: absolute;
    width: 10px;
    height: 10px;
    right: 0;
    bottom: 0;
    background-color: #007bff;
    cursor: se-resize;
}

.preview-container {
    margin-top: 20px;
}

.slide-container {
  min-height: 400px; /* ou ce que tu veux comme hauteur minimale */
}
.possessions-card {
    min-height: 300px; /* Ajuste cette valeur pour “doubler” la hauteur visible */
}

.equipement-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;     /* l’icône garde ses proportions */
  padding: 10px;           /* espace autour de l’icône */
  border-radius: 8px;      /* coins arrondis */
  background-color: #f0f0f0; /* gris clair */
}

.square-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;         /* carré */
  overflow: hidden;
  border: 1px solid var(--bs-secondary);
  border-radius: .25rem;
}
/* rogne en bas, garde le haut */
.bg-cover-top {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

