body {
    text-align: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1 {
    color: var(--text-color);
}

.main-txt {
    font-size: 16px;
    text-align: justify;
    margin-left: 100px;
    margin-right: 100px;
}

.pathologique-clinique {
    position: absolute;
    top: -10%;
    font-size: 80px;
    padding: 50px;
    text-align: center;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.antipsy {
    position: absolute;
    top: 150px;
    right: 5%;
    z-index: 10;
    transform: scale(0.93) rotate(41deg);
    -ms-transform: scale(0.93) rotate(41deg);
    -webkit-transform: scale(0.93) rotate(41deg);
    -moz-transform: scale(0.93) rotate(41deg);
    -o-transform: scale(0.93) rotate(41deg);
    display: inline-block;

    background-color: var(--text-color);
    -webkit-mask: url("/assets/Anti-psychiatry_symbol.png") no-repeat center / 100% 100%;
    mask: url("/assets/Anti-psychiatry_symbol.png") no-repeat center / 100% 100%;
    filter: invert(1);
    mix-blend-mode: difference;
    pointer-events: none;
}

#antipsychiatry {
    display: block;
    visibility: hidden;
}

.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

.header-intro {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 50;
    margin-bottom: -140px;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /* Move image to left */
    align-items: flex-start;
    width: 100%;
    gap: 0;
    position: relative;
    z-index: 10;
    padding-left: 5%;
    /* Offset image */
}

.hightlighted {
    font-family: var(--font-karrik);
}

.healthy-container {
    position: relative;
    width: 40%;
    margin-right: auto;
    margin-left: 0;
}

.healthy-container a {
    display: inline-block;
    position: relative;
    width: 100%;
}

/* Le calque de bruit (noise) appliqué en superposition */
.healthy-container a {
    display: inline-block;
    position: relative;
    width: 100%;
    /* On met la rotation sur le conteneur A au lieu de l'image, 
       ce qui empêche totalement les bordures blanches de votre screenshot ! */
    transform: scale(0.9) rotate(-5deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Le calque de bruit (noise) appliqué en superposition */
.healthy-container a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* Correction de "cesnter" en "center" !! */
    background-image:
        repeating-radial-gradient(circle at center, rgb(7, 7, 21) 5px, transparent 5.3px);
    background-size: 2px 2px;
    opacity: 0;
    transition: all 0.3s ease;
    /* "screen" permet aux éclats clairs d'être visibles sur l'image inversée sombre */
    mix-blend-mode: screen;
    z-index: 5;
}

/* Animation et nettoyage du survol standard */
.healthy-container a:hover {
    background-color: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
    /* Zoom au survol appliqué au conteneur directement */
    transform: scale(0.93) rotate(-5deg);
}

#healthyhabits {
    width: 100%;
    display: block;
    filter: drop-shadow(0 0 0.75rem #212121);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* L'animation au survol sur l'image */
.healthy-container a:hover #healthyhabits {
    filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 1rem var(--text-color));
}

.healthy-container a:hover::after {
    opacity: 0.3;
    /* On rend le grain bien visible */
}


.arrow {
    position: absolute;
    font-size: 180px;
    color: var(--accent-color);
    /* Transform handled by JS rh-layout.js */
    top: auto;
    left: auto;
    z-index: 30;
    filter: drop-shadow(2px 2px 0px white);
    pointer-events: none;
}

.highlighted {
    font-size: 24px;
    font-family: var(--font-karrik);
    font-weight: bold;
    color: #0b1512;
    background-color: transparent;
    position: static;
    margin: 0;
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
    text-align: left;
}

.facts {
    font-family: var(--font-vg5000);
    text-align: justify;
    width: 90%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

.facts h1 {
    font-family: var(--font-karrik);
    font-style: italic;
}

.facts ul li {
    margin-bottom: 15px;
    line-height: 0.8;
}

.entities-img {
    max-width: 70%;
    margin: 40px auto;
    display: block;
}

/* Distorted text styles */
#distort-text-container {
    width: 45%;
    position: absolute;
    top: 70px;
    /* Adjust alignment with image */
    right: 2%;
    /* Position to the right */
    left: auto;
    z-index: 60;
    /* Above main-txt */
    pointer-events: none;
    height: auto;
}

#distortMe {
    position: relative;
    /* padding: 40px; removed padding to fit layout */
    /* background-color: #000044; removed bg */
}

.distorted {
    font-family: var(--font-karrik);
    font-size: 50px;
    /* Much larger */
    font-weight: regular;
    /* "Un peu gras" */
    text-transform: uppercase;
    color: #0b1512;
    /* Black */
    overflow: visible;
    line-height: 0.9;
    /* Tighter leading for block effect */
    white-space: normal;
    padding-left: 5%;
    word-break: break-word;
    /* Ensure it wraps if needed */
}

.distortOut {
    padding-left: 0;
    /* Align left */
    overflow: hidden;
    /* Margin top checks */
    width: 100%;
    margin-top: 0;
}

.main-txt {
    /* Ensure flex layout for content */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}