@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* Animation fadeIn */
@keyframes fadeIn {
   0% {
       opacity: 0;
       transform: translateY(20px);
   }
   100% {
       opacity: 1;
       transform: translateY(0);
   }
}

/* Animation pulse */
@keyframes pulse {
   0%, 100% {
       transform: scale(1);
   }
   50% {
       transform: scale(1.1);
   }
}

/* Animation slideUp */
@keyframes slideUp {
   0% {
       transform: translateY(10px);
       opacity: 0;
   }
   100% {
       transform: translateY(0);
       opacity: 1;
   }
}

/* Animation pour les boutons */
@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation rotation sur les icônes */
@keyframes rotateIcon {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

/* Styles de base */
body {
   font-family: 'Poppins', sans-serif;
   margin: 0;
   padding: 0;
   background: linear-gradient(135deg, #74ebd5, #9face6, #ff9a9e);
   background-size: 300% 300%;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   color: #fff;
   text-align: center;
   animation: backgroundMove 10s infinite;
}

/* Conteneur principal */
header, main, footer {
   width: 90%;
   max-width: 400px;
   margin: 10px auto;
   padding: 20px;
   border-radius: 15px;
   backdrop-filter: blur(10px);
   background: rgba(255, 255, 255, 0.1);
   box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   text-align: center;
   opacity: 0;
   animation: fadeIn 1s ease-in forwards;
}

header {
   animation-delay: 0.2s;
}

main {
   animation-delay: 0.4s;
}

footer {
   animation-delay: 0.6s;
}

/* Photo de profil */
.profile-picture img {
   border-radius: 50%;
   width: 120px;
   height: 120px;
   object-fit: cover;
   border: 3px solid rgba(255, 255, 255, 0.5);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture img:hover {
   animation: pulse 0.6s ease-in-out;
   transform: scale(1.1);
   box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* Titres */
.header-title h1 {
   font-size: 1.8rem;
   margin: 10px 0 5px;
   font-weight: 700;
   animation: slideUp 0.6s ease-in-out;
}

.header-title h2 {
   font-size: 1.2rem;
   margin: 0;
   font-weight: 300;
}

/* Boutons des réseaux sociaux */
.social-buttons a {
   display: block;
   margin: 10px 0;
   padding: 12px 20px;
   background: rgba(255, 255, 255, 0.15);
   color: #fff;
   text-decoration: none;
   font-size: 1rem;
   text-align: center;
   border-radius: 10px;
   border: 1px solid rgba(255, 255, 255, 0.3);
   backdrop-filter: blur(10px);
   transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
   animation: fadeIn 1.2s ease-in-out;
}

.social-buttons a:hover {
   transform: translateY(-3px) scale(1.05);
   background: rgba(255, 255, 255, 0.3);
}

.social-buttons a:active {
   transform: scale(0.95);
   transition: transform 0.1s ease-in-out;
}

/* Icônes réseaux sociaux */
.social-links {
   display: flex;
   justify-content: center;
   gap: 15px;
   margin-top: 15px;
}

.social-links a svg {
   width: 40px;
   height: 40px;
   transition: transform 0.3s ease;
}

.social-links a:hover svg {
   transform: scale(1.1);
   animation: rotateIcon 0.6s linear;
}

/* Footer */
footer p {
   font-size: 0.9rem;
   margin: 0;
   text-align: center;
   color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */

/* Pour les écrans de taille moyenne (tablettes) */
@media (min-width: 600px) {
   body {
       background-size: 200% 200%;
   }

   header, main, footer {
       max-width: 500px;
   }

   .social-buttons a {
       font-size: 1.2rem;
       padding: 14px 25px;
   }

   .social-links a svg {
       width: 45px;
       height: 45px;
   }
}

/* Pour les écrans larges (desktop) */
@media (min-width: 1024px) {
   body {
       background-size: 150% 150%;
   }

   header, main, footer {
       max-width: 600px;
       padding: 30px;
   }

   .header-title h1 {
       font-size: 2rem;
   }

   .header-title h2 {
       font-size: 1.5rem;
   }

   .social-buttons a {
       font-size: 1.3rem;
       padding: 16px 30px;
   }

   .social-links a svg {
       width: 50px;
       height: 50px;
   }
}
