/* Styles harmonisés avec smart-info.css pour la page Astronaute */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    overflow-x: hidden;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.background-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: radial-gradient(circle, rgba(93,18,255,0.15) 0%, rgba(93,18,255,0) 70%);
    border-radius: 50%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shape:nth-child(1) {
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
}
.shape:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 30%;
    right: -100px;
    background: radial-gradient(circle, rgba(255,51,102,0.15) 0%, rgba(255,51,102,0) 70%);
}
.shape:nth-child(3) {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
}
.shape:nth-child(4) {
    width: 700px;
    height: 700px;
    top: 10%;
    left: 60%;
    background: radial-gradient(circle, rgba(93,18,255,0.1) 0%, rgba(93,18,255,0) 70%);
}

header {
    height: 40vh;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
}
header .project-title {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--accent-color-2), var(--accent-color-3));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 2px #000;
    animation: shimmerGradient 6s infinite ease-in-out;
    text-shadow: 0 2px 12px rgba(93,18,255,0.07);
    opacity: 1;
    transform: none;
}
header .project-title::before {
    display: none !important;
    content: none !important;
}

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

.project-description {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 200px;
    position: relative;
    overflow: visible;
    opacity: 1;
    transform: none;
    animation: none;
}

@media (max-width: 600px) {
    .project-description {
        margin-bottom: 60px;
    }
}
.project-description::before, .project-description:hover::before {
    display: none !important;
}
.project-description h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--accent-color-2);
}
.project-description h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-2), transparent);
}
.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(0,0,0,0.82);
}
.project-description strong {
    color: var(--accent-color-2);
}

footer {
    /* background: rgba(0,0,0,0.02); */
    padding: 2rem 0 1rem 0;
    text-align: center;
    margin-top: 3rem;
    border-radius: 0 0 18px 18px;
}
footer p {
    opacity: 0.7;
    font-size: 1rem;
}

/* Animations d'apparition */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s cubic-bezier(.34,1.56,.64,1), transform 1.1s cubic-bezier(.34,1.56,.64,1);
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.9s; }
.delay-4 { transition-delay: 1.2s; }
.delay-5 { transition-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shimmerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 992px) {
    header .project-title {
        font-size: 3.5rem;
    }
    .project-description {
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 576px) {
    header .project-title {
        font-size: 3.2rem;
        background: linear-gradient(90deg, var(--accent-color-2), var(--accent-color-3)) !important;
        background-size: 200% 200% !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        -webkit-text-stroke: 2px #000 !important;
        animation: shimmerGradient 6s infinite ease-in-out !important;
        text-shadow: 0 2px 12px rgba(93,18,255,0.07) !important;
    }
    .project-description {
        padding: 1rem 0.5rem;
    }
}

/* La plupart des styles généraux proviendront de ../css/style.css */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
    overflow: hidden;
}
.btn i {
    margin-right: 10px;
}
.primary-btn {
    background: rgba(255,255,255,0.75);
    color: #232526 !important;
    border: 1.5px solid rgba(60,60,60,0.12);
    box-shadow: 0 2px 12px 0 rgba(60,60,60,0.06);
    backdrop-filter: blur(8px);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s, border 0.3s;
    position: relative;
    overflow: hidden;
}
.primary-btn:hover, .primary-btn:focus {
    background: rgba(255,255,255,0.92);
    color: #232526 !important;
    box-shadow: 0 6px 32px 0 rgba(60,60,60,0.13), 0 0 0 2px #5D12FF22;
    border: 1.5px solid #5D12FF33;
}
.primary-btn i {
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color 0.3s;
}
.primary-btn:hover i {
    transform: scale(1.18) rotate(-8deg);
    color: #5D12FF;
}

.btn.ripple {
    position: relative;
    overflow: hidden;
}
.btn.ripple:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(93,18,255,0.15);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: width 0.5s, height 0.5s, opacity 0.5s;
}
.btn.ripple:active:after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}
