/* ===================== POLICES ===================== */
/* Les @font-face sont déclarés directement dans index.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(255, 255, 255);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
    cursor: url('images/souris.png') 16 16, auto;
}


/* ===================== SIDEBAR ===================== */

.sidebar {
    width: 350px;
    height: 100vh;
    background-image: url('images/backgroundgalerie.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 2000px rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar-header {
    height: 200px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
    flex-shrink: 0;
    gap: 12px;
    position: relative;
}

.sidebar-logo-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    max-height: 170px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar--carte {
    background-image: none;
    background-color: rgba(245, 245, 245, 0.02);
    box-shadow: inset 0 0 0 2000px rgba(245, 245, 245, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}


/* ===================== BURGER ===================== */

.btn-burger {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s ease;
    z-index: 310;
    position: relative;
}

.btn-burger:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-burger span {
    display: block;
    height: 2px;
    background: rgb(255, 94, 0);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn-burger.ouvert span {
    background: white;
}

.btn-burger.ouvert span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.btn-burger.ouvert span:nth-child(2) {
    opacity: 0;
}
.btn-burger.ouvert span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ===================== DRAWER NOIR ===================== */

.drawer-noir {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: rgb(18, 18, 18);
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: 0 0 32px;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 32px rgba(0,0,0,0.35);
}

.drawer-noir.ouvert {
    transform: translateX(0);
}

.drawer-top {
    height: 90px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.drawer-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.drawer-item {
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    transition: background 0.15s ease;
}

.drawer-item:hover {
    background: rgba(255,255,255,0.07);
}

.drawer-item svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.drawer-item:hover svg {
    opacity: 1;
}

.drawer-sep {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 28px;
}

.drawer-participer {
    margin: 0 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.drawer-participer:hover {
    opacity: 0.75;
}

.drawer-participer-img {
    width: 70%;
    height: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 299;
}

.drawer-overlay.actif {
    display: block;
}


/* ===================== SECTION TAGS ===================== */

.sidebar-tags-section {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 0;
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgb(160, 160, 160);
    margin-bottom: 12px;
    font-weight: 600;
    font-style: normal;
}

.conteneur-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}

.btn-tag {
    padding: 4px 10px;
    background: rgb(240, 240, 240);
    border: 1.5px solid rgb(200, 200, 200);
    border-radius: 1000px;
    cursor: url('images/curseur.png') 16 16, pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    color: rgb(80, 80, 80);
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tag:hover {
    background: rgb(220, 220, 220);
    border-color: rgb(160, 160, 160);
}

.btn-tag.actif {
    background: rgb(50, 50, 50);
    border-color: rgb(50, 50, 50);
    color: white;
}

.btn-tag--img {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    height: 28px;
}

.btn-tag--img:hover {
    background: transparent;
    border: none;
    opacity: 0.6;
}

.btn-tag--img.actif {
    background: transparent;
    border: none;
    opacity: 0.35;
}

.btn-tag-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.tag-pill--img {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 3px 3px 0 0;
    border: none;
    background: transparent;
    height: 28px;
}

.tag-pill-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}


/* ===================== VUES PRINCIPALES ===================== */

.vue {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.vue.active {
    display: block;
}


/* ===================== CARTE ===================== */

#carte {
    width: 100%;
    height: 100%;
}


/* ===================== VUE GALERIE — TABLE ÉPARPILLÉE ===================== */

#vue-galerie {
    left: 350px;
    width: calc(100vw - 350px);
    overflow: hidden;
    background-image: url('images/backgroundgalerie.png');
    background-size: cover;
    background-position: center;
}

.galerie-header {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 600;
    pointer-events: auto;
}

.galerie {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.photo-carte {
    background: white;
    border-radius: 3px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.10);
    will-change: transform, left, top;
    transition: box-shadow 0.2s ease;
}

.photo-carte:hover {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.20),
        0 12px 36px rgba(0, 0, 0, 0.12);
}

.photo-carte-legende {
    height: 10px;
    background: white;
    border-radius: 0 0 3px 3px;
}

.pagination {
    display: none;
}

.btn-burger--galerie {
    position: fixed;
    top: 82px;
    left: 18px;
    z-index: 210;
}


/* ===================== FILTRE GÉO INLINE (galerie header) ===================== */

.geo-inline {
    display: flex;
    align-items: baseline;
    gap: 0;
    user-select: none;
}

.geo-inline-sep {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 26px;
    color: rgba(100, 90, 75, 0.45);
    padding: 0;
    margin: 0;
    pointer-events: none;
    line-height: 1;
}

.geo-inline-slot {
    position: relative;
}

.geo-inline-btn {
    background: none;
    border: none;
    padding: 0 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 26px;
    color: rgba(100, 90, 75, 0.45);
    cursor: url('images/curseur.png') 16 16, pointer;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.geo-inline-btn:hover:not(:disabled) {
    color: rgba(80, 65, 45, 0.75);
}

.geo-inline-btn--disabled,
.geo-inline-btn:disabled {
    cursor: url('images/souris.png') 16 16, default;
    opacity: 1;
}

.geo-inline-btn.a-valeur {
    color: rgba(60, 48, 30, 0.85);
}

.geo-inline-btn.a-valeur:hover {
    color: rgba(40, 28, 10, 0.95);
}

.geo-inline-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: rgb(18, 18, 18);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 6000;
    padding: 8px 0 10px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.geo-inline-dropdown.ouvert {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.geo-inline-option {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.52);
    text-align: left;
    cursor: url('images/curseur.png') 16 16, pointer;
    transition: color 0.12s ease, background 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.geo-inline-option:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
}

.geo-inline-option.actif {
    color: white;
    font-weight: 600;
}

.geo-inline-dropdown-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 0;
}


/* ===================== OVERLAYS MODAUX ===================== */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 7000;
    justify-content: center;
    align-items: center;
}

.overlay.actif {
    display: flex;
}

.apropos-container {
    background: linear-gradient(160deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 20px;
    padding: 40px;
    width: 70%;
    max-width: 600px;
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
}

.apropos-container h2 {
    font-size: 22px;
    color: rgb(88, 88, 88);
    margin-bottom: 20px;
    font-weight: 600;
    font-style: normal;
}

.apropos-container p {
    font-size: 15px;
    color: rgb(100, 100, 100);
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 400;
    font-style: normal;
}

.btn-fermer {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgb(245, 245, 245);
    border: none;
    width: 32px;
    height: 32px;
    cursor: url('images/curseur.png') 16 16, pointer;
    border-radius: 50%;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-fermer:hover {
    background: rgb(220, 220, 220);
}


/* ===================== MODAL PHOTO ===================== */

.photo-modal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-container {
    background: linear-gradient(160deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 16px;
    max-width: 92vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: flex;
    position: relative;
    overflow: hidden;
}

.photo-gauche {
    background: rgb(20, 20, 20);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    min-width: 200px;
    min-height: 200px;
}

.photo-gauche img {
    display: block;
    max-width: 70vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.photo-droite {
    width: 280px;
    flex-shrink: 0;
    padding: 40px 30px;
    overflow-y: auto;
    border-left: 1px solid rgb(220, 220, 220);
    flex-direction: column;
    gap: 24px;
    display: none;
}

.photo-droite.visible {
    display: flex;
}

.photo-droite h2 {
    font-size: 18px;
    color: rgb(60, 60, 60);
    font-weight: 600;
    font-style: normal;
}

.photo-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgb(160, 160, 160);
    margin-bottom: 8px;
    font-weight: 600;
    font-style: italic;
}

.photo-section p {
    font-size: 14px;
    color: rgb(80, 80, 80);
    line-height: 1.7;
    font-weight: 400;
    font-style: normal;
}

.indicateur-zoom {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.indicateur-zoom span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.2s ease;
}

.indicateur-zoom span.actif {
    background: white;
}


/* ===================== BARRE NAVIGATION PHOTO — FIXE EN BAS À GAUCHE ===================== */

.photo-nav-bar {
    position: fixed;
    bottom: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 7100;
}

.btn-nav-photo {
    width: auto;
    height: auto;
    background: none;
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-nav-photo img {
    height: 36px;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.btn-nav-photo svg {
    display: none;
}

.btn-nav-photo:hover {
    opacity: 0.7;
    transform: scale(1.08);
}

.btn-info-photo {
    width: auto;
    height: auto;
    background: none;
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.btn-info-photo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

.btn-info-photo:hover {
    opacity: 0.75;
}

.btn-info-photo.actif {
    opacity: 0.5;
}


/* ===================== SIDEBAR SECTION TITLE IMG ===================== */

.sidebar-section-title-img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
}

.sidebar-tags-section::-webkit-scrollbar {
    width: 0px;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
}

.drawer-item-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    margin: 0 auto;
}


/* ===================== ZONE TAGS ACTIFS ===================== */

.zone-tags-actifs {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.zone-tags-actifs.visible {
    display: flex;
}

.tag-actif-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px 4px 10px;
    border-radius: 1000px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    height: 28px;
    border: 1.5px solid;
    white-space: nowrap;
}

.tag-actif-pill--img {
    padding: 0 4px 0 0;
    background: transparent;
    border: none;
    height: 28px;
    gap: 3px;
}

.tag-actif-pill--img .tag-actif-pill-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.tag-actif-suppr {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: url('images/curseur.png') 16 16, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    line-height: 1;
    transition: background 0.15s ease;
    color: white;
    padding: 0;
}

.tag-actif-suppr:hover {
    background: rgba(255, 255, 255, 0.45);
}


/* ===================== CURSEUR PERSONNALISÉ ===================== */

button,
a,
[onclick],
.btn-tag,
.photo-carte,
.marqueur-photo,
label[for],
select,
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
input[type="button"] {
    cursor: url('images/curseur.png') 16 16, pointer;
}

.photo-droite,
.photo-droite *:not(button),
.apropos-container,
.apropos-container *:not(button):not(a),
.photo-section,
.photo-section * {
    cursor: url('images/souris.png') 16 16, auto !important;
}


/* ===================== LOCALISATION CLIQUABLE ===================== */

.coordonnees-cliquable {
    cursor: url('images/curseur.png') 16 16, pointer !important;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.coordonnees-cliquable:hover {
    color: rgb(40, 40, 40);
}


/* ===================== OVERLAY PARTICIPER — FORMULAIRE ===================== */

.participer-panel {
    background: linear-gradient(170deg, #ffffff 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 36px 40px 40px;
    width: 620px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.participer-panel::-webkit-scrollbar {
    display: none;
}

.participer-intro {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.participer-titre {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

/* -- Upload -- */

.soum-upload-zone {
    border: 2px dashed #bbb;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 16px;
    margin-bottom: 20px;
    cursor: url('images/curseur.png') 16 16, pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
}

.soum-upload-zone:hover {
    background: #efefef;
    border-color: #999;
}

.soum-upload-zone.dragover {
    background: #e8ffe8;
    border-color: #4caf50;
}

.soum-upload-zone input[type="file"] {
    display: none;
}

.soum-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soum-upload-icone-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 8px;
    pointer-events: none;
    user-select: none;
}

.soum-upload-sub {
    font-size: 11px;
    color: #aaa;
    font-family: 'Poppins', sans-serif;
}

.soum-upload-preview {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
}

/* -- Champs -- */

.soum-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    margin-top: 16px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.soum-input,
.soum-textarea {
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #222;
    background: #fff;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: border-color 0.2s;
}

.soum-input:focus,
.soum-textarea:focus {
    border-color: #aaa;
}

.soum-textarea {
    resize: none;
    height: 68px;
}

/* -- Tags formulaire -- */

.soum-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    margin-bottom: 2px;
    align-items: center;
}

.soum-tag-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: url('images/curseur.png') 16 16, pointer;
}

.soum-tag-btn img {
    height: 28px;
    width: auto;
    display: block;
    border-radius: 12px;
    border: 2.5px solid transparent;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.85;
}

.soum-tag-btn.sel img {
    border-color: #222;
    opacity: 1;
}

.soum-tag-text {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
    background: rgb(240, 240, 240);
    color: rgb(80, 80, 80);
    border: 1.5px solid rgb(200, 200, 200);
    cursor: url('images/curseur.png') 16 16, pointer;
    font-family: 'Poppins', sans-serif;
    height: 28px;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.soum-tag-text.sel {
    background: rgb(50, 50, 50);
    border-color: rgb(50, 50, 50);
    color: white;
}

/* -- Bouton envoyer -- */

.soum-btn-envoyer {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    background: #3cb043;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: url('images/curseur.png') 16 16, pointer;
    letter-spacing: 0.04em;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
}

.soum-btn-envoyer:hover {
    background: #2d8f34;
}

.soum-btn-envoyer:disabled {
    background: #aaa;
    cursor: url('images/souris.png') 16 16, default;
}

/* -- Message retour -- */

.soum-msg {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    display: none;
    line-height: 1.6;
}

.soum-msg.ok  { color: #2d8f34; }
.soum-msg.err { color: #c0392b; }

/* ===================== BARRE RECHERCHE GÉO ===================== */

#geocoder-wrap {
    position: fixed;
    top: 20px;
    left: 46%;
    transform: translateX(-50%);
    z-index: 150;
    width: 380px;
    max-width: calc(100vw - 400px);
}

#geocoder-wrap .mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: 100%;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    background: linear-gradient(90deg, #ffffff 55%);
    border: 1.5px solid rgba(77, 77, 77, 0.45);
    overflow: visible;
    min-width: 0;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--input {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    height: 38px;
    padding: 0 36px 0 38px;
    border-radius: 9999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.9);
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--icon-search {
    top: 9px;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: rgba(0, 0, 0, 0.8);
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--icon-loading {
    display: none;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder .suggestions-wrapper::before {
    display: none;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--pin-right > * {
    top: 8px;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--button {
    top: 7px;
    right: 12px;
    background: transparent;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--button:hover {
    background: rgba(249, 115, 22, 0.12);
    border-radius: 50%;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--icon-close {
    fill: rgba(0, 0, 0, 0.55);
}

#geocoder-wrap .suggestions {
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    margin-top: 8px;
    overflow: hidden;
}

#geocoder-wrap .suggestions > li > a {
    color: #555555;
    padding: 10px 20px;
}

#geocoder-wrap .suggestions > .active > a,
#geocoder-wrap .suggestions > li > a:hover {
    background: rgba(249, 115, 22, 0.07);
    color: #1a1a1a;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--suggestion-title {
    color: #1a1a1a;
    font-weight: 500;
}

#geocoder-wrap .mapboxgl-ctrl-geocoder--suggestion-address {
    color: #999999;
}


/* ===================== ZONE D'IMPRESSION ===================== */

#print-zone {
    display: none;
}

@media print {
    @page {
        size: A5 portrait;
        margin: 0;
    }

    body > *:not(#print-zone) { display: none !important; }

    #print-zone {
        display: block !important;
        visibility: visible !important;
    }

    .pz-page {
        width: 148mm;
        height: 210mm;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Poppins', sans-serif;
    }

    .pz-header {
        background: #121212;
        color: white;
        padding: 5mm 6mm;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .pz-logo {
        font-size: 11pt;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

    .pz-site {
        font-size: 7pt;
        opacity: 0.5;
    }

    .pz-photo-wrap {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        background: #111;
    }

    .pz-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pz-infos {
        flex-shrink: 0;
        padding: 4mm 6mm 3mm;
        border-top: 0.3mm solid #ddd;
    }

    .pz-label {
        font-size: 6pt;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #999;
        margin: 3mm 0 1mm;
    }

    .pz-label:first-child {
        margin-top: 0;
    }

    .pz-desc {
        font-size: 8pt;
        color: #333;
        line-height: 1.45;
        margin: 0;
    }

    .pz-tags {
        margin: 0;
        line-height: 1.6;
    }

    .pz-meta-val {
        font-size: 8pt;
        color: #444;
        margin: 0;
    }

    .pz-footer {
        flex-shrink: 0;
        display: flex;
        justify-content: space-between;
        padding: 2mm 6mm;
        border-top: 0.3mm solid #eee;
        font-size: 6pt;
        color: #bbb;
    }
}

body.printing #overlay-photo {
    visibility: hidden;
}


/* ===================== BOUTON IMPRIMER INLINE (panneau info) ===================== */

.photo-section--imprimer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgb(230, 230, 230);
}

.btn-imprimer-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 16px;
    background: rgb(245, 245, 245);
    border: 1.5px solid rgb(210, 210, 210);
    border-radius: 1000px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgb(70, 70, 70);
    cursor: url('images/curseur.png') 16 16, pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-imprimer-inline svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: rgb(100, 100, 100);
    transition: stroke 0.15s ease;
}

.btn-imprimer-inline:hover {
    background: rgb(255, 255, 255);
    border-color: rgb(30, 30, 30);
    color: rgb(0, 0, 0);
}

.btn-imprimer-inline:hover svg {
    stroke: rgb(0, 0, 0);
}


/* ===================== MODALE IMPRESSION ===================== */

.impression-panel {
    background: linear-gradient(160deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 20px;
    padding: 40px 40px 36px;
    width: 480px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.impression-panel::-webkit-scrollbar { display: none; }

.impression-titre {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgb(30, 30, 30);
    margin-bottom: 14px;
}

.impression-intro {
    margin-bottom: 22px;
}

.impression-intro p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgb(100, 100, 100);
    line-height: 1.75;
    margin-bottom: 8px;
}

.impression-apercu {
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impression-apercu img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: none;
}

.impression-btn-imprimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgb(255, 255, 255);
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    cursor: url('images/curseur.png') 16 16, pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.impression-btn-imprimer svg {
    width: 18px;
    height: 18px;
    stroke: rgb(0, 0, 0);
    flex-shrink: 0;
}

.impression-btn-imprimer:hover {
    background: rgb(0, 163, 38);
    transform: translateY(-1px);
}

.impression-btn-imprimer:active {
    transform: translateY(0);
}

/* ===================== IMAGE BOUTON IMPRIMER ===================== */

.btn-imprimer-img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.btn-imprimer-inline {
    padding: 0;
    height: 42px;
    background: none;
    border: none;
}

.impression-btn-imprimer {
    padding: 0;
    height: 48px;
    background: none;
}

.impression-btn-imprimer:hover {
    background: none;
    transform: translateY(-1px);
    opacity: 0.75;
}