/* base-modern-style.css - Styles modernes pour base.html */

/* Variables de couleur */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --dark-bg: #1a202c;
    --dark-text: #f8f9fa;
}

/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg) !important;
    padding-top: 76px;
    transition: all 0.3s ease;
}

/* Navbar moderne avec dégradé et ombre portée */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    margin-left: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    transform: translateX(5px);
}

/* Hero Section moderne */
.hero-section {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%) !important;
    padding: 7rem 0 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Section Produits */
#Produits {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Cards des produits */
.card {
    border: none;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.1);
}

.gallery-img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.card:hover .gallery-img {
    transform: scale(1.1);
}

.card h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover h6 {
    color: var(--primary-dark);
}

.card small {
    transition: all 0.3s ease;
}

.card:hover small {
    color: var(--text-color) !important;
}

/* Footer moderne */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    padding: 2.5rem 0 !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 1rem;
}

footer .fab, footer .fas {
    transition: all 0.3s ease;
}

footer a:hover .fab,
footer a:hover .fas {
    transform: translateY(-5px);
    color: white !important;
}

/* Bouton retour en haut */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* Effet de vague au clic */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeIn {
    animation: fadeIn 1s ease;
}

.animate__fadeInDown {
    animation: fadeInDown 1s ease;
}

.animate__fadeInUp {
    animation: fadeInUp 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mode sombre */
[data-bs-theme="dark"] {
    --text-color: #f8f9fa;
    --light-bg: #1a202c;
}

[data-bs-theme="dark"] .navbar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
}

[data-bs-theme="dark"] #Produits {
    background-color: #2d3748;
}

[data-bs-theme="dark"] .card {
    background-color: #3a4556;
}

[data-bs-theme="dark"] .card h6 {
    color: #90cdf4;
}

[data-bs-theme="dark"] .card small {
    color: #cbd5e0 !important;
}

[data-bs-theme="dark"] footer {
    background: linear-gradient(135deg, #1a202c 0%, #0d1117 100%) !important;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    #Produits {
        padding: 3rem 0;
    }
}