/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.animations-list h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.animation-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.animation-card.placeholder {
    border: 2px dashed #ccc;
    background: rgba(255, 255, 255, 0.8);
}

.animation-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.animation-card p {
    color: #666;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

/* Styles pour les pages d'animation */
.animation-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#canvas-container {
    width: 100%;
    height: 100%;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.controls h3 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

.back-link {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: #667eea;
    font-weight: bold;
    z-index: 100;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: white;
}

.animation{
    position: relative;
    border-radius: inherit;
}

.lil-gui {
	--background-color: #f6f6f6;
	--text-color: #3d3d3d;
	--title-background-color: #efefef;
	--title-text-color: #3d3d3d;
	--widget-color: #eaeaea;
	--hover-color: #f0f0f0;
	--focus-color: #fafafa;
	--number-color: #3d3d3d;
	--string-color: #3d3d3d;
}

.lil-gui.root{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

