/* ============================================
   Variables et Thème Efrei
   ============================================ */
:root {
    /* Couleurs principales Efrei */
    --efrei-blue: #0066cc;
    --efrei-dark-blue: #004999;
    --efrei-light-blue: #3399ff;
    --efrei-accent: #00ccff;
    
    /* Couleurs de support */
    --primary: #0066cc;
    --secondary: #00ccff;
    --dark: #0a0e27;
    --darker: #050811;
    --light: #ffffff;
    --gray: #8892b0;
    --gray-light: #ccd6f6;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00ccff 100%);
    --gradient-secondary: linear-gradient(135deg, #004999 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #00ccff 0%, #0066cc 100%);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 102, 204, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 102, 204, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 204, 255, 0.3);
}

/* ============================================
   Reset et Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark);
    color: var(--gray-light);
    line-height: 1.6;
    overflow: hidden;
}

/* ============================================
   Particules animées
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, rgba(0, 102, 204, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse at bottom, rgba(0, 204, 255, 0.05) 0%, transparent 60%);
}

/* Effet de souris */
.mouse-effect {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.15) 0%, rgba(0, 102, 204, 0.1) 30%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(40px);
    mix-blend-mode: screen;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite;
}

.particles::before {
    background: var(--efrei-blue);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    background: var(--efrei-accent);
    bottom: 20%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   Logo Brand
   ============================================ */
.logo-brand {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.75) 100%);
    border-radius: 30px;
    padding: 2rem;
    transition: all var(--transition-normal);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 32px;
    opacity: 0.8;
    filter: blur(25px);
    z-index: -1;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(255, 255, 255, 0.3);
}

.logo-container:hover {
    transform: translateY(-5px) scale(1.05);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.85) 100%);
}

.logo-container:hover::before {
    opacity: 1;
    filter: blur(30px);
}

.logo-image {
    width: 120px;
    height: 120px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 102, 204, 0.5)) drop-shadow(0 0 15px rgba(0, 204, 255, 0.3));
    transition: all var(--transition-normal);
}

.logo-container:hover .logo-image {
    filter: drop-shadow(0 6px 30px rgba(0, 102, 204, 0.8)) drop-shadow(0 0 25px rgba(0, 204, 255, 0.6));
    transform: scale(1.05);
}

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

@keyframes logoGlow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light);
    transition: all var(--transition-fast);
}

.logo-text:hover {
    text-shadow: 0 0 30px var(--efrei-accent);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 900px;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--light);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--efrei-accent);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   Info Cards
   ============================================ */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
}

.info-card {
    background: rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all var(--transition-normal);
    text-align: left;
    flex: 1;
    max-width: 300px;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--efrei-accent);
    background: rgba(0, 102, 204, 0.08);
}

.info-card .card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.info-card .card-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 102, 204, 0.3));
    transition: all var(--transition-normal);
}

.info-card:hover .card-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 204, 255, 0.5));
    transform: scale(1.1);
}

.info-card .card-content h3 {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.info-card .card-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--efrei-blue);
}

.btn-secondary:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--efrei-accent);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}



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



/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .logo-container {
        width: 140px;
        height: 140px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
