/* Variables CSS pour une gestion facile des couleurs */
:root {
    --primary-color: #9370DB; /* Violet MediumPurple */
    --secondary-color: #BA55D3; /* Violet MediumOrchid */
    --background-dark: #1F003F; /* Violet très foncé */
    --text-light: #E6E6FA; /* Lavande très claire */
    --card-bg: rgba(15, 0, 30, 0.7); /* Violet encore plus sombre et transparent */
    --border-accent: rgba(147, 112, 219, 0.5); /* Violet translucide */
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Réinitialisation de base et styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    background-image: url("https://www.transparenttextures.com/patterns/shippo.png"); /* Texture japonaise discrète */
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles de l'en-tête */
.header {
    background: linear-gradient(to bottom, rgba(147, 112, 219, 0.2), transparent);
    color: white;
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
    border-bottom: 1px solid var(--border-accent);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Par défaut en colonne pour mobile */
    align-items: center; /* Centre les éléments */
    gap: 1.5rem;
}

.photo-container {
    /* Conteneur pour la photo, peut être stylisé si besoin */
}

.profile-photo {
    width: 120px; /* Taille de la photo */
    height: 120px;
    border-radius: 50%; /* Forme circulaire */
    border: 3px solid var(--primary-color); /* Bordure colorée */
    object-fit: cover; /* Assure que l'image remplit le cercle sans déformation */
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px rgba(147, 112, 219, 0.2); /* Lueur subtile */
}

.header h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.5rem; /* Ajusté pour mieux s'intégrer avec la photo */
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    /* Effet de lueur pour le côté bulleux */
    filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.6));
    margin-bottom: 1rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Contenu principal */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Styles des sections (cartes) */
.section-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 50px; /* Effet bulle */
    border: 1px solid var(--border-accent);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

/* Petit reflet sur le haut de la bulle */
.section-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    width: 60px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(-5deg);
}

.section-card h2 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-accent);
    display: inline-block;
}

.section-card p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #ddd;
}

/* Conteneur des boutons pour gérer l'alignement */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne les boutons à gauche de l'encadré */
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu dans le bouton */
    gap: 0.5rem;
    width: 200px; /* Largeur fixe pour que les deux boutons soient identiques */
    padding: 0.6rem 0; /* Padding horizontal réduit car la largeur est gérée par width */
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link.instagram {
    background: var(--instagram-gradient);
}

.social-link.email { /* Garde la couleur bleue standard pour l'email */
    background-color: #3498db; 
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

/* Animation de flottement pour l'effet bulle */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* On décale l'animation pour chaque carte pour un effet plus naturel */
.main-content section:nth-child(1) { animation-delay: 0s; }
.main-content section:nth-child(2) { animation-delay: 1.5s; }
.main-content section:nth-child(3) { animation-delay: 3s; }

/* Accentuation de l'effet bulle au survol */
.section-card:hover {
    transform: scale(1.03) translateY(-20px) !important;
    box-shadow: 0 20px 40px rgba(147, 112, 219, 0.4), 0 0 30px var(--primary-color);
    border-color: var(--primary-color);
}

/* Pied de page */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    color: #888;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-accent);
}

.footer-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content; /* Réduit la longueur au contenu */
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-home:hover {
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
}
/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Toujours en colonne sur mobile */
        text-align: center;
    }
    .profile-photo {
        width: 100px; /* Plus petite sur mobile */
        height: 100px;
    }
    .header {
        padding: 2.5rem 1rem 2rem 1rem; /* Réduction de l'espace vertical */
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .section-card h2 {
        font-size: 1.6rem;
    }

    .section-card p {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: flex-start; /* Garde l'alignement à gauche même sur mobile */
    }

    .social-link {
        width: 200px; /* Garde la même taille sur mobile */
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 1rem;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .header .subtitle {
        font-size: 0.9rem;
    }

    .section-card {
        padding: 1.2rem;
        border-radius: 30px; /* Arrondi plus doux pour les petits écrans */
    }

    /* On ajuste la position du reflet de la bulle sur mobile */
    .section-card::before {
        left: 20px;
        width: 40px;
    }

    .profile-photo {
        width: 80px; /* Encore plus petite sur très petit écran */
        height: 80px;
    }
    .social-link {
        width: 100%; /* Les boutons prennent la largeur dispo pour être plus cliquables */
        max-width: 200px;
    }
}