/* ------------------------------------------------------------------
 * Layout helpers
 * ------------------------------------------------------------------ */
.wrap {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.container {
    width: min(1150px, 92vw);
    margin-inline: auto;
}

.full-height {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row {
    display: flex;
    gap: 12px;
}

.row>div {
    flex: 1;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.center {
    text-align: center;
}

.media {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.media img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: var(--border);
    background: #fff;
}

.pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------
 * Typography & base elements
 * ------------------------------------------------------------------ */
a {
    color: inherit;
    text-decoration: none;
}

a.back {
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 1em;

}

a.back:before {
    content: '⬅️';
    font-weight: bold;
}

a.back:hover {
    background: #f3f4f6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.4em;
}

h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
}

h3 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

p {
    margin: 0.2em 0 1em;
    color: var(--muted);
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0;
}

dt {
    font-weight: 600;
    color: #111827;
}

dd {
    margin: 0;
    color: #334155;
}

/* ------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------ */
form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 20px;
    max-width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: var(--border);
    border-radius: 8px;
    background: #fff;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: var(--border);
    border-radius: 2px;
    background: #fff;
    margin-bottom: 3px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

textarea.input {
    min-height: 140px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(37, 99, 235, 0.16);
    border-color: #2563eb;
}

.input:focus {
    outline: 4px solid var(--ring);
    border-color: #c4b5fd;
}

.ok {
    background: #e6ffed;
    border: var(--border);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.75rem 0;
}

.err {
    color: var(--err);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.share-form {
    display: grid;
    gap: 0.5rem;
    max-width: 420px;
}

.share-form input {
    padding: 0.5rem;
    border: var(--border);
}

.form {
    max-width: 720px;
    margin: 0 auto;
}

/* Field utilities */
.field {
    grid-column: span 6;
}

.field.span-12 {
    grid-column: 1 / -1;
}

.field.span-4 {
    grid-column: span 4;
}

.field.span-3 {
    grid-column: span 3;
}

.field label {
    display: block;
    font-weight: 600;
    margin: 6px 0 4px;
    color: var(--text);
}

.field input,
.field select {
    width: 100%;
}

.field-group,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="file"],
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="file"],
.form-field textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: var(--border);
    background: rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.field-grid,
.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid--3,
.field-grid--thirds {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
}

.fieldset {
    border: var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fieldset legend {
    font-weight: 600;
    padding: 0 8px;
    color: #475569;
}

.label {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.5rem 1.8rem;
    border-radius: 12px;
    border: var(--border);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
    background: #fff;
    color: var(--fg, #111827);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn.primary,
.btn-primary {
    background: linear-gradient(120deg, var(--brand, #2563eb), var(--brand-2, #4f46e5));
    color: #fff;
    border: 0;
}

.btn.ghost {
    background: #fff;
    border: var(--border);
    color: var(--primary, #1d4ed8);
}

.btn.danger {
    background: rgba(255, 0, 0, 1);
    color: #ffffff;
}

.btn.green {
    background: rgb(0, 127, 0);
    padding: 0.5rem 1.8rem;
    color: #ffffff;
}

.btn.small,
.btn.btn-sm {
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn.gmaps {
    background: #ea4335;
    color: #fff;
}

.btn.apple {
    background: #000;
    color: #fff;
}

.btn.success {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.btn.success:hover {
    filter: brightness(1.05);
}

.btn.full {
    width: 100%;
}

.btn-secondary {
    background-color: #6b7280;
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

.form-actions,
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ------------------------------------------------------------------
 * Cards & sections
 * ------------------------------------------------------------------ */
.card {
    background: #fff;
    border: var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.card h2 {
    margin: 0.2rem 0 1rem;
    font-size: 1.1rem;
    color: #111827;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;

}



.tile {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 16px;
    min-height: 120px;
}

.tile h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.title {
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-comment {
    border-left: 4px solid var(--border);
    margin: 12px 2em;
    color: var(--fg);
    font-style: italic;
}

/* --- Layout général --- */
.pv-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

/* Mobile : tout en une colonne */
@media (max-width: 768px) {
    .pv-detail-grid {
        grid-template-columns: 1fr;
    }
}


.pv-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 1.8rem;
    border-radius: 15px;
    background: #e4e4e4;
    color: #444;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

/* Adresse texte sous le pill */
.pv-address {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #333;
}

/* --- Grille d'infos (Étage / codes / interphone) --- */
.pv-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.pv-info-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

/* Valeur sous le pill, centrée comme sur la maquette */
.pv-info-value {
    display: block;
    padding: 0.35rem 0.75rem;
    /* border-radius: 999px; */
    /* background: #f5f5f5; */
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    width: 100%;
}

/* --- Colonne propriétaire / actions / QR --- */
.pv-owner-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.pv-owner-name {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    color: #333;
}

/* Boutons type iOS / maquette */
/* --- Avatar + Nom du propriétaire --- */
.pv-owner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.pv-owner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    background: #fff;
}

.pv-owner-name {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    color: #333;
}

/* --- Numéro du propriétaire --- */
.pv-owner-phone {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .95rem;
    color: #12833b;
    font-weight: 600;
    text-decoration: none;
}

.pv-owner-phone:hover {
    text-decoration: underline;
}

.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* pas de soulignement au survol */
.pv-btn:hover,
.pv-btn:focus {
    text-decoration: none;
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* Téléphoner (vert) */
.pv-btn-primary {
    background: #12833b;
    color: #fff;
}

/* QRcode (pill gris clair) */
.pv-btn-secondary {
    background: #ececec;
    color: #444;
}

/* --- QR code --- */
.pv-qr-block {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.pv-qr-img {
    width: 190px;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.pv-serial-under {
    margin-top: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    color: #222;
}

.pv-report-modal {
    border: none;
    border-radius: 16px;
    padding: 2px 20px;
    max-width: 420px;
    width: 90vw;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.pv-report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pv-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.report-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    /* caché par défaut */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.report-overlay.is-open {
    display: flex;
}

.report-modal {
    background: #fff;
    border-radius: 18px;
    padding: 20px 22px 18px;
    max-width: 420px;
    width: 90vw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    position: relative;
    font-size: 0.95rem;
}

.report-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-help {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.report-field input,
.report-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    font: inherit;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* Desktop : un peu plus "large" sur la colonne droite */
@media (min-width: 1024px) {
    .pv-owner-block {
        align-items: flex-start;
    }

    .pv-owner-actions,
    .pv-qr-block {
        align-items: flex-start;
    }
}

.features {
    padding: 30px 0;
}

.badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 12px;
}

.badge.success,
.badge.ok {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.badge.warning,
.badge.warn {
    background: rgba(234, 179, 8, 0.18);
    color: #fde68a;
}

/* ------------------------------------------------------------------
 * Hero & CTA sections
 * ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--violet), var(--pink));
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(1.8rem, 4.8vw, 3rem);
    letter-spacing: 0.2px;
}

.hero p {
    color: #eef2ff;
}

.lead {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--muted);
    margin: 10px 0 18px;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.phone {
    max-width: 320px;
    margin: 20px auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35));
}

.wave {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -1px;
    height: 120px;
    background: radial-gradient(120% 100% at 50% 0, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.section {
    padding: 0;
}

.walk_bloc {
    padding: 50px 30px;
    margin: 50px 0;
}

.walk_txt {
    margin: 0 auto;
    text-align: left;
}

.circle {
    color: var(--primary);
    border-color: var(--primary);
    float: left;
    margin-right: 50px;
}

.round_bg {
    background-image: url('/assets/images/round_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.round_bg img {
    width: 70%;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 12px 0;
    line-height: 1.9em;
}

.step h3 {
    margin: 25px 0;
}

.kicker {
    color: #60a5fa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.cta-final {
    background: linear-gradient(120deg, var(--violet), var(--pink));
    color: #fff;
    text-align: center;
    padding: 48px 0;
}

footer {
    background: #0b1020;
    color: #cbd5e1;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 34px;
}

/* ------------------------------------------------------------------
 * Map & waypoint pages
 * ------------------------------------------------------------------ */
#map {
    width: 100%;
    height: 100vh;
    /* border-radius: 18px; */
    border: var(--border);
    /* margin: 0.5rem 0 1.5rem; */
    /* box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25); */
    overflow: hidden;

}

.map-page {
    max-width: 1100px;
    margin: 24px auto 48px;
    padding: 0 18px 32px;
}

.map-hero {
    background: #0f172a;
    border-radius: 18px;
    padding: 22px 26px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    margin-bottom: 24px;
}

.form-card {

    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 18px;
    padding: 26px;
    color: var(--text);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
}

.duplicate-message {
    color: #f87171;
    font-size: 0.85rem;
    display: none;
}

.duplicate-message.is-visible {
    display: block;
}

.location-status {
    margin: 6px 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    border: var(--border);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-size: 0.9rem;
    display: none;
}

.location-status.is-visible {
    display: block;
}

.leaflet-container {
    border-radius: 12px;
    border: 1px solid #1f2430;
    height: 360px;
}

.leaflet-container img {
    max-width: none !important;
}

.leaflet-control-geocoder {
    max-width: 280px;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------
 * Profile page
 * ------------------------------------------------------------------ */
.profile-page {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}

.profile-hero__identity {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-hero__identity h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-hero__identity p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: rgba(148, 163, 184, 0.15);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #cbd5f5;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-status {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-hero__feedback {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.flash.success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.flash.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.flash ul {
    margin: 0;
    padding-left: 18px;
}

.profile-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 2fr) minmax(1, 1fr);
}

.profile-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-card header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.profile-card header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.readonly-chip {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #cbd5f5;
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

.profile-card--secondary {
    gap: 16px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-subcard {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-subcard h3 {
    margin: 0;
    font-size: 1.1rem;
}

.profile-subcard p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.profile-subcard.danger {
    background: #fff5f5;
    border-color: rgba(239, 68, 68, 0.25);
}

.profile-card--full {
    gap: 22px;
}

/* ------------------------------------------------------------------
 * User edit page
 * ------------------------------------------------------------------ */
.user-edit {
    color: var(--text);
    background: var(--bg);
    min-height: calc(100vh - 120px);
    padding: clamp(16px, 2.5vw, 28px);
}

.user-edit .page-title {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    letter-spacing: 0.2px;
    margin: 0 0 18px 0;
}

.user-edit .subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
}

.avatar-card .preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.avatar-card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drop {
    margin-top: 10px;
    border: var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.drop input[type=file] {
    display: none;
}

.drop .pick {
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
}

/* ------------------------------------------------------------------
 * Media panels (waypoint edit)
 * ------------------------------------------------------------------ */
.media-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.media-grid .panel {
    /* background: #0e1018; */
    /* border: var(--border); */
    border-radius: 12px;
    padding: 12px;
}

.panel h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #a7acb4;
    font-weight: 600;
}

.panel .imgbox {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #0b0d14; */
    /* border: 1px dashed #273048; */
    border-radius: 10px;
    min-height: 140px;
    overflow: hidden;
}

.panel img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Key-value display */
.kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.kv .key {
    color: black;
}

.kv .val code {
    background: #0e1018;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #1f2430;
}

.hr {
    height: 1px;
    background: #1f2430;
    margin: 12px 0;
}

/* ------------------------------------------------------------------
 * Components & utilities
 * ------------------------------------------------------------------ */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
}

.brand img {
    height: 60px;
    width: auto;
}

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(15, 23, 42, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
}

.lang-switch a {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e293b;
}

.lang-switch a.active {
    background: #0f172a;
    color: #f8fafc;
}

.star-btn {
    line-height: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    color: #f5c518;
}

.star-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    transition: 0.15s ease;
}

.share-box {
    margin-top: 0rem;
}

.top_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px !important;
    border-radius: 50%;
    background: var(--bg, #0f172a);
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    opacity: 0.5;
    z-index: 999;
}

.favori {
    color: yellow;
    cursor: pointer;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.dot-online {
    background: #16a34a;
}

.dot-offline {
    background: #9ca3af;
}

/* ------------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------------ */
.table-wrapper {
    overflow-x: auto;
}

.table-wrapper table,
table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-wrapper thead th,
table.table thead th,
thead th {
    text-align: left;
    padding: 12px 14px;
    background: #f1f5f9;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.table-wrapper tbody td,
table.table tbody td,
tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e0e7ff;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: #3730a3;
}

.status-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-chip.online {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

.status-chip.offline {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
}

/* ------------------------------------------------------------------
 * Dropdowns
 * ------------------------------------------------------------------ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown_menu,
.dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* padding: 6px; */
    display: none;
    z-index: 900;
    text-align: center;
}

.dropdown .dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    /* color: #111827; */
    text-decoration: none;
    font-size: 14px;
}

.dropdown .dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown.open .dropdown-menu {
    display: block;
}


/* ------------------------------------------------------------------
 * Lang
 * ------------------------------------------------------------------ */
.lang-menu {
    z-index: 9999;
}

/* Optionnel : pour éviter toute confusion visuelle */
.row-available {
    background: #0e1018;
    border: 1px solid var(--border-color, #1f2430);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.row-selected {
    background: #0e1018;
    border: 1px solid var(--border-color, #1f2430);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}


/* Lightbox */
.photo-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.photo-lightbox[aria-hidden="false"] {
    display: flex;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.photo-lightbox-content {
    position: absolute;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.photo-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-prev {
    left: -56px;
}

.photo-lightbox-next {
    right: -56px;
}

@media (max-width: 768px) {
    .photo-lightbox-prev {
        left: 8px;
    }

    .photo-lightbox-next {
        right: 8px;
    }
}

.thumb-item {
    position: relative;
}

.thumb-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(255, 0, 0, 1);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
}

.thumb-item:hover .thumb-delete {
    display: flex;
}


/* === Public view container === */
/* Page "public_show" */
.pv-page {
    min-height: 100vh;
    background: #f5f5fa;
}

/* --- Carte en haut --- */
.pv-map-wrapper {
    width: 100%;
    height: 55vh;
    /* hauteur confortable sur mobile */
    max-height: 480px;
    background: #e5e7eb;
}

.pv-map {
    width: 100%;
    height: 100%;
}

/* --- Fiche d’info complète en dessous --- */
.pv-sheet {
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.15);
    padding: 16px 20px 32px;
    margin-top: 0;
    /* rien ne recouvre la carte */
}

.pv-sheet-header {
    text-align: center;
    margin-bottom: 16px;
}

.pv-sheet-serial {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 4px;
}

.pv-sheet-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Mise un peu plus large sur desktop */
@media (min-width: 768px) {
    .pv-page {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pv-map-wrapper,
    .pv-sheet {
        max-width: 900px;
    }

    .pv-map-wrapper {
        margin: 12px 0;
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
    }

    .pv-sheet {
        border-radius: 24px;
        margin-top: 16px;
    }
}

/* -------- Galerie photos -------- */

.pv-gallery {
    padding: 16px 20px 8px;
}

.pv-gallery-header {
    text-align: center;
    margin-bottom: 12px;
}

.pv-gallery-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
}

.pv-gallery-serial {
    margin: 4px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
}

/* Conteneur principal : nav + viewport */

.pv-gallery-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Flèches gauche/droite */

.pv-gallery-nav {
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    width: 28px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.pv-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.pv-gallery-nav:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
}

/* Viewport masquant le dépassement */

.pv-gallery-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    border-radius: 16px;
}

/* Piste de slides */

.pv-gallery-track {
    display: flex;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

/* Une “vignette” */

.pv-gallery-item {
    margin: 0;
    padding: 0;
    flex: 0 0 50%;
    /* 2 images visibles sur mobile */
    box-sizing: border-box;
}

.pv-gallery-img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

/* Desktop : 3 ou 4 vignettes visibles */

@media (min-width: 768px) {
    .pv-gallery-item {
        flex-basis: 33.333%;
        /* 3 par “page” */
    }

    .pv-gallery-img {
        height: 190px;
    }
}

@media (min-width: 1024px) {
    .pv-gallery-item {
        flex-basis: 25%;
        /* 4 par “page” */
    }

    .pv-gallery-img {
        height: 210px;
    }
}

/* -------- Lightbox fullscreen -------- */

.pv-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    /* masqué par défaut */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pv-lightbox.is-open {
    display: flex;
}

.pv-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.pv-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 96vw;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pv-lightbox-close {
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.pv-lightbox-image {
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* --- Galerie en ligne --- */
/* -------------------------------
   TITRE
-------------------------------- */
.point-title {
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
    margin-top: 1rem;
}

.point-serial {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

/* -------------------------------
   GALERIE
-------------------------------- */
.photo-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0 1.5rem;
}

.photo-track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .25rem 0;
}

.photo-track::-webkit-scrollbar {
    height: 0;
}

.photo-slide {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 72%;
    max-width: 330px;
    scroll-snap-align: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: .2s ease;
}

.photo-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.photo-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.photo-nav {
    border: 0;
    background: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
}

/* -------------------------------
   LIGHTBOX
-------------------------------- */
/* Conteneur global de la galerie */
.photo-gallery {
    margin-top: 1rem;
}

/* Piste horizontale : toutes les photos sur une seule ligne, scrollables */
.photo-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
}

/* Chaque slide reste à sa taille, ne wrap pas */
.photo-slide {
    flex: 0 0 auto;
    cursor: pointer;
}

/* L’image dans chaque slide */
.photo-slide img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-slide img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* LIGHTBOX */
.photo-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.photo-lightbox.is-open {
    display: flex;
}

.photo-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
}

.photo-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

/* Bouton de fermeture (croix) */
.photo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}

/* -------------------------------
   BOUTONS / LABELS
-------------------------------- */
.info-bubble {
    background: #efefef;
    border-radius: 20px;
    padding: .5rem 1rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    margin-bottom: .5rem;
}

.point-section {
    margin: 1rem 0;
}

.row-center {
    text-align: center;
    margin-bottom: .5rem;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: block;
    margin: .5rem auto;
}

/* Phone button */
.call-btn {
    background: #3d7f3d;
    color: white;
    border-radius: 12px;
    padding: .7rem 1.2rem;
    text-align: center;
    display: block;
    font-weight: 600;
    margin: .5rem auto;
}

/* QR */
.qr {
    width: 220px;
    display: block;
    margin: .5rem auto;
}

.signal-btn {
    background: #c44;
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: 12px;
    text-align: center;
    display: block;
    margin: .7rem auto 1.2rem;
    font-weight: 600;
}

/* Layout large */
@media (min-width: 768px) {
    .point-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        align-items: start;
    }
}


/* Conteneur principal en 2 colonnes */
.pv-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    /* gauche un peu plus large */
    gap: 1.8rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

/* On garde les colonnes même sur mobile pour coller à la maquette */
@media (max-width: 640px) {
    .pv-main-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 1.2rem;
    }
}

/* Colonnes */
.pv-main-left,
.pv-main-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Blocs "pilules" déjà existants, quelques ajustements */
.pv-block {
    background: transparent;
}

.pv-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pv-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

/* Avatar + nom + téléphone */
.pv-owner-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.pv-owner-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.pv-owner-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-owner-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.pv-owner-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #166534;
    /* vert foncé */
    font-weight: 500;
}

.pv-owner-phone-icon {
    font-size: 2rem;
}

.pv-owner-phone-number {
    font-size: 0.98rem;
}

/* Boutons Téléphoner / QR */
.pv-owner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 220px;
    margin-inline: auto;
}

.pv-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.pv-btn-primary {
    background: #15803d;
    color: #fff;
}

.pv-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* QR code bloc */
.pv-qr-block {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.pv-qr-img {
    width: 210px;
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    background: #fff;
}

.pv-serial-under {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}


/* Feuille de signalement en bas de page */
.pv-report-modal {
    position: fixed;
    inset: auto 0 0 0;
    /* collé en bas, pleine largeur */
    margin: 0;
    border: none;
    padding: 16px 20px;
    max-height: 70vh;
    width: 100%;

    background: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.35);

    transform: translateY(100%);
    /* caché en bas par défaut */
    opacity: 0;
    transition:
        transform 0.25s ease-out,
        opacity 0.25s ease-out;

    /* pour que le contenu scroll si trop long */
    overflow-y: auto;
}

/* quand le dialog est ouvert ET visible → en place */
.pv-report-modal[open].is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* backdrop semi-transparent */
.pv-report-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

/* Un peu de style pour le contenu */
.pv-report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pv-report-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pv-report-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 6px;
}

.pv-report-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pv-report-field input,
.pv-report-field textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.pv-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}


/* Position de base : caché en bas */
#report-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.25);
    border-radius: 16px 16px 0 0;
    background: white;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Version mobile : pleine largeur */
@media (max-width: 600px) {
    #report-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 0 15px;
    }

    .field-group,
    .form-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 0.95rem;
        width: 100%;
    }
}

/* Version desktop : centré mais toujours collé en bas */
@media (min-width: 601px) {
    #report-modal {
        max-width: 480px;
        padding: 0 15px;
    }
}

/* Quand ouvert */
#report-modal.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Contenu interne */
.report-modal-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-title {
    text-align: center;
    font-size: 1.3em;
    margin: 0;
}

.report-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
}

.report-btn.danger {
    background: #d72638;
    color: white;
    font-weight: bold;
}

.report-btn.cancel {
    background: #ddd;
    color: #222;
}


.photo-carousel-edit {
    display: flex;
    align-items: center;
    /* flèches centrées verticalement */
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.photo-carousel-edit .photo-gallery {
    flex: 1 1 auto;
    overflow: hidden;
}

.photo-carousel-edit .photo-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
    /* Firefox */
}

.photo-carousel-edit .photo-track::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

/* Cartes : taille fixe => sur mobile la fenêtre se réduit, pas les photos */
.photo-carousel-edit .photo-card {
    position: relative;
    flex: 0 0 160px;
    /* largeur fixe */
    height: 160px;
    /* hauteur fixe */
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.20);
}

@media (min-width: 900px) {
    .photo-carousel-edit .photo-card {
        flex-basis: 190px;
        height: 190px;
    }
}

.photo-carousel-edit .photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bouton supprimer */
.photo-carousel-edit .thumb-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Flèches du carrousel */
.photo-carousel-edit .photo-nav {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.photo-carousel-edit .photo-nav[disabled] {
    opacity: 0.3;
    cursor: default;
}

/* Lightbox */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.photo-lightbox.is-open {
    display: block;
    z-index: 1000;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.photo-lightbox-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.photo-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-prev {
    left: 16px;
}

.photo-lightbox-next {
    right: 16px;
}