/* CSS Personnalisé pour ACTIO - Version Sécurisée - v2.0 */

/* 1. Grain de Film Cinématographique (Animé) */
body.landing::after {
    content: "";
    position: fixed;
    top: -50px;
    left: -50px;
    width: calc(100vw + 100px);
    height: calc(100vh + 100px);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.75" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.15"/></svg>');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.22;
    animation: grain-animation 0.8s steps(6) infinite;
}

@keyframes grain-animation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -5px); }
    30% { transform: translate(5px, -2px); }
    50% { transform: translate(-2px, 5px); }
    70% { transform: translate(2px, 2px); }
    90% { transform: translate(-2px, -5px); }
}

/* 2. Superposition de Texture sur CTA */
body.landing #page-wrapper #cta.wrapper.style4 {
    position: relative;
    background-color: #1a1a1a; 
    z-index: 1;
}

body.landing #page-wrapper #cta.wrapper.style4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/kraft.png');
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: -1;
}

/* 3. Typographie "Imprimée" */
body.landing #page-wrapper h1, 
body.landing #page-wrapper h2, 
body.landing #page-wrapper h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

/* 4. Effet "Bords Déchirés" - VERSION SÉCURISÉE */
/* Si les images disparaissent encore, supprimez cette section 4 */
.spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* On utilise un clip-path plus stable que le mask-image SVG pour la forme */
    clip-path: polygon(0% 2%, 100% 0%, 98% 100%, 1% 98%);
    filter: sepia(0.2) contrast(1.1); /* Petit look vintage en bonus */
}

#two.wrapper.alt.style2, #cta.wrapper.style4 {
    /* Suppression du masque complexe qui masquait les sections */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 5. Correctif pour les boutons CTA */
#cta .button.fit {
    white-space: normal;
    height: auto;
    padding: 0.75em 1em;
    line-height: 1.5em;
}

/* 6. Effet de flou animé au chargement */
#page-wrapper {
    transition: filter 1.2s ease-out, opacity 1.2s ease-out;
}

.is-preload #page-wrapper {
    filter: blur(5px);
    opacity: 0;
}