/* ── Variables globales ──────────────────────────────────────── */
:root {
    --ink:        #0a0a0a;
    --ink-2:      #111111;
    --ink-3:      #161616;
    --line:       rgba(255, 255, 255, 0.10);
    --line-3:     rgba(255, 255, 255, 0.28);
    --text-2:     #eeeae0;
    --text-3:     #c6c1b8;
    --gold:       #c9a53a;
    --gold-line:  rgba(201, 165, 58, 0.55);
    --shadow-pop: 0 30px 80px -20px rgba(0,0,0,0.85), 0 10px 30px -10px rgba(0,0,0,0.7);
    --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* ── Scrollbars ─────────────────────────────────────────────── */
* {
    scrollbar-color: #2a2a2a var(--ink);
    scrollbar-width: thin;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #383838; }

/* ── Base ───────────────────────────────────────────────────── */
body {
    margin: 0;
    font-family: var(--sans);
    background-color: var(--ink);
    color: var(--text-2);
}

/* ── Menu ───────────────────────────────────────────────────── */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 20px;
    z-index: 1000;
}

.menu-container::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-line) 35%, var(--gold-line) 65%, transparent 100%);
    pointer-events: none;
}

.logo {
    height: 60px;
    padding: 5px 15px 5px 0;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.menu-principal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-grow: 1;
    margin-left: 20px;
}

.menu-item {
    position: relative;
}

.menu-principal button {
    padding: 15px 18px;
    border: none;
    background: none;
    color: var(--text-3);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s;
}

.menu-principal button:hover {
    color: var(--gold);
    background: none;
}

.sous-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--ink-3);
    border: 1px solid var(--line);
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.menu-item:hover .sous-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sous-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.sous-menu li {
    position: relative;
    padding: 0;
    color: var(--text-3);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: color 0.2s, background-color 0.2s;
}

.sous-menu li > a, .sous-menu li > li {
    padding: 8px 0 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-count {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    opacity: 0.45;
    flex-shrink: 0;
    margin-right: 14px;
}

.sous-menu li:hover, .sous-menu li.selected {
    color: var(--gold);
    background-color: rgba(201, 165, 58, 0.06);
}

/* ── Contenu principal ──────────────────────────────────────── */
.contenu {
    padding: 20px;
    padding-top: 10px;
}

/* ── Page À propos ──────────────────────────────────────────── */
.about-container {
    max-width: 900px;
    background-color: #000;
    border: 1px solid var(--line);
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line-3);
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-container h1 {
    font-family: var(--serif);
    font-weight: 300;
    color: #fbf8f1;
    font-size: 3em;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.about-container p {
    font-family: var(--serif);
    font-size: 1.35em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-2);
}

.about-lead::first-letter {
    font-family: var(--serif);
    font-size: 3.6em;
    font-style: normal;
    font-weight: 400;
    line-height: 0.82;
    float: left;
    padding: 6px 10px 0 0;
    color: var(--gold);
}

.quote {
    font-family: var(--serif);
    font-style: italic;
    margin: 36px 0 18px 0;
    font-size: 1.45em;
    line-height: 1.6;
    color: var(--text-2);
    position: relative;
}

.quote::before {
    content: '\201C';
    font-family: var(--serif);
    font-size: 2.8em;
    color: var(--gold);
    line-height: 0;
    vertical-align: -0.42em;
    margin-right: 4px;
    font-style: normal;
    opacity: 0.85;
}

.quote-text::after {
    content: '\201D';
    font-family: var(--serif);
    font-size: 2.8em;
    color: var(--gold);
    line-height: 0;
    vertical-align: -0.42em;
    margin-left: 4px;
    font-style: normal;
    opacity: 0.85;
}

.quote cite {
    display: inline;
    margin-top: 0;
    margin-left: 10px;
    font-size: 0.40em;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    font-family: var(--sans);
}

.signature {
    margin-top: 30px;
}

.signature img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    display: block;
}

.note {
    font-family: var(--sans);
    font-size: 0.72em;
    color: var(--text-3);
    margin-top: 24px;
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.contact {
    font-family: var(--sans);
    font-size: 0.72em;
    color: var(--text-3);
    margin-top: 12px;
    letter-spacing: 0.06em;
}

/* ── Mode Moderne ───────────────────────────────────────────── */
#contentDisplayArea.mode-moderne {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 10px;
    padding: 8px;
}

#contentDisplayArea.mode-moderne .vignette {
    display: block;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

#contentDisplayArea.mode-moderne .vignette img {
    display: block;
    height: 200px;
    width: auto;
    object-fit: fill;
    transform: none;
    transition: opacity 0.2s;
}

#contentDisplayArea.mode-moderne .vignette:hover img {
    opacity: 0.85;
    transform: none;
}

/* ── Page Statistiques ──────────────────────────────────────── */
.stats-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--ink-2);
    padding: 25px;
    border-radius: 4px;
}

.header-image {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 10px;
}
.stats-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-container h1 {
    font-family: var(--serif);
    font-weight: 300;
    color: #fbf8f1;
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 12px;
    font-size: 2em;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.stat-entry {
    display: grid;
    grid-template-columns: auto 130px 100px;
    gap: 15px;
    align-items: baseline;
    margin-bottom: 2px;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.stat-entry:hover {
    background-color: rgba(201, 165, 58, 0.05);
}

.stat-entry--voyage .path {
    color: #6cbf85;
    font-style: italic;
}

.count--voyage {
    color: var(--text-3);
}

.stat-icon {
    margin-right: 7px;
    font-style: normal;
}

.stat-entry .path {
    font-family: var(--sans);
    font-size: 0.85em;
    color: var(--text-2);
    letter-spacing: 0.01em;
}

.stat-entry .date {
    font-family: var(--mono);
    font-size: 0.82em;
    color: var(--text-3);
}

.stat-entry .count {
    font-family: var(--mono);
    font-size: 0.82em;
    color: var(--gold);
    font-weight: 500;
}

/* Bouton Liens Sites */
.btn-liens {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold-line, rgba(201,165,58,.4));
    padding: 7px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-liens:hover {
    background: rgba(201,165,58,.08);
    color: #f0d060;
}

/* Modal Liens Sites */
#liensModal { align-items: flex-start; padding-top: 0; padding-bottom: 0; }
.liens-popup {
    position: relative;
    background: var(--ink);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 680px;
    margin: auto;
    overflow-y: auto;
    max-height: 90vh;
}
.liens-banniere {
    width: 100%;
    display: block;
}
.liens-close {
    position: absolute;
    top: 14px;
    right: 14px;
}
.liens-content {
    padding: clamp(28px, 5vw, 56px);
    padding-top: 4px;
}
.liens-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.8em;
    color: #f0ede5;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.liens-intro {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0 0 28px;
}
.lien-card {
    border-top: 1px solid var(--line);
    padding: 18px 0 14px;
}
.lien-card:last-child {
    border-bottom: 1px solid var(--line);
}
.lien-card-url {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: #7ab4e0;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.lien-card-url:hover { color: var(--gold); }
.lien-card-desc {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
}

/* ── Popup Contact ──────────────────────────────────────────── */
.contact-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link:hover { color: #f0d060; }

.contact-popup {
    position: relative;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    width: min(540px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
}
.contact-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
}
.contact-popup-inner {
    padding: clamp(28px, 5vw, 48px);
}
.contact-popup-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--text-2);
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.contact-popup-intro {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-3);
    margin: 0 0 28px;
}
.contact-field {
    margin-bottom: 18px;
}
.contact-label {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 7px;
}
.contact-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text-2);
    font-family: var(--sans);
    font-size: 15px;
    padding: 10px 13px;
    transition: border-color 0.2s;
    outline: none;
}
.contact-input:focus { border-color: var(--gold-line); }
.contact-textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-captcha-row {
    margin-bottom: 20px;
}
.contact-captcha-q {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--gold);
    margin-left: 6px;
}
.contact-captcha-input {
    width: 110px;
    margin-top: 8px;
}
.contact-error {
    font-family: var(--sans);
    font-size: 13px;
    color: #e07070;
    margin-bottom: 14px;
    padding: 10px 13px;
    background: rgba(220, 80, 80, 0.1);
    border: 1px solid rgba(220, 80, 80, 0.25);
    border-radius: 2px;
}
.contact-success {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 22px;
    color: var(--text-2);
    text-align: center;
    padding: 30px 0 10px;
    line-height: 1.6;
}
.contact-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.contact-submit {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.contact-submit:hover {
    background: rgba(201, 165, 58, 0.08);
    color: #f0d060;
}
.contact-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Zone de contenu ────────────────────────────────────────── */
#contentDisplayArea {
    gap: 20px;
    padding: 20px;
    border-radius: 4px;
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Vignettes ──────────────────────────────────────────────── */
.vignette {
    cursor: pointer;
    background-color: var(--ink-2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 150px;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin: 5px;
    position: relative;
    transition: border-color 0.25s;
}

.vignette-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    padding: 4px 7px;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.vignette:hover .vignette-name {
    opacity: 1;
}

.vignette img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
    border: none;
    border-radius: 0;
}

.vignette img:hover {
    transform: scale(1.03);
}

.vignette:hover {
    border-color: var(--gold-line);
}

/* ── Burger (mobile) ────────────────────────────────────────── */
.burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 22px;
    padding: 15px;
    cursor: pointer;
    transition: color 0.2s;
}
.burger:hover { color: var(--gold); }

/* ── Sous-menus niveau 2 ────────────────────────────────────── */
.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.has-submenu > a::after {
    content: '▸';
    margin-right: 15px;
    font-size: 1.2em;
    color: var(--gold);
    opacity: 0.55;
    line-height: 1;
    vertical-align: middle;
}
.sous-menu-niveau2 {
    position: absolute;
    top: -11px;
    left: 100%;
    display: none;
    background-color: var(--ink-3);
    border: 1px solid var(--line);
    min-width: 200px;
    z-index: 20;
}
.sous-menu-niveau2 ul {
    padding: 8px;
    list-style: none;
    margin: 0;
}
.sous-menu li:hover > .sous-menu-niveau2 {
    display: block;
}

/* ── Basculement de vue ─────────────────────────────────────── */
.view-mode-toggle {
    display: flex;
    margin-right: 12px;
}

.view-mode-toggle button {
    background: none;
    border: 1px solid var(--line);
    color: var(--text-3);
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--sans);
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mode-icon {
    display: none;
    vertical-align: middle;
    flex-shrink: 0;
}

.view-mode-toggle button:first-child {
    border-radius: 2px 0 0 2px;
    border-right: none;
}

.view-mode-toggle button:last-child {
    border-radius: 0 2px 2px 0;
}

.view-mode-toggle button.active {
    background-color: rgba(201, 165, 58, 0.12);
    color: var(--gold);
    border-color: var(--gold-line);
}

.view-mode-toggle button:hover:not(.active) {
    background-color: rgba(255,255,255,0.04);
    color: var(--text-2);
    border-color: var(--line-3);
}

/* ── Slider taille ──────────────────────────────────────────── */
.slider-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 0;
}

.slider-container label {
    color: var(--text-3);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 10px;
}

.slider-container span {
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 12px;
    margin-left: 10px;
    min-width: 50px;
    text-align: left;
}

#thumbnailSizeSlider {
    width: 120px;
    -webkit-appearance: none;
    appearance: none;
    background: #222;
    outline: none;
    border-radius: 3px;
    height: 4px;
}

#thumbnailSizeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: grab;
}

/* ── Bandeau d'info galerie ─────────────────────────────────── */
.gallery-info-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: var(--ink-2);
    border-bottom: 1px solid var(--line);
    color: var(--text-3);
    font-family: var(--sans);
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gallery-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-nav-btn {
    background: none;
    border: 1px solid var(--gold-line);
    color: var(--gold);
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.gallery-nav-btn:hover {
    background-color: rgba(201, 165, 58, 0.1);
    color: #e8c55a;
}

.gallery-nav-label {
    color: var(--text-3);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
}

.gallery-nav-name {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--gold);
    user-select: none;
    white-space: nowrap;
    margin-left: 6px;
    margin-right: 8px;
    letter-spacing: 0.01em;
}

#totalPhotos {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-3);
}

/* ── Bouton carte desktop ───────────────────────────────────── */
#btnMapDesktop {
    font-size: 19px;
    line-height: 1;
    padding: 12px 18px;
}

/* ── Bouton carte mobile ────────────────────────────────────── */
#btnMapMobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.93);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    border: none;
    border-radius: 0;
}

.lightbox-caption {
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-3);
    font-size: 1.1em;
    letter-spacing: 0.02em;
    margin-top: 12px;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

.lightbox-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 165, 58, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: lightbox-spin 0.7s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes lightbox-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in {
    animation: fadeIn 0.5s ease;
}

.lightbox-button {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-3);
    border: 1px solid var(--line);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.lightbox-button:hover {
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--gold);
    border-color: var(--gold-line);
}

.lightbox-button:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 18px;
    padding: 4px 10px;
    font-family: var(--sans);
    letter-spacing: 0.06em;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1500px) {
    #btnMapMobile {
        display: inline-block;
    }

    .contenu {
        padding-top: 10px;
    }
    .menu-container {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }

    .logo {
        width: 100%;
        text-align: center;
        height: 50px;
        padding: 10px 0;
    }

    .menu-principal {
        flex-direction: column;
        display: none;
        margin-left: 0;

        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--ink-3);
        border: 1px solid var(--line);
        border-top: none;
        min-width: 250px;
        width: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        z-index: 1100;
    }

    .menu-principal.active {
        display: flex;
    }

    .burger {
        display: block;
        position: absolute;
        left: 15px;
        top: 15px;
        padding: 0;
    }

    .menu-item {
        width: 100%;
    }

    .sous-menu {
        position: relative;
        border: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }

    .menu-item.open .sous-menu {
        display: block;
    }

    .menu-item:hover .sous-menu {
        /* Ne rien faire sur mobile */
    }

    .slider-container {
        display: none !important;
    }

    #contentDisplayArea {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    .vignette {
        height: 100px;
        width: 100px;
    }

    .about-container h1 {
        font-size: 2.2em;
    }
    .about-container p {
        font-size: 1.15em;
    }
    .note {
        font-size: 0.65em;
    }
    .quote {
        font-size: 1.2em;
    }
    .signature img {
        max-width: 100%;
    }

    .stats-container {
        padding: 10px;
    }
    .stats-container h1 {
        font-size: 1.5em;
    }
    .stat-entry {
        font-size: 0.9em;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
    }
    .stat-entry .path {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .has-submenu > a::after {
        content: '▾';
    }
    .has-submenu.open > a::after {
        content: '▴';
    }
    .sous-menu-niveau2 {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        border: none;
        display: none;
        background-color: rgba(255,255,255,0.03);
        box-shadow: inset 0 4px 8px -4px rgba(0,0,0,0.4);
    }
    .has-submenu.open > .sous-menu-niveau2 {
        display: block;
    }

    /* Tablette : masquer diaporama et toggle vignettes */
    #btnStripToggle,
    #btnSlideshowPlay,
    #slideshowSpeed { display: none !important; }

    /* Tablette : tout sur une ligne */
    .gallery-info-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 6px 12px;
        gap: 10px;
    }
    .gallery-stats {
        margin-bottom: 0;
    }
    .gallery-nav-label {
        display: none;
    }
    .view-mode-toggle {
        margin-right: 0;
        margin-bottom: 0;
    }
    .view-mode-toggle button {
        padding: 5px 8px;
    }
    .mode-icon { display: inline-block; }
    .mode-label { display: none; }

    .lightbox-prev, .lightbox-next {
        left: 5px;
        right: 5px;
        font-size: 20px;
        padding: 8px 12px;
        width: 40px;
        text-align: center;
        top: unset;
        transform: unset;
        bottom: 10px;
        z-index: 101;
    }
    .lightbox-prev {
        left: 10px;
        right: auto;
    }
    .lightbox-next {
        right: 10px;
        left: auto;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 18px;
        padding: 3px 8px;
    }
    .lightbox-caption {
        font-size: 0.95em;
        margin-top: 10px;
    }
}

/* ── Bandeau vignettes ──────────────────────────────────────── */
.thumbnail-strip {
    display: none;
    position: fixed;
    bottom: 62px;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(0, 0, 0, 0.80);
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 8px;
    gap: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    z-index: 2050;
}
.thumbnail-strip::-webkit-scrollbar { height: 3px; }
.thumbnail-strip::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.thumb-strip-item {
    flex-shrink: 0;
    height: 62px;
    width: auto;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    border-radius: 1px;
    transition: opacity 0.15s;
    object-fit: cover;
}
.thumb-strip-item:hover { opacity: 0.7; }
.thumb-strip-item.active {
    opacity: 1;
    border-color: var(--gold);
}

.lightbox-play-btn.active { color: var(--gold); }

/* ── Cluster marqueurs carte ─────────────────────────────────── */
.cluster-icon {
    width: 32px;
    height: 32px;
    background: rgba(201, 165, 58, 0.85);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--mono);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ── Contrôles diaporama ─────────────────────────────────────── */
.lightbox-controls {
    position: fixed;
    bottom: 16px;
    right: 20px;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--line);
    padding: 5px 16px;
    border-radius: 20px;
    z-index: 2100;
}
.lightbox-counter {
    font-family: var(--mono);
    color: var(--text-3);
    font-size: 12px;
    min-width: 56px;
    text-align: center;
    letter-spacing: 0.06em;
}
.lightbox-play-btn {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 17px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s;
    line-height: 1;
}
.lightbox-play-btn:hover { color: var(--gold); }
.slideshow-speed {
    background: var(--ink-3);
    color: var(--text-3);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 6px;
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
}

/* ── Carte du monde ──────────────────────────────────────────── */
.worldmap-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}
.worldmap-overlay.active {
    display: flex;
}
.worldmap-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.worldmap-title {
    font-family: var(--serif);
    font-weight: 300;
    color: var(--text-3);
    text-align: center;
    margin: 0;
    padding: 10px 40px;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--ink-3);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.worldmap-close-btn {
    position: absolute;
    top: 8px; right: 14px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.worldmap-close-btn:hover { color: var(--gold); }
#worldMap {
    flex: 1;
    width: 100%;
}
/* Curseur : flèche standard de l'OS sur la carte, main qui pointe sur les points */
#worldMap.leaflet-grab,
#worldMap .leaflet-grab,
#worldMap.leaflet-dragging,
#worldMap.leaflet-dragging .leaflet-grab {
    cursor: default !important;
}
#worldMap .leaflet-marker-icon,
#worldMap .leaflet-interactive {
    cursor: pointer !important;
}
.gallery-marker-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 8px rgba(201, 165, 58, 0.7);
    cursor: pointer;
}
.map-popup {
    color: #111;
    line-height: 1.5;
    font-family: var(--sans);
    font-size: 13px;
}
.map-popup-flag {
    display: block;
    width: 60px;
    height: auto;
    margin: 0 0 6px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.map-popup strong { display: block; }
.map-popup-count {
    color: #555;
    font-size: 12px;
    margin: 2px 0 6px;
}
.map-popup a {
    display: inline-block;
    color: #8B5E0D;
    font-weight: 600;
    text-decoration: none;
}
.map-popup a:hover { text-decoration: underline; }

/* ── Boutons d'action galerie ────────────────────────────────── */
.gallery-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    border-radius: 2px;
}

.action-btn-carnet {
    background: rgba(45, 100, 45, 0.15);
    border: 1px solid rgba(70, 140, 70, 0.45);
    color: #7dc87d;
}
.action-btn-carnet:hover {
    background: rgba(45, 100, 45, 0.28);
    border-color: rgba(70, 140, 70, 0.7);
    color: #9de49d;
}

.action-btn-pays {
    background: rgba(201, 165, 58, 0.1);
    border: 1px solid var(--gold-line);
    color: var(--gold);
}
.action-btn-pays:hover {
    background: rgba(201, 165, 58, 0.2);
    border-color: var(--gold);
    color: #e8c55a;
}
@keyframes carnet-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,165,58,0.55); }
    60%  { box-shadow: 0 0 0 7px rgba(201,165,58,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,165,58,0); }
}
.action-btn-pays.pulse {
    animation: carnet-pulse 1s ease-out 10;
}

/* ── Popup voyage ───────────────────────────────────────────── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px) saturate(0.9);
    -webkit-backdrop-filter: blur(14px) saturate(0.9);
    align-items: flex-start;
    justify-content: center;
    padding: clamp(16px, 4vh, 56px) clamp(16px, 4vw, 56px);
    z-index: 3500;
    overflow-y: auto;
}
.popup-overlay.active {
    display: flex;
    animation: popup-overlay-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes popup-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.popup {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    animation: popup-slide-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: 50% 0%;
}

@keyframes popup-slide-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
    pointer-events: none;
}

/* Bandeau */
.popup-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 320;
    overflow: hidden;
    background: #000;
}

.popup-banner-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    animation: popup-ken-burns 18s ease-out both;
}

@keyframes popup-ken-burns {
    from { transform: scale(1.06); }
    to   { transform: scale(1.00); }
}

.popup-banner-grain {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    pointer-events: none;
    opacity: 0.5;
}

.popup-banner-vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.85) 100%),
        radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.popup-banner-tl {
    position: absolute;
    top: 18px; left: 22px;
    display: flex; align-items: center; gap: 12px;
    z-index: 2;
}

.popup-flag {
    width: 60px; height: 44px;
    border: 1px solid var(--line-3);
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    display: block;
}
.popup-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popup-year {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 44px;
    color: #fbf8f1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.popup-banner-tr {
    position: absolute;
    top: 16px; right: 16px;
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
}

.popup-iconbtn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans);
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    text-shadow: 0 2px 24px rgba(0,0,0,0.6);
    transition: color 0.2s ease;
}
.popup-iconbtn:hover {
    color: var(--gold);
}
.popup-iconbtn--close {
    width: 36px; height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-banner-title {
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

.popup-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin: 0;
    color: #fbf8f1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.popup-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    font-family: var(--sans);
}

.popup-rule {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--gold-line);
}

/* Bande de méta-données */
.popup-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 22px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--ink-3);
}

.popup-meta-item {
    display: flex; flex-direction: column;
    align-items: center;
    gap: 4px;
}

.popup-meta-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
}

.popup-meta-value {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: #f0ede5;
    letter-spacing: 0.005em;
}

.popup-meta-sep {
    color: var(--gold);
    font-size: 7px;
    opacity: 0.7;
}

/* Corps */
.popup-body { padding: 0; }

.popup-prose {
    padding: 24px clamp(40px, 6vw, 80px) 20px;
    width: 100%;
    box-sizing: border-box;
}

.popup-prose-cols p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-2);
    margin: 0 0 16px;
}

.popup-prose-lead {
    font-family: var(--serif) !important;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 1.55 !important;
    color: #ece9e0 !important;
    font-style: italic;
    margin-bottom: 18px !important;
}

.popup-prose-lead::first-letter {
    font-family: var(--serif);
    font-size: 56px;
    font-style: normal;
    line-height: 0.85;
    float: left;
    padding: 6px 12px 0 0;
    color: var(--gold);
    font-weight: 400;
}

/* Points forts */
.popup-highlights {
    padding: 16px 44px 36px;
    border-top: 1px solid var(--line);
    background: var(--ink-2);
}

.popup-section-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin: 0 0 16px;
}

.popup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-chip {
    font-family: var(--serif);
    font-size: 17px;
    color: #ebe7dc;
    letter-spacing: 0.005em;
    cursor: default;
    display: inline-flex;
    align-items: center;
}

.popup-chip:not(:last-child)::after {
    content: "·";
    color: var(--gold);
    margin: 0 14px;
    opacity: 0.7;
}

/* ── Carnet de route dans popup ───────────────────────────────── */
.popup-carnet {
    border-top: 1px solid var(--line);
    padding: 0 clamp(40px, 6vw, 80px) 48px;
}

.popup-carnet .popup-section-label {
    margin: 28px 0 0;
    padding: 0;
    border: none;
}

.popup-carnet h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.7em;
    color: #f0ede5;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin: 32px 0 16px;
}

.popup-carnet p { font-size: 15px; line-height: 1.75; color: var(--text-2); margin: 0 0 10px; }
.popup-carnet li { font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 4px; }

.popup-prose a { color: #7ab4e0; text-decoration: none; }
.popup-prose a:hover { color: var(--gold); }
.popup-carnet a { color: #7ab4e0; text-decoration: none; }
.popup-carnet a:hover { color: var(--gold); }

/* Résumé trajet */
.popup-carnet .trip-summary {
    background: var(--ink-3);
    border: 1px solid var(--line);
    padding: 14px 20px;
    margin-bottom: 16px;
}
.popup-carnet .trip-summary h3 {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: #d0ccc3;
}
.popup-carnet .trip-summary ul { list-style: none; padding: 0; margin: 0; }
.popup-carnet .trip-summary li { padding: 3px 0 3px 16px; position: relative; margin-bottom: 2px; }
.popup-carnet .trip-summary li::before { content: '›'; position: absolute; left: 0; color: var(--gold); }

/* Carte */
.popup-carnet .map-container {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-left: calc(-1 * clamp(40px, 6vw, 80px));
    margin-right: calc(-1 * clamp(40px, 6vw, 80px));
    margin-bottom: 20px;
    overflow: hidden;
}
.popup-carnet .map-container img { width: 100%; height: auto; display: block; }
.popup-carnet .map-container p {
    padding: 6px 12px; margin: 0; font-size: 12px;
    background: var(--ink-3); border-top: 1px solid var(--line);
}

/* Accordéon */
.popup-carnet .accordion-item { border-bottom: 1px solid var(--line); }
.popup-carnet .accordion-item:last-child { border-bottom: none; }
.popup-carnet .accordion-header {
    padding: 14px 12px;
    cursor: pointer;
    background: var(--ink-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.popup-carnet .accordion-header:hover { background: #1d1d1d; }
.popup-carnet .accordion-header h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.05em;
    font-weight: 400;
    color: #e8e4da;
}
.popup-carnet .accordion-header > span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.popup-carnet .accordion-header::after {
    content: '+'; font-size: 1.4em; color: var(--gold); font-weight: 300; flex-shrink: 0;
}
.popup-carnet .accordion-item.active .accordion-header::after { content: '−'; }
.popup-carnet .accordion-content {
    padding: 16px 20px; display: none;
    background: var(--ink); border-top: 1px solid var(--line);
}
.popup-carnet .accordion-content p { margin-top: 0; }
.popup-carnet .accordion-content ul { margin: 6px 0 10px 20px; padding: 0; }

/* Badges */
.popup-carnet .hotel-badge,
.popup-carnet .transport-badge,
.popup-carnet .festival-badge {
    display: inline-block; font-size: 11px;
    padding: 3px 10px; border-radius: 2px; margin: 6px 4px 0 0;
}
.popup-carnet .hotel-badge    { background: #1a2e1a; border: 1px solid #2d5a2d; color: #8bc48b; }
.popup-carnet .transport-badge { background: #1a1a2e; border: 1px solid #3a3a7a; color: #8b8bba; }
.popup-carnet .festival-badge  { background: #2e1a1a; border: 1px solid #7a3a3a; color: #c48b8b; }

/* Vignettes */
.popup-carnet .thumbnail-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.popup-carnet .thumbnail-gallery a {
    display: block; border: 1px solid var(--line); overflow: hidden; transition: border-color 0.2s;
}
.popup-carnet .thumbnail-gallery a:hover { border-color: var(--gold-line); }
.popup-carnet .thumbnail-gallery img { width: auto; height: 90px; display: block; transition: transform 0.3s; }
.popup-carnet .thumbnail-gallery a:hover img { transform: scale(1.05); }

/* Hôtels */
.popup-carnet .hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px; margin-top: 14px;
}
.popup-carnet .hotel-card { background: var(--ink-3); border: 1px solid var(--line); }
.popup-carnet .hotel-card-body { padding: 12px 16px; }
.popup-carnet .hotel-card-body h4 {
    margin: 0 0 6px; font-family: var(--serif);
    font-size: 1em; font-weight: 400; color: #e0dcd3;
}
.popup-carnet .hotel-card-city,
.popup-carnet .hotel-card-dates,
.popup-carnet .hotel-card-price { font-size: 12px; margin: 0 0 3px; color: var(--text-3); }

/* Trains */
.popup-carnet .train-card {
    background: var(--ink-3); border: 1px solid var(--line);
    padding: 16px 20px; margin-bottom: 10px;
}
.popup-carnet .train-card h4 {
    margin: 0 0 8px; color: #8b8bba;
    font-family: var(--sans); font-size: 12px; font-weight: 500;
}
.popup-carnet .train-route {
    font-family: var(--serif); font-size: 1.25em;
    font-weight: 300; color: #f0ede5; margin-bottom: 8px;
}
.popup-carnet .train-details {
    font-size: 12px; color: var(--text-3);
    display: flex; flex-wrap: wrap; gap: 4px 16px;
}

/* ── Lightbox images carnet de route ────────────────────────── */
.carnet-img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.carnet-img-overlay.active {
    display: flex;
    animation: popup-overlay-in 0.2s ease;
}
.carnet-img-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.carnet-img-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--line);
    color: var(--text-3);
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.carnet-img-close:hover {
    color: var(--gold);
    border-color: var(--gold-line);
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    #lightboxControls { display: none !important; }
    .thumbnail-strip  { display: none !important; }
}

/* Smartphone : compteur + toggle sur ligne 1, carnet de route sur ligne 2 */
@media (max-width: 767px) {
    .gallery-info-bar {
        flex-wrap: wrap;
        padding: 6px 8px;
        gap: 4px;
    }
    .gallery-stats {
        order: 1;
    }
    .gallery-nav-name {
        display: none;
    }
    .view-mode-toggle {
        order: 2;
        margin-left: auto;
    }
    .view-mode-toggle button {
        padding: 5px 8px;
    }
    .mode-icon { display: inline-block; }
    .mode-label { display: none; }
    .gallery-action-btns {
        order: 3;
        width: 100%;
        flex-grow: 0;
        justify-content: center;
        gap: 6px;
    }

    .action-btn-carnet {
        font-size: 0.82em;
        padding: 6px 10px;
    }
}

@media (max-width: 760px) {
    .popup-overlay { padding: 0; }
    .popup { max-width: 100%; min-height: 100vh; border: none; }
    .popup-banner { aspect-ratio: 16 / 11; }
    .popup-title { font-size: clamp(40px, 12vw, 64px); }
    .popup-prose { padding: 32px 24px 8px; }
    .popup-highlights { padding: 24px; }
    .popup-meta { gap: 12px; padding: 18px 20px; }
    .popup-meta-value { font-size: 16px; }
    .popup-carnet { padding: 0 20px 32px; }
    .popup-carnet .map-container { margin-left: -20px; margin-right: -20px; }
    .popup-carnet .hotel-grid { grid-template-columns: 1fr; }
    .popup-carnet .thumbnail-gallery img { height: 70px; }
}
