:root {
    --primary-red: #ff003c;
    --black-bg: #000000;
}

@font-face {
    font-family: 'Octok1ya';
    src: url('assets/fonts/Octok1ya.ttf') format('truetype');
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--black-bg);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* --- HEADER --- */
header {
    height: 100px;
    width: 100%;
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.octopus-text {
    font-family: 'Octok1ya', sans-serif;
    font-size: 4rem;
    letter-spacing: 10px;
}

.date-time {
    position: absolute;
    right: 30px;
    text-align: right;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* --- MAIN LAYOUT --- */
.layout {
    margin-top: 100px;
    height: calc(100vh - 100px);
    width: 100%;
    position: relative;
    display: flex;
}

/* Logo à gauche, 100% hauteur */
.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
}

.rotating-octopus {
    height: 100%;
    width: auto;
    animation: rotateLoop 180s linear infinite;
    display: block;
}

@keyframes rotateLoop {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Affiche collée à droite */
.poster-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    z-index: 10; /* Devant le logo */
}

.poster-card {
    height: 90%;
    border: 4px solid var(--primary-red);
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

#main-poster {
    height: 100%;
    width: auto;
    display: block;
}

.controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
}

/* --- MODALE --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}

.modal-content {
    max-height: 95vh;
    max-width: 95vw;
    border: 2px solid var(--primary-red);
}

.close-modal {
    position: absolute;
    top: 20px; right: 40px;
    color: var(--primary-red);
    font-size: 60px;
    cursor: pointer;
}
