.facebook-promo {
    width: 100%;
    max-width: 100%; /* Limite la largeur maximale */
    margin: 0 auto; /* Centre le bloc sur l'écran */
    height: 500px; /* Hauteur ajustée */
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    background-size: 200% 200%;
    border-radius: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: gradientShift 6s infinite;
    padding: 20px;
    box-sizing: border-box; /* Inclut les padding dans la largeur totale */
}
/* Animation du dégradé */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contenu principal */
.animated-content {
    z-index: 2;
}

/* Téléphone stylisé */
.phone {
    width: 120px;
    height: 240px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto 20px;
    position: relative;
}

.screen {
    width: 100px;
    height: 200px;
    background: #e9f0fb;
    margin: 10px auto;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Texte à l'intérieur du téléphone */
.cta-text {
    font-size: 14px;
    color: #1877f2;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    animation: float 3s ease-in-out infinite;
}

/* Icône 'like' */
.like-icon {
    font-size: 2rem;
    color: #1877f2;
    animation: bounce 2s infinite;
}

/* Titre et message */
.facebook-promo h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.facebook-promo .message {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Bouton d'action */
.action-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #1877f2, #42a1ff);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease-out;
    z-index: 1;
}

.action-button:hover::before {
    transform: scale(1.5);
}

/* Icônes flottantes */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: floatIcon 6s ease-in-out infinite, rotate 8s linear infinite;
}

/* Positions aléatoires pour les icônes */
.icon.facebook { top: 10%; left: 20%; animation-delay: 0s; }
.icon.share { top: 50%; left: 70%; animation-delay: 1s; }
.icon.globe { top: 80%; left: 30%; animation-delay: 2s; }
.icon.chat { top: 30%; left: 80%; animation-delay: 3s; }
.icon.heart { top: 60%; left: 50%; animation-delay: 4s; }

/* Animation de flottement des icônes */
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* Animation de flottement pour le texte */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Animation de rebond */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation de pulsation du bouton */
@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
