/* Styles généraux */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif; /* Police professionnelle */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2 {
    color: #ff007f;
    font-family: 'Lora', serif; /* Police élégante pour les titres */
    text-shadow: 2px 2px 4px #000; /* Contour noir */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Language switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lang-button {
    background: rgba(255, 255, 255, 0.9);
    color: #ff007f;
    border: 2px solid #ff007f;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

.lang-button:hover {
    background: #ff007f;
    color: #fff;
}

/* Section héroïque avec image */
.hero {
    position: relative;
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Photo circulaire */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 3px solid #ff007f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #fff;
    color: #ff007f;
    border-radius: 30px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s ease;
    margin-top: 20px; /* Espacement sous le texte */
}

.cta-button:hover {
    background: #ffe6f0;
}

/* Section Secrets */
.reveal {
    text-align: center;
    padding: 2rem 1rem;
    background: #f3f3f3;
}

.post-list {
    display: flex;
    flex-direction: column; /* Empile les posts verticalement */
    gap: 2rem;
    margin-top: 1rem;
    align-items: center; /* Centre les éléments */
}

.post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%; /* Ajusté pour mobile */
    max-width: 500px; /* Limite la largeur */
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.post-image {
    margin-bottom: 0.2rem; /* Espacement avec le contenu */
}

.post-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    filter: blur(0px); /* Floutage de l'image */
    transition: filter 0.3s ease;
    margin: 0 auto; /* Centre l'image */
}

.post:hover .post-image img {
    filter: blur(0px); /* Réduction du floutage au survol */
}

.post-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.1rem;
}

.post-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #ff007f;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.post-link:hover {
    background: #ff4d94;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #ff007f;
    color: #fff;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}

/* Lien Instagram */
.instagram-link {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.instagram-icon:hover {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        height: 50vh; /* Ajustement pour mobile */
    padding-top: 5vh;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .post {
        width: 95%; /* Prend presque toute la largeur sur mobile */
    }

    .post-image img {
        max-width: 100%; /* Adapté à l'écran */
    }
    .tagline {
        font-size: 10px;
    }
    .language-switcher {
        top: 7px;
        right: 7px;
    }
    .lang-button {
        padding: 2px 6px;
    }
    .instagram-link {
        margin-top: 2px;
    }
}
