/* =====================================================================
   3ème Monument Mauthausen — Base des déportés
   Palette : bleus #00AEF3 et #00B6F1 (+ déclinaisons foncées pour la
   lisibilité du texte)
   ===================================================================== */

:root {
    --bleu-1: #00AEF3;
    --bleu-2: #00B6F1;
    --bleu-fonce: #0b4a6b;      /* texte / liens (contraste suffisant sur blanc) */
    --bleu-tres-fonce: #002b3d; /* texte sur boutons bleus */
    --bleu-clair: #e6f7fe;
    --bleu-bord: #b8e6fa;
    --texte: #1d2b36;
    --degrade: linear-gradient(90deg, var(--bleu-1), var(--bleu-2));
}

body {
    background: #f4fafd;
    color: var(--texte);
}

a { color: var(--bleu-fonce); }
a:hover { color: var(--bleu-1); }

/* ---------- En-tête ---------- */
.site-header {
    background: var(--degrade);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.site-header .logo { height: 64px; width: auto; }
.site-header .titre {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
@media (max-width: 575.98px) {
    .site-header .logo { height: 48px; }
    .site-header .titre { font-size: 1rem; }
}

/* ---------- Boutons ---------- */
.btn-monument {
    background: var(--degrade);
    border: 0;
    color: var(--bleu-tres-fonce);
    font-weight: 600;
}
.btn-monument:hover,
.btn-monument:focus {
    background: var(--bleu-1);
    color: #000;
}
.btn-outline-monument {
    border: 2px solid var(--bleu-1);
    color: var(--bleu-fonce);
    background: #fff;
    font-weight: 600;
}
.btn-outline-monument:hover {
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
}

/* ---------- Cartes / formulaire ---------- */
.carte {
    background: #fff;
    border: 1px solid var(--bleu-bord);
    border-top: 4px solid var(--bleu-1);
    border-radius: .5rem;
    box-shadow: 0 1px 4px rgba(0, 120, 170, .08);
}
.carte-titre {
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
    font-weight: 700;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--bleu-bord);
    border-radius: .5rem .5rem 0 0;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--bleu-1);
    box-shadow: 0 0 0 .2rem rgba(0, 174, 243, .25);
}
.form-check-input:checked {
    background-color: var(--bleu-1);
    border-color: var(--bleu-1);
}
.form-label { font-weight: 600; color: var(--bleu-fonce); font-size: .9rem; }

/* ---------- Alphabet ---------- */
.alphabet {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
}
.alphabet a {
    flex: 0 0 auto;
    min-width: 2rem;
    text-align: center;
    padding: .25rem .4rem;
    border: 1px solid var(--bleu-bord);
    border-radius: .3rem;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
}
.alphabet a:hover { background: var(--bleu-clair); }
.alphabet a.actif { background: var(--degrade); color: var(--bleu-tres-fonce); border-color: var(--bleu-1); }

/* ---------- Tableau (écran large) ---------- */
.table-deportes thead th {
    background: var(--degrade);
    color: var(--bleu-tres-fonce);
    border: 0;
    white-space: nowrap;
}
.table-deportes tbody tr { cursor: pointer; }
.table-deportes tbody tr:hover { background: var(--bleu-clair); }
.table-deportes td a.nom { font-weight: 700; text-decoration: none; }
.table-deportes td a.nom:hover { text-decoration: underline; }

/* ---------- Cartes (smartphone) ---------- */
.fiche-mini {
    display: block;
    background: #fff;
    border: 1px solid var(--bleu-bord);
    border-left: 5px solid var(--bleu-1);
    border-radius: .4rem;
    padding: .7rem .9rem;
    margin-bottom: .6rem;
    text-decoration: none;
    color: var(--texte);
}
.fiche-mini:active, .fiche-mini:hover { background: var(--bleu-clair); color: var(--texte); }
.fiche-mini .nom { font-weight: 700; color: var(--bleu-fonce); font-size: 1.05rem; }
.fiche-mini .detail { font-size: .88rem; color: #4a5b68; }

/* ---------- Badges ---------- */
.badge-monument { background: var(--bleu-2); color: var(--bleu-tres-fonce); font-weight: 600; }
.badge-deces { background: #4a5b68; color: #fff; font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--bleu-fonce); }
.pagination .page-item.active .page-link {
    background: var(--bleu-1);
    border-color: var(--bleu-1);
    color: var(--bleu-tres-fonce);
    font-weight: 700;
}

/* ---------- Fiche détaillée ---------- */
.fiche-entete {
    background: var(--degrade);
    color: var(--bleu-tres-fonce);
    border-radius: .5rem;
    padding: 1.2rem 1.4rem;
}
.fiche-entete h1 { font-size: 1.7rem; font-weight: 800; margin: 0; }
.fiche-entete .sous-titre { font-size: 1rem; }

dl.fiche-dl { margin: 0; }
dl.fiche-dl .ligne {
    display: flex;
    flex-wrap: wrap;
    padding: .45rem 1rem;
    border-bottom: 1px solid #e8f3f9;
}
dl.fiche-dl .ligne:last-child { border-bottom: 0; }
dl.fiche-dl dt { flex: 0 0 15rem; max-width: 100%; color: var(--bleu-fonce); font-weight: 600; }
dl.fiche-dl dd { flex: 1 1 14rem; margin: 0; }
@media (max-width: 575.98px) {
    dl.fiche-dl dt { flex-basis: 100%; font-size: .85rem; }
}

/* Parcours (frise verticale) */
.parcours { list-style: none; margin: 0; padding: 1rem 1rem 1rem 2rem; position: relative; }
.parcours::before {
    content: "";
    position: absolute;
    left: 1.15rem; top: 1.2rem; bottom: 1.2rem;
    width: 3px;
    background: var(--bleu-2);
}
.parcours li { position: relative; padding: 0 0 .9rem 1rem; }
.parcours li:last-child { padding-bottom: 0; }
.parcours li::before {
    content: "";
    position: absolute;
    left: -.95rem; top: .35rem;
    width: .8rem; height: .8rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--bleu-1);
}
.parcours .etape { font-weight: 600; color: var(--bleu-fonce); font-size: .85rem; }
.parcours .lieu  { font-weight: 700; }
.parcours .date  { color: #4a5b68; }

.site-footer {
    border-top: 4px solid var(--bleu-1);
    background: #fff;
    color: #4a5b68;
    font-size: .85rem;
}

@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------- Barre administrateur ---------- */
.barre-admin {
    background: var(--bleu-clair);
    border: 1px dashed var(--bleu-1);
    border-radius: .4rem;
    padding: .5rem .8rem;
    color: var(--bleu-fonce);
}

/* ---------- QR code ---------- */
.qr-site { position: sticky; top: 1rem; }
.qr-site img { max-width: 220px; }

/* ---------- Carte du parcours ---------- */
.carte-osm { height: 420px; border: 1px solid var(--bleu-bord); border-radius: .4rem; }
@media (max-width: 575.98px) { .carte-osm { height: 340px; } }

.pt-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    font: 700 12px/1 sans-serif;
}
.pt-num.pt-avant { background: var(--bleu-1);  color: var(--bleu-tres-fonce); }
.pt-num.pt-depo  { background: var(--bleu-fonce); color: #fff; }
.pt-num.pt-fin   { background: #444; color: #fff; }
.carte-etape { margin-bottom: .15rem; }
