/* 
 * Jerkmate Landing Page Styles
 * 
 * Color Scheme:
 * - Pink/Cerise: #E94F64
 * - Blue: #35baf5
 * - Dark Blue: #010049, #120e41
 * - Light Pink: #ff76a7
 */

/* Global Styles */
:root {
    --primary-pink: #E94F64;
    --primary-blue: #35baf5;
    --dark-blue-1: #010049;
    --dark-blue-2: #120e41;
    --light-pink: #ff76a7;
    --white: #fff;
    --black: #000;
    --gray: #f5f5f5;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--white);
    background: linear-gradient(to right, #1c1b6d, #2725a6);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.wrapper-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-pink);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-pink);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--light-pink);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
    background-color: var(--primary-pink);
    color: var(--white);
}

/* Header Styles */
header.site-header {
    background-color: var(--dark-blue-1);
    width: 100%;
}
.site-header {
    padding: 15px 0;
    background-color: var(--dark-blue-1);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    max-width: 220px;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

.logo-img {
    width: 100%;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: var(--white);
    font-weight: bold;
}

.main-nav a:hover {
    color: var(--primary-pink);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.header-cta {
    display: flex;
    gap: 10px;
}

/* Header Styles - Standard flow */

#chat-online {
    padding: 30px 0;
}

.chat-cta-mobile {
    display: none;
    margin-bottom: 20px;
    text-align: center;
}

.interactive-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Stream Section */
.stream-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container {
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.live-feed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--dark-blue-1);
}

.model-status-text {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-pink);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

.video-options {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-options button {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative; /* Added for proper positioning of child elements */
}

.video-options button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.video-options .next {
    background-color: var(--primary-pink);
    color: var(--white);
}

.video-options .next:hover {
    background-color: var(--light-pink);
}

/* Volume button styles */
.video-options .volume {
    width: 44px;
    height: 44px;
    padding: 8px;
}

.video-options .volume svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}

.video-options .volume .sound-icon,
.video-options .volume .mute-icon {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Initially hidden, will be shown via JavaScript after delay */
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.video-overlay .content {
    text-align: center;
    padding: 20px;
    position: relative;
}

.video-overlay .heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.video-overlay .placeholder {
    color: var(--primary-pink);
    font-style: normal;
}

.corners {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-pink);
}

.top-corners {
    top: 0;
    left: 0;
    border-bottom: none;
    border-right: none;
}

.bottom-corners {
    bottom: 0;
    right: 0;
    border-top: none;
    border-left: none;
}

.stream-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.cam-video-player {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

/* Styles spécifiques pour mobiles pour le lecteur vidéo */
@media (max-width: 768px) {
    .cam-video-player {
        width: 100%;
        height: 100%;
        border: none;
        background-color: #000;
        position: relative;
        z-index: 5;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Force hardware acceleration pour les vidéos sur mobile */
    #stream-container {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-pink);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles for restricted content */
body.restricted .stream-section,
body.restricted .chat-box-container {
    position: relative;
}

body.restricted .video-container,
body.restricted .live-feed,
body.restricted #stream-container,
body.restricted .cam-video-player,
body.restricted .chatbox-style {
    filter: blur(10px);
    -webkit-filter: blur(10px);
}

/* Messages supprimés */

.restricted-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

/* Webcam Container */
.webcam-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--dark-blue-1);
}

.webcam-style {
    padding: 20px;
    text-align: center;
}

.video-sub-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-webcam {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-webcam:hover {
    background-color: var(--primary-pink);
}

#start-webcam img {
    width: 24px;
    height: 24px;
}

#preview-webcam-container {
    display: none;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 280px !important;
    height: 210px !important;
    background-color: var(--dark-blue-1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    top: auto !important;
    left: auto !important;
}

/* Position spéciale pour la prévisualisation de la webcam sur mobile */
@media (max-width: 768px) {
    #preview-webcam-container {
        bottom: 70px; /* Place la webcam au-dessus du CTA sticky */
        right: 10px;
        width: 30%; /* Redimensionne la webcam sur mobile */
        min-width: 120px;
        max-width: 180px;
    }
    
    /* Ajuster les contrôles de la webcam sur mobile pour plus de visibilité */
    .webcam-controls {
        bottom: 5px;
    }
    
    .webcam-controls button {
        padding: 4px 8px;
        font-size: 10px;
    }
}

#preview-webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Styles pour les contrôles de la webcam */
.webcam-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 5px;
    z-index: 10;
}

.webcam-controls button,
.webcam-controls .stop-webcam,
.webcam-controls .click-to-chat {
    background-color: rgba(245, 76, 145, 0.8);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.webcam-controls button:hover,
.webcam-controls .stop-webcam:hover,
.webcam-controls .click-to-chat:hover {
    background-color: rgba(245, 76, 145, 1);
}

/* Styles pour les messages d'erreur */
.webcam-error {
    padding: 20px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.webcam-error p {
    color: #E94F64;
    margin-bottom: 15px;
    font-size: 16px;
}

.webcam-error .retry-webcam {
    background-color: #35baf5;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Chat Box */
.chat-box-container {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--dark-blue-1);
}

.chat-box-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.chatbox-style {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.model {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#model-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-pink);
}

#model-details {
    font-size: 0.9rem;
    color: var(--white);
    opacity: 0.8;
}

.chat {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
}

.message.system {
    color: var(--primary-blue);
}

.message .icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message .avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-pink);
}

.message .avatar .img {
    width: 100%;
    height: 100%;
    background-color: var(--primary-pink);
}

.message .text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message.model .text {
    background-color: rgba(53, 186, 245, 0.2);
}

.input-bar {
    display: flex;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-bar .message {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.input-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 5px;
    outline: none;
}

.input-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#send-chat {
    background-color: var(--primary-pink);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#send-chat svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

#send-chat:hover {
    background-color: var(--light-pink);
}

/* Text Section */
#chat-text {
    padding: 50px 0;
}

.text-content {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Aligner la largeur du texte SEO avec la section interactive */
@media (min-width: 1200px) {
    .text-content {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .text-content {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .text-content {
        max-width: 720px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .text-content {
        max-width: 540px;
    }
}

.text-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
    text-align: left;
}

.text-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: var(--white);
    text-align: left;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.8;
    text-align: left;
}

.text-content ul, 
.text-content ol {
    margin: 0 0 20px 20px;
    color: var(--white);
    opacity: 0.8;
    text-align: left;
}

.text-content li {
    margin-bottom: 10px;
    list-style-position: outside;
}

.text-content ul li {
    list-style-type: disc;
}

.text-content ol li {
    list-style-type: decimal;
}

.text-content strong {
    font-weight: 600;
}

.text-content .btn {
    margin-bottom: 30px;
}

.text-content .btn-primary {
    font-size: 1.1rem;
    padding: 10px 20px;
    margin-top: 20px;
    display: inline-block;
}

.text-center {
    text-align: center;
    margin: 20px 0;
}

.text-content .cta-intro {
    margin: 30px auto;
    display: block;
    max-width: 250px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 10px 20px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-blue-1);
    padding: 15px 0 10px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
}

/* Style pour les liens légaux sur une ligne */
.legal-links {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.legal-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary-pink);
    opacity: 1;
}

.legal-links .separator {
    color: var(--white);
    opacity: 0.4;
}

.footer-column h4 {
    color: var(--primary-pink);
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 5px;
}

.footer-column a {
    color: var(--white);
    opacity: 0.8;
}

.footer-column a:hover {
    color: var(--primary-pink);
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .interactive-section {
        flex-direction: column;
    }
    
    .stream-section {
        flex: 1;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .video-container {
        width: 100%;
        display: block;
    }
    
    .live-feed {
        width: 100%;
        display: block;
    }
    
    .chat-box-container {
        width: 100%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo {
        max-width: 150px;
        margin-bottom: 0;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .header-cta {
        display: none;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: var(--dark-blue-1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 60px 20px 20px;
    }
    
    .header-cta.active {
        right: 0;
        display: flex;
    }
    
    .header-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .chat-cta-mobile {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 8px;
        padding: 0 15px;
    }
    
    .legal-links .separator {
        display: none;
    }
    
    .legal-links a {
        font-size: 0.85rem;
        padding: 5px 0;
    }
}

@media (max-width: 576px) {
    .header-cta {
        flex-direction: column;
        gap: 5px;
    }
    
    .video-overlay .heading {
        font-size: 1.2rem;
    }
}

/* Mobile Sticky CTA Styles */
.mobile-sticky-cta {
    display: none; /* Hidden by default, will be shown only on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

.mobile-sticky-cta .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    background-color: var(--primary-pink);
    color: #FFFFFF !important;
    transition: background-color 0.3s ease;
}

/* Styles spécifiques pour les très petits écrans */
@media (max-width: 560px) {
    .video-overlay .heading {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .video-overlay .placeholder {
        display: block;
        margin-top: 5px;
    }
    
    .video-overlay .content {
        padding: 15px 10px;
    }
    
    .video-overlay .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Hide the sticky CTA button on mobile screens as requested */
    .mobile-sticky-cta {
        display: none;
    }
    
    /* Remove padding since sticky CTA is now hidden */
    body {
        padding-bottom: 0;
    }
}
