/* ============================================
   HÉNIN PHONE – DESIGN PREMIUM RESPONSIVE
   Palette : Vert #00C08D / Blanc / Gris clair
   Typo : Poppins
============================================ */

:root {
  --green: #00C08D;
  --gray: #333;
  --light: #F7F8FA;
  --white: #fff;
  --font: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray);
  line-height: 1.6;
}

/* CONTAINERS */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   HEADER & NAVBAR
=========================== */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 1.2rem;
}

.logo img {
  height: 45px;
  width: 45px;
  margin-right: 10px;
  border-radius: 10px;
}

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

.nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--green);
}

.btn-cart {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-cart:hover {
  opacity: 0.9;
}

/* BURGER MENU (Mobile) */
.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray);
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 70px;
    right: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    padding: 15px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px 0;
  }
}

/* ===========================
   SECTION HERO (Accueil)
=========================== */
.hero {
  background: linear-gradient(120deg, var(--green) 0%, #00d4a7 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  border-radius: 0 0 40px 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero .btn-main {
  background: var(--white);
  color: var(--green);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn-main:hover {
  background: #f0f0f0;
}

/* ===========================
   PRODUITS – Grille principale
=========================== */
.products {
  padding: 60px 0;
  background: var(--light);
}

.products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--gray);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
  text-align: center;
  padding-bottom: 15px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-card h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
}

.product-card p {
  color: var(--green);
  font-weight: 600;
}

.product-card button {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.product-card button:hover {
  opacity: 0.9;
}

/* ===========================
   PAGE PRODUIT
=========================== */
.product-detail {
  padding: 50px 0;
}

.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 350px;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-info {
  flex: 1 1 400px;
}

.product-info h1 {
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.product-info .price {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-info .btn-add {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.product-info .btn-add:hover {
  opacity: 0.9;
}

/* ===========================
   PANIER (cart)
=========================== */
.cart-page {
  padding: 60px 0;
}

.cart-page h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th, .cart-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: var(--light);
  font-weight: 600;
}

.cart-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-total {
  text-align: right;
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
}

.cart-actions {
  text-align: right;
  margin-top: 30px;
}

.cart-actions a, .cart-actions button {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-left: 10px;
  transition: 0.3s;
}

.cart-actions a:hover, .cart-actions button:hover {
  opacity: 0.9;
}

/* ===========================
   FORMULAIRES (login, register, profil)
=========================== */
form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

form input, form textarea, form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font);
}

form button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

form button:hover {
  opacity: 0.9;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--light);
  padding: 50px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer h3 {
  color: var(--green);
  margin-bottom: 10px;
}

.footer a {
  color: var(--gray);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green);
}

.footer p {
  margin: 5px 0;
}

.footer .copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #777;
}

/* ===========================
   RESPONSIVE GLOBAL
=========================== */
@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
    align-items: center;
  }
  .cart-table th, .cart-table td {
    font-size: 0.9rem;
    padding: 10px;
  }
  .cart-actions {
    text-align: center;
  }
  .cart-actions a, .cart-actions button {
    display: block;
    margin: 10px auto;
  }
}
/* === CATEGORIES === */
.categories {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
}
.categories h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.cat-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cat-card span {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-weight: 500;
  padding: 10px;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
}

/* === AVANTAGES === */
.advantages {
  background: var(--light);
  padding: 60px 0;
  text-align: center;
}
.advantages h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.adv-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.adv-card h3 {
  color: var(--green);
  margin-bottom: 10px;
}
.adv-card p {
  color: #555;
}

/* === PAGE PANIER === */
.cart-page {
  padding: 60px 0;
}

.cart-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* TABLEAU PANIER */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.cart-table th, .cart-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: var(--light);
  font-weight: 600;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.cart-product img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-product h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.btn-remove {
  color: #ff4d4d;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.2s;
}

.btn-remove:hover {
  color: #ff0000;
}

/* RÉSUMÉ DU PANIER */
.cart-summary {
  display: flex;
  justify-content: flex-end;
}

.summary-box {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 25px;
}

.summary-box h3 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}

.summary-box p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.summary-box p.total {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
}

.summary-box hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #eee;
}

.cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-main, .btn-secondary {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-main {
  background: var(--green);
  color: var(--white);
}

.btn-main:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--light);
  color: var(--gray);
}

.btn-secondary:hover {
  background: #eaeaea;
}

/* PANIER VIDE */
.empty-cart {
  text-align: center;
  padding: 50px 20px;
}

.empty-cart img {
  width: 150px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.empty-cart h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #666;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cart-product {
    flex-direction: column;
    align-items: center;
  }

  .cart-summary {
    justify-content: center;
  }

  .summary-box {
    width: 100%;
  }

  .cart-table th, .cart-table td {
    font-size: 0.9rem;
    padding: 10px;
  }
}
/* === PAGE CHECKOUT === */
.checkout-page {
  padding: 60px 0;
}

.checkout-page h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.checkout-form, .checkout-summary {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 25px;
}

.checkout-form h2, .checkout-summary h2 {
  margin-bottom: 20px;
  color: var(--green);
}

.checkout-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.checkout-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-summary {
  max-height: 600px;
  overflow-y: auto;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.summary-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.summary-item h4 {
  margin: 0;
  font-size: 1rem;
}

.summary-item p {
  color: #555;
  font-size: 0.9rem;
}

.summary-total {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
/* === PAGES DE CONFIRMATION === */
.checkout-success, .checkout-cancel {
  text-align: center;
  padding: 80px 20px;
}

.checkout-success h1 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 15px;
}

.checkout-cancel h1 {
  color: #ff4d4d;
  font-size: 2rem;
  margin-bottom: 15px;
}

.checkout-success p, .checkout-cancel p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}
/* === PAGE PAYPAL === */
.paypal-page {
  text-align: center;
  padding: 80px 20px;
}

.paypal-page h1 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 10px;
}

.paypal-page p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}
/* === ADMIN COMMANDES === */
.admin-orders {
  padding: 60px 0;
}

.admin-orders h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--green);
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.admin-table th, .admin-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: var(--light);
  font-weight: 600;
}

.admin-table tr:hover {
  background: #f9f9f9;
}

.btn-small {
  background: var(--green);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.status-form select {
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: var(--font);
}

.order-view {
  padding: 60px 0;
}

.order-view h1 {
  margin-bottom: 20px;
  color: var(--green);
}

.order-view table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.order-view th, .order-view td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.order-view .total {
  text-align: right;
  font-size: 1.3rem;
  margin-top: 20px;
  color: var(--green);
}
/* === ADMIN PRODUITS === */
.admin-products {
  padding: 60px 0;
}

.admin-products h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}

.btn-main {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-main:hover { opacity: 0.9; }

.btn-small.danger { background: #ff4d4d; }
.btn-small.danger:hover { background: #e60000; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  cursor: pointer;
}
.admin-edit h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}
.admin-edit form {
  max-width: 600px;
  margin: 0 auto;
}
/* === ADMIN CATEGORIES & STOCK === */
.admin-categories, .admin-stock {
  padding: 60px 0;
}

.admin-categories h1, .admin-stock h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}

.category-form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.category-form input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 250px;
}

.inline-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.inline-form input[type="number"] {
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
/* === ADMIN DASHBOARD === */
.admin-dashboard {
  padding: 60px 0;
}

.admin-dashboard h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: center;
}

.stat-card h3 {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.stat-card.alert p {
  color: #ff4d4d;
}

.chart-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 40px;
}

.chart-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--green);
}

.admin-shortcuts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-shortcuts .btn-main {
  min-width: 150px;
  text-align: center;
}
/* === LOGIN ADMIN === */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #00C08D, #009970);
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.login-box h1 {
  color: #00C08D;
  margin-bottom: 25px;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-box .error {
  color: #ff4d4d;
  margin-bottom: 10px;
}
/* === ADMIN UTILISATEURS === */
.admin-users {
  padding: 60px 0;
}

.admin-users h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 280px;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: white;
}

.badge.green { background: #00C08D; }
.badge.red { background: #ff4d4d; }
.btn-small.warning { background: #ffa500; }

/* === HEADER === */
.main-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #00C08D;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

/* === NAVIGATION === */
.nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === BOUTONS UNIFIÉS === */
.btn-nav {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: #00C08D;
  border: 1px solid #00C08D;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: #00C08D;
  color: #fff;
  transform: translateY(-2px);
}

.btn-nav.main {
  background: #00C08D;
  color: #fff;
}

.btn-nav.main:hover {
  background: #009b70;
  border-color: #009b70;
}

.btn-nav.danger {
  border-color: #ff4d4d;
  color: #ff4d4d;
}

.btn-nav.danger:hover {
  background: #ff4d4d;
  color: white;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* === MENU MOBILE === */
.mobile-menu {
  display: none;
  background: #fff;
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  background: #f7f7f7;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .user-actions { display: none; }
}
/* === FOOTER === */
.main-footer {
  background: #00C08D;
  color: white;
  padding: 60px 20px 30px;
  margin-top: 60px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-logo img {
  height: 45px;
  margin-right: 10px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-col ul li a:hover {
  opacity: 0.8;
}

.socials a {
  display: inline-block;
  font-size: 1.8rem;
  color: white;
  margin-right: 10px;
  text-decoration: none;
  transition: transform 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .main-footer {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
}
/* === CONTACT PAGE === */
.contact {
  background: #f9f9f9;
  padding: 60px 20px;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 15px;
}

.contact p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

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

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  margin-top: 10px;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-info {
  margin-top: 40px;
  text-align: center;
  background: #f3fdf9;
  border-radius: 10px;
  padding: 20px;
}

.contact-info h3 {
  color: #00C08D;
  margin-bottom: 10px;
}
/* === REGISTER PAGE === */
.register {
  background: #f9f9f9;
  padding: 60px 20px;
}

.register-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.register h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 15px;
}

.register p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

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

.register-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.register-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.register-form button {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.text-small {
  text-align: center;
  margin-top: 15px;
}

.alert {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
/* === VERIFY PAGE === */
.verify {
  background: #f9f9f9;
  padding: 60px 20px;
}

.verify-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.verify h1 {
  color: #00C08D;
  margin-bottom: 20px;
}

.verify-box p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #333;
}
/* === LOGIN PAGE === */
.login {
  background: #f9f9f9;
  padding: 60px 20px;
}

.login-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.login h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 15px;
}

.login p {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
}

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

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.login-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.login-form button {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.text-small {
  text-align: center;
  margin-top: 15px;
}
/* === PROFILE PAGE === */
.profile {
  background: #f9f9f9;
  padding: 60px 20px;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 10px;
}

.profile p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.profile-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 25px;
}

.profile-card h2 {
  color: #00C08D;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.profile-card .form-group {
  margin-bottom: 15px;
}

.profile-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-card input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.btn-secondary {
  display: inline-block;
  background: #00C08D;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 10px;
}

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

.btn-danger {
  display: inline-block;
  background: #ff4d4d;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-danger:hover {
  opacity: 0.9;
}

.verified {
  color: #00C08D;
  font-weight: bold;
}

.not-verified {
  color: #ff4d4d;
  font-weight: bold;
}
/* === CHANGE PASSWORD PAGE === */
.change-password {
  background: #f9f9f9;
  padding: 60px 20px;
}

.change-password-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.change-password h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 15px;
}

.change-password p {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
}

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

.password-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.password-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.password-form button {
  display: block;
  width: 100%;
  margin-top: 10px;
}
/* === SHOP PAGE === */
.shop {
  background: #f9f9f9;
  padding: 60px 20px;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.shop h1 {
  color: #00C08D;
  margin-bottom: 10px;
  font-size: 2rem;
}

.shop p {
  color: #555;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f3f3;
}

.product-info h2 {
  font-size: 1.1rem;
  color: #222;
  margin-top: 10px;
}

.product-info .category {
  color: #888;
  font-size: 0.9rem;
}

.product-info .price {
  font-size: 1.3rem;
  color: #00C08D;
  font-weight: bold;
  margin-top: 5px;
}

.product-info .stock {
  font-size: 0.9rem;
  margin-top: 3px;
}

.in-stock {
  color: #00C08D;
}

.out-stock {
  color: #ff4d4d;
}

.product-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-main {
  background: #00C08D;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-main:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #e0f6f0;
  color: #00C08D;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #c6f0e1;
}

.btn-disabled {
  background: #ccc;
  color: #666;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: not-allowed;
}
/* === SHOP PAGE === */
.shop {
  background: #f9f9f9;
  padding: 60px 20px;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.shop h1 {
  color: #00C08D;
  margin-bottom: 10px;
  font-size: 2rem;
}

.shop p {
  color: #555;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f3f3;
}

.product-info h2 {
  font-size: 1.1rem;
  color: #222;
  margin-top: 10px;
}

.product-info .category {
  color: #888;
  font-size: 0.9rem;
}

.product-info .price {
  font-size: 1.3rem;
  color: #00C08D;
  font-weight: bold;
  margin-top: 5px;
}

.product-info .stock {
  font-size: 0.9rem;
  margin-top: 3px;
}

.in-stock {
  color: #00C08D;
}

.out-stock {
  color: #ff4d4d;
}

.product-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-main {
  background: #00C08D;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-main:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #e0f6f0;
  color: #00C08D;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #c6f0e1;
}

.btn-disabled {
  background: #ccc;
  color: #666;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: not-allowed;
}
/* === SHOP ADVANCED === */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.shop-filters input[type="text"],
.shop-filters select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 180px;
}

.shop-filters .btn-main {
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .shop-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-filters input, .shop-filters select, .shop-filters button {
    width: 100%;
  }
}
/* === SHOP PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-block;
  padding: 8px 14px;
  background: #e0f6f0;
  color: #00C08D;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.page-link:hover {
  background: #00C08D;
  color: white;
}

.page-link.active {
  background: #00C08D;
  color: white;
}
/* === CART PAGE === */
.cart {
  background: #f9f9f9;
  padding: 60px 20px;
}

.cart-container {
  max-width: 900px;
  margin: 0 auto;
}

.cart h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 30px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-table th, .cart-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: #e0f6f0;
  color: #00C08D;
}

.product-info {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-info img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-summary {
  text-align: right;
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn-danger {
  background: #ff4d4d;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-danger:hover {
  opacity: 0.8;
}

.empty-cart {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}
/* === CHECKOUT PAGE === */
.checkout {
  background: #f9f9f9;
  padding: 60px 20px;
}

.checkout-container {
  max-width: 1000px;
  margin: 0 auto;
}

.checkout h1 {
  text-align: center;
  color: #00C08D;
  margin-bottom: 40px;
}

.checkout-summary {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 30px;
}

.checkout-summary h2 {
  color: #00C08D;
  margin-bottom: 15px;
}

.checkout-table {
  width: 100%;
  border-collapse: collapse;
}

.checkout-table th, .checkout-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.checkout-total {
  text-align: right;
  margin-top: 10px;
  font-size: 1.2rem;
}

.checkout-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 25px;
}

.checkout-form h2 {
  color: #00C08D;
  margin-bottom: 20px;
}

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

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

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.checkout-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}
/* === CHECKOUT PAYMENT === */
.checkout-payment {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.checkout-payment h1 {
  color: #00C08D;
  margin-bottom: 20px;
}

#card-element {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  background: white;
  max-width: 400px;
  margin: 0 auto;
}

#submit {
  margin-top: 20px;
}

.checkout-success {
  text-align: center;
  padding: 80px 20px;
}

.checkout-success h1 {
  color: #00C08D;
  margin-bottom: 10px;
}
/* --- CORRECTION VISIBILITÉ BURGER SUR MOBILE --- */
.hamburger div {
    background-color: #333 !important; /* gris foncé visible */
    z-index: 9999;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 9999;
    }

    header, nav {
        background-color: #fff !important; /* bon contraste */
    }
}
