/* --- OPTIMISATION GLOBALE --- */

/* Stabilisation des polices et rendu du texte */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

/* Stabilisation des images (prévient le saut de page / CLS) */
img {
    height: auto;
    /* Utilise les attributs HTML pour réserver l'espace avant chargement */
    aspect-ratio: attr(width) / attr(height);
}

/* --- BLOCS HTML ET WIDGETS --- */

/* Gestion des blocs HTML personnalisés */
.wp-block-html {
    position: relative !important;
    z-index: 1 !important;
    margin: 20px 0 !important;
}

/* Correction des boutons et éléments fixes dans les blocs HTML */
.wp-block-html button,
.wp-block-html div[style*="position: fixed"] {
    position: relative !important;
    display: inline-block !important;
}



/* Empêche la sélection et le copier-coller du texte */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}
/* Conteneur principal - Crucial pour que le watermark reste "collé" au texte */
.poly-protected-content {
    position: relative !important;
    min-height: 200px;
}

/* Le calque de protection */
.poly-article-watermark {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important; /* Laisse le clic passer à travers */
    z-index: 9999 !important; /* Force le passage au-dessus du texte */
    background: repeating-linear-gradient(45deg, 
        transparent, 
        transparent 100px, 
        rgba(0, 0, 0, 0.08) 100px, /* Opacité augmentée pour visibilité sur capture */
        rgba(0, 0, 0, 0.08) 200px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Le texte du watermark */
.watermark-text {
    transform: rotate(-30deg);
    color: rgba(0, 0, 0, 0.15) !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 20px;
    user-select: none;
}

/* Blocage définitif de la sélection de texte */
body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* --- Mode Page de Vente pour page 119409 --- */

/* 1. Masquer les éléments distrayants (Header, Footer, Sidebar, Titre) */
.page-id-119409 .site-header,
.page-id-119409 .site-footer,
.page-id-119409 .sidebar,
.page-id-119409 #secondary,
.page-id-119409 .entry-title {
    display: none !important;
}

/* 2. Forcer le contenu à prendre toute la largeur */
.page-id-119409 .content-area,
.page-id-119409 .site-main,
.page-id-119409 .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}