/* ==================== STYLES INDEX ==================== */

/* ===== VIDÉO ET IMAGE DE FOND ===== */
.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fullscreen-video.video-visible {
    opacity: 1;
}

.fullscreen-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -3;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fullscreen-background.fade-in-background {
    opacity: 1;
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Animation vidéo */
.video-fade-out {
    opacity: 0 !important;
}

.video-fade-in {
    opacity: 1 !important;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 15px 20px;
    box-sizing: border-box;
    z-index: 10;
    overflow: hidden;
}

/* ===== TEXTE PRINCIPAL ===== */
.top-text-section {
    text-align: center;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
    margin-top: 0;
    margin-bottom: 15px;
}

.top-text-section.fade-in-top-text {
    opacity: 1;
    transform: translateY(0);
}

.top-text-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.top-text-section p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 0;
}

/* ===== CARTES EN BAS ===== */
.bottom-cards-section {
    width: 100%;
    max-width: 750px;
    margin: 400px auto auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.bottom-cards-section.fade-in-bottom {
    opacity: 1;
    transform: translateY(0);
}

.cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.card-col {
    flex: 0 1 auto;
    width: calc(33.333% - 8px);
    min-width: 140px;
    max-width: 180px;
}

.transparent-card {
    background: rgba(0, 0, 0, 0.00);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem 0.8rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.transparent-card.fade-in-card {
    opacity: 1;
    transform: scale(1);
}

.transparent-card:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.transparent-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.transparent-card p {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    flex: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    color: white;
}

/* ===== BADGE IA ===== */
.ai-badge-container {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 9998;
}

.ai-badge-permanent {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-left: 2px solid #00e5ff;
}

.ai-badge-permanent i {
    color: #00e5ff;
    font-size: 0.85rem;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-badge-permanent:hover {
    background: rgba(0, 102, 255, 0.6);
    transform: translateY(-2px);
}

/* ===== MODE NUIT ===== */
[data-bs-theme="dark"] .transparent-card {
    background: rgba(20, 20, 35, 0.0);
}

[data-bs-theme="dark"] .transparent-card:hover {
    background: rgba(30, 40, 60, 0.4);
}

[data-bs-theme="dark"] .ai-badge-permanent {
    background: rgba(20, 20, 30, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 60px 12px 20px;
        justify-content: flex-start;
    }
    
    .top-text-section {
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .bottom-cards-section {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .card-col {
        width: calc(50% - 6px);
        min-width: 130px;
        max-width: none;
    }
    
    .cards-row {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 55px 8px 15px;
    }
    
    .top-text-section {
        margin-top: 5px;
        margin-bottom: 15px;
    }
    
    .top-text-section h1 {
        font-size: 1.6rem;
    }
    
    .top-text-section p {
        font-size: 0.85rem;
    }
    
    .bottom-cards-section {
        max-width: 100%;
    }
    
    .cards-row {
        gap: 8px;
    }
    
    .card-col {
        width: calc(33.333% - 6px);
        min-width: 100px;
    }
    
    .transparent-card {
        padding: 0.7rem 0.4rem;
    }
    
    .transparent-card p {
        display: none;
    }
    
    .feature-icon {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .transparent-card h3 {
        font-size: 0.8rem;
    }
    
    .btn-glass {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
        white-space: nowrap;
    }
    
    .ai-badge-permanent span {
        display: none;
    }
    
    .ai-badge-permanent {
        padding: 5px;
        border-radius: 50%;
    }
    
    .ai-badge-permanent i {
        margin: 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .card-col {
        width: 100%;
        min-width: auto;
        max-width: 200px;
    }
    
    .cards-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-height: 650px) {
    .main-content {
        padding: 55px 15px 15px;
    }
    
    .top-text-section {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .top-text-section h1 {
        font-size: 1.6rem;
    }
    
    .top-text-section p {
        font-size: 0.9rem;
    }
    
    .transparent-card p {
        display: none;
    }
    
    .feature-icon {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
}

@media (max-height: 500px) {
    .main-content {
        padding: 50px 15px 10px;
    }
    
    .top-text-section {
        margin-bottom: 5px;
    }
    
    .top-text-section h1 {
        font-size: 1.4rem;
    }
    
    .top-text-section p {
        font-size: 0.8rem;
    }
    
    .transparent-card {
        padding: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.1rem;
    }
    
    .transparent-card h3 {
        font-size: 0.75rem;
    }
    
    .btn-glass {
        padding: 0.2rem 0.4rem;
        font-size: 0.5rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-background,
    .fullscreen-video,
    .top-text-section,
    .bottom-cards-section,
    .transparent-card,
    .ai-badge-permanent i {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== SUPPORT iOS ===== */
@supports (-webkit-touch-callout: none) {
    html, body {
        min-height: 100%;
    }
    
    .fullscreen-background,
    .fullscreen-video {
        position: fixed;
        height: 100dvh;
        min-height: 100dvh;
        transform: translateZ(0);
    }
    
    .main-content {
        min-height: 100dvh;
    }
}