/* J'ai Besoin d'Aide — styles communs à toutes les pages */

.glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(131, 20, 54, 0.1);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(21, 39, 64, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(131, 20, 54, 0.25);
    box-shadow: 0 35px 70px -15px rgba(131, 20, 54, 0.15);
    transform: translateY(-4px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(131, 20, 54, 0.08);
}

.hero-gradient-mesh {
    background: radial-gradient(circle at 10% 20%, rgba(131, 20, 54, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(21, 39, 64, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #FFFDF5 0%, #FAF3F5 100%);
}

/* Menu mobile fluide */
#mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Effet de brillance subtil sur les boutons */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.7s ease-in-out;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(131, 20, 54, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(131, 20, 54, 0); }
}
.pulse-glow {
    animation: pulse-glow 2.5s infinite;
}

/* Masque la scrollbar du sommaire horizontal (formes-de-violences.html) sans bloquer le scroll */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Fond footer avec motif de marque (superposé au navy) */
.footer-pattern {
    background-image: url('../images/footer-bg.png');
    background-repeat: repeat;
    background-size: 220px;
    background-blend-mode: overlay;
    opacity: 0.06;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Vidéo de présentation : 16:9 sur ordinateur et en paysage, 9:16 sur téléphone tenu droit */
.video-pub {
    aspect-ratio: 16 / 9;
    width: 100%;
}
@media (max-width: 767px) and (orientation: portrait) {
    .video-pub {
        aspect-ratio: 9 / 16;
        width: min(100%, calc(78vh * 9 / 16));
        margin-inline: auto;
    }
}
/* Vidéos YouTube : miniature et bouton de lecture, remplacés par le lecteur au clic */
.yt {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #152740;
}
.yt img, .yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.yt-lecture {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(131, 20, 54, .92);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .25);
    transition: transform .25s ease, background-color .25s ease;
}
.yt-lecture svg { width: 30px; height: 30px; margin-left: 4px; }
.yt:hover .yt-lecture, .yt:focus-visible .yt-lecture { transform: scale(1.08); background: #831436; }
.yt:focus-visible { outline: 3px solid #831436; outline-offset: 3px; }
@media (max-width: 640px) {
    .yt-lecture { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
    .yt-lecture svg { width: 22px; height: 22px; margin-left: 3px; }
}
@media (max-width: 767px) and (orientation: portrait) {
    .yt.yt-vertical {
        aspect-ratio: 9 / 16;
        width: min(100%, calc(78vh * 9 / 16));
        margin-inline: auto;
    }
}
