/* ============================================
   STRACAU TV - Styles principaux
   Design 16:9 avec couleurs corporate
   ============================================ */

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

:root {
    /* Couleurs STRACAU */
    --color-primary: #4C5765;
    --color-accent: #6F89AE;
    --color-light: #BCBEC1;
    --color-eau: #0097DB;
    --color-cvc: #88BF52;
    --color-industrie: #F2912D;
    --color-incendie: #8B0000;
    
    /* Polices */
    --font-main: 'Barlow', sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    
    /* Timing */
    --transition: 0.8s ease-in-out;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-main);
    background: #000;
    overflow: hidden;
}

/* ============================================
   Conteneur principal
   ============================================ */

.tv-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #36404f 100%);
}

/* ============================================
   Écrans - Système de rotation
   ============================================ */

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* ============================================
   Écran 1: Bienvenue
   ============================================ */

.welcome-screen {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.welcome-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.logo-top {
    position: absolute;
    top: 40px;
    left: 60px;
}

.logo-top img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.welcome-main {
    animation: slideInDown 1s ease-out;
}

.welcome-main h1 {
    font-family: var(--font-main);
    font-size: 4rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    margin-bottom: 20px;
}

.welcome-main h2 {
    font-family: var(--font-condensed);
    font-size: 6rem;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.tagline {
    font-size: 2rem;
    color: var(--color-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.visitor-btn {
    animation: slideInUp 1s ease-out 0.3s both;
}

.visitor-btn button {
    padding: 20px 50px;
    font-size: 1.8rem;
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.visitor-btn button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.screen-indicator {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-condensed);
}

/* ============================================
   Écrans de contenu génériques
   ============================================ */

.screen-header {
    width: 100%;
    text-align: left;
    margin-bottom: 50px;
    border-bottom: 3px solid var(--color-light);
    padding-bottom: 30px;
}

.screen-header h2 {
    font-family: var(--font-condensed);
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.content-area {
    width: 90%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Écran 2: Anniversaires
   ============================================ */

.birthdays-screen {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.birthdays-screen .screen-header h2 {
    color: var(--color-primary);
}

.birthdays-screen .screen-header {
    border-bottom-color: var(--color-accent);
}

.birthdays-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: slideInLeft 0.6s ease-out;
}

.birthday-item .date {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 600;
    min-width: 180px;
}

.birthday-item .name {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   Écran 3: Citation
   ============================================ */

.quote-screen {
    background: linear-gradient(135deg, var(--color-eau) 0%, var(--color-accent) 100%);
    justify-content: center;
    align-items: center;
}

.quote-container {
    text-align: center;
    max-width: 1000px;
    animation: fadeInScale 1s ease-out;
}

.quote-mark {
    font-size: 8rem;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 3rem;
    color: white;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.quote-author {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ============================================
   Écran 4: Fêtes
   ============================================ */

.holiday-screen {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
}

.holiday-screen .screen-header h2 {
    color: var(--color-industrie);
}

.holiday-screen .screen-header {
    border-bottom-color: var(--color-industrie);
}

.holiday-content {
    text-align: center;
}

.holiday-content h3 {
    font-family: var(--font-condensed);
    font-size: 4rem;
    color: var(--color-industrie);
    margin-bottom: 20px;
}

.holiday-content p {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 400;
}

/* ============================================
   Écran 5: Météo
   ============================================ */

.weather-screen {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.weather-screen .screen-header h2 {
    color: var(--color-eau);
}

.weather-screen .screen-header {
    border-bottom-color: var(--color-eau);
}

.weather-content {
    width: 90%;
    display: flex;
    gap: 100px;
    align-items: center;
    justify-content: center;
}

.weather-main {
    text-align: center;
}

.temp {
    font-family: var(--font-condensed);
    font-size: 5rem;
    color: var(--color-eau);
    font-weight: 700;
    margin-bottom: 20px;
}

.condition {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 500;
}

.weather-details {
    display: flex;
    gap: 60px;
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail .label {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
}

.detail span:last-child {
    font-size: 2rem;
    color: var(--color-eau);
    font-weight: 700;
}

/* ============================================
   Écran 6: Actualités
   ============================================ */

.news-screen {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.news-screen .screen-header h2 {
    color: var(--color-accent);
}

.news-screen .screen-header {
    border-bottom-color: var(--color-accent);
}

.news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    padding: 30px 40px;
    background: white;
    border-left: 5px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: slideInRight 0.6s ease-out;
}

.news-item h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.news-item p {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

/* ============================================
   Écran 7: Tip du jour
   ============================================ */

.tip-screen {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.tip-screen .screen-header h2 {
    color: var(--color-cvc);
}

.tip-screen .screen-header {
    border-bottom-color: var(--color-cvc);
}

.tip-content {
    width: 90%;
    max-width: 1000px;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.tip-content h3 {
    font-family: var(--font-condensed);
    font-size: 3rem;
    color: var(--color-cvc);
    margin-bottom: 30px;
    font-weight: 700;
}

.tip-content p {
    font-size: 1.8rem;
    color: var(--color-primary);
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 400;
}

.tip-category {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-cvc);
    color: white;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ============================================
   Écran 8: Horloges mondiales
   ============================================ */

.clock-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.clock-screen .screen-header h2 {
    color: white;
}

.clock-screen .screen-header {
    border-bottom-color: var(--color-accent);
}

.clocks-grid {
    width: 95%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    padding: 30px;
}

.clock-item {
    background: rgba(255,255,255,0.08);
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.clock-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
}

.city {
    font-family: var(--font-main);
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.time {
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Responsive - Support pour différentes résolutions
   ============================================ */

@media (max-aspect-ratio: 16/9) {
    .welcome-main h1 {
        font-size: 3rem;
    }
    
    .welcome-main h2 {
        font-size: 4.5rem;
    }
    
    .screen-header h2 {
        font-size: 2.5rem;
    }
    
    .quote-text {
        font-size: 2rem;
    }
}
