/* Style général */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    color: #f8f8f8;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* Conteneur principal */
  .container {
    margin-top: 60px;
  }
  
  /* Section d’intro */
  .intro img.photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    object-fit: cover;
    animation: fadeInScale 1s ease-out forwards;
  }
  
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .intro h1 {
    font-size: 2em;
    margin-top: 10px;
    animation: textFadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
  }
  
  .intro p {
    color: #cbd5e1;
    max-width: 400px;
    margin: 15px auto;
    line-height: 1.6;
    animation: textFadeInUp 1s ease-out 0.7s forwards;
    opacity: 0;
  }
  
  @keyframes textFadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Icônes des réseaux sociaux */
  .socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
  }
  
  .socials img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
    cursor: pointer;
    object-fit: contain;
  }
  
  .socials img:hover {
    transform: scale(1.15);
  }
  
  /* Portfolio */
  .portfolio {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: 25px;
    max-width: 320px;
    margin: 0 auto 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }
  
  .portfolio h2 {
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
  }
  
  .portfolio .link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(51, 65, 85, 0.8);
    color: #f8f8f8;
    padding: 12px 0;
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
  }
  
  .portfolio .link:hover {
    background-color: rgba(71, 85, 105, 0.9);
    transform: scale(1.03);
  }
  
  .portfolio img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
  
  /* Pied de page */
  footer {
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 15px;
  }
  
  footer span {
    color: #e2e8f0;
    font-weight: bold;
  }

  /* Dark Mode Toggle */
.dark-mode-toggle {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 1.2em;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode-toggle:hover {
    background-color: #555;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #000000, #0a0a0a);
    color: #e0e0e0;
}

body.dark-mode .portfolio {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

body.dark-mode .portfolio .link {
    background-color: rgba(20, 20, 20, 0.7);
    color: #e0e0e0;
}

body.dark-mode .portfolio .link:hover {
    background-color: rgba(40, 40, 40, 0.8);
}

body.dark-mode .intro p {
    color: #a0a0a0;
}

body.dark-mode footer span {
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin-top: 40px;
    }

    .intro h1 {
        font-size: 1.8em;
    }

    .intro p {
        font-size: 0.9em;
        margin: 10px auto;
    }

    .socials {
        gap: 20px;
        margin: 20px 0;
    }

    .socials img {
        width: 45px;
        height: 45px;
    }

    .portfolio {
        padding: 20px;
        max-width: 280px;
        margin-bottom: 30px;
    }

    .portfolio .link {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    footer {
        font-size: 0.8em;
    }

    .dark-mode-toggle {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .intro img.photo {
        width: 120px;
        height: 120px;
    }

    .intro h1 {
        font-size: 1.6em;
    }

    .intro p {
        font-size: 0.85em;
        max-width: 90%;
    }

    .socials img {
        width: 40px;
        height: 40px;
    }

    .portfolio {
        padding: 15px;
        max-width: 250px;
        margin-bottom: 25px;
    }

    .portfolio .link {
        font-size: 0.9em;
    }

    footer {
        font-size: 0.75em;
    }
}
  