/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050818; /* fond bleu nuit profond */
  color: #d9fafe;
  font-family: 'Poppins', sans-serif;
}

/* BARRE NAV */
nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;       /* centre le contenu principal (nav-links) */
  padding: 1.4rem 2.3rem;
  border-bottom: 2px solid #00ffd7;
  background: #00030B;
  box-shadow: 0 0 20px #0088ff22;
  min-height: 70px;
}

.logo {
  position: absolute;
  left: 2.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #00ffd7;
  letter-spacing: 1.8px;
}

/* si tu utilises une image dans le logo */
.logo-img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  object-fit: contain;
}


.notification {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #00FFD1;
  color: #00040C;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 0 15px #00FFD1bb, 0 0 0 6px #00787733;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, box-shadow 0.3s;
  z-index: 1100;
  font-size: 1.2rem;
  animation: pulse-notif 0.7s;
}

.notification.show {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 0 30px #00FFD1, 0 0 0 10px #00787799;
}

@keyframes pulse-notif {
  0% { box-shadow: 0 0 0 0 #00FFD1; }
  70% { box-shadow: 0 0 30px 10px #00FFD1; }
  100% { box-shadow: 0 0 0 0 #00FFD1; }
}


/* La classe hidden masque complètement */
.hidden {
  display: none !important;
}


/* MENU liens strictement centré au centre de nav */
.nav-links {
  display: flex;
  gap: 2.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  left: 10%;
  transform: translateX(-50%);
  z-index: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #d9fafe;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.18rem;
  transition: color 0.3s;
  cursor: pointer;
  letter-spacing: 0.6px;
}
.nav-links a.active,
.nav-links a:hover {
  color: #00ffd7;
  text-shadow: 0 0 8px #00ffd745;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #d9fafe;
  cursor: pointer;
}

.cart-icon {
  position: absolute;           /* JS gÃ¨re la position dynamique */
  right: 30px;
  top: 90px;                    /* Ã€ adapter selon la hauteur de ta barre menu */
  font-size: 1.4rem;            /* Taille de l'icÃ´ne panier */
  padding: 8px;                 /* Espace intÃ©rieur */
  border-radius: 40px;          /* Bords arrondis */
  background: #001217;          /* Fond bleu nuit */
  border: 2px solid #00FFD1;    /* EntrourÃ© nÃ©on bleu */
  color: #00FFD1;               /* Couleur du pictogramme */
  box-shadow: 0 0 15px #00FFD1bb, 0 0 0 6px #00787733;
  z-index: 2000;
  transition: top 0.4s cubic-bezier(.22,.68,.62,1.13);
  flex: 0 0 auto;
}

.cart-icon:hover {
  background: #00FFD1;
  color: #001217;
}

/* -------- MODAL CLIENT (formulaire infos) -------- */
#customer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2500;
}

#customer-modal .modal-content {
  background: radial-gradient(circle at top left, #021824 0, #000915 40%, #00040C 100%);
  border-radius: 18px;
  border: 1px solid #00ffd766;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8), 0 0 40px #00ffd733;
  padding: 1.6rem 1.9rem 1.7rem;
  max-width: 520px;
  width: 92%;
  color: #d9fafe;
  position: relative;
}

#customer-modal .modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  color: #00ffd7;
  letter-spacing: 0.04em;
}

#customer-modal .close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.4rem;
  color: #7fd6d8;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

#customer-modal .close:hover {
  color: #00ffd7;
  transform: scale(1.1);
}

/* -------- FORMULAIRE CLIENT -------- */
#customer-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#customer-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.92rem;
  color: #9bd4de;
}

#customer-form input {
  background: #000b14;
  border: 1px solid #01313c;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: #e5fbff;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

#customer-form input:focus {
  border-color: #00ffd7;
  box-shadow: 0 0 0 1px #00ffd744, 0 0 10px #00ffd733;
  background: #000f1c;
}

#customer-form button[type="submit"] {
  margin-top: 0.5rem;
  align-self: flex-end;
  background: linear-gradient(90deg, #00ffd7 0%, #00bce3 100%);
  color: #012e38;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 0 14px #00ffd766;
  cursor: pointer;
  transition: background 0.16s, transform 0.08s, box-shadow 0.16s;
}

#customer-form button[type="submit"]:hover {
  background: #02c8a7;
  box-shadow: 0 0 18px #00ffd788;
  transform: translateY(-1px);
}

#customer-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 0 10px #00ffd766;
}

/* modal : ne force plus la hauteur globale, laisse le contenu diriger la taille
   et place le scroll uniquement dans la zone des items */
#cart-modal {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;                   /* largeur augmentée */
  max-width: calc(100vw - 40px);
  min-width: 320px;
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
  align-items: stretch;
  color: #D0E8F2;
  background: #001217;
  padding: 0.6rem 1rem;                /* padding réduit pour hauteur minimale */
  border-radius: 12px;
  border: 2px solid #00FFD1;
  box-shadow:
    0 8px 30px rgba(0,255,209,0.08),
    0 0 28px #00FFD1aa,
    0 0 8px #00FFD1bb inset;
  transition: opacity 0.18s, transform 0.12s;
  z-index: 3000;

  height: auto;        /* laisse la hauteur s'ajuster au contenu */
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#cart-modal.hidden { display: none !important; }

/* réduit l'espace sous le titre */
#cart-modal h2 {
  margin: 0 0 0.6rem 0;
  font-size: 1.2rem;
}

/* ITEMS LIST — hauteur plus compacte */
#cart-items {
  list-style: none;
  max-height: 140px;      /* hauteur plus petite pour limiter la box */
  overflow-y: auto;
  margin-bottom: 0.8rem;
  padding-right: 14px;
  padding-left: 4px;
  scrollbar-width: thin;
  scrollbar-color: #00FFD1 transparent;
}

/* Alignement propre des croix - remplace le bloc existant lié aux items */
#cart-items li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,255,209,0.06);
  height: 56px;
  min-height: 56px;
}

/* nom: occupe l'espace restant */
.cart-item-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* colonne de droite: largeur fixe pour aligner qty/price/remove */
.cart-item-right {
  flex: 0 0 220px; /* ajuste cette valeur si tu veux plus/moins d'espace à droite */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-left: 12px;
  box-sizing: content-box;
}

/* quantité: largeur fixe */
.cart-item-qty {
  flex: 0 0 38px;
  width: 38px;
  text-align: center;
  color: #D0E8F2;
}

/* prix: largeur fixe et aligné à droite */
.cart-item-price {
  flex: 0 0 72px;
  width: 72px;
  text-align: right;
  font-weight: 700;
  color: #00FFD1;
}

/* bouton supprimer: toujours aligné à droite */
#cart-items .remove-item {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #00FFD1;
  color: #001217;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-left: 0;
  z-index: 2;
}

/* optionnel : réduire la bordure/espacement sous le titre si trop vide */
#cart-modal h2 { margin-bottom: 0.9rem; }

#cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

#cart-icon.animate {
  transform: scale(1.3);
  color: #00FFD1;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #00FFD1;
  color: #00040C;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
#cart-actions {
  margin-top: 1rem;
  text-align: right;
}

/* BOUTONS */
#cart-clear, #pay-button {
  background: #00FFD1;
  color: #00040C;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}
#cart-clear:hover, #pay-button:hover {
  background: #00bba7;

}


#cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* TITRE & FERMER */
#cart-modal h2 {
  color: #00ffd7;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.3rem;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
#cart-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #FF0054;
}

#pay-button {
  background: #00FFD1;
  color: #00040C;
  border: none;
  padding: 0.5rem 1rem;
  width: 100%;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.remove-item {
  background: transparent;
  border: none;
  color: #FF0054;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.remove-item:hover {
  color: #FF3366;

}

#cart-button {
  background: #00FFD1;
  color: #00040C;
  border: none;
  padding: 0.5rem 1rem;
  width: 100%;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
  
}


main {
  flex-grow: 1;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00FFD1;
  margin-bottom: 1rem;
}

button {
  background: #00FFD1;
  color: #00040C;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

button:hover {
  background: #00bba7;
}

.service-category {
  margin-bottom: 2rem;
}

.service-item {
  background: #001B2E;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-info {
  max-width: 70%;
}

.service-name {
  flex: 2;
  font-size: 1rem;
  font-weight: 600;
  color: #D0E8F2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-price {
  flex-shrink: 0;
  color: #00FFD1;
  font-weight: 700;
  font-size: 1rem;
  min-width: 100px;
  text-align: right;
  white-space: nowrap;
}

.add-to-cart {
  flex-shrink: 0;
  background: #00FFD1;
  color: #00040C;
  border: none;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: #00c4a0;
}

.add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
}

.service-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ffffff99;
  font-style: italic;
  text-align: left;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-content {
  background: #001217;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  color: #D0E8F2;
  position: relative;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #FF0054;
}

/* Consolidated cart-items & item rules (replace the duplicate block at bottom) */
#cart-items {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 12px;
  padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: #00FFD1 transparent;
}
#cart-items::-webkit-scrollbar { width: 8px; }
#cart-items::-webkit-scrollbar-track { background: transparent; }
#cart-items::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,#00FFD1,#00C4A0);
  border-radius: 8px;
  border: 2px solid rgba(0,18,20,0.55);
  box-shadow: 0 0 10px #00FFD188;
}

/* assure une ligne entière et une colonne droite fixe pour aligner les croix */
.cart-item-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* laisse moins d'espace à droite pour la scrollbar (évite vide) */
#cart-items {
  padding-right: 12px; /* réduit l'espace à droite */
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: #00FFD1 transparent;
}

/* colonne droite fixe pour qty / price / remove : espace réduit */
.cart-item-right {
  flex: 0 0 170px; /* valeur plus petite pour rapetisser la zone vide */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 4px;
  box-sizing: border-box;
}

/* ajuste les tailles pour compacter */
.cart-item-qty { flex: 0 0 34px; width: 34px; }
.cart-item-price { flex: 0 0 64px; width: 64px; text-align: right; }
#cart-items .remove-item { flex: 0 0 32px; width: 32px; height: 32px; }

.payment-success {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* box alignée en haut, pas centrée verticalement */
  min-height: calc(100vh - 80px); /* 80px = hauteur de ta navigation */
  padding-top: 40px; /* espace souhaité sous la barre menu */
  background: #050818;
}


.success-container {
  background: #0f232eec;
  border-radius: 24px;
  padding: 2.6rem 2.2rem 2.3rem 2.2rem;
  box-shadow: 0 0 40px #00ffd1cc, 0 14px 40px #01e69144 inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 670px;
  margin: 0 auto;
  color: #d9fafe;
}

.big-check {
  margin-bottom: 1.3rem;
  margin-top: -1.4rem;
}

.success-container h1 {
  color: #1FEF8A;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  text-shadow: 0 0 17px #1FEF8A99, 0 0 3px #00FFD1;
}

.success-desc {
  font-size: 1.04rem;
  margin-bottom: 1.4rem;
  color: #d8ffe6;
}

.commande-recap {
  width: 100%;
  margin-bottom: 1.3rem;
  background: #050818c7;
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 0 20px #00FFD1aa inset;
}

.commande-recap h2 {
  color: #00FFD1;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.recap-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.recap-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  gap: 0.7rem;
}

.recap-qty {
  color: #47ffd1;
  font-family: monospace;
  font-size: 0.98rem;
}

.recap-price {
  color: #1FEF8A;
  font-weight: 700;
  font-size: 1.08rem;
  font-family: monospace;
}

.recap-total {
  margin-top: 0.2rem;
  font-size: 1.13rem;
  color: #1FEF8A;
  text-align: right;
  font-family: 'Orbitron', sans-serif;
}

.return-home {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.7rem 1.5rem;
  background: #00FFD1;
  color: #050818;
  font-weight: 700;
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  box-shadow: 0 0 7px #00FFD199;
  transition: background 0.18s;
}

.return-home:hover {
  background: #1FEF8A;
  color: #050818;
}

.payment-canceled {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* box alignée en haut, pas centrée verticalement */
  min-height: calc(100vh - 80px); /* 80px = hauteur de ta navigation */
  padding-top: 40px; /* espace souhaité sous la barre menu */
  background: #050818;
}

.canceled-container {
  background: #230f1aee;
  border-radius: 24px;
  padding: 2.6rem 2.2rem 2.3rem 2.2rem;
  box-shadow: 0 0 40px #FC1860cc, 0 14px 40px #ff005455 inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 470px;
  margin: 0 auto;
  color: #ffd9fa;
}

.big-x {
  margin-bottom: 1.3rem;
  margin-top: -1.4rem;
}

.canceled-desc {
  font-size: 1.04rem;
  margin-bottom: 1.4rem;
  color: #ffdbe6;
}

.affiche-techno img {
  max-width: 520px;
  width: 100%;
  margin: 40px auto 18px auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 0 44px #00FFD188;
}


.contact-section {
  max-width: 410px;
  margin: 3.5rem auto;
  padding: 2.1rem 1.6rem 1.7rem 1.6rem;
  background: #0a232b;
  border-radius: 18px;
  box-shadow: 0 0 35px #00ffd7af;
  color: #d9fafe;
}

.contact-section h1 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffd7;
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 1.5px;
  text-align: center;
}

.contact-section p {
  text-align: center;
  margin-bottom: 2.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #00ffd7;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-radius: 8px;
  background: #02151c;
  color: #d9fafe;
  font-size: 1.07rem;
  padding: 0.7rem 1rem;
  outline: none;
  box-shadow: 0 0 0 2px #00ffd711;
  transition: box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px #00ffd7, 0 0 8px #00ffd788;
}

.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-submit {
  margin-top: 0.4rem;
  background: linear-gradient(90deg, #00ffd7 60%, #00bce3 100%);
  color: #012e38;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  box-shadow: 0 0 12px #00ffd766;
  cursor: pointer;
  outline: none;
  transition: background 0.16s;
}
.btn-submit:hover {
  background: #02c8a7;
  color: #011b23;
}

.contact-info {
  margin-top: 2.2rem;
  text-align: center;
  color: #a5d9db;
  font-size: 1rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
  }

  .logo {
    position: static;
    transform: none;
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-left: auto;
    z-index: 2100;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 1.8rem 2rem;
    background: #00030B;
    transform: none;
    z-index: 2000;
  }

  .nav-links.open {
    display: flex;
  }

  .cart-icon {
    position: fixed;
    top: auto;
    bottom: 22px;
    right: 14px;
  }

  main {
    padding: 1.3rem 1rem;
  }

  #cart-modal {
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(100vw - 24px);
    min-width: 0;
    max-height: 75vh;
  }

  .payment-success .success-container,
  .payment-canceled .canceled-container {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 1rem;
    padding: 1.6rem 1.4rem;
  }

  .contact-section {
    margin: 2rem 1rem;
    padding: 1.8rem 1.2rem;
  }

  #customer-modal .modal-content {
    padding: 1.2rem 1.3rem 1.4rem;
    max-width: 94vw;
  }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-name {
    white-space: normal;
  }

  .service-price {
    text-align: left;
    min-width: auto;
    margin-top: 0.3rem;
  }

  .add-to-cart {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0; /* masque le texte 'Ajouter' visuellement */
  }

  .add-to-cart::before {
    content: "🛒";
    font-size: 1.4rem;
    display: inline-block;
  }
}
