/* ============================================
   FENUA CHAT - INDEX.HTML STYLES
   Landing page avec vidéo background
   ============================================ */

/* === VARIABLES CSS === */
:root {
    --primary-color: #00bcd4;
    --primary-dark: #0097a7;
    --secondary-color: #ff6f00;
    --accent-color: #ffc107;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* === TYPOGRAPHY === */
h1 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

p { 
    margin-bottom: 1rem; 
}

/* ============================================
   VIDEO BACKGROUND AVEC GRADIENT OVERLAY
   ============================================ */

.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    /* Fallback si vidéo ne charge pas */
    background: linear-gradient(135deg, #00bbd2 0%, #00bbd2 37%, #ac00fe 85%, #ac00fe 100%);
}

/* Conteneur vidéo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Vidéo elle-même */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    animation: videoFadeIn 1s ease-in;
}

@keyframes videoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Overlay gradient avec transparence alpha */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 187, 210, 0.7) 0%, 
        rgba(0, 187, 210, 0.5) 37%, 
        rgba(172, 0, 254, 0.5) 85%, 
        rgba(172, 0, 254, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenu par-dessus */
.landing-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* === LOGO SECTION === */
.logo-section {
    margin-bottom: 3rem;
}

.app-logo {
    width: 320px;
    height: 320px;
    margin-bottom: -2rem;
}

.logo-section h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* === FEATURES GRID === */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

/* Mobile : 1 colonne */
@media (min-width: 480px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablette et + : 2 colonnes */
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop : 3 colonnes MAX */
@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large desktop : toujours 3 colonnes */
@media (min-width: 1440px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === GLASSMORPHISM CARDS === */
.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.35);
    border-color: rgba(255, 255, 255, 1);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* === CTA BUTTON GLASS EFFECT === */
.cta-button {
    position: relative;
    margin: 3rem auto 0;
    font-size: 16px;
    padding: 10px 25px;
    width: 280px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: 0.5s;
    z-index: 1;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-button:hover {
    letter-spacing: 2px;
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(45deg) translateX(-100%);
    transition: 0.5s;
    filter: blur(0px);
    z-index: -1;
}

.cta-button:hover::before {
    transform: skewX(45deg) translateX(300%);
}

.cta-button::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 40px;
    height: 10px;
    background: #00BBD2;
    box-shadow: 0 0 10px #00BBD2, 
                0 0 20px #00BBD2, 
                0 0 40px #00BBD2, 
                0 0 80px #00BBD2,
                0 0 120px #00BBD2;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0s;
    opacity: 0;
    z-index: -1;
}

.cta-button:hover::after {
    bottom: 0;
    height: 50%;
    width: 85%;
    border-radius: 50px;
    opacity: 1;
    transition-delay: 0.3s;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CTA BUTTON FLOTTANT (TOUJOURS VISIBLE)
   ============================================ */

.cta-floating-wrapper {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.cta-floating {
    pointer-events: auto;
    margin: 0;
    border: 1px solid #fff;
    animation: floatButton 3s ease-in-out infinite, ctaPulse 2s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(0, 187, 210, 0.4), 
                0 15px 50px rgba(172, 0, 254, 0.3);
}

@keyframes floatButton {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(0, 187, 210, 0.4), 
                    0 15px 50px rgba(172, 0, 254, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 187, 210, 0.6), 
                    0 20px 60px rgba(172, 0, 254, 0.5);
    }
}

.cta-floating:hover {
    animation: floatButton 3s ease-in-out infinite;
    transform: translateY(-15px) scale(1.05);
    border: 2px solid #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .video-overlay {
        background: linear-gradient(
            135deg, 
            rgba(0, 187, 210, 0.85) 0%, 
            rgba(172, 0, 254, 0.85) 100%
        );
    }

    .cta-floating-wrapper {
        bottom: 15px;
        padding: 0 10px;
    }
    
    .cta-floating {
        width: 90%;
        max-width: 320px;
        height: 55px;
        font-size: 1.1rem;
        padding: 16px 32px;
    }
}

@media (max-width: 420px) {
    .logo-section h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-floating-wrapper {
        bottom: 10px;
        padding: 0 15px;
    }
    
    .cta-floating {
        width: calc(100% - 30px);
        max-width: 100%;
        height: 50px;
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .cta-floating:hover {
        letter-spacing: 2px;
        transform: translateY(-12px) scale(1.03);
    }
}

/* Safe area pour iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cta-floating-wrapper {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Support navigateurs anciens */
@supports not (object-fit: cover) {
    .background-video {
        width: 100%;
        height: 100%;
    }
}
/* ============================================
   FORCER L'ÉTAT HOVER AU CLIC
   ============================================ */

.cta-button.force-hover {
    /* Reproduire exactement le style :hover */
    letter-spacing: 3px !important;
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
    animation: floatButton 3s ease-in-out infinite !important;
}

/* Forcer l'effet ::before (shine) */
.cta-button.force-hover::before {
    transform: skewX(45deg) translateX(300%) !important;
}

/* Forcer l'effet ::after (glow) */
.cta-button.force-hover::after {
    bottom: 0 !important;
    height: 50% !important;
    width: 85% !important;
    border-radius: 50px !important;
    opacity: 1 !important;
	animation: glowPulse 1s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Garder l'animation de flottement pendant la redirection */
.cta-button.force-hover {
    animation: floatButton 3s ease-in-out infinite, 
               subtlePulse 1.5s ease-in-out infinite !important;
}

@keyframes subtlePulse {
    0%, 100% { transform: translateY(-15px) scale(1.05); }
    50% { transform: translateY(-15px) scale(1.08); }
}
