/* Enixis Corp - Styles optimisés v1.0 */
/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }

/* Performance: will-change pour les animations */
.hero-visual, .orb, .card:hover, .btn:hover { will-change: transform; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: radial-gradient(1200px 800px at 10% -10%, var(--primary) 0%, rgba(0,70,204,0) 60%), radial-gradient(1000px 700px at 110% 10%, var(--accent) 0%, rgba(255,43,43,0) 60%), #0A0F2C; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Favicon arrondi */
link[rel="icon"], link[rel="apple-touch-icon"] { border-radius: 20%; }

:root {
  --bg: #0A0F2C;
  --bg-alt: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #D6DAE5;
  --primary: #0046CC; /* bleu logo */
  --primary-strong: #0033A0; /* bleu foncé */
  --accent: #FF2B2B; /* rouge logo */
  --neutral: #F5F5F5; /* gris clair */
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; max-width: 100%; }
.section { padding: 80px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); margin: 0 0 24px; letter-spacing: 0.2px; }
.lead { color: var(--muted); max-width: 56ch; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; color: #000; padding: .5rem .75rem; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(10px); background: rgba(10,15,44,0.5); border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { margin-right: 8px; border-radius: 8px; transition: transform 0.2s ease; width: 48px; height: 48px; object-fit: contain; filter: brightness(1.1) contrast(1.1); }
.logo:hover { transform: scale(1.05); }
.brand { font-weight: 800; letter-spacing: 0.4px; font-size: 1.125rem; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; padding: 8px; border-radius: 10px; transition: background .2s ease; }
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle .bar { width: 24px; height: 2px; background: #fff; border-radius: 2px; display: block; }

.site-nav { position: fixed; inset: 0 0 auto auto; top: 58px; right: 0; width: 280px; background: rgba(10,15,44,0.9); transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow); }
.site-nav.open { transform: translateX(0); }
.site-nav ul { list-style: none; margin: 0; padding: 16px; display: grid; gap: 8px; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.site-nav a:hover { background: rgba(255,255,255,0.06); }
.site-nav .cta { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.site-nav .cta:hover { filter: brightness(1.05) saturate(1.1); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; width: auto; transform: none; background: transparent; box-shadow: none; }
  .site-nav ul { grid-auto-flow: column; align-items: center; gap: 18px; padding: 0; }
  .site-nav a { padding: 8px 10px; }
}

/* Hero */
.hero { min-height: clamp(520px, 72vh, 820px); display: grid; place-items: center; overflow: hidden; }
.hero-inner { display: grid; align-items: center; gap: 32px; grid-template-columns: 1fr; }
.hero-copy h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.1; margin: 0 0 12px; }
.hero .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.hero-visual { 
  position: relative; 
  min-height: 260px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.hero-image-container {
  width: 100%;
  max-width: 995px;
  aspect-ratio: 16 / 9; /* Format rectangulaire standard */
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    0 8px 16px rgba(0,0,0,0.15);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: all 0.4s ease;
  background: linear-gradient(135deg, rgba(10, 15, 44, 0.1), rgba(255, 43, 43, 0.1));
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.01);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.4),
    0 12px 24px rgba(0,0,0,0.2);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover; /* Assure un remplissage parfait sans déformation */
  object-position: center; /* Centre l'image */
  filter: contrast(1.1) saturate(1.05) brightness(1.02);
  transition: all 0.4s ease;
}

.hero-image-container img:hover {
  filter: contrast(1.15) saturate(1.1) brightness(1.05);
}

.hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 20% 40%, rgba(255,43,43,0.2), transparent 70%),
              radial-gradient(circle at 80% 60%, rgba(0,70,204,0.2), transparent 70%);
  z-index: 1;
}

/* ✅ Ajustements mobiles pour l'image hero */
@media (max-width: 768px) {
  .hero-image-container {
    aspect-ratio: 16 / 10; /* Légèrement plus carré sur tablette */
    border-radius: 15px;
    transform: perspective(800px) rotateY(-1deg) rotateX(0.5deg);
    box-shadow: 
      0 15px 30px rgba(0,0,0,0.3),
      0 6px 12px rgba(0,0,0,0.15);
  }

  .hero-image-container:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.01);
  }

  .hero-image-container img {
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    aspect-ratio: 4 / 3; /* Format plus adapté au mobile */
    border-radius: 12px;
    transform: none;
    box-shadow: 
      0 12px 24px rgba(0,0,0,0.25),
      0 4px 8px rgba(0,0,0,0.1);
  }

  .hero-image-container:hover {
    transform: scale(1.005);
  }

  .hero-image-container img {
    border-radius: 12px;
  }
}
.orb { position: absolute; filter: blur(20px); opacity: 0.8; mix-blend-mode: screen; animation: float 10s ease-in-out infinite; }
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%); top: 10%; left: 10%; animation-delay: -2s; }
.orb-2 { width: 260px; height: 260px; background: radial-gradient(circle at 70% 70%, var(--primary), transparent 60%); bottom: 0; right: 10%; animation-delay: -5s; }
.grid-visual { position: absolute; inset: 10% 0 0 0; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { min-height: 400px; }
  .hero-image { max-height: 400px; }
}

/* Responsive pour les boutons hero */
@media (max-width: 768px) {
  .hero .actions { gap: 6px; flex-direction: row; justify-content: center; }
  .hero .actions .btn { flex: 1; min-width: 140px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero .actions { gap: 10px; justify-content: flex-start; }
}

@media (min-width: 1025px) {
  .hero .actions { gap: 12px; justify-content: flex-start; }
}

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cards.three { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }

/* Carousel styles */
.carousel-container { position: relative; overflow: hidden; }
.carousel-wrapper { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.3s ease; }
.carousel-track .card { flex: 0 0 100%; min-width: 0; }
@media (min-width: 700px) { .carousel-track .card { flex: 0 0 50%; } }
@media (min-width: 1000px) { .carousel-track .card { flex: 0 0 33.333%; } }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s ease; z-index: 10; }
.carousel-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.card { background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transform: translateY(0); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.18); }
.card-icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card-title { margin: 0 0 8px; font-size: 1.125rem; }
.card:has(.partner-logo) .card-title { padding-left: 100px; margin-top: 8px; }
.card:has(.partner-logo) .card-preview { padding-left: 100px; }
.partner-logo { position: absolute; top: 16px; left: 16px; width: 80px; height: 80px; border-radius: 12px; background: #ffffff; padding: 8px; border: 1px solid rgba(255,255,255,0.3); filter: brightness(1.1) contrast(1.1) saturate(1.1); transition: all 0.3s ease; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.partner-logo:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); background: #ffffff; border-color: rgba(255,255,255,0.5); }
.clickable-logo { cursor: pointer; }
.btn-see-more { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: 12px; margin-left: 100px; max-width: calc(100% - 100px); }
.btn-see-more:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0,70,204,0.3); }

/* Responsive pour mobile - éviter le débordement */
@media (max-width: 768px) {
  .card:has(.partner-logo) .card-title { padding-left: 90px; }
  .card:has(.partner-logo) .card-preview { padding-left: 90px; }
  .btn-see-more { margin-left: 90px; max-width: calc(100% - 90px); }
  .partner-logo { width: 70px; height: 70px; }
}

@media (max-width: 480px) {
  .card:has(.partner-logo) .card-title { padding-left: 80px; }
  .card:has(.partner-logo) .card-preview { padding-left: 80px; }
  .btn-see-more { margin-left: 80px; max-width: calc(100% - 80px); }
  .partner-logo { width: 60px; height: 60px; }
}

/* Pop-up styles */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-content { background: var(--card); border-radius: var(--radius); padding: 20px; max-width: 500px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.popup-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }
.popup-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.popup-content .actions { margin-top: 8px; justify-content: flex-end; }
.popup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.popup-logo { width: 50px; height: 50px; border-radius: 8px; object-fit: contain; background: #ffffff; padding: 4px; border: 1px solid rgba(255,255,255,0.3); }
.popup-header h3 { margin: 0; font-size: 1.1rem; color: var(--text); }
.popup-body p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

/* Responsive pop-up pour mobile */
@media (max-width: 768px) {
  .popup-overlay { padding: 12px; }
  .popup-content { padding: 16px; max-height: 90vh; border-radius: 12px; }
  .popup-close { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 18px; }
  .popup-header { gap: 10px; margin-bottom: 12px; }
  .popup-logo { width: 45px; height: 45px; }
  .popup-header h3 { font-size: 1rem; }
  .popup-body p { font-size: 0.9rem; line-height: 1.5; }
}

@media (max-width: 480px) {
  .popup-overlay { padding: 8px; }
  .popup-content { padding: 14px; border-radius: 10px; }
  .popup-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .popup-logo { width: 40px; height: 40px; }
  .popup-header h3 { font-size: 0.95rem; }
  .popup-body p { font-size: 0.85rem; }
}

/* Testimonials */
.testimonials { display: grid; gap: 32px; }
.testimonial-category { 
  margin-bottom: 24px; 
  flex: 0 0 100%; 
  min-width: 0; 
  padding: 0 8px;
}
.category-title { 
  font-size: 1.25rem; 
  font-weight: 700; 
  margin: 0 0 16px; 
  color: var(--text); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  text-align: center;
}
.testimonials-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 16px; 
}
@media (min-width: 900px) { 
  .testimonials-grid { 
    grid-template-columns: repeat(2, 1fr); 
  } 
  .testimonial-category {
    flex: 0 0 50%;
  }
}
@media (min-width: 1200px) {
  .testimonial-category {
    flex: 0 0 33.333%;
  }
}
.testimonial { 
  background: var(--card); 
  padding: 22px; 
  border-radius: var(--radius); 
  border: 1px solid rgba(255,255,255,0.08); 
  box-shadow: var(--shadow); 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.testimonial:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); 
}
.testimonial blockquote { 
  margin: 0 0 12px; 
  color: var(--muted); 
  font-style: italic; 
  line-height: 1.5; 
}
.testimonial figcaption { 
  font-weight: 600; 
  color: var(--text); 
  font-size: 0.9rem; 
}

/* Contact */
.contact { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.contact .socials { display: none; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 8px; }
.contact-icon { font-size: 1.2rem; }
.contact-label { font-weight: 600; color: var(--text); }
.contact-item a { color: var(--primary); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-form { background: rgba(255,255,255,0.95); padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.2); box-shadow: var(--shadow); color: #333; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.contact-form label { font-size: .9rem; color: #222; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #ddd; background: #fff; color: #333; outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,70,204,0.1); }

/* Validation des champs */
.contact-form input.valid { border-color: #28a745; box-shadow: 0 0 0 2px rgba(40,167,69,0.1); }
.contact-form input.invalid { border-color: #dc3545; box-shadow: 0 0 0 2px rgba(220,53,69,0.1); }
.field-error { display: block; margin-top: 4px; font-size: 0.8rem; color: #dc3545; }

/* Loading states */
.btn.loading { position: relative; color: transparent; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.contact-form select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #ddd; background: #fff; color: #333; }
.contact-form textarea#preview { background: #f8f9fa; border-style: dashed; border-color: #ccc; }
.field.full { grid-column: 1 / -1; }
.contact-form .form-note { margin-top: 8px; font-size: .9rem; color: #666; }

/* Promo row */
.promo-row { display: flex; gap: 8px; align-items: center; }
.promo-row input { flex: 1; }

/* Styles spécifiques page commande */
#order .contact-form { background: rgba(255,255,255,0.98); }
#order .contact-form .actions { justify-content: flex-end; }
#order .contact-form input[type="file"] { padding: 10px; }

/* Styles page demande */
#request .contact-form { 
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(255,255,255,0.95) 25%, 
    rgba(0,70,204,0.05) 50%, 
    rgba(255,43,43,0.05) 75%, 
    rgba(255,255,255,0.98) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.15),
    0 0 0 1px rgba(0,70,204,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  animation: gradientShift 8s ease-in-out infinite;
}

#request .contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--primary) 0%, 
    var(--accent) 25%, 
    var(--primary) 50%, 
    var(--accent) 75%, 
    var(--primary) 100%);
  border-radius: var(--radius);
  z-index: -1;
  animation: borderGlow 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { 
    background: linear-gradient(135deg, 
      rgba(255,255,255,0.98) 0%, 
      rgba(255,255,255,0.95) 25%, 
      rgba(0,70,204,0.05) 50%, 
      rgba(255,43,43,0.05) 75%, 
      rgba(255,255,255,0.98) 100%);
  }
  50% { 
    background: linear-gradient(135deg, 
      rgba(255,255,255,0.98) 0%, 
      rgba(0,70,204,0.08) 25%, 
      rgba(255,43,43,0.08) 50%, 
      rgba(255,255,255,0.95) 75%, 
      rgba(255,255,255,0.98) 100%);
  }
}

@keyframes borderGlow {
  0%, 100% { 
    background: linear-gradient(135deg, 
      var(--primary) 0%, 
      var(--accent) 25%, 
      var(--primary) 50%, 
      var(--accent) 75%, 
      var(--primary) 100%);
    opacity: 0.6;
  }
  50% { 
    background: linear-gradient(135deg, 
      var(--accent) 0%, 
      var(--primary) 25%, 
      var(--accent) 50%, 
      var(--primary) 75%, 
      var(--accent) 100%);
    opacity: 0.8;
  }
}

#request .price-box { 
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(0,70,204,0.05) 50%, #f8f9fa 100%); 
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  padding: 12px 14px; 
  border-radius: var(--radius-sm); 
  color: #333; 
  min-height: 44px; 
  display: flex; 
  align-items: center; 
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,70,204,0.1);
}

/* Checkboxes accentuées */
.checkbox-accent { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.checkbox-accent input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all .2s ease;
}
.checkbox-accent input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0,70,204,0.12);
}
.checkbox-accent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-accent span { font-weight: 700; color: #222; }

#request .price-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  z-index: -1;
  opacity: 0.3;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.btn.primary:hover { transform: translateY(-2px); filter: saturate(110%); }
.btn.back-link { position: relative; margin-bottom: 10px; background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--text); padding: 6px 10px; border-radius: 10px; font-size: .9rem; }
.btn.back-link:hover { background: rgba(255,255,255,0.08); }

/* Bouton spécial pour le formulaire de demande */
#request .btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% 200%;
  animation: buttonGradient 4s ease-in-out infinite;
  box-shadow: 
    0 8px 20px rgba(0,70,204,0.3),
    0 0 0 1px rgba(255,255,255,0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#request .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 30px rgba(0,70,204,0.4),
    0 0 0 1px rgba(255,255,255,0.3);
  filter: brightness(1.1) saturate(1.2);
}

@keyframes buttonGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn.ghost { background: transparent; border-color: rgba(255,255,255,0.16); }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }
.btn.cancel { background: #dc3545; color: white; margin-left: auto; }
.btn.cancel:hover { background: #c82333; transform: translateY(-2px); }
.actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

/* Responsive pour les boutons du formulaire */
@media (max-width: 768px) {
  .actions { flex-direction: row; justify-content: space-between; gap: 8px; }
  .btn.cancel { margin-left: 0; }
}
.btn.small { padding: 8px 12px; border-radius: 10px; }

/* Bouton de téléchargement PDF */
.pdf-download-section {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #28a745;
}

.pdf-download-section p {
  margin: 0;
  color: #666;
}

.pdf-download-section .btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.pdf-download-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  filter: brightness(1.1);
}

.pdf-download-section .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pdf-download-section .btn:disabled:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

/* Footer */
.site-footer { padding: 20px 0; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer p { margin: 0; color: var(--muted); text-align: center; }

/* To top button */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); background: rgba(10,15,44,0.6); color: #fff; backdrop-filter: blur(8px); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transform: translateY(80px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.to-top.visible { transform: translateY(0); opacity: 1; }

/* Reveal animations */
[data-animate] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.revealed { opacity: 1 !important; transform: none !important; }

/* Scroll behavior for anchor offset */
html { scroll-behavior: smooth; }
main:focus { outline: none; }

/* Styles pour les pop-ups de paiement */
.country-options {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.country-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 18px 24px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.country-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.country-btn:hover::before {
  left: 100%;
}

.country-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,70,204,0.4);
  filter: brightness(1.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.country-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,70,204,0.3);
}

.payment-method {
  background: var(--card);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method:hover {
  border-color: var(--primary);
  background: rgba(0,70,204,0.1);
  transform: translateY(-2px);
}

.payment-method .icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.payment-method .details h4 {
  margin: 0 0 4px 0;
  color: var(--text);
  font-size: 1.1rem;
}

.payment-method .details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.crypto-option {
  background: linear-gradient(135deg, #f7931a 0%, #ff6b35 100%);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 8px 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247,147,26,0.3);
  filter: brightness(1.1);
}

.crypto-option.usdt {
  background: linear-gradient(135deg, #26a17b 0%, #009688 100%);
}

.crypto-option.usdt:hover {
  box-shadow: 0 8px 20px rgba(38,161,123,0.3);
}

.wallet-info {
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  border: 2px solid var(--primary);
}

.wallet-address {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  word-break: break-all;
  font-size: 0.9rem;
  margin: 8px 0;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.payment-instructions {
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  border-left: 4px solid var(--accent);
}

.payment-instructions h4 {
  margin: 0 0 8px 0;
  color: var(--accent);
}

.payment-instructions ol {
  margin: 8px 0;
  padding-left: 20px;
}

.payment-instructions li {
  margin: 4px 0;
  line-height: 1.4;
}

.ussd-code {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  margin: 12px 0;
  color: #333;
}

.amount-highlight {
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin: 8px 0;
}

/* Responsive pour les pop-ups de paiement */
@media (max-width: 768px) {
  .country-options {
    gap: 8px;
  }
  
  .country-btn {
    padding: 14px 16px;
    font-size: 1rem;
  }
  
  .payment-method {
    padding: 12px;
    flex-direction: column;
    text-align: center;
  }
  
  .payment-method .icon {
    font-size: 1.5rem;
  }
  
  .crypto-option {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}


/* Styles pour la facture - Responsive adaptatif */
.invoice-content {
  max-width: 800px;
  width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  background: white;
  margin: 0 auto;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.invoice-document {
  background: white;
  padding: 30px;
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.5;
  box-sizing: border-box;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* En-tête de facture unifié */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0A0F2C;
}

.company-section {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-details h4 {
  margin: 0 0 8px 0;
  color: #0A0F2C;
  font-size: 1.3rem;
  font-weight: 700;
}

.company-details p {
  margin: 3px 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.invoice-number-section {
  text-align: right;
}

.invoice-number {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.invoice-dates p {
  margin: 5px 0;
  color: #666;
  font-size: 0.9rem;
  text-align: right;
}

/* Section client et service côte à côte */
.client-service-section {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #0A0F2C;
}

.client-info, .service-info {
  flex: 1;
}

.client-info h4, .service-info h4 {
  margin: 0 0 12px 0;
  color: #0A0F2C;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.client-details p, .service-details p {
  margin: 6px 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.client-details p:first-child, .service-details p:first-child {
  font-weight: 600;
  color: #0A0F2C;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.invoice-table th {
  background: linear-gradient(135deg, #0A0F2C, #1a237e);
  color: white;
  padding: 15px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-table td {
  padding: 15px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
  background: white;
}

.invoice-table tbody tr:hover {
  background-color: #f8f9fa;
}

.invoice-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.invoice-table td:last-child {
  font-weight: 600;
  color: #0A0F2C;
}

.invoice-totals {
  margin-top: 40px;
  max-width: 450px;
  margin-left: auto;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.totals-row:last-child {
  border-bottom: none;
}

.total-final {
  border-top: 3px solid #0A0F2C;
  margin-top: 15px;
  padding-top: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0A0F2C;
}

/* Section informations de paiement */
.payment-info-section {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border-radius: 12px;
  border-left: 4px solid #28a745;
}

.payment-info-section h4 {
  margin: 0 0 15px 0;
  color: #0A0F2C;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #28a745;
  padding-bottom: 5px;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.payment-label {
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.payment-value {
  font-weight: 600;
  color: #0A0F2C;
  font-size: 0.9rem;
  text-align: right;
}

.status-paid {
  color: #28a745 !important;
}

.invoice-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 2px solid #eee;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}



/* Responsive adaptatif pour tous les écrans */
@media (max-width: 768px) {
  .invoice-content {
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100vh - 80px); /* Espace pour le bouton */
    border-radius: 0;
    margin: 0;
  }
  
  .invoice-document {
    padding: 20px;
    font-size: 13px;
  }
  
  /* Adapter l'en-tête pour mobile */
  .invoice-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .company-section {
    align-items: center;
    text-align: center;
  }
  
  .invoice-number-section {
    text-align: center;
    width: 100%;
  }
  
  .company-logo {
    width: 50px;
    height: 50px;
  }
  
  .company-details h4 {
    font-size: 1.2rem;
  }
  
  .company-details p {
    font-size: 0.9rem;
  }
  
  .invoice-number {
    font-size: 1rem;
    padding: 8px 14px;
  }
  
  .invoice-dates p {
    font-size: 0.85rem;
  }
  
  /* Adapter la section client-service */
  .client-service-section {
    flex-direction: column;
    gap: 20px;
    padding: 18px;
  }
  
  .client-info h4, .service-info h4 {
    font-size: 0.95rem;
  }
  
  .client-details p, .service-details p {
    font-size: 0.9rem;
  }
  
  /* Adapter le tableau */
  .invoice-table {
    font-size: 0.85rem;
  }
  
  .invoice-table th,
  .invoice-table td {
    padding: 8px 4px;
    font-size: 0.8rem;
  }
  
  /* Adapter les totaux */
  .invoice-totals {
    padding: 18px;
  }
  
  .totals-row {
    font-size: 0.9rem;
  }
  
  .total-final {
    font-size: 1rem;
  }
  
  /* Adapter la section paiement */
  .payment-info-section {
    padding: 18px;
  }
  
  .payment-info-section h4 {
    font-size: 0.95rem;
  }
  
  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  
  .payment-label, .payment-value {
    font-size: 0.9rem;
  }
  
  .payment-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .invoice-content {
    max-height: calc(100vh - 70px);
  }
  
  .invoice-document {
    padding: 15px;
    font-size: 12px;
  }
  
  .invoice-header {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .company-logo {
    width: 45px;
    height: 45px;
  }
  
  .company-details h4 {
    font-size: 1.1rem;
  }
  
  .company-details p {
    font-size: 0.85rem;
  }
  
  .invoice-number {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .invoice-dates p {
    font-size: 0.8rem;
  }
  
  .client-service-section {
    padding: 15px;
    gap: 15px;
  }
  
  .client-info h4, .service-info h4 {
    font-size: 0.9rem;
  }
  
  .client-details p, .service-details p {
    font-size: 0.85rem;
  }
  
  .invoice-table {
    font-size: 0.8rem;
  }
  
  .invoice-table th,
  .invoice-table td {
    padding: 6px 3px;
    font-size: 0.75rem;
  }
  
  .invoice-totals {
    padding: 15px;
  }
  
  .totals-row {
    font-size: 0.85rem;
  }
  
  .total-final {
    font-size: 0.95rem;
  }
  
  .payment-info-section {
    padding: 15px;
  }
  
  .payment-info-section h4 {
    font-size: 0.9rem;
  }
  
  .payment-label, .payment-value {
    font-size: 0.85rem;
  }
}

/* Assurer que le popup container s'adapte */
.popup-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .popup-overlay {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }
}

/* Styles spécifiques pour l'impression et génération PDF */
@media print {
  .invoice-content {
    width: 210mm;
    max-width: 210mm;
    max-height: none;
    overflow: visible;
  }
  
  .invoice-document {
    padding: 20mm;
    font-size: 12pt;
    min-height: 297mm;
    page-break-inside: avoid;
  }
  
  .invoice-table {
    page-break-inside: avoid;
  }
}

/* Logos des méthodes de paiement */
.payment-logo-img {
  width: 70px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: white;
  padding: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  filter: brightness(1.1) contrast(1.1);
}

.payment-method:hover .payment-logo-img {
  border-color: #0A0F2C;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  filter: brightness(1.15) contrast(1.15);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.payment-method:hover {
  border-color: #0A0F2C;
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-method .details h4 {
  margin: 0 0 5px 0;
  color: #0A0F2C;
  font-size: 1.1rem;
}

.payment-method .details p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}/* Style pou
r l'aide des champs obligatoires */
.field-help {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
}

.field label[for="additional_details"] {
  font-weight: 600;
}

.field label[for="additional_details"]::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}/* Styles 
pour les listes déroulantes de pays */
.country-dropdown {
  margin-top: 25px;
  background: linear-gradient(135deg, rgba(10, 15, 44, 0.05), rgba(255, 43, 43, 0.05));
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(10, 15, 44, 0.1);
}

.country-search {
  margin-bottom: 20px;
  position: relative;
}

.country-search::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 1;
}

.country-search-input {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 2px solid rgba(10, 15, 44, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.country-search-input:focus {
  outline: none;
  border-color: #0A0F2C;
  box-shadow: 0 0 0 3px rgba(10, 15, 44, 0.15), 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.country-search-input::placeholder {
  color: #999;
  font-style: italic;
}

.country-list {
  max-height: 320px;
  overflow-y: auto;
  border: 2px solid rgba(10, 15, 44, 0.1);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.country-list::-webkit-scrollbar {
  width: 8px;
}

.country-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0A0F2C, #1a237e);
  border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1a237e, #0A0F2C);
}

.country-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(10, 15, 44, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  background: white;
}

.country-item:last-child {
  border-bottom: none;
}

.country-item:hover {
  background: linear-gradient(135deg, rgba(10, 15, 44, 0.08), rgba(255, 43, 43, 0.08));
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 #0A0F2C;
}

.country-item:active {
  background: linear-gradient(135deg, rgba(10, 15, 44, 0.15), rgba(255, 43, 43, 0.15));
  transform: translateX(2px);
}

.country-item.selected {
  background: linear-gradient(135deg, #0A0F2C, #1a237e);
  color: white;
  box-shadow: 0 2px 8px rgba(10, 15, 44, 0.3);
}

.country-flag {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.country-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

.country-item:hover .country-name {
  color: #0A0F2C;
  font-weight: 600;
}

.country-item.selected .country-name {
  color: white;
}

.back-btn {
  margin-top: 20px;
  width: 100%;
  background: linear-gradient(135deg, rgba(10, 15, 44, 0.1), rgba(255, 43, 43, 0.1));
  border: 2px solid rgba(10, 15, 44, 0.2);
  color: #0A0F2C;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: linear-gradient(135deg, #0A0F2C, #1a237e);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 15, 44, 0.3);
}

/* Responsive pour les listes de pays */
@media (max-width: 768px) {
  .country-list {
    max-height: 250px;
  }
  
  .country-item {
    padding: 10px 12px;
  }
  
  .country-search-input {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .country-list {
    max-height: 200px;
  }
  
  .country-item {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}/* Bouton
 "Terminer ma commande" clignotant */
.complete-order-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  animation: pulseGreen 2s infinite;
  z-index: 1000;
  white-space: nowrap;
}

.complete-order-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  animation: none; /* Arrêter le clignotement au survol */
}

.complete-order-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Animation de clignotement vert */
@keyframes pulseGreen {
  0% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transform: scale(1);
  }
}

/* Responsive pour le bouton */
@media (max-width: 1024px) {
  .complete-order-btn {
    top: 12px;
    right: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .complete-order-btn {
    position: fixed;
    top: auto;
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: auto;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    z-index: 2000;
  }
}

@media (max-width: 480px) {
  .complete-order-btn {
    bottom: 12px;
    right: 12px;
    left: 12px;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 700;
  }
}/*
 Styles pour empêcher le défilement horizontal et rendre la facture statique */
/* Styles pour maintenir le format A4 strict */
.popup-overlay {
  overflow: auto !important;
}

.invoice-content * {
  box-sizing: border-box !important;
}

.invoice-table {
  border-collapse: collapse !important;
  width: 100% !important;
}

.invoice-table th:nth-child(1) { width: 35%; } /* Description */
.invoice-table th:nth-child(2) { width: 15%; } /* Date */
.invoice-table th:nth-child(3) { width: 10%; } /* Qté */
.invoice-table th:nth-child(4) { width: 10%; } /* Unité */
.invoice-table th:nth-child(5) { width: 15%; } /* Prix unitaire */
.invoice-table th:nth-child(6) { width: 15%; } /* Montant */

/* Assurer la lisibilité du contenu */
.invoice-document {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
}

.invoice-document * {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}/* S
tyle pour le lien du site web dans la facture */
.website-link {
  color: #0A0F2C;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.website-link:hover {
  color: #dc3545;
  text-decoration: none;
  border-bottom: 1px solid #dc3545;
  transform: translateY(-1px);
}

.website-link:active {
  color: #c82333;
  transform: translateY(0);
}

/* Assurer que le lien reste visible lors de l'impression */
@media print {
  .website-link {
    color: #0A0F2C !important;
    text-decoration: underline !important;
  }
  
  .website-link:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}/
* Optimisations de performance et chargement */
body {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Animation du bouton "Terminer ma commande" */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.complete-order-btn {
  transition: all 0.3s ease;
}

.complete-order-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Optimisation des images - Les attributs loading et decoding sont HTML, pas CSS */
img {
  max-width: 100%;
  height: auto;
}

/* Optimisation des popups */
.popup-overlay {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.popup-content {
  will-change: transform;
  backface-visibility: hidden;
}

/* Optimisation du formulaire */
.contact-form {
  contain: layout style;
}

/* Optimisation des transitions */
* {
  box-sizing: border-box;
}

/* Amélioration de la responsivité mobile */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .popup-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
  
  .invoice-content {
    max-height: calc(100vh - 40px);
  }
}

/* Optimisation pour les connexions lentes */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .popup-content {
    border: 2px solid #333;
  }
}

/* Optimisation pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .payment-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}