/* === style-portfolio.css — Kizuna Studio === */

/* === PALETTE ===
   Violet principal : #7209B7
   Bleu clair accent : #4CC9F0
   Bleu profond : #3A0CA3
   Fond sombre doux : #1E1B3A
   Blanc : #FFFFFF
*/

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1E1B3A 0%, #3A0CA3 50%, #7209B7 100%);
  color: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(30, 27, 58, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  width: 85px; /* taille du cercle */
  height: 85px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoGlow 3.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo a {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* === LUEUR CONTINUE SUR LE CONTOUR === */
@keyframes logoGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.3),
                0 0 30px rgba(162, 89, 255, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(162, 89, 255, 0.5),
                0 0 45px rgba(76, 201, 240, 0.4);
    transform: scale(1.03);
  }
}

/* === SURVOL === */
.logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 45px rgba(162, 89, 255, 0.6),
              0 0 70px rgba(76, 201, 240, 0.5);
}

.logo:hover img {
  transform: scale(1.12);
  filter: brightness(1.2);
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4CC9F0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* === HERO === */
.hero-portfolio {
  height: 60vh;
  background: radial-gradient(circle at 20% 40%, rgba(76,201,240,0.25), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(162,89,255,0.25), transparent 60%),
              linear-gradient(135deg, #3A0CA3, #7209B7);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-text {
  max-width: 700px;
  padding: 2rem;
  z-index: 2;
}

.hero-portfolio h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #4CC9F0, #A259FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-portfolio p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

/* === PORTFOLIO GRID === */
.portfolio-section {
  text-align: center;
  padding: 6rem 2rem;
}

.portfolio-section h2 {
  font-size: 2rem;
  color: #A259FF;
  margin-bottom: 1rem;
}

.portfolio-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-card {
  background: rgba(255,255,255,0.08);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(76,201,240,0.3);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-info {
  padding: 1.5rem;
  text-align: left;
}

.card-info h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-info p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  color: #4CC9F0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #A259FF;
}

/* === LOGOS GRID === */
.logos {
  text-align: center;
  padding: 6rem 2rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.logos h2 {
  font-size: 2rem;
  color: #4CC9F0;
  margin-bottom: 1rem;
}

.logos p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.logos-grid img {
  width: 200px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(76,201,240,0.4));
  transition: transform 0.4s ease, opacity 0.3s ease, filter 0.4s ease;
}

.logos-grid img:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(162,89,255,0.6));
}

.footer {
  background: rgba(30, 27, 58, 0.95);
  color: #fff;
  padding: 3rem 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2rem;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column.center {
  text-align: center;
}

.footer-column.right {
  text-align: right;
}

.footer-column h3 {
  color: #4CC9F0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-column p,
.footer-column a,
.footer-bottom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #A259FF;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 0.4rem 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #4CC9F0;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-column.right {
    text-align: center;
  }
}


/* === FADE ANIMATION === */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(30,27,58,0.95);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .hero-portfolio h1 {
    font-size: 2.4rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === CAROUSEL === */
.carousel-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  gap: 2rem;
}

.portfolio-card {
  flex: 0 0 30%; /* montre 3 cartes à la fois sur grand écran */
  min-width: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card img {
  width: 100%;
  height: 180px; /* plus carré */
  object-fit: cover;
  display: block;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(76,201,240,0.3);
}

.card-info {
  padding: 1.2rem;
  text-align: left;
}

.card-info h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.card-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

.btn-link {
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(76,201,240,0.2);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(162,89,255,0.4);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .portfolio-card {
    flex: 0 0 45%; /* 2 visibles sur tablette */
  }
}

@media (max-width: 600px) {
  .portfolio-card {
    flex: 0 0 80%; /* 1 visible sur mobile */
  }
}

/* === FIX RESPONSIVE PORTFOLIO (IDENTITÉS VISUELLES) === */
@media (max-width: 768px) {
  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  .logos-grid img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain; /* évite que les images soient coupées */
    display: block;
    margin: 0 auto;
  }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
  .logos-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid img {
    max-width: 220px;
  }
}

/* === EFFET D’OMBRE SOUS LES BOUTONS === */
.btn-primary, .btn-secondary {
  box-shadow: 0 8px 20px rgba(97, 201, 233, 0.3); /* ombre douce bleutée */
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 10px 25px rgba(162, 89, 255, 0.4); /* ombre plus marquée au survol */
  transform: translateY(-3px);
}