/* Style principal pour Lyxou Développement - Dark Mode Élégant */

/* Styles personnalisés qui complètent Bootstrap */

/* Styles pour le corps de la page avec fond étoilé */
.cosmic-body {
    background-color: #050a1c; /* Fond bleu très foncé presque noir */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Variables de couleurs (complément à celles de Bootstrap) */
:root {
    --primary-color: #6e9fff; /* Bleu clair élégant */
    --primary-dark: #3d6abf; /* Bleu foncé élégant */
    --secondary-color: #9c6eff; /* Violet subtil */
    --accent-color: #00e5ff; /* Cyan pour les accents */
    --text-light: #e0e0e0; /* Texte clair */
    --text-muted: #c0c0c0; /* Texte atténué - éclairci pour meilleure lisibilité */
    --text-dark: #e0e0e0; /* Texte principal (clair sur fond sombre) */
    --bg-dark: #121212; /* Fond principal très sombre */
    --bg-darker: #0a0a0a; /* Fond encore plus sombre */
    --bg-card: #1e1e1e; /* Fond des cartes */
    --border-subtle: #333333; /* Bordures subtiles */
}

/* Styles spécifiques pour la navigation */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.2);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 3px var(--primary-color));
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Hero Section - styles spécifiques */
.hero {
    min-height: 100vh;
    margin-top: 0; /* Ajusté pour Bootstrap */
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Intégration avec le fond étoilé */
#accueil {
    padding-top: 76px; /* Pour compenser la navbar fixed-top */
    margin-top: -76px; /* Pour annuler le padding et coller au top */
}

/* Styles pour les cartes de services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(110, 159, 255, 0.2) !important;
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Styles pour le portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(20%) brightness(0.85) contrast(1.1);
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: inset 0 0 10px rgba(110, 159, 255, 0.1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1) contrast(1.2);
    box-shadow: inset 0 0 15px rgba(110, 159, 255, 0.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.7), rgba(10, 20, 50, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    border-radius: 0.5rem 0.5rem 0 0;
    backdrop-filter: blur(3px);
}

.portfolio-overlay h5, .portfolio-overlay p {
    color: var(--text-light);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Styles pour les sections avec fond étoilé */
#portfolio.hero-section,
#contact.hero-section {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#portfolio.hero-section h2,
#portfolio.hero-section .lead,
#contact.hero-section h2,
#contact.hero-section .lead {
    color: var(--text-light);
}

#portfolio.hero-section .lead,
#contact.hero-section .lead {
    color: rgba(255, 255, 255, 0.8);
}

#portfolio.hero-section .card-title,
#contact.hero-section .card-title {
    color: var(--text-light);
}

#contact.hero-section .form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact.hero-section .form-control {
    background-color: rgba(20, 30, 60, 0.5);
    border: 1px solid rgba(110, 159, 255, 0.3);
    color: var(--text-light);
    transition: all 0.3s ease;
}

#contact.hero-section .form-control:focus {
    background-color: rgba(30, 40, 70, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
}

#contact.hero-section .form-control::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

#contact.hero-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-darker);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.2);
}

#contact.hero-section .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.4);
}

#portfolio.hero-section .card {
    background-color: rgba(30, 40, 70, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 159, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(110, 159, 255, 0.1);
    transition: all 0.3s ease;
}

#portfolio.hero-section .card:hover {
    background-color: rgba(40, 50, 80, 0.7);
    border-color: rgba(110, 159, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(110, 159, 255, 0.2);
    transform: translateY(-5px);
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

#portfolio.hero-section .card-body {
    background: linear-gradient(to bottom, rgba(30, 40, 70, 0.4), rgba(20, 30, 60, 0.8));
}

#portfolio.hero-section .card-text {
    color: var(--text-muted);
}

#portfolio.hero-section .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.2);
}

#portfolio.hero-section .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

#contact.hero-section .card {
    background-color: rgba(30, 40, 70, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 159, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(110, 159, 255, 0.1);
    transition: all 0.3s ease;
}

#contact.hero-section .card:hover {
    background-color: rgba(40, 50, 80, 0.7);
    border-color: rgba(110, 159, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(110, 159, 255, 0.2);
    transform: translateY(-5px);
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

#contact.hero-section .card-body {
    background: linear-gradient(to bottom, rgba(30, 40, 70, 0.4), rgba(20, 30, 60, 0.8));
}

#portfolio.hero-section .text-muted,
#contact.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

#portfolio.hero-section .card .text-muted,
#contact.hero-section .card .text-muted {
    color: var(--text-muted) !important;
}

/* Styles pour les témoignages */
#temoignages {
    background: linear-gradient(to bottom, var(--bg-dark), #0d1526);
    position: relative;
    overflow: hidden;
}

#temoignages .card {
    background: linear-gradient(135deg, rgba(40, 50, 80, 0.7), rgba(20, 30, 60, 0.9));
    border: 1px solid rgba(110, 159, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(110, 159, 255, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

#temoignages .card:hover {
    transform: translateY(-5px);
    border-color: rgba(110, 159, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(110, 159, 255, 0.2);
}

#temoignages .card:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px 10px 0 0;
}

#temoignages .card:hover:before {
    opacity: 1;
}

#temoignages .fa-quote-left {
    color: var(--primary-color);
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(110, 159, 255, 0.5));
    transition: all 0.3s ease;
}

#temoignages .card:hover .fa-quote-left {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(110, 159, 255, 0.7));
}

#temoignages .card-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

#temoignages .rounded-circle {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
    transition: all 0.3s ease;
}

#temoignages .card:hover .rounded-circle {
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.5);
    transform: scale(1.05);
}

/* Styles pour les boutons personnalisés */
.cta-btn {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--primary-dark);
    color: var(--bg-darker);
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.5);
}

/* Styles pour les liens sociaux dans le footer */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-light);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

/* Animations personnalisées */
.animate-hover {
    transition: all 0.3s ease;
}

.animate-hover:hover {
    transform: translateY(-5px);
}

/* Notification */
#notification{
    position: fixed;
    left: 1rem;
    bottom: 0.4rem;
    z-index: 10;
    border-radius: 0.5rem;
    padding: 1rem;
}

.alert_error{
    background-color: rgba(252, 65, 65, 0.5);
}

.alert_success{
    background-color: rgba(87, 252, 65, 0.5);
}

.alert_warning{
    background-color: rgba(252, 218, 65, 0.5);
}

/* Animation de lueur subtile pour les cartes du portfolio et contact */
@keyframes subtle-glow {
    0% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(110, 159, 255, 0.1); }
    50% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(110, 159, 255, 0.3); }
    100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(110, 159, 255, 0.1); }
}

/* Media queries spécifiques (complément à celles de Bootstrap) */
@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
}