/* 
   --------------------------------------------------------------
   STYLE PROJETS - Yacine Sehli Portfolio
   --------------------------------------------------------------
   Specific styles for the catalogue page
   --------------------------------------------------------------
*/
/* 1. Empêcher le débordement horizontal (Scroll latéral indésirable) */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Badge Styling */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

/* Project Detail Card */
.project-detail {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-detail:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay Utilities */
.project-detail:nth-child(1) { animation-delay: 0.1s; }
.project-detail:nth-child(2) { animation-delay: 0.3s; }
.project-detail:nth-child(3) { animation-delay: 0.5s; }

/* Prose override for dark mode readability */
.dark .prose strong {
    color: #fff;
}

.dark .prose li::marker {
    color: #84cc16; /* Lime Green */
}

.prose li::marker {
    color: #1e40af; /* Royal Blue */
}

/* Image Hover Zoom Container */
.project-image-container {
    overflow: hidden;
    position: relative;
}

.project-image-container img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container:hover img {
    transform: scale(1.1);
}

/* Custom back button */
.back-link:hover svg {
    transform: translateX(-5px);
}

/* Typography adjustments for project descriptions */
.project-desc {
    line-height: 1.8;
}
.project-desc h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* =========================================
   MEDIA QUERIES - OPTIMISATION MOBILE & TABLETTE
   ========================================= */
/* 2. Ajustements spécifiques pour Mobile (< 768px) */
@media (max-width: 768px) {
    
    /* Réduire la taille des titres géants pour éviter qu'ils sortent de l'écran */
    header .font-aquarium {
        font-size: clamp(2.5rem, 10vw, 4rem) !important; 
        line-height: 1.1;
    }

    .section-title {
        font-size: 2.5rem !important; 
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .blur-\[100px\], .blur-\[120px\] {
        filter: blur(60px) !important;
        opacity: 0.15 !important;
    }

    .section-title {
        font-size: 2.5rem !important; /* Plus petit sur mobile */
    }

    /* Ajuster les marges des conteneurs */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Réduire l'intensité des effets de flou (Blur) pour améliorer la performance sur téléphone */
    .blur-\[100px\], .blur-\[120px\] {
        filter: blur(60px) !important;
        opacity: 0.15 !important;
    }
}

/* 3. Ajustements pour Tablettes (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Passer de 3 à 2 colonnes sur tablette */
    }
}
