/**
 * CSS Site Vitrine - AniPratik
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --primary-color: #8B7355;
    --primary-dark: #6d5a43;
    --primary-light: #a8917a;
    --secondary-color: #D4C4B5;
    --accent-color: #6B8E6B;
    --accent-light: #8FB58F;

    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #2d2d2d;
    --white: #ffffff;

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ========================================
   BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.navbar-logo {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(139, 115, 85, 0.08);
}

.nav-link.btn {
    color: var(--white) !important;
}

.nav-link.btn:hover {
    background-color: var(--primary-dark);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

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

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: 100px;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f0eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-mockup {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-header {
    background: var(--bg-light);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c940; }

.mockup-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    min-height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-card {
    background: var(--bg-light);
    border-radius: 8px;
    height: 80px;
}

.mockup-card.small {
    height: 50px;
    width: 60%;
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.feature-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.05), rgba(139, 115, 85, 0.02));
    position: relative;
}

.feature-card.featured::before {
    content: "Nouveau";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-card.featured .feature-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: 0.5rem;
}

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

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-monthly {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ========================================
   LEGAL SECTION (CGU, Mentions légales, Confidentialité)
   ======================================== */
.legal-section {
    padding-top: 120px !important;
    padding-bottom: 60px;
    background: var(--white);
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-content h3 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-content ul {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

/* ========================================
   AUTH SECTION
   ======================================== */
.auth-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f0eb 100%);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.auth-logo i {
    font-size: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 0;
    color: var(--text-muted);
}

/* Form styles */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.form-text {
    font-size: 0.8rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.input-group .btn-outline-secondary {
    border-color: #dee2e6;
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--bg-light);
    border-color: #dee2e6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer h5,
.footer h6 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer h5 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a {
    color: #aaa;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--white);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--shadow);
    }
}

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

.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-stats {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-subtitle { animation-delay: 0.1s; }
.hero-buttons { animation-delay: 0.2s; }
.hero-stats { animation-delay: 0.3s; }
