/* Contenu pour créer du scroll */
.content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section {
    /* margin-bottom: 50px; */
    padding: 100px 30px;
    background: #f4f4f4;
    border-radius: 8px;
}

/* La div qui va masquer l'image */
.overlay-div {
    position: relative;
    background: var(--bg);

    /* linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: white; */
    /* padding: 60px 30px; */
    /* margin: 100px 0; */
    :root {
        --bg: #f8fafc;
        --fg: #0f172a;
        --muted: #475569;
        --card: #ffffff;
        --stroke: #e2e8f0;
        --brand: #2f8e28;
        --brand-2: #5fea81;
        --err: #b91c1c;
        --warn: #f59e0b;
        --success: #16a34a;
        --primary: #BD32D3;
    }

    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 800;

}

/* .overlay-div h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
} */

/* Image flottante */
.floating-image {
    position: fixed;
    top: 40%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 450px;
    /* height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.3); */
    z-index: 10;

    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation de pulsation */
.floating-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    border-radius: inherit;
    opacity: 0.5;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* État caché de l'image */
.floating-image.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

.highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-image {
        right: 15px;
        width: 80px;
        height: 80px;
        font-size: 2em;
    }

    .overlay-div {
        margin: 50px 0;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .floating-image {
        display: none;
        /* Cacher l'image sur les très petits écrans */
    }
}