/* resources/css/style.css */

/* Custom styles for NEUTRON-Mali */
:root {
    --industrial-blue: #0B1F3A;
    --metallic-gold: #C8A23A;
    --coal-gray: #2B2B2B;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
}

/* Typography improvements */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Premium button effects - simplifié */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #C8A23A;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Enhanced card hover */
.card-premium {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-premium:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Text gradient for headings - plus subtil */
.text-gradient {
    background: linear-gradient(135deg, #0B1F3A, #C8A23A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Classes de couleurs unifiées */
.text-industrial-blue { color: #0B1F3A !important; }
.bg-industrial-blue { background-color: #0B1F3A !important; }
.text-metallic-gold { color: #C8A23A !important; }
.bg-metallic-gold { background-color: #C8A23A !important; }
.text-coal-gray { color: #2B2B2B !important; }
.bg-coal-gray { background-color: #2B2B2B !important; }
.text-light-gray { color: #F5F5F5 !important; }
.bg-light-gray { background-color: #F5F5F5 !important; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-random {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-30px) translateX(15px); }
    50% { transform: translateY(-50px) translateX(-15px); }
    75% { transform: translateY(-30px) translateX(10px); }
}

@keyframes expand {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes ping-slow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes ping-slower {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-random {
    animation: float-random 15s ease-in-out infinite;
}

.animate-expand {
    animation: expand 1.5s ease-out forwards;
}

.animate-ping-slow {
    animation: ping-slow 4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-ping-slower {
    animation: ping-slower 6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}

/* Loader animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--industrial-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    width: 60px;
    height: 60px;
    border: 3px solid var(--metallic-gold);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background: var(--metallic-gold) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--metallic-gold) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #b8912a !important;
}

/* Grayscale hover effect */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Form inputs */
.form-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none !important;
    border-color: var(--metallic-gold) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Counter animation */
.counter {
    transition: all 0.3s ease;
}

/* Breadcrumb styling */
.breadcrumb-item {
    color: #6B7280;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover,
.breadcrumb-item.active {
    color: var(--metallic-gold);
}

/* Swiper button fixes - CORRECTED */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 162, 58, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(200, 162, 58, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-family: swiper-icons;
    font-weight: bold;
}

/* Mobile fix - garder les boutons visibles */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: flex !important;
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}

/* Z-index management pour éviter les chevauchements */
.hero-slider {
    z-index: 1;
}

.hero-placeholder {
    z-index: 0;
    position: relative;
}

/* Espacement des sections pour éviter les chevauchements */
section {
    position: relative;
    z-index: 2;
    margin-bottom: 1px; /* Crée une séparation nette */
}

/* Padding suffisant pour les sections */
section.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

section.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* Clearfix pour les floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Éviter les chevauchements de contenu */
.container {
    position: relative;
    z-index: 10;
}

/* Gestion des overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.content-above {
    position: relative;
    z-index: 15;
}

/* Boutons primaires */
.button-container .btn-primary {
    background-color: var(--metallic-gold);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button-container .btn-primary:hover {
    background-color: #b8912a;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(200, 162, 58, 0.3);
}

.btn-outline {
    border: 2px solid var(--industrial-blue);
    color: var(--industrial-blue);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: var(--industrial-blue);
    color: white;
    transform: scale(1.05);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Form validation styles */
.form-control.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Projects page specific styles */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #C8A23A, #b8912a);
    box-shadow: 0 10px 25px -5px rgba(200, 162, 58, 0.4);
}

/* Modal animations */
#projectModal .bg-white {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#projectModal.show .bg-white {
    transform: scale(1);
}

/* Project card image placeholders */
.project-card .bg-gradient-to-br {
    position: relative;
    overflow: hidden;
}

.project-card .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.project-card:hover .bg-gradient-to-br::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Responsive improvements for projects */
@media (max-width: 768px) {
    .project-card {
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    #projectModal .bg-white {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    #projectModal .p-8 {
        padding: 1.5rem;
    }
}

/* Enhanced loading states */
.project-card {
    opacity: 0;
    transform: translateY(20px);
}

.project-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Focus states for accessibility */
.filter-btn:focus,
.project-card button:focus {
    outline: 2px solid #C8A23A;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.project-card *,
.filter-btn *,
#projectModal * {
    transition: inherit;
}