.hero {
  background: url('https://source.unsplash.com/1600x600/?freelance,laptop') center/cover no-repeat;
  color: white;
  padding: 100px 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none; /* permet de cliquer sur les éléments par-dessus */
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}


.custom-navbar {
  background-color: #000000 !important;
}

.nav-link {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link.nav-animate {
  transform: scale(1.2);
  color: #0d6efd !important;
}

.navbar-nav .nav-link {
  font-size: 1.2rem; /* taille personnalisée */
  font-weight: 500;  /* un peu plus gras si tu veux */
  letter-spacing: 0.5px; /* espacement optionnel */
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
  height: 200px;
  object-fit: cover;
}

.icon-box {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0d6efd;
}

.about-image {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animation titre */
.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title.animate-title {
  opacity: 1;
  transform: translateY(0);
}

/* Animation apparition section */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

section.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* Hover animation sur icônes */
.icon-box:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

#cursor {
  font-weight: bold;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.animated-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animated-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0d6efd;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.contact-bubble:hover {
  background-color: #084298;
}

body {
  background: linear-gradient(to bottom, #0e243a, #000000);
  color: #fff;
}


.contact-section {
  background: linear-gradient(to bottom, #0e243a, #000000);
  color: #fff;
}

.contact-section input,
.contact-section textarea {
  background-color: #1b1b1b;
  border: 1px solid #444;
  color: #fff;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #aaa;
}

/*.contact-section input:focus,
.contact-section textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}*/

.contact-section input:focus,
.contact-section textarea:focus {
  background-color: #1c2a3a; /* ✅ Couleur bleutée sombre harmonieuse */
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  color: #fff;
}
.contact-section input,
.contact-section textarea {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}



.contact-section .btn-primary {
  background-color: #0d6efd;
  border: none;
  transition: background 0.3s ease;
}

.contact-section .btn-primary:hover {
  background-color: #0b5ed7;
}

.services-section {
  background: linear-gradient(to bottom,#0e243a , #000000);
  color: #fff;
}

.services-section h5 {
  color: #fff;
}

.services-section p {
  color: #ccc;
}


.portfolio-section {
  background: linear-gradient(to bottom,#0e243a , #000000);
  color: #fff;
}


@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
  }
}

.portfolio-img {
  height: 400px;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

@keyframes floatingQuote {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animated-quote {
  animation: floatingQuote 3s ease-in-out infinite;
  display: inline-block;
  color: #ddd; /* ou text-white selon ton fond */
  font-style: italic;
  font-size: 1.1rem;
}

.animated-quote.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fun-fact-box {
  background: linear-gradient(to right, #0e243a, #123253);
  border-left: 5px solid #0d6efd;
  animation: pulseBox 5s infinite alternate;
}

@keyframes pulseBox {
  from { box-shadow: 0 0 10px rgba(13, 110, 253, 0.3); }
  to   { box-shadow: 0 0 20px rgba(13, 110, 253, 0.6); }
}

.service-card {
  background: #111827;
  color: #ccc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.service-card i {
  color: #0d6efd;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.2);
}


/* Animation apparition douce pour les cartes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

#about {
  position: relative;
  overflow: hidden;
}

#about canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

#contact {
  position: relative;
  overflow: hidden;
}

#contact canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

 /* Image dans carte.html */

 /* === Carte de visite Sanar === */

.business-card-body {
  background: linear-gradient(to bottom, #0e243a, #000000);
  color: #fff;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-card {
  max-width: 400px;
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0d6efd;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
}

.business-card a {
  text-decoration: none;
  color: #ccc;
  display: block;
  margin: 0.5rem 0;
}

.business-card a i {
  color: #0d6efd;
  margin-right: 0.5rem;
}

.business-card .btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}

.business-card .btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

/* === Lightbox image === */

.modal-custom {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: zoomIn 0.3s ease-in-out;
  object-fit: contain;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10000;
}

.close-modal:hover {
  color: #0d6efd;
}

.navbar img {
  transition: transform 0.2s ease, border 0.2s ease;
}
.navbar img:hover {
  transform: scale(1.1);
  border: 1px solid #0d6efd;
  border-radius: 3px;
}



/* Badges valeur */
.value-badges { row-gap: .6rem; }
.badge-pill{
  background:#111827;
  color:#ddd;
  border:1px solid rgba(255,255,255,.08);
  padding:.55rem .85rem;
  border-radius:999px;
  font-size:.95rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.badge-pill i{ color:#0d6efd; }
.badge-pill:hover{
  transform: translateY(-2px);
  box-shadow:0 6px 16px rgba(13,110,253,.15);
  border-color: rgba(13,110,253,.35);
}

/* Étapes process */
.process-steps{
  display:grid;
  gap:1rem;
}
.step{
  display:flex;
  align-items:flex-start;
  gap:.9rem;
  background:#111827;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:1rem 1.1rem;
}
.step-index{
  min-width:32px; height:32px; line-height:32px;
  text-align:center;
  border-radius:50%;
  background:#0d6efd;
  color:#fff; font-weight:700;
  box-shadow:0 0 0 4px rgba(13,110,253,.15);
}
.step p{ color:#b9c2cf; }
