body { 
  font-family: 'Montserrat', sans-serif; 
  background: radial-gradient(ellipse at top right, #243B55 40%, #141E30 100%);
  background-color: #1a2535;
  min-height: 100vh; 
  color: #f5f7fa;
}
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 20%;
  min-width: 200px;
  max-width: 280px;   /* ← largeur onglet menu élargie */
  height: 100%;
  background-color: #1B2737;
  padding-top: 20px;
  color: #fff;
  box-shadow: 2px 0 16px #101d3a44;
  z-index: 100;

  overflow-y: auto;
}
.nav ul { list-style: none; }
.nav ul li {
  padding: 6px 10px;
  cursor: pointer;
  display: flex; align-items: center;
  border-bottom: 1px solid #273954;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  transition: background .13s, border-left .13s;
  word-break: normal;
  max-width: 230px;   /* largeur texte adaptée à la nav */
  min-height: 36px;
  line-height: 1.16;
}
.nav .icon {
  margin-right: 12px; font-size: 18px; min-width: 28px;
  display: flex; align-items: center; justify-content: center;
}
.content { margin-left: 20%; padding: 30px; } /* ← adapte au menu */
.tab-content { display: none; }
.tab-content.active { display: block; }
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.page-header h1 { font-size: 28px; color: #a7ccfa; }
.service-status { font-size: 14px; color: #84b2e6; display: flex; align-items: center; }
.service-status .badge {
  padding: 2px 6px; border-radius: 4px; font-weight: 600;
  margin: 0 5px;
}
.badge.online { background: #1ABC9C; color: white; }
.badge.offline { background: #e74c3c; color: white; }
.service-status .time { margin-left: 10px; font-family: monospace; }

.card {
  background: rgba(27, 39, 55, 0.92);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px #12203866;
  color: #fff;
}
.card h2 { font-size: 20px; color: #b6d7ff; margin-bottom: 10px; }
.stats { display: flex; justify-content: space-between; margin-top: 20px; }
.stat-card {
  flex: 1;
  background: #223049cc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 10px #111b2a22;
  text-align: center;
  margin-right: 20px;
  color: #e7f1ff;
}
.stat-card:last-child { margin-right: 0; }
.stat-card h3 { font-size: 16px; color: #76b5ff; margin-bottom: 8px; }
.stat-card p { font-size: 24px; color: #bfe6ff; }

.upload-area {
  border: 2px dashed #4f6075;
  border-radius: 6px;
  text-align: center;
  color: #7fa9d7;
  background: #202d45cc;
  cursor: pointer;
  margin-top: 15px;
}
.upload-area.dragover { background-color: #273954; }
.upload-area input { display: none; }
.upload-area p { font-size: 14px; }

.section { margin-bottom: 16px; }
.section input {
  width: 100%;
  padding: 8px;
  border: 1px solid #273954;
  border-radius: 4px;
  font-size: 14px;
  background: #192233;
  color: #fff;
}

table {
  width: 100%; border-collapse: collapse; margin-top: 10px;
  background: #20324dcc;
  color: #fff;
}
table th, table td {
  border: 1px solid #243b55;
  padding: 10px;
  text-align: left;
}
table th { background: #28415d; }
.sav-form .form-group { margin-bottom: 12px; }
.sav-form label { display: block; font-weight: 500; margin-bottom: 4px; color: #a7ccfa;}
.sav-form input[type="file"] { display: block; }
.sav-form textarea {
  width: 100%; padding: 8px;
  border: 1px solid #273954;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  background: #192233;
  color: #fff;
}
.send-btn {
  background: #33aaff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .16s;
}
.send-btn:hover { background: #1ABC9C;}
.header { background: #18212b; padding: 15px 30px; display: flex; align-items: center; justify-content: flex-start; box-shadow: 0 2px 4px #141e3044; }
.logo img { height: 32px; margin-right: 10px; }
.logo span { font-size: 1.5rem; font-weight: bold; color: #e30613; }
.container { max-width: 900px; margin: 40px auto; text-align: center; }
.image-wrapper img { max-width: 100%; height: auto; display: block; margin: 0 auto 30px; }
.guide-box {
  border: 2px solid #33aaff;
  border-radius: 6px;
  padding: 30px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  background: #202d45cc;
  color: #eaf6ff;
}
.guide-box h2 { margin-top: 0; color: #33aaff; font-size: 1.5rem; }
.guide-box p { margin: 10px 0 20px; line-height: 1.5; }
.highlight { color: #33aaff; font-weight: bold; }
.search-wrapper {
  display: flex; align-items: center;
  border: 1px solid #333e5b; border-radius: 4px;
  padding: 8px 12px;
  background-color: #18212bcc;
  flex-grow: 1;
}
.search-wrapper img { height: 20px; margin-right: 10px; }
.search-wrapper input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  background: #192233;
  color: #fff;
}
.search-button {
  margin-left: 10px;
  background-color: #18212bcc;
  border: 1px solid #33aaff;
  border-radius: 6px;
  padding: 0;
  width: 40px; height: 40px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search-button img { width: 24px; height: 24px; }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background: rgba(0,0,0,0.6); }
.modal-content {
  background-color: #233055;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  color: #fff;
}
.close-btn { position: absolute; top: 10px; right: 10px; font-size: 1.5rem; color: #33aaff; cursor: pointer; }
@media (max-width:1000px){
  .content { padding: 14px; }
  .stats { flex-direction: column; gap: 14px;}
  .stat-card { margin-right: 0; margin-bottom: 16px; }
  .stat-card:last-child { margin-bottom: 0;}
}
@media (max-width:600px){
  .nav { width: 100vw; position: static; 
  overflow-y: auto;
}
  .content { margin-left: 0; padding: 10px;}
  .page-header { flex-direction: column; align-items: flex-start;}
}

@media (max-width: 768px) {
  .nav {
    width: 100%;
    height: auto;
    position: relative;
  
  overflow-y: auto;
}
  .content {
    margin-left: 0;
    padding-top: 20px;
  }
  .nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  .nav ul li {
    flex: 1 1 50%;
  }
}
body { 
  font-family: 'Montserrat', sans-serif; 
  background: radial-gradient(ellipse at top right, #243B55 40%, #141E30 100%);
  background-color: #1a2535;
  min-height: 100vh; 
  color: #f5f7fa;
}
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 20%;
  min-width: 200px;
  max-width: 280px;   /* ← largeur onglet menu élargie */
  height: 100%;
  background-color: #1B2737;
  padding-top: 20px;
  color: #fff;
  box-shadow: 2px 0 16px #101d3a44;
  z-index: 100;

  overflow-y: auto;
}
.nav ul { list-style: none; }
.nav ul li {
  padding: 6px 10px;
  cursor: pointer;
  display: flex; align-items: center;
  border-bottom: 1px solid #273954;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  transition: background .13s, border-left .13s;
  word-break: normal;
  max-width: 230px;   /* largeur texte adaptée à la nav */
  min-height: 36px;
  line-height: 1.16;
}
.nav .icon {
  margin-right: 12px; font-size: 18px; min-width: 28px;
  display: flex; align-items: center; justify-content: center;
}
.content { margin-left: 20%; padding: 30px; } /* ← adapte au menu */
.tab-content { display: none; }
.tab-content.active { display: block; }
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.page-header h1 { font-size: 28px; color: #a7ccfa; }
.service-status { font-size: 14px; color: #84b2e6; display: flex; align-items: center; }
.service-status .badge {
  padding: 2px 6px; border-radius: 4px; font-weight: 600;
  margin: 0 5px;
}
.badge.online { background: #1ABC9C; color: white; }
.badge.offline { background: #e74c3c; color: white; }
.service-status .time { margin-left: 10px; font-family: monospace; }

.card {
  background: rgba(27, 39, 55, 0.92);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px #12203866;
  color: #fff;
}
.card h2 { font-size: 20px; color: #b6d7ff; margin-bottom: 10px; }
.stats { display: flex; justify-content: space-between; margin-top: 20px; }
.stat-card {
  flex: 1;
  background: #223049cc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 10px #111b2a22;
  text-align: center;
  margin-right: 20px;
  color: #e7f1ff;
}
.stat-card:last-child { margin-right: 0; }
.stat-card h3 { font-size: 16px; color: #76b5ff; margin-bottom: 8px; }
.stat-card p { font-size: 24px; color: #bfe6ff; }

.upload-area {
  border: 2px dashed #4f6075;
  border-radius: 6px;
  text-align: center;
  color: #7fa9d7;
  background: #202d45cc;
  cursor: pointer;
  margin-top: 15px;
}
.upload-area.dragover { background-color: #273954; }
.upload-area input { display: none; }
.upload-area p { font-size: 14px; }

.section { margin-bottom: 16px; }
.section input {
  width: 100%;
  padding: 8px;
  border: 1px solid #273954;
  border-radius: 4px;
  font-size: 14px;
  background: #192233;
  color: #fff;
}

table {
  width: 100%; border-collapse: collapse; margin-top: 10px;
  background: #20324dcc;
  color: #fff;
}
table th, table td {
  border: 1px solid #243b55;
  padding: 10px;
  text-align: left;
}
table th { background: #28415d; }
.sav-form .form-group { margin-bottom: 12px; }
.sav-form label { display: block; font-weight: 500; margin-bottom: 4px; color: #a7ccfa;}
.sav-form input[type="file"] { display: block; }
.sav-form textarea {
  width: 100%; padding: 8px;
  border: 1px solid #273954;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  background: #192233;
  color: #fff;
}
.send-btn {
  background: #33aaff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .16s;
}
.send-btn:hover { background: #1ABC9C;}
.header { background: #18212b; padding: 15px 30px; display: flex; align-items: center; justify-content: flex-start; box-shadow: 0 2px 4px #141e3044; }
.logo img { height: 32px; margin-right: 10px; }
.logo span { font-size: 1.5rem; font-weight: bold; color: #e30613; }
.container { max-width: 900px; margin: 40px auto; text-align: center; }
.image-wrapper img { max-width: 100%; height: auto; display: block; margin: 0 auto 30px; }
.guide-box {
  border: 2px solid #33aaff;
  border-radius: 6px;
  padding: 30px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  background: #202d45cc;
  color: #eaf6ff;
}
.guide-box h2 { margin-top: 0; color: #33aaff; font-size: 1.5rem; }
.guide-box p { margin: 10px 0 20px; line-height: 1.5; }
.highlight { color: #33aaff; font-weight: bold; }
.search-wrapper {
  display: flex; align-items: center;
  border: 1px solid #333e5b; border-radius: 4px;
  padding: 8px 12px;
  background-color: #18212bcc;
  flex-grow: 1;
}
.search-wrapper img { height: 20px; margin-right: 10px; }
.search-wrapper input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  background: #192233;
  color: #fff;
}
.search-button {
  margin-left: 10px;
  background-color: #18212bcc;
  border: 1px solid #33aaff;
  border-radius: 6px;
  padding: 0;
  width: 40px; height: 40px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search-button img { width: 24px; height: 24px; }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background: rgba(0,0,0,0.6); }
.modal-content {
  background-color: #233055;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  color: #fff;
}
.close-btn { position: absolute; top: 10px; right: 10px; font-size: 1.5rem; color: #33aaff; cursor: pointer; }
@media (max-width:1000px){
  .content { padding: 14px; }
  .stats { flex-direction: column; gap: 14px;}
  .stat-card { margin-right: 0; margin-bottom: 16px; }
  .stat-card:last-child { margin-bottom: 0;}
}
@media (max-width:600px){
  .nav { width: 100vw; position: static; 
  overflow-y: auto;
}
  .content { margin-left: 0; padding: 10px;}
  .page-header { flex-direction: column; align-items: flex-start;}
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: #6c757d;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.download-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}
.download-btn i {
    margin-right: 8px;
    font-size: 16px;
}

  .packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .package-card {
    background: #2a2f3a;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  .package-card h3 {
    margin-bottom: 10px;
    color: #eee;
  }
  .package-card p {
    margin: 8px 0;
  }
  .add-btn {
    background: #fbbd12;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    color: #1f2430;
    font-weight: bold;
    transition: opacity 0.2s;
  }
  .add-btn:hover {
    opacity: 0.9;
  }
  .payment-method input[type="radio"] {
    margin-right: 5px;
  }