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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #151b2b;
    --border: #1e293b;
    --border-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --shadow: rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

/* Fond animé avec gradient subtil */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    animation: gradientRotate 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* Effet de curseur lumineux */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 0;
    opacity: 0;
}

.container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.logo {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: fadeIn 0.8s ease forwards, gradientShift 3s ease infinite;
}

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

.tagline {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}

section {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

section h2 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Effet de brillance au survol */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Bordure animée */
.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .glow-effect {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow),
                0 0 0 1px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

/* Effet de ripple au clic */
.service-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.service-card .icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-blue);
}

.service-card .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.service-card .arrow {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--text-tertiary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .arrow {
    color: var(--accent-blue);
    transform: translateY(-50%) translateX(6px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.info-card .info-background {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover::after {
    transform: scaleX(1);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px) scale(1.02);
}

.info-card:hover .info-background {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

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

.info-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.info-card .value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

footer {
    text-align: center;
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.quick-links {
    margin-bottom: 12px;
}
.quick-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.quick-links a:hover {
    color: var(--text-secondary);
}
.ql-sep {
    color: var(--border);
    margin: 0 6px;
    font-size: 0.7rem;
}

.clock {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animations au scroll */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 30px 16px;
    }
    
    .logo {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .service-card .icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card .arrow {
        font-size: 1.6rem;
        right: 24px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 20px 12px;
    }
    
    header {
        margin-bottom: 40px;
    }
    
    .logo {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    section {
        margin-bottom: 40px;
    }
    
    section h2 {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .service-card .icon {
        font-size: 2.2rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .clock {
        font-size: 0.8rem;
    }
    
    /* Désactiver les effets 3D sur mobile */
    .service-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .service-card .description {
        font-size: 0.85rem;
    }
}
