.no-scroll {
  overflow: hidden;
}
:root {
  --bg-dark: #050a14;
  --card-bg: #0f172a;
  --accent: #00a8ff;
  --accent-grad: linear-gradient(135deg, #7c3aed, #2563eb);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  overflow-x: hidden;
}

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

body {
  overflow-x: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header */
.header {
  background: rgba(5, 9, 20, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo { height: 50px; }
.title { font-size: 22px; color: var(--accent); }

nav a {
  color: #7fd3ff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover { color: white; }

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/background.JPG') no-repeat center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 10px; }
.heross { color: var(--accent); font-size: 1.5rem; font-weight: bold; }

/* Sections */
.section { padding: 80px 20px; max-width: 1200px; margin: auto; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 10px auto;
}

/* Grids */
.services1-grid, .portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service1-card, .card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #1e293b;
  transition: 0.3s;
}

.portfolio {
  display: grid;
  /* Cette ligne force les cartes à garder la même taille dans la grille */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 25px;
  padding: 20px 0;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  display: flex; /* Aligne le contenu de la carte verticalement */
  flex-direction: column;
  height: 100%; /* Force toutes les cartes à avoir la même hauteur */
}
.service1-card:hover, .card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.service1-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Portfolio Specific */
.card { padding: 0; overflow: hidden; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.tag { background: #1e293b; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; }
.date { display: block; margin-top: 10px; color: var(--text-muted); font-size: 0.8rem; }

/* Filters */
.filters { text-align: center; margin-bottom: 30px; }
.filters button {
  background: transparent; border: 1px solid var(--accent); color: white;
  padding: 8px 20px; cursor: pointer; border-radius: 20px; margin: 5px;
}
.filters button.active { background: var(--accent); }

/* --- SECTION MONTAGE AMÉLIORÉE --- */
.pc-build-container {
  background: #0f172a; /* Couleur légèrement plus claire pour détacher la section */
  border-radius: 24px;
  margin: 40px auto;
  padding: 60px;
  border: 1px solid #1e293b;
  position: relative;
  overflow: hidden;
}

.pc-build-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Effet de lueur en arrière-plan */
.pc-build-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.pc-content h2::after {
  margin: 10px 0; /* Aligne la barre du titre à gauche */
}

.pc-list {
  list-style: none;
  margin: 25px 0;
}

.pc-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #cbd5e1;
}

.pc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Conteneur Image avec gestion de la visibilité */
.pc-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pc-final-img {
  width: 150%;
  max-width: 300px; /* Évite que l'image soit trop géante */
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease;
  z-index: 2;
}

.pc-final-img:hover {
  transform: scale(1.03) rotate(1deg);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.2) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
}

/* Adaptabilité Mobile */
@media (max-width: 968px) {
  .pc-build-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .pc-content h2::after {
    margin: 10px auto;
  }
  
  .pc-list li {
    padding-left: 0;
  }
  
  .pc-list li::before {
    display: none;
  }
}

/* Forms */
.contact-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
input, textarea, select {
  width: 100%; padding: 12px; margin-bottom: 15px;
  background: #1e293b; border: 1px solid #334155; color: white; border-radius: 6px;
}
.submit-btn, .pc-btn {
  background: var(--accent-grad); color: white; border: none; text-decoration: none;
  padding: 12px 25px; border-radius: 6px; cursor: pointer; font-weight: bold;
}

/* --- CARTE INFOS PRATIQUES --- */
.contact-info-card {
  background: #0f172a; /* Fond assorti à la section montage */
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Petit effet de lumière dans le coin de la carte */
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(0, 168, 255, 0.15), transparent);
  pointer-events: none;
}

.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.info-item:hover {
  transform: translateX(5px);
}

.info-icon {
  font-size: 1.4rem;
  background: rgba(31, 162, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(31, 162, 255, 0.2);
}

.info-item p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
}

/* Badge de statut */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 15px;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
/* Responsive */
@media (max-width: 768px) {
  .pc-build, .contact-container { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; }
  nav { margin-top: 15px; }
  nav a { margin: 0 10px; }
}
/* --- FOOTER MODERNE --- */
.main-footer {
  background-color: #020617; /* Encore plus sombre pour trancher */
  padding: 60px 20px 20px;
  border-top: 1px solid #1e293b;
  color: #cbd5e1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin-top: 8px;
}

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

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

.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icon {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: 0.3s;
}

.social-icon:hover {
  color: var(--accent);
}

.footer-contact-small {
  margin-top: 20px;
  font-size: 0.85rem;
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
  .footer-col h4::after {
    margin: 8px auto 0;
  }
}
/* --- NOTIFICATION TOAST --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: -500px; /* Complètement caché à droite */
  background: #0f172a;
  border: 1px solid #00a8ff;
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 9999; /* Force l'affichage au premier plan */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  min-width: 300px;
  display: block !important; /* Assure que l'élément n'est pas en display: none */
}

/* Position quand le pop-up est affiché */
.toast.active {
  right: 20px; 
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toast-icon {
  font-size: 1.5rem;
  background: rgba(0, 168, 255, 0.1);
  padding: 5px;
  border-radius: 50%;
}

.toast-title {
  display: block;
  font-weight: bold;
  color: var(--accent);
}

#toast-text {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.toast-progress::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: var(--accent);
}

.toast.active .toast-progress::before {
  animation: progress 4s linear forwards;
}

@keyframes progress {
  100% { width: 0%; }
}