﻿:root {
  --primary: #316d7e;
  --primary-light: #4a8a9d;
  --accent: #00b0c1;
  --primary-dark: #1f4a56;
  --text-dark: #1a3b4c;
  --text-gray: #555;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: hidden; }
body {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height:1.6;
  overflow-x: hidden;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; display:block; }

/* ══════════════════════════════════════════════
   HEADER — même système que les autres pages
   ══════════════════════════════════════════════ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 7%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(49, 109, 126, 0.15);
}

header.scrolled {
  padding: 1rem 7%;
  box-shadow: 0 4px 25px rgba(49, 109, 126, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.logo {
  height: 50px;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
}

.header-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a,
.cart-icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  position: relative;
}

.social-links a:hover,
.cart-icon-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-links i,
.cart-icon-btn i { font-size: 18px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.cart-badge:empty { display: none; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .header-nav.active {
    right: 0;
  }

  .header-nav .nav-link {
    width: 100%;
    padding: 1.2rem 1rem;
    text-align: left;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
  .header-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
  }
}

footer {
  background: linear-gradient(135deg, #1a3b4c, #316d7e);
  color: rgba(255,255,255,0.85);
  padding: 3rem 7% 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size:0.9rem; opacity:0.7; margin-bottom:1rem; }

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.2); }

.footer-links-group h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
}

.panier-main {
  padding-top: 90px;
  min-height: calc(100vh - 90px);
}

.panier-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 3rem 7%;
  color: white;
  text-align: center;
}

.panier-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.panier-hero p {
  font-size: 1rem;
  opacity: 0.85;
}

.panier-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 2.5rem 7%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.panier-items-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}

.panier-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-gray);
}

.panier-empty i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.panier-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.panier-empty p {
  margin-bottom: 1.5rem;
}

.panier-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.panier-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49,109,126,0.35);
}

.panier-items-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 2px solid #eee;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
}

.panier-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.panier-item:last-child { border-bottom: none; }

.panier-item:hover { background: #fafcfc; }

.panier-item-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panier-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.panier-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.panier-item-price,
.panier-item-total {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
}

.panier-item-total { font-weight: 700; }

.panier-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panier-qty-btn {
  width: 28px;
  height: 28px;
  background: #f0f4f5;
  border: 1px solid #d0d8da;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.panier-qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.panier-qty-input {
  width: 44px;
  height: 28px;
  text-align: center;
  border: 1px solid #d0d8da;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  background: white;
}

.panier-qty-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(49,109,126,0.15);
}

.panier-item-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panier-item-remove:hover {
  color: #e74c3c;
  background: #fdf0f0;
}

.panier-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: #f8f9fa;
  border-top: 2px solid #eee;
  gap: 1rem;
}

.panier-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.panier-continue-btn:hover {
  background: var(--primary);
  color: white;
}

.panier-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  background: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.panier-clear-btn:hover {
  background: #e74c3c;
  color: white;
}

.panier-summary-section {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.panier-summary-card,
.order-form-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.8rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-title i { color: var(--primary); }

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-gray);
}

.summary-line strong { color: var(--text-dark); }

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 2px solid #eee;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.summary-total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.summary-shipping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #27ae60;
  font-weight: 600;
  margin: 0.8rem 0 1.2rem;
}

.summary-shipping i { font-size: 0.9rem; }

.panier-order-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.panier-order-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}

.panier-order-btn:hover::before { left: 100%; }

.panier-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(49,109,126,0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49,109,126,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-notice {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: rgba(49,109,126,0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.form-notice i {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-feedback {
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-feedback.success {
  background: #f0fdf4;
  border: 1px solid #22c55e;
  color: #166534;
}

.form-feedback.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

.submit-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — PANIER
   ══════════════════════════════════════════════ */

header { padding: 0.9rem 4%; }
.logo { height: 38px; }
.brand-name { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.social-links { gap: 0.5rem; }
.social-links a, .cart-icon-btn { width: 34px; height: 34px; }
.social-links i, .cart-icon-btn i { font-size: 15px; }

.panier-hero { padding: 2rem 4%; }
.panier-hero h1 { font-size: clamp(1.3rem, 3vw, 2.2rem); }

.panier-layout { grid-template-columns: 1fr; padding: 1.5rem 4%; }
.panier-summary-section { position: static; }
.panier-items-header { display: none; }
.panier-item { grid-template-columns: 1fr; gap: 0.6rem; padding: 1rem; }
.panier-item-price::before { content: 'Prix : '; color: var(--text-gray); font-weight: 400; }
.panier-item-total::before { content: 'Total : '; color: var(--text-gray); font-weight: 400; }
.panier-item-product { align-items: flex-start; }
.panier-item-remove { align-self: flex-end; }
.panier-actions { flex-direction: column; gap: 0.8rem; }
.panier-continue-btn, .panier-clear-btn { width: 100%; justify-content: center; }
.form-row { grid-template-columns: 1fr; }
.panier-summary-card, .order-form-card { padding: 1.2rem; }

footer { padding: 2rem 4% 1rem; margin-top: 2rem; }
.footer-content { grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 640px) {
  header { padding: 1rem 5%; }
  .logo { height: 42px; }
  .social-links a, .cart-icon-btn { width: 36px; height: 36px; }
  .panier-hero { padding: 2.5rem 5%; }
  .panier-layout { padding: 2rem 5%; }
  .panier-summary-card, .order-form-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  header { padding: 1.2rem 5%; }
  .logo { height: 45px; }
  .social-links a, .cart-icon-btn { width: 40px; height: 40px; }
  .panier-hero { padding: 3rem 5%; }
  .panier-layout { padding: 2.5rem 5%; }
  .panier-items-header { display: grid; }
  .panier-item { grid-template-columns: 2fr 1fr 1fr 1fr 40px; }
  .panier-item-price::before, .panier-item-total::before { content: none; }
  .panier-item-product { align-items: center; }
  .panier-item-remove { align-self: auto; }
  .panier-actions { flex-direction: row; }
  .panier-continue-btn, .panier-clear-btn { width: auto; }
  .panier-summary-card, .order-form-card { padding: 1.8rem; }
  footer { padding: 3rem 5% 1.5rem; }
}

@media (min-width: 1024px) {
  header { padding: 1.5rem 7%; }
  header.scrolled { padding: 1rem 7%; }
  .logo { height: 50px; }
  .social-links a, .cart-icon-btn { width: 42px; height: 42px; }
  .social-links i, .cart-icon-btn i { font-size: 18px; }
  .panier-hero { padding: 3rem 7%; }
  .panier-layout { padding: 2.5rem 7%; }
  footer { padding: 3rem 7% 1.5rem; }
  .footer-content { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1100px) {
  .panier-layout { grid-template-columns: 1fr 380px; }
  .panier-summary-section { position: sticky; top: 100px; }
}

@media (min-width: 1536px) {
  header { padding: 1.5rem 10%; }
  .panier-hero { padding: 3rem 10%; }
  .panier-layout { padding: 2.5rem 10%; }
  footer { padding: 3rem 10% 1.5rem; }
}