/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0b0b0f, #1c0f18, #3a162a);
  color: #fff;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff2f92;
  font-family: 'Montserrat', sans-serif;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: #ff85c2;
}

/* ================= HERO ================= */
.page-hero {
  padding: 180px 8% 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ff2f92;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* ================= PORTFOLIO ================= */
.portfolio {
  padding: 100px 8%;
  text-align: center;
}

.portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ff2f92;
}

/* GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* CARD STYLE GLASS */
.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.portfolio-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  color: #ff85c2;
}

/* EFFECTS */
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255,47,146,0.5);
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .page-hero h1 {
    font-size: 2.4rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .portfolio h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 15px 5%;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================= BODY ================= */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* pour que toutes les sections s'empilent correctement */
  gap: 60px;
 background: linear-gradient(
    135deg,
    #8a077b,   /* noir légèrement éclairci */
    #2b1826,   /* violet très sombre */
    #ee0887 );
  color: #fff;
  position: relative;
  font-family: 'Roboto', sans-serif; /* conserve ta police */
}


/* ================= HERO ================= */
.page-hero {
  padding: 180px 8% 80px;
  text-align: center;
  background: linear-gradient(135deg, #2e1a38, #3a1c5c, #4b1f7f);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ff85c2;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* ================= PORTFOLIO ================= */
.portfolio {
  padding: 100px 8%;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
  border-radius: 20px;
}

.portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ff85c2;
}

/* CARDS */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,47,146,0.2), rgba(255,47,146,0.05));
  backdrop-filter: blur(10px);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.portfolio-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  color: #ff85c2;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255,47,146,0.5);
}

.portfolio-card:hover img {
  transform: scale(1.05);
}


/* ================= ANIMATION SCROLL & FADE-IN ================= */
.on-load {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in + léger scale pour les cards */
.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.8s ease-out;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* Animation hover pour les cartes */
.service-card,
.about-text,
.contact-form {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.about-text:hover,
.contact-form:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 45px 75px rgba(255, 47, 146, 0.35);
  border-color: rgba(255, 47, 146, 0.4);
}

.hover-effect {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 45px 75px rgba(255, 47, 146, 0.35);
  border-color: rgba(255, 47, 146, 0.4);
}

body {
  cursor: pointer; /* ou default selon ton choix */
}

.service-card:hover::after,
.about-text:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  box-shadow: 0 0 40px rgba(255, 47, 146, 0.4);
  pointer-events: none;
}

/* Éléments interactifs : boutons, liens, certains textes */
.interactive {
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
  cursor: pointer;
}

/* Hover pour desktop */
.interactive:hover {
  transform: translateY(-2px);
  text-shadow: 0 2px 6px rgba(255, 47, 146, 0.3);
  color: var(--pink-soft); /* optionnel pour un effet subtil */
}

/* Touch sur mobile : ajoute temporairement la même animation */
.hover-touch {
  transform: translateY(-2px) !important;
  text-shadow: 0 2px 6px rgba(255, 47, 146, 0.3) !important;
  color: var(--pink-soft) !important;
}


.zoom-image {
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.zoom-image:hover {
    transform: scale(1.03);
}


.zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.zoom-overlay img,
.zoom-overlay video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.35s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
