:root {
    --primary-color: #008b92;
    --primary-glow: #008b9226;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    background-color: #111;
    background-image:
        radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 80%),
        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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    color: #f1f1f1;
    min-height: 100vh;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInRotate {
    from { opacity: 0; transform: translateY(20px) rotate(-15deg); }
    to { opacity: 1; transform: translateY(0) rotate(-15deg); }
}

.description {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 1s ease-out 0.6s backwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.btn-solid {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #fff;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-solid::before {
    background-color: #111;
}

.btn:hover {
    color: #111;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

.btn-solid:hover {
    color: var(--primary-color);
    border-color: #111;
}

.btn:hover::before {
    height: 100%;
}

.btn:active {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.btn-retour .fleche {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-retour:hover {
    color: #ffffff;
}

.btn-retour:hover .fleche {
    transform: translateX(-8px);
}

.section-projets {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-titre {
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 15px;
    margin-bottom: 80px;
    color: #f1f1f1;
}

.projets-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn.active {
    color: #111;
    border-color: #fff;
    font-weight: 700;
}

.projet-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    transition: transform 0.4s ease;
    aspect-ratio: 16 / 9;
}

.projet-image {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.corner-dot {
    position: fixed;
    width: 3px; height: 3px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 100;
    opacity: 0;
    animation: fadeInDots 2s ease-out 1s forwards;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.corner-dot.top-left { top: 30px; left: 30px; }
.corner-dot.top-right { top: 30px; right: 30px; }
.corner-dot.bottom-left { bottom: 30px; left: 30px; }
.corner-dot.bottom-right { bottom: 30px; right: 30px; }

@keyframes fadeInDots {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 0.4; transform: scale(1); }
}

/* --- Preloader Style --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-icon {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

@keyframes loaderPulse {
    0% { transform: scale(0.9); filter: blur(0px); opacity: 0.5; }
    50% { transform: scale(1.1); filter: blur(2px); opacity: 1; }
    100% { transform: scale(0.9); filter: blur(0px); opacity: 0.5; }
}

.site-footer {
    text-align: center;
    color: #555555;
    font-size: 0.8rem;
    padding: 30px 0 20px 0;
    width: 100%;
}

@media (max-width: 768px) {
    .btn { padding: 12px 30px; font-size: 0.8rem; }
    .section-titre { font-size: 2rem; letter-spacing: 8px; }
}