* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy-dark: #0b1b3d;
  --navy: #14285c;
  --navy-light: #1f3a7a;
  --red: #e21f26;
  --red-dark: #c3151b;
  --text-light: #f4f6fb;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy-dark);
  background: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 3px solid var(--red);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy-dark);
  font-size: 1.15rem;
  font-weight: 600;
}

.logo-icon { color: var(--navy); font-size: 1.6rem; }

.nav-links { display: flex; gap: 20px; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Hero banner avec photo de fond */
.hero-banner {
  position: relative;
  min-height: 620px;
  background: linear-gradient(rgba(11,27,61,0.78), rgba(11,27,61,0.88)),
              url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero-overlay { padding: 40px 20px 60px; color: #fff; max-width: 700px; }

.accueil-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-label .line { width: 24px; height: 2px; background: var(--red); }

.hero-banner-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-banner-title .highlight-red { color: var(--red); }

.hero-banner-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d7deef;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-inline { width: auto; padding: 14px 24px; text-decoration: none; display: inline-flex; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Section suivi de colis */
.track-section {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  color: var(--text-light);
  padding: 40px 20px 60px;
  text-align: left;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

.stats { display: flex; justify-content: space-between; max-width: 420px; margin-bottom: 40px; }
.stat { text-align: left; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { font-size: 0.75rem; color: #b7c4e8; }

/* Track card */
.track-card {
  background: #fff;
  color: var(--navy-dark);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.track-logo { width: 56px; margin-bottom: 8px; }
.track-card h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.track-card h3 { font-size: 1.1rem; font-weight: 700; margin-top: 14px; }
.track-sub { color: var(--gray); font-size: 0.85rem; margin-bottom: 16px; }

.input-wrap { position: relative; margin-bottom: 14px; }

.input-wrap i:first-child {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray);
}

.input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  font-size: 0.9rem;
  background: var(--gray-light);
}

.input-wrap input:focus { outline: none; border-color: var(--navy-light); }

.toggle-pass {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray); cursor: pointer;
}

.btn-primary {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--red-dark); }

.info-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--gray-light);
  border-radius: 10px;
  padding: 12px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: left;
}

.info-box i { color: var(--navy-light); font-size: 1rem; flex-shrink: 0; }

.result-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #eef4ff;
  font-size: 0.85rem;
  text-align: left;
}

.result-box.error { background: #fdecec; color: var(--red-dark); }
.hidden { display: none; }

.historique { margin-top: 12px; border-top: 1px solid #e2e5ec; padding-top: 10px; }
.hist-item { font-size: 0.8rem; margin-bottom: 8px; color: var(--gray); }

/* Services */
.services { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 50px 20px; }
.service { text-align: center; }
.service i {
  font-size: 2.2rem;
  color: var(--navy);
  border: 2px solid var(--navy-light);
  border-radius: 50%;
  padding: 16px;
}
.service p { margin-top: 12px; font-weight: 600; font-size: 0.95rem; }

/* Team section */
.team { padding: 50px 20px; background: var(--gray-light); }

.team-label {
  display: flex; align-items: center; gap: 10px;
  color: var(--red); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 2px; margin-bottom: 12px;
}

.team-label .line { width: 24px; height: 2px; background: var(--red); }

.team-title {
  font-size: 1.5rem; font-weight: 800; color: var(--navy-dark);
  margin-bottom: 30px; line-height: 1.3;
}

.team-list { display: flex; flex-direction: column; gap: 24px; }

.team-card {
  background: #fff;
  border: 1px solid #e2e5ec;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 20px;
}

.team-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.team-card .team-number { display: block; color: var(--red); font-weight: 700; font-size: 0.85rem; margin: 16px 20px 4px; }
.team-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy-dark); margin: 0 20px 4px; }
.team-card p { color: var(--gray); font-size: 0.9rem; margin: 0 20px; }

/* Footer */
.footer { background: var(--navy-dark); color: #fff; padding: 30px 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .logo-icon { color: #fff; font-size: 1.8rem; }
.footer-brand p { color: #a9b6da; font-size: 0.8rem; margin-top: 2px; }
.copyright { color: #8291b8; font-size: 0.75rem; }

/* Admin login page */
.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  padding: 20px;
  flex-direction: column;
}

.admin-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.admin-header {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  text-align: center;
  padding: 36px 20px 20px;
  border-bottom: 4px solid var(--red);
}

.admin-logo-icon { font-size: 2.2rem; margin-bottom: 8px; }
.admin-header h1 { font-size: 1.3rem; font-weight: 600; }
.admin-header p { color: #b7c4e8; font-size: 0.85rem; margin-top: 6px; }

.admin-form-wrap { padding: 30px 24px; }

.admin-form-wrap h2 {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 1.05rem; margin-bottom: 20px;
}

.admin-form-wrap h2 i { color: var(--navy); }

.remember { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray); margin-bottom: 20px; }

.restricted {
  text-align: center; color: var(--gray); font-size: 0.78rem; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.admin-footer { color: #b7c4e8; font-size: 0.75rem; margin-top: 20px; text-align: center; }

/* Dashboard admin */
.dashboard { max-width: 700px; margin: 0 auto; padding: 30px 20px; }

.colis-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.colis-form input, .colis-form select {
  padding: 12px 14px; border: 1px solid #e2e5ec; border-radius: 10px; font-size: 0.9rem;
}

.colis-item { border: 1px solid #e2e5ec; border-radius: 10px; padding: 14px; margin-bottom: 10px; font-size: 0.9rem; }

@media (min-width: 700px) {
  .hero-banner-title { font-size: 2.8rem; }
  .team-list { display: grid; grid-template-columns: repeat(2, 1fr); }
}
/* =========================================================
ADMINISTRATION
========================================================= */

.admin-page,
.dashboard-page {
min-height: 100vh;
background: #f4f7fb;
color: #172033;
}

.admin-container {
min-height: calc(100vh - 150px);
display: flex;
align-items: center;
justify-content: center;
padding: 60px 20px;
}

.admin-card {
width: 100%;
max-width: 470px;
background: #ffffff;
border-radius: 20px;
padding: 40px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.10);
box-sizing: border-box;
}

.admin-icon {
width: 70px;
height: 70px;
margin: 0 auto 20px;
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
background: #0b1f33;
color: #ffffff;
font-size: 32px;
}

.admin-card h1 {
text-align: center;
margin: 0;
font-size: 30px;
}

.admin-subtitle {
text-align: center;
color: #6b7280;
margin: 10px 0 30px;
line-height: 1.6;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}

.admin-input {
position: relative;
display: flex;
align-items: center;
}

.admin-input > i {
position: absolute;
left: 15px;
font-size: 20px;
color: #64748b;
pointer-events: none;
}

.admin-input input {
width: 100%;
padding: 14px 48px;
border: 1px solid #d8dee8;
border-radius: 10px;
outline: none;
font-size: 15px;
box-sizing: border-box;
background: #ffffff;
color: #172033;
}

.admin-input input:focus {
border-color: #0b1f33;
box-shadow: 0 0 0 3px rgba(11, 31, 51, 0.08);
}

.password-toggle {
position: absolute;
right: 12px;
border: none;
background: transparent;
cursor: pointer;
font-size: 21px;
color: #64748b;
display: flex;
align-items: center;
justify-content: center;
}

.password-toggle:hover {
color: #0b1f33;
}

.remember {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 22px;
color: #4b5563;
cursor: pointer;
}

.remember input {
cursor: pointer;
}

.admin-login-btn,
.save-colis-btn {
width: 100%;
border: none;
border-radius: 10px;
padding: 14px 18px;
background: #0b1f33;
color: #ffffff;
font-size: 15px;
font-weight: 700;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
transition: background 0.2s ease, transform 0.2s ease;
}

.admin-login-btn:hover,
.save-colis-btn:hover {
background: #163b5d;
transform: translateY(-1px);
}

.admin-security {
margin-top: 25px;
padding: 13px;
background: #f1f5f9;
border-radius: 10px;
display: flex;
align-items: center;
gap: 8px;
color: #64748b;
font-size: 13px;
}

/* =========================================================
DASHBOARD
========================================================= */

.dashboard-actions {
display: flex;
align-items: center;
gap: 12px;
}

.dashboard-home,
.logout-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 10px 15px;
border-radius: 9px;
text-decoration: none;
font-weight: 600;
cursor: pointer;
}

.dashboard-home {
color: #0b1f33;
background: #edf2f7;
}

.dashboard-home:hover {
background: #e2e8f0;
}

.logout-btn {
border: none;
background: #b42318;
color: #ffffff;
}

.logout-btn:hover {
background: #941f16;
}

.dashboard-container {
max-width: 1250px;
margin: 0 auto;
padding: 50px 20px 80px;
box-sizing: border-box;
}

.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 25px;
margin-bottom: 35px;
}

.dashboard-label {
color: #c49a22;
font-weight: 800;
font-size: 13px;
letter-spacing: 1.5px;
}

.dashboard-header h1 {
margin: 8px 0;
font-size: 36px;
color: #172033;
}

.dashboard-header p {
margin: 0;
color: #64748b;
line-height: 1.6;
}

.dashboard-status {
padding: 12px 16px;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
white-space: nowrap;
}

.status-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #16a34a;
}

.dashboard-grid {
display: grid;
grid-template-columns: 1.4fr 0.8fr;
gap: 25px;
align-items: start;
}

.dashboard-card {
background: #ffffff;
border-radius: 18px;
padding: 28px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
box-sizing: border-box;
}

.card-title {
display: flex;
align-items: center;
gap: 13px;
margin-bottom: 28px;
}

.card-title-icon {
width: 45px;
height: 45px;
border-radius: 11px;
display: flex;
align-items: center;
justify-content: center;
background: #0b1f33;
color: #ffffff;
font-size: 22px;
flex-shrink: 0;
}

.card-title h2 {
margin: 0;
font-size: 20px;
color: #172033;
}

.card-title p {
margin: 3px 0 0;
color: #64748b;
font-size: 13px;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}

.dashboard-card .form-group {
margin-bottom: 20px;
}

.dashboard-card input,
.dashboard-card select {
width: 100%;
box-sizing: border-box;
padding: 13px 14px;
border: 1px solid #d8dee8;
border-radius: 9px;
background: #ffffff;
color: #172033;
outline: none;
font-size: 14px;
}

.dashboard-card input:focus,
.dashboard-card select:focus {
border-color: #0b1f33;
box-shadow: 0 0 0 3px rgba(11, 31, 51, 0.08);
}

.dashboard-card input::placeholder {
color: #94a3b8;
}

.dashboard-card small {
display: block;
margin-top: 6px;
color: #64748b;
font-size: 12px;
}

.colis-list {
max-height: 560px;
overflow-y: auto;
padding-right: 4px;
}

.colis-item {
padding: 16px;
margin-bottom: 12px;
border: 1px solid #e5eaf0;
border-radius: 10px;
background: #f8fafc;
transition: border-color 0.2s ease, transform 0.2s ease;
}

.colis-item:hover {
border-color: #cbd5e1;
transform: translateY(-1px);
}

.colis-item strong {
color: #0b1f33;
font-size: 14px;
}

.colis-item span {
display: inline-block;
margin-top: 5px;
color: #64748b;
font-size: 13px;
}

/* =========================================================
MOBILE ADMIN
========================================================= */

@media (max-width: 850px) {


.dashboard-grid {
    grid-template-columns: 1fr;
}

.dashboard-header {
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-status {
    width: 100%;
    box-sizing: border-box;
}


}

@media (max-width: 600px) {


.admin-container {
    padding: 35px 15px;
}

.admin-card {
    padding: 25px 20px;
    border-radius: 16px;
}

.admin-card h1 {
    font-size: 26px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 0;
}

.dashboard-container {
    padding: 30px 15px 60px;
}

.dashboard-card {
    padding: 20px;
}

.dashboard-actions {
    gap: 5px;
}

.dashboard-home,
.logout-btn {
    padding: 8px 10px;
    font-size: 12px;
}

.dashboard-header h1 {
    font-size: 28px;
}

.dashboard-header p {
    font-size: 14px;
}

.card-title h2 {
    font-size: 18px;
}


}
.stitle { font-weight: 700; font-size: 0.9rem; margin: 20px 0 10px; color: var(--navy-dark); text-align: left; }

.card {
  background: #fff; border: 1px solid #e2e5ec; border-radius: 14px;
  padding: 16px; text-align: left; margin-bottom: 10px;
}

.card-label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }

.parcel-photo-container { margin-bottom: 14px; }
.parcel-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.photo-placeholder {
  height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: var(--gray-light); border-radius: 10px; color: var(--gray); font-size: 0.85rem;
}
.photo-placeholder i { font-size: 1.8rem; }

.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f1f5; font-size: 0.88rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gray); }
.info-value { font-weight: 600; text-align: right; }
.info-value.mono { font-family: monospace; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-transit { background: #eaf1ff; color: #1f5fd6; }
.b-livre { background: #e7f9ef; color: #17a15a; }
.b-attente { background: #f3f4f6; color: #6b7280; }
.b-douane { background: #fff4e5; color: #b9660a; }
.b-retard { background: #fff4e5; color: #b9660a; }
.b-bloque { background: #fdeaea; color: #c0392b; }

.progress-row { flex-direction: column; align-items: stretch; }
.prog-wrap { width: 100%; }
.prog-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray); margin-bottom: 6px; }
.prog-track { height: 6px; background: var(--gray-light); border-radius: 10px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--red); transition: width 0.4s ease; }

.map-card { border-radius: 14px; overflow: hidden; border: 1px solid #e2e5ec; margin-bottom: 10px; }
#leafletMap { height: 220px; width: 100%; }

.notes-text { font-size: 0.88rem; color: var(--navy-dark); text-align: left; }

.timeline-step { padding: 10px 0; border-bottom: 1px solid #f0f1f5; text-align: left; font-size: 0.85rem; }
.timeline-step:last-child { border-bottom: none; }
.timeline-step strong { display: block; }
.timeline-step span { color: var(--gray); }
.timeline-step small { display: block; color: #a0a6b3; margin-top: 2px; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; padding: 14px; border-radius: 12px;
  text-decoration: none; font-weight: 700; margin-top: 10px;
}

.nfi { font-size: 2.5rem; color: var(--gray); text-align: center; margin-bottom: 10px; }
#notFound { text-align: center; padding: 30px 10px; }
#notFound h3 { color: var(--navy-dark); margin-bottom: 8px; }
#notFound p { color: var(--gray); font-size: 0.85rem; }

/* =========================================================
   NOUVELLE ORGANISATION DES INFORMATIONS DU COLIS
========================================================= */

/* ---------------------------------------------------------
   CARTES EXPÉDITEUR / DESTINATAIRE
--------------------------------------------------------- */

.person-card {
    overflow: hidden;
    padding: 0 !important;
    background: #ffffff;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    margin-bottom: 14px;
}

.person-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
}

.person-header i {
    font-size: 20px;
}

/* Expéditeur */
.sender-card .person-header {
    color: #28785f;
    background: #f2faf6;
}

/* Destinataire */
.recipient-card .person-header {
    color: #c47719;
    background: #fff9ef;
}

.person-content {
    padding: 18px 16px;
}

.person-name {
    color: var(--navy-dark);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.person-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.person-line:last-child {
    margin-bottom: 0;
}

.person-line i {
    flex-shrink: 0;
    width: 18px;
    color: #6b7280;
    font-size: 18px;
    margin-top: 1px;
}

.person-line a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-word;
}

.person-line a:hover {
    text-decoration: underline;
}

.person-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

/* Titres */
.sender-title {
    color: #28785f;
}

.recipient-title {
    color: #c47719;
}


/* ---------------------------------------------------------
   HISTORIQUE
--------------------------------------------------------- */

.history-card {
    min-height: 60px;
    padding: 16px;
}

.timeline-step {
    position: relative;
    padding: 12px 0 12px 18px;
    border-bottom: 1px solid #f0f1f5;
    text-align: left;
    font-size: 0.85rem;
}

.timeline-step:last-child {
    border-bottom: none;
}

.timeline-step strong {
    display: block;
    color: var(--navy-dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.timeline-step span {
    display: block;
    color: var(--gray);
}

.timeline-step small {
    display: block;
    color: #9ca3af;
    margin-top: 3px;
}

/* Petit indicateur de l'événement */
.timeline-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}


/* ---------------------------------------------------------
   LOCALISATION
--------------------------------------------------------- */

.localisation-card {
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
}

.localisation-card .info-row {
    padding: 13px 16px;
    margin: 0;
}

.localisation-card .info-row:last-of-type {
    border-bottom: 1px solid #e5e7eb;
}

.parcel-location-map {
    margin: 16px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e5ec;
    background: #eef2f7;
}

.parcel-location-map #leafletMap {
    width: 100%;
    height: 320px;
    min-height: 320px;
    z-index: 1;
}

/* Message éventuel quand aucune position GPS n'est disponible */
.map-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--gray);
    background: #f8fafc;
    text-align: center;
    padding: 20px;
}

.map-empty i {
    font-size: 32px;
    color: #94a3b8;
}

.map-empty span {
    font-size: 13px;
}


/* ---------------------------------------------------------
   INFORMATIONS DU COLIS
--------------------------------------------------------- */

.parcel-main-card {
    overflow: hidden;
}

.parcel-main-card .info-row {
    min-height: 42px;
    align-items: center;
}

.parcel-main-card .info-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.parcel-main-card .info-label i {
    font-size: 17px;
    color: var(--navy-light);
}

.parcel-main-card .info-value {
    max-width: 60%;
    word-break: break-word;
}


/* ---------------------------------------------------------
   PHOTO DU COLIS
--------------------------------------------------------- */

.parcel-photo-container {
    margin-bottom: 16px;
}

.parcel-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 11px;
}

.photo-placeholder {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gray-light);
    border-radius: 11px;
    color: var(--gray);
    font-size: 0.85rem;
}

.photo-placeholder i {
    font-size: 2rem;
    color: #9ca3af;
}


/* ---------------------------------------------------------
   NOTES
--------------------------------------------------------- */

.notes-text {
    font-size: 0.88rem;
    color: var(--navy-dark);
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
}


/* ---------------------------------------------------------
   WHATSAPP
--------------------------------------------------------- */

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-wa:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.btn-wa i {
    font-size: 20px;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .person-header {
        padding: 13px 14px;
    }

    .person-content {
        padding: 16px 14px;
    }

    .person-line {
        font-size: 13px;
    }

    .person-name {
        font-size: 14px;
    }

    .localisation-card .info-row {
        padding: 12px 14px;
    }

    .parcel-location-map {
        margin: 14px;
    }

    .parcel-location-map #leafletMap {
        height: 260px;
        min-height: 260px;
    }

    .parcel-main-card .info-value {
        max-width: 55%;
    }

    .parcel-photo {
        height: 180px;
    }
}
.colis-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-edit-colis,
.btn-delete-colis {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-edit-colis {
    background: rgba(31, 95, 214, 0.1);
    color: #1f5fd6;
}

.btn-delete-colis {
    background: rgba(226, 31, 38, 0.1);
    color: var(--red);
}

.btn-edit-colis:hover { background: rgba(31, 95, 214, 0.2); }
.btn-delete-colis:hover { background: rgba(226, 31, 38, 0.2); }

/* =========================================================
   SELECTEUR DE LANGUE
========================================================= */

.language-selector {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s ease;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-button i {
    font-size: 18px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 165px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
}

.language-selector.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #222;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    transition: 0.2s ease;
}

.language-menu button:hover {
    background: #f1f3f5;
}

/* =========================================================
   GOOGLE TRANSLATE : INVISIBLE
========================================================= */

#google_translate_element {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
    top: -9999px !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget > span {
    display: none !important;
}

.goog-te-menu-value {
    display: none !important;
}