:root {
  --primary-red: #ff4655;
  --primary-yellow: #ffcb05;
  --primary-blue: #000000;
  --dark: #0f172a;
  --light: #f8f9fb;
  --accent: #ffd369;

  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.08);
}
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: linear-gradient(145deg, var(--light) 0%, #e5ebfa 100%);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
/* HEADER */
.header {
  background: linear-gradient(
    90deg,
    var(--primary-red) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 20px 0;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo h1 {
    font-size: 2.3em;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.3);
  }
  
  .logo p {
    font-size: 0.9em;
    opacity: 0.9;
  }
  
  .header-actions {
    display: flex;
    gap: 15px;
  }
  
  .btn-cart,
  .btn-admin,
  .btn-back {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
  }
  
  .btn-cart {
    background: var(--primary-yellow);
    color: var(--dark);
  }
  
  .btn-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 222, 0, 0.4);
  }
  
  .btn-admin,
  .btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
  }
  
  .btn-admin:hover,
  .btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* ARTICLES */
  .articles-section h2,
  .admin-form h2,
  .admin-list h2,
  .admin-tools h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-blue);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
  }
  
/* ARTICLES MODERNISÉES */
.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.3s ease;
}
  
.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 86, 179, 0.25);
}
  
  .slider {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
  }
  
  .slider-img:first-child {
    display: block;
  }
  
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    z-index: 10;
  }
  
  .slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .slider-btn.prev {
    left: 10px;
  }
  
  .slider-btn.next {
    right: 10px;
  }
  
  .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
  }
  
  .dot {
    background: rgba(0, 0, 0, 0.2);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: 0.3s ease;
  }
  
  .dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary-blue);
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-blue);
  }
  
  .card-content p {
    margin: 8px 0;
    font-size: 0.95em;
  }
  
  .serie {
    color: #666;
    font-weight: 600;
  }
  
/* PRIX */
.prix {
  font-weight: 800;
  font-size: 1.5em;
  color: var(--primary-red);
}
  
  .echange {
    font-weight: 600;
  }
  
  .quantity-selector {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .qty-input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--primary-yellow);
    border-radius: 6px;
    font-size: 1em;
  }
  
  .stock {
    font-size: 0.85em;
    color: #666;
  }
  
  /* BUTTONS */
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
  }/* 🌈 Fenêtre modale du choix d'envoi */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadein 0.3s ease;
}

.modal-box h3 {
  font-size: 1.3em;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s;
}

.modal-btn:hover {
  transform: scale(1.05);
}

.modal-btn.achat {
  background: var(--primary-yellow);
  color: #2b2b2b;
}

.modal-btn.echange {
  background: var(--primary-blue);
  color: #fff;
}

.modal-btn.info {
  background: var(--primary-red);
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}


  
  .btn-primary {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    color: white;
    margin-bottom: 10px;
  }
  
  .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(239, 59, 54, 0.3);
  }
  
  .btn-secondary {
    background: var(--primary-yellow);
    color: var(--dark);
    margin-bottom: 10px;
  }
  
  .btn-secondary:hover {
    background: var(--accent);
  }
  
  .btn-danger {
    background: #ff6b6b;
    color: white;
  }
  
  .btn-danger:hover {
    background: #ff5252;
  }
  
  .btn-add-cart {
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent));
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: #2a2a2a;
    font-weight: 700;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
  }
  
  .btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(255, 203, 5, 0.5);
  }
  
  /* CART SIDEBAR */
/* CART VISIBLE */
.cart-sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}
  
  .cart-sidebar.active {
    right: 0;
  }
  
  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    color: white;
    border-bottom: 3px solid var(--primary-yellow);
  }
  
  .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
  }
  
  .cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  
  .empty-cart {
    text-align: center;
    color: #999;
    padding: 20px;
  }
  
  .cart-item {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .item-info {
    flex: 1;
  }
  
  .item-info h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
  }
  
  .item-serie,
  .item-price,
  .item-subtotal {
    font-size: 0.85em;
    color: #666;
    margin: 3px 0;
  }
  
  .btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
  }
  
  .cart-actions {
    padding: 15px;
    border-top: 2px solid var(--light);
  }
  
  .contact-socials {
    padding: 15px;
    background: var(--light);
    border-top: 2px solid var(--light);
  }
  
  .contact-socials h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
  }
  
  .socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .social-link {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary-yellow);
    color: var(--dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
  }
  
  .social-link:hover {
    background: var(--accent);
    transform: scale(1.05);
  }
  
  /* ADMIN PAGE */
  .admin-page {
    background: linear-gradient(135deg, var(--light) 0%, #e0e0e0 100%);
  }
  
  .admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .admin-form,
  .admin-list,
  .admin-tools {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-yellow);
  }
  
  .admin-list {
    grid-column: 1 / -1;
  }
  
  .admin-tools {
    grid-column: 1 / -1;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    font-size: 1em;
    transition: border 0.3s;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
  }
  
  .form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85em;
  }
  
  .articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
  }
  
  .item-summary h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
  }
  
  .item-summary p {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0;
  }
  
  .item-actions {
    display: flex;
    gap: 10px;
  }
  
  .item-actions button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  /* FOOTER */
  .footer {
    background: linear-gradient(90deg, var(--primary-blue), var(--dark));
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid var(--primary-yellow);
  }
  
  .footer p {
    margin: 10px 0;
  }
  
  .footer a {
    color: var(--primary-yellow);
    font-weight: 600;
  }
  .footer a:hover {
    text-decoration: underline;
  }
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .admin-container {
      grid-template-columns: 1fr;
    }
  
    .articles-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .header .container {
      flex-direction: column;
      gap: 15px;
    }
  
    .logo h1 {
      font-size: 1.8em;
    }
  
    .articles-grid {
      grid-template-columns: 1fr;
    }
  
    .cart-sidebar {
      width: 100%;
      right: -100%;
    }
  
    .list-item {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .item-actions {
      width: 100%;
      margin-top: 10px;
    }
  }