/* ==========================================================================
   THÈME ASTRO - Styles pour les pages avec thématique astronomique
   Fichier: 06-themes/astro.css
   ========================================================================== */

/* ==========================================================================
   HERO SECTION ASTRONOMIQUE
   ========================================================================== */
.astro-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    height: 60vh;
    background: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #1a365d 100%);
}

/* Effet d'étoiles animées */
.astro-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 150px 150px, 400px 400px, 250px 250px;
    animation: starsFloat 20s linear infinite;
    z-index: 1;
}

/* Effet de nébuleuse */
.astro-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(147, 112, 219, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 40%);
    z-index: 1;
}

@keyframes starsFloat {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-20px) translateY(-20px);
    }
}

/* Contenu du hero */
.astro-hero > * {
    position: relative;
    z-index: 2;
}

.astro-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: telescopePulse 4s ease-in-out infinite alternate;
    display: block;
}

@keyframes telescopePulse {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    100% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.astro-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.astro-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #87ceeb;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 600;
}

.astro-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    opacity: 0.95;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   ÉLÉMENTS ASTRO
   ========================================================================== */

/* Fonctionnalités rapides */
.astro-features-highlight {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.feature-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-quick:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.feature-quick span:last-child {
    font-weight: 500;
    color: white;
}

/* Boutons d'action astro */
.astro-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-astro-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a365d;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.btn-astro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    color: #1a365d;
    text-decoration: none;
}

.btn-astro-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-astro-outline:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Section astro */
.astro-section {
    background: linear-gradient(145deg, #f0f7ff 0%, #e3f2fd 100%);
    padding: 60px 0;
    position: relative;
}

.astro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Cartes astro */
.astro-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    border-left: 5px solid var(--astro-blue);
    transition: transform 0.3s ease;
}

.astro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.astro-card h3 {
    color: var(--astro-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.astro-card p {
    color: #555;
    line-height: 1.6;
}

/* Features astro */
.astro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.astro-feature-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--astro-blue);
    transition: transform 0.3s ease;
}

.astro-feature-card:hover {
    transform: translateY(-3px);
}

.astro-feature-card h3 {
    font-size: 1.4rem;
    color: var(--astro-blue);
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.astro-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--astro-blue);
}

/* Applications astro */
.astro-applications {
    background-color: #f0f7ff;
    padding: 60px 0;
    margin-bottom: 60px;
}

.astro-applications h2 {
    font-size: 2rem;
    color: var(--astro-blue);
    margin-bottom: 30px;
    text-align: center;
}

/* Compatibilité astro */
.astro-compatibility {
    padding: 80px 0;
    background-color: white;
}

.astro-compatibility h2 {
    font-size: 2rem;
    color: var(--astro-blue);
    text-align: center;
    margin-bottom: 40px;
}

/* CTA astro */
.astro-cta {
    background: linear-gradient(135deg, var(--astro-blue) 0%, #1e40af 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.astro-cta h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.astro-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Badge astro */
.astro-badge {
    background: linear-gradient(45deg, var(--astro-blue), #1e40af);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Titre astro avec ornements */
.astro-title-ornament {
    color: var(--astro-blue);
    text-align: center;
    position: relative;
    margin: 40px 0;
    font-size: 2.2rem;
    font-weight: bold;
}

.astro-title-ornament::before,
.astro-title-ornament::after {
    content: '⭐';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--astro-gold);
    font-size: 1.5rem;
    animation: starTwinkle 2s ease-in-out infinite alternate;
}

.astro-title-ornament::before {
    left: -60px;
}

.astro-title-ornament::after {
    right: -60px;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Section de visualisation */
.visualization-project,
.exploded-views,
.visualization-3d {
    padding: 80px 0;
}

.visualization-project {
    background-color: #f0f7ff;
}

.exploded-views {
    background-color: white;
}

.visualization-3d {
    background-color: #f0f7ff;
}

.visualization-3d h2,
.exploded-views h2 {
    font-size: 2rem;
    color: var(--astro-blue);
    text-align: center;
    margin-bottom: 20px;
}

/* Grilles de modèles 3D */
.model-3d-grid,
.project-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.model-3d-item,
.project-view-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Galerie photo astro */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-title {
    color: var(--astro-blue);
    text-align: center;
    margin: 50px 0 20px;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h3 {
    color: var(--astro-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery-caption p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE ASTRO
   ========================================================================== */
@media (max-width: 768px) {
    .astro-hero {
        height: 70vh;
        min-height: 450px;
        padding: 60px 15px;
    }
    
    .astro-title {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .astro-subtitle {
        font-size: 1.3rem;
    }
    
    .astro-description {
        font-size: 1.1rem;
        max-width: 95%;
        margin-bottom: 30px;
    }
    
    .astro-features-highlight {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature-quick {
        min-width: 200px;
        justify-content: center;
    }
    
    .astro-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-astro-primary,
    .btn-astro-outline {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .astro-features {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .astro-title-ornament::before,
    .astro-title-ornament::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .astro-hero {
        min-height: 400px;
    }
    
    .astro-icon {
        font-size: 3rem;
    }
    
    .astro-title {
        font-size: 2rem;
    }
    
    .astro-subtitle {
        font-size: 1.2rem;
    }
    
    .astro-description {
        font-size: 1rem;
    }
    
    .model-3d-grid,
    .project-view-grid {
        grid-template-columns: 1fr;
    }
    
    .astro-card {
        padding: 20px;
    }
}