/* ==============================
   RESET & BASE
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(180deg, #0b0f1a 0%, #0d1220 100%);
  color: #ffffff;
  line-height: 1.6;
}

/* offset for fixed header */
body { padding-top: 72px; }

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==============================
   HEADER / NAVBAR
============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0b0f1a;
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(106,0,255,0.2);
}

.logo {
  height: 70px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  transform: translateX(-10px);
}

.nav a {
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00c6ff;
  background: rgba(106,0,255,0.1);
  box-shadow: 0 0 8px rgba(106,0,255,0.3);
}

.nav .nav-text:hover {
  color: inherit;
  background: none;
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* permet de positionner le texte avec absolute si besoin */
}

.nav-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #ccc;
}

/* Menu toggle for small screens */
.menu-toggle{
  display:none;
  background:transparent;
  border:none;
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
}

/* Cart link in header */
.cart-link{ color:#fff; margin:0 12px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
.cart-count{ background: linear-gradient(45deg, #6a00ff, #8a2be2); color:#fff; padding:2px 8px; border-radius:12px; font-size:0.85rem; }

/* Cart page styles */
.cart-page{ max-width:900px; margin:40px auto; padding:20px; }
.cart-item{ display:flex; gap:20px; align-items:center; padding:12px; border-radius:8px; margin-bottom:10px; background: linear-gradient(180deg, #141b34, #0f1429); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.cart-item .ci-name{ font-weight:600; }
.cart-item .ci-qty input{ width:60px; }
.cart-item .ci-price{ font-weight:600; color:#00c6ff; margin-left:auto; }
.cart-total{ margin-top:18px; font-size:1.2rem; font-weight:800; }

/* Cart summary banner */
#cartSummary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(90deg, #0f1429, #141b34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #00c6ff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  z-index: 1000;
}

/* Mini-cart dropdown */
.mini-cart{
  position:absolute;
  right:20px;
  top:64px;
  width:320px;
  background: linear-gradient(180deg, rgba(10,12,20,0.98), rgba(8,10,18,0.98));
  border:1px solid rgba(106,0,255,0.2);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  padding:12px;
  display:none;
  z-index:2500;
}
.mini-cart.open{ display:block; }
.mini-item{ display:flex; gap:10px; align-items:center; padding:8px 4px; border-bottom:1px solid rgba(255,255,255,0.03); }
.mini-img{ width:56px; height:40px; object-fit:cover; border-radius:6px; }
.mini-meta{ flex:1; color:#e6e9ff; }
.mini-name{ font-weight:700; }
.mini-qty{ font-size:0.9rem; color:#aab3d9; }
.mini-price{ font-weight:800; color:#00c6ff; }
.mini-footer{ display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.mini-empty{ color:#aab3d9; padding:8px; }

@media(max-width:900px){
  .mini-cart{ right:10px; left:10px; width:auto; top:70px; }
}

/* Skip link for accessibility */
.skip-link{
  position:fixed;
  left:12px;
  top:12px;
  background:#fff;
  color:#000;
  padding:8px 12px;
  border-radius:6px;
  z-index:1200;
  transform:translateY(-120%);
  transition:transform .2s ease;
}
.skip-link:focus{ transform:translateY(0); outline:none; }

/* Focus-visible for keyboard users */
:focus-visible{ outline:3px solid #00c6ff; outline-offset:3px; }

/* ==============================
   HERO / IMAGE DE FOND
============================== */
.hero {
  height: 100vh;
  background:
    linear-gradient(135deg, rgba(10,15,35,0.85), rgba(26,31,53,0.5), rgba(10,15,35,0.95)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(106,0,255,0.5), 0 0 30px rgba(0,198,255,0.3);
}

.hero p {
  font-size: 1.3rem;
  color: #dfeaff;
  margin-bottom: 35px;
}

.hero button {
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, #6a00ff, #00c6ff);
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,198,255,0.4), 0 0 20px rgba(106,0,255,0.2);
}

/* ==============================
   BACKGROUND POUR PAGES SPÉCIFIQUES
============================== */
body.boutique,
body.info,
body.contact,
body.category1,
body.panier {
  background:
    linear-gradient(135deg, rgba(10,15,35,0.85), rgba(26,31,53,0.5), rgba(10,15,35,0.95)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ==============================
   SECTIONS GÉNÉRALES
============================== */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  background: linear-gradient(180deg, rgba(11,15,26,0.02), rgba(26,31,53,0.01));
}

section h2 {
  text-align: center;
  font-size: 2.7rem;
  margin-bottom: 60px;
  text-shadow: 0 0 10px rgba(106,0,255,0.2);
}

/* HELP BANNER */
.help-banner{
  max-width:1100px;
  margin:30px auto;
  background: linear-gradient(90deg, rgba(106,0,255,0.12), rgba(0,198,255,0.08));
  border: 1px solid rgba(106,0,255,0.15);
  padding:28px 24px;
  border-radius:14px;
  color:#eaeefd;
}
.help-inner{ max-width:980px; margin:auto; text-align:left; }
.help-banner h2{ font-size:1.8rem; margin-bottom:6px; color:#fff; }
.help-banner .help-sub{ font-size:1.05rem; color:#dfeaff; margin-bottom:12px; font-weight:600; }
.help-banner p{ color:#d0d6f8; line-height:1.6; margin-bottom:14px; }
.help-actions{ display:flex; gap:12px; align-items:center; }
.btn{ display:inline-block; padding:10px 18px; border-radius:999px; text-decoration:none; font-weight:700; }
.btn-primary{ background: linear-gradient(45deg,#6a00ff,#00c6ff); color:#fff; box-shadow: 0 2px 10px rgba(106,0,255,0.3); transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(106,0,255,0.4); }
.btn-outline{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.12); padding:9px 16px; }

@media(max-width:700px){
  .help-inner{ padding:6px; }
  .help-actions{ flex-direction:column; align-items:flex-start; }
}

/* FAQ helpers */
.faq-actions{ display:flex; gap:12px; margin-bottom:18px; }
.question-list ul{ list-style:disc; padding-left:20px; color:#d0d6f8; }
.ask-question label{ display:block; margin-bottom:8px; color:#dfeaff; }
.ask-question textarea{ width:100%; border-radius:10px; padding:10px; background:#0f1429; color:#fff; border:1px solid rgba(255,255,255,0.06); }
.muted{ color:#aab3d9; font-size:0.95rem; }

/* ==============================
   PRODUITS / CARTES
============================== */
.produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.card {
  background: linear-gradient(180deg, #141b34, #0f1429);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(106,0,255,0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.7), 0 0 15px rgba(0,198,255,0.1);
}

.card img {
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.card-content {
  padding: 25px;
  text-align: center;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #00c6ff;
}

.card button {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(45deg, #6a00ff, #00c6ff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(106,0,255,0.4);
}

/* ==============================
   SECTION INFO / ILLUSTRATION
============================== */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.info img {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.info p {
  font-size: 1.1rem;
  color: #d0d6f8;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: linear-gradient(180deg, #050814, #0d1220);
  text-align: center;
  padding: 10px 20px;
  border-top: 1px solid rgba(106,0,255,0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

footer img {
  height: 30px;
  margin-bottom: 5px;
}

footer p {
  color: #777;
  font-size: 0.9rem;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.1rem; }
  .info { grid-template-columns: 1fr; }
  .nav ul { gap: 20px; }
  .menu-toggle{ display:block; }
  .nav ul{ display:none; position:absolute; right:20px; top:70px; background:rgba(5,8,20,0.95); padding:12px 18px; border-radius:10px; flex-direction:column; gap:12px; transform: translateX(-10px); }
  .nav ul.open{ display:flex; }
}

/* Contact extra (icons + labels under form) */
.contact-extra{margin-top:20px}
.contact-extra-inner{display:flex;gap:18px;flex-wrap:wrap}
.contact-extra .item{display:flex;gap:12px;align-items:center;background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);padding:12px;border-radius:12px;flex:1;min-width:260px}
.contact-icon{width:48px;height:48px;object-fit:contain}
.contact-label{font-weight:700;color:#fff;font-size:0.95rem}
.contact-value{color:#cfd8f8;margin-top:4px}

@media(max-width:700px){.contact-extra-inner{flex-direction:column}}

/* Price display: current + old (crossed) */
.price{display:flex;gap:10px;align-items:center;justify-content:center;margin-bottom:20px}
.current-price{font-size:1.6rem;font-weight:700;background:linear-gradient(45deg,#00c6ff,#6a00ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.old-price{font-size:1.05rem;font-weight:700;color:rgba(255,50,50,0.45);text-decoration:line-through}

/* clickable contact items */
.contact-link{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;transition:transform .18s ease, box-shadow .18s ease, background .18s ease}
.contact-link:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,0.5);background:linear-gradient(45deg,#6a00ff,#00c6ff);}

.nav-text {
  text-shadow: none !important;
  animation: none !important;
}
.contact-link:hover .contact-label{color:#fff}

/* Styles for contact and checkout buttons */
.btn-send {
  border: 2px solid #00c6ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00c6ff;
}

.change-account-btn {
  border: 2px solid #00c6ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 5px 10px;
  text-decoration: none;
  color: #00c6ff;
  border-radius: 5px;
  display: inline-block;
}

.change-account-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00c6ff;
  color: #fff;
  background: rgba(0, 198, 255, 0.1);
}

#proceed, .logout-btn {
  border: 2px solid #ff4757;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#proceed:hover, .logout-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff4757;
}
.contact-link:hover .contact-value{color:#eef6ff}
.contact-link:focus{outline:3px solid rgba(0,198,255,0.18);outline-offset:4px}
.contact-link .contact-icon{transition:filter .18s ease, transform .18s ease}
.contact-link:hover .contact-icon{filter:brightness(1.2) saturate(1.2);transform:translateY(-2px)}
