/* ========================================
   MON COMPTE - PAGE CLIENT
   Design Tabs Navigation Responsive
   Conforme aux breakpoints officiels
   ======================================== */

/* ========================================
   NEUTRALISATION & BASE
   ======================================== */
main.mon-compte {
  opacity: 1 !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 100px !important;
}

* {
  box-sizing: border-box;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.account-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 100px);
  background: #f8f9fa;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ========================================
   NAVIGATION PAR ONGLETS (Desktop/Tablet)
   Style "Bordered Folders"
   ======================================== */
.account-tabs {
  background: white;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 100px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Conteneur centré pour tabs */
.account-tabs-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.tabs-container {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px 8px 0 0;
  outline: none;
}

.tab-item:focus {
  outline: none;
}

.tab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  background: transparent;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.tab-item:hover {
  color: #2c3e50;
  background: #f8f9fa;
}

.tab-item:hover::before {
  border-color: #dee2e6;
  border-bottom-color: transparent;
}

.tab-item.active {
  color: #c8860d;
  font-weight: 700;
  background: transparent;
  border-bottom: 3px solid #c8860d;
}

.tab-item.active::before {
  display: none;
}

.tab-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.tab-item:hover .tab-icon {
  transform: scale(1.1);
}

.tab-label {
  white-space: nowrap;
}

/* Bouton déconnexion dans les tabs */
.btn-logout-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.btn-logout-tabs:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.logout-icon {
  font-size: 1.25rem;
}

.logout-label {
  font-weight: 600;
}

/* ========================================
   BOTTOM NAVIGATION (Mobile uniquement)
   ======================================== */
.bottom-nav {
  display: none; /* Caché par défaut, visible en mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.5rem 0;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #6c757d;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-nav-item.active {
  color: #c8860d;
}

.bottom-nav-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.2);
}

.bottom-nav-label {
  font-weight: 500;
}

.bottom-nav-item.active .bottom-nav-label {
  font-weight: 700;
}

/* Bouton déconnexion mobile */
.mobile-logout-btn {
  display: none; /* Sera affiché en JS sur mobile */
  position: fixed;
  top: 115px;
  right: 1rem;
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */
.account-content {
  flex: 1;
  background: white;
  overflow-y: auto;
}

/* Conteneur centré pour le contenu */
.account-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  /* Espace pour les tabs sticky + marge respiration */
  padding-top: 100px;
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #e9ecef;
}

/* ========================================
   SECTIONS CONTENT STYLES
   ======================================== */

/* Profile Section */
.profile-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Style unifié pour les informations de profil */
.info-grid {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.2s ease;
}

.info-item:last-child {
  border-bottom: none;
}

/* Grille spécifique pour la section sécurité - 2 colonnes */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.security-grid .info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
}

.security-grid .info-item label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: fit-content;
}

.security-grid .info-item span {
  color: #212529;
  font-size: 0.95rem;
}

.security-grid .info-item:nth-child(2n) {
  border-right: none;
}

.security-grid .info-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.info-item:hover {
  background-color: #f8f9fa;
}

.info-item::before {
  content: '';
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.info-item[data-field="prenom"]::before {
  content: '👤';
}

.info-item[data-field="nom"]::before {
  content: '👤';
}

.info-item[data-field="email"]::before {
  content: '✉️';
}

.info-item[data-field="telephone"]::before {
  content: '📱';
}

.info-item[data-field="date_naissance"]::before {
  content: '🎂';
}

.info-item[data-field="pays"]::before {
  content: '🌍';
}

.info-item > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.info-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: capitalize;
}

.info-item span:not(strong) {
  font-size: 1.05rem;
  color: #2c3e50;
  font-weight: 500;
}

.info-item span:not(strong):empty::after {
  content: 'Non renseigné';
  color: #adb5bd;
  font-style: italic;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
}

.profile-field .value {
  font-size: 1rem;
  color: #2c3e50;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #c8860d;
  color: white;
}

.btn-primary:hover {
  background: #b07709;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 134, 13, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-danger {
  padding: 0.75rem 1.5rem;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Order Filters */
.order-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  background: white;
  color: #6c757d;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #c8860d;
  color: #c8860d;
}

.filter-btn.active {
  background: #c8860d;
  color: white;
  border-color: #c8860d;
  font-weight: 600;
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: #c8860d;
  box-shadow: 0 4px 12px rgba(200, 134, 13, 0.1);
  transform: translateY(-2px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.order-status.status-en_attente {
  background: #fff3cd;
  color: #856404;
}

.order-status.status-validee {
  background: #d1ecf1;
  color: #0c5460;
}

.order-status.status-en_preparation {
  background: #cfe2ff;
  color: #084298;
}

.order-status.status-prete {
  background: #d1e7dd;
  color: #0f5132;
}

.order-status.status-livree {
  background: #d1e7dd;
  color: #0f5132;
}

.order-status.status-annulee {
  background: #f8d7da;
  color: #842029;
}

.order-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-info-item label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.order-info-item .value {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-view-details {
  padding: 0.5rem 1rem;
  background: #c8860d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background: #b07709;
  transform: translateY(-2px);
}

/* Addresses List */
.addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}

.address-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e9ecef;
  position: relative;
  transition: all 0.3s ease;
}

.address-card:hover {
  border-color: #c8860d;
  box-shadow: 0 4px 12px rgba(200, 134, 13, 0.1);
}

.address-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #c8860d;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.address-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.address-details {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.address-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit,
.btn-delete {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #6c757d;
  color: white;
}

.btn-edit:hover {
  background: #5a6268;
}

.btn-delete {
  background: #ff6b6b;
  color: white;
}

.btn-delete:hover {
  background: #ff5252;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.empty-state-subtext {
  font-size: 0.95rem;
  color: #adb5bd;
}

/* ========================================
   MODALE DÉTAILS COMMANDE
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 100px 0 20px 0; /* Plus d'espace pour header */
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: calc(100vh - 120px); /* Hauteur ajustée pour padding */
  overflow-y: auto;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.modal-small {
  max-width: 500px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #2c3e50;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.confirm-message {
  font-size: 1.05rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-address-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c8860d;
  text-align: center;
  padding: 1rem;
  background: #fff9e6;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f5f5f5;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-info-item label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.modal-info-item span {
  font-size: 0.95rem;
  color: #2d2d2d;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.order-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.order-item-quantity {
  font-size: 0.9rem;
  color: #6c757d;
}

.order-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c8860d;
  flex-shrink: 0;
}

.order-notes {
  background: #fff3cd;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #856404;
}

/* Styles pour formulaire de modification profil */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group label .required {
  color: #dc3545;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c8860d;
  box-shadow: 0 0 0 3px rgba(200, 134, 13, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #c8860d;
}

.checkbox-label span {
  font-size: 1rem;
  color: #2c3e50;
}

.error-message {
  font-size: 0.85rem;
  color: #dc3545;
  min-height: 1.2rem;
  display: block;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 2px solid #f1f3f5;
}

.modal-footer button {
  position: relative;
}

.btn-loader {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =====================================================================
   📱 RESPONSIVE - BREAKPOINTS OFFICIELS (ordre décroissant)
   ===================================================================== */

/* Écrans 4K/5K (2560px et plus) */
@media (min-width: 2560px) {
  .account-content {
    padding: 3rem 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Écrans 2K/QHD (1920px à 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .account-content {
    padding: 2.5rem 3rem;
  }
}

/* Écrans très larges (1440px à 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .account-content {
    padding: 2rem 2.5rem;
  }
}

/* Desktop large à moyen (1280px à 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .tab-item {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .tab-icon {
    font-size: 1.35rem;
  }
}

/* Desktop moyen (1024px à 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tab-item {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  
  .tab-label {
    display: none;
  }
  
  .tab-icon {
    font-size: 1.5rem;
  }
  
  .btn-logout-tabs .logout-label {
    display: none;
  }
}

/* Tablette paysage / Desktop petit (900px à 1023px) */
@media (min-width: 900px) and (max-width: 1023px) {
  .tab-item {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  
  .tab-label {
    display: none;
  }
  
  .btn-logout-tabs {
    padding: 0.75rem;
  }
  
  .btn-logout-tabs .logout-label {
    display: none;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .addresses-list {
    grid-template-columns: 1fr;
  }
}

/* Tablette portrait large (715px à 899px) */
@media (min-width: 715px) and (max-width: 899px) {
  .tab-item {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .tab-label {
    display: none;
  }
  
  .btn-logout-tabs {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .btn-logout-tabs .logout-label {
    display: none;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .order-info {
    grid-template-columns: 1fr;
  }
}

/* Tablette portrait / Phablet (641px à 714px) */
@media (min-width: 641px) and (max-width: 714px) {
  .tab-item {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .tab-label {
    display: none;
  }
  
  .btn-logout-tabs {
    padding: 0.625rem;
  }
  
  .btn-logout-tabs .logout-label {
    display: none;
  }
}

/* Mobile large / Phablet (481px à 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .account-tabs {
    display: none;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .mobile-logout-btn {
    display: block;
  }
  
  .account-content-wrapper {
    padding: 1.5rem 1rem;
    padding-bottom: 5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .order-info {
    grid-template-columns: 1fr;
  }
  
  .modal-info-grid {
    grid-template-columns: 1fr;
  }
  
  .order-item-card {
    flex-direction: column;
    text-align: center;
  }
  
  .order-item-image {
    width: 100%;
    height: 150px;
  }
}

/* ========================================
   MODAL CHANGEMENT MOT DE PASSE
   ======================================== */

/* Indicateur force du mot de passe */
.password-hint {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.password-strength {
  margin-top: 0.75rem;
}

.strength-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
  background: #dc3545;
}

.strength-text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Classes de force */
.password-strength.weak .strength-fill {
  width: 33%;
  background: #dc3545;
}

.password-strength.weak .strength-text {
  color: #dc3545;
}

.password-strength.medium .strength-fill {
  width: 66%;
  background: #ffc107;
}

.password-strength.medium .strength-text {
  color: #ffc107;
}

.password-strength.strong .strength-fill {
  width: 100%;
  background: #28a745;
}

.password-strength.strong .strength-text {
  color: #28a745;
}

/* Mobile standard (max-width: 480px) */
@media (max-width: 480px) {
  .account-tabs {
    display: none;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .mobile-logout-btn {
    display: block;
    top: 110px;
    right: 0.75rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .account-content-wrapper {
    padding: 1rem;
    padding-bottom: 5rem;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .addresses-list {
    grid-template-columns: 1fr;
  }
  
  .order-card {
    padding: 1rem;
  }
  
  .order-info {
    grid-template-columns: 1fr;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions button {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-info-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer button {
    width: 100%;
  }
  
  .info-item {
    padding: 1rem 1.25rem;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }
  
  .info-item > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .info-item strong {
    font-size: 0.75rem;
  }
  
  .info-item span:not(strong) {
    font-size: 1rem;
  }
  
  .order-item-card {
    flex-direction: column;
    text-align: center;
  }
  
  .order-item-image {
    width: 100%;
    height: 150px;
  }
}
