:root {
    --primary-color: #0f9d58;
    --secondary-color: #333333;
    --success-color: #0f9d58;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
}

/* Styles globaux pour les scrollbars */
/* Scrollbars WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

/* Scrollbars Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
}

*:hover {
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Système de notifications */
.notification-container {
    position: fixed;
    top: 80px; /* Juste en dessous de la navbar */
    right: 50px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid;
    max-width: 100%;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Types de notifications */
.notification-success {
    border-left-color: var(--success-color);
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-warning .notification-icon {
    color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 10px 12px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Couleurs personnalisées */
.bg-primary {
    background-color: var(--secondary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #0d8a4f !important;
    border-color: #0d8a4f !important;
    color: white !important;
}

.btn-success:focus, .btn-success:active {
    background-color: #0d8a4f !important;
    border-color: #0d8a4f !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 157, 88, 0.25) !important;
}

/* Style pour le bouton "Plan actuel" */
.btn-secondary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    opacity: 0.65;
    cursor: not-allowed;
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Styles pour la photo de profil dans la navbar */
.navbar-profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-profile-placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Styles pour les liens de navigation avec effet hover */
#navbarNav .nav-item {
    transition: border-bottom 0.3s ease;
}

#navbarNav .nav-item:hover {
    text-decoration: solid var(--primary-color);
    font-weight: bold;
}

/* Styles pour la section pricing */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    z-index: 10;
}

.popular-badge .badge {
    border-radius: 0 0 10px 10px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Styles pour les plan-card (page subscription et landing) */
.plan-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    border-radius: 15px;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.plan-card.current-plan {
    border-color: var(--primary-color);
    background: rgba(15, 157, 88, 0.02);
}

.plan-card.popular {
    border-color: #ffc107;
    position: relative;
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-2px);
}

.plan-card.popular::before {
    content: "Populaire";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.price-display {
    margin: 1rem 0;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.monthly-equivalent {
    margin-top: 0.5rem;
}

.feature-list {
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.feature-list li:last-child {
    border-bottom: none;
}

.pricing-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.pricing-card.popular .card-header {
    background: linear-gradient(135deg, #0d8a4f 0%, #0d8a4f 100%);
    color: white;
}

.pricing-card.popular .price-amount {
    color: white;
}

.pricing-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.pricing-card.popular .card-footer {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.hero-section {
    position: relative;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 157, 88, 0.7), rgba(255, 65, 73, 0.4));
    z-index: -1;
}

.feature-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.cta-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.dashboard-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0d8a4f);
    color: white;
    border-radius: var(--border-radius);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: 1px solid rgba(15, 157, 88, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--secondary-color);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.dropdown-item:active {
    background-color: #0d8a4f !important;
    color: white !important;
}

.dropdown-item i {
    transition: color 0.2s ease;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: white !important;
}

/* Formulaires */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 157, 88, 0.25);
}

.auth-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--primary-color);
}

footer .footer-links li {
    margin-bottom: 0.5rem;
}

footer .footer-links a {
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

footer .footer-links a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15, 157, 88, 0.3);
}

footer .contact-info i {
    color: var(--primary-color);
    width: 20px;
}

footer hr {
    opacity: 0.3;
}

/* Responsive footer */
@media (max-width: 768px) {
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    footer .social-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}