/* Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-image-wrapper {
    position: relative;
}

.checklist-preview {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.checklist-preview:hover {
    transform: rotate(0deg);
}

.ms-n2 {
    margin-left: -10px;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease;
}

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

.pricing-popular {
    position: relative;
    border: 2px solid var(--primary-color) !important;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
}

.auth-card .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Dashboard */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background: #1e293b;
    position: fixed;
    left: 0;
    top: 0;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a i {
    width: 24px;
    margin-right: 12px;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Checklist */
.checklist-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.checklist-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    cursor: pointer;
}

.checklist-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--primary-color);
}

.checklist-item.conforme {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.checklist-item.non-conforme {
    background: #fef2f2;
    border-color: #fecaca;
}

.checklist-item.na {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Radio Buttons Custom */
.checklist-options {
    display: flex;
    gap: 1rem;
}

.checklist-option {
    display: flex;
    align-items: center;
}

.checklist-option input[type="radio"] {
    display: none;
}

.checklist-option label {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.checklist-option.conforme label {
    color: #166534;
}

.checklist-option.conforme input:checked + label {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.checklist-option.non-conforme label {
    color: #991b1b;
}

.checklist-option.non-conforme input:checked + label {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.checklist-option.na label {
    color: #64748b;
}

.checklist-option.na input:checked + label {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

/* Progress */
.progress-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resource-card.critical {
    border-left-color: var(--danger-color);
}

.resource-card.warning {
    border-left-color: var(--warning-color);
}

/* Payment Page */
.payment-card {
    max-width: 500px;
    margin: 0 auto;
}

.plan-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

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

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

/* Mobile Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

/* Mobile Small (phones) */
@media (max-width: 576px) {
    .main-content {
        padding: 1rem;
        padding-top: 4rem;
    }

    .checklist-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .checklist-options {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .checklist-option {
        width: 100%;
    }

    .checklist-option label {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        padding: 0.6rem 1rem;
    }

    .card {
        border-radius: 8px;
    }

    .card-body {
        padding: 1rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .custom-toast {
        padding: 0.75rem 1rem;
    }
}

/* Tablet (iPad, etc) */
@media (min-width: 577px) and (max-width: 991px) {
    .main-content {
        padding: 1.5rem;
        padding-top: 4rem;
    }

    .checklist-item {
        padding: 1.25rem;
    }

    .checklist-options {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .checklist-option {
        flex: 1 1 auto;
        min-width: 100px;
    }

    .checklist-option label {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.custom-toast.success {
    border-left: 4px solid var(--success-color);
}

.custom-toast.error {
    border-left: 4px solid var(--danger-color);
}

/* Charts placeholder */
.chart-container {
    position: relative;
    height: 300px;
}

/* ========================================
   LANDING PAGE RESPONSIVE
   ======================================== */

/* Mobile Small (phones < 576px) */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn-lg {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-section .d-flex.flex-wrap.gap-4 {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }

    .usp-badge {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    .highlight-text {
        background: linear-gradient(180deg, transparent 70%, #fef08a 70%);
    }

    /* Mockup Checklist Hero */
    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .checklist-preview {
        transform: none !important;
        border-radius: 12px !important;
    }

    .checklist-preview .card-header .d-flex.overflow-auto {
        padding: 0.5rem !important;
        gap: 0.25rem !important;
    }

    .checklist-preview .card-header .badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .checklist-preview .card-body {
        padding: 0.75rem !important;
    }

    .checklist-preview .card-body h6 {
        font-size: 0.85rem;
    }

    .checklist-preview .checklist-item .card-body {
        padding: 0.6rem !important;
    }

    .checklist-preview .checklist-item .fw-medium {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .checklist-preview .checklist-item .badge {
        font-size: 8px !important;
        padding: 0.2rem 0.4rem !important;
        white-space: nowrap;
    }

    .checklist-preview .checklist-item small {
        font-size: 0.7rem;
    }

    .checklist-preview .checklist-item .alert {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    .checklist-preview .checklist-item .btn-sm {
        font-size: 9px !important;
        padding: 0.25rem 0.5rem !important;
    }

    .checklist-preview .checklist-item .d-flex.gap-2 {
        gap: 0.25rem !important;
        flex-wrap: wrap;
    }

    .checklist-preview .card-footer {
        padding: 0.6rem !important;
    }

    .checklist-preview .card-footer .d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important;
        flex-wrap: wrap;
    }

    .checklist-preview .card-footer .small {
        font-size: 0.7rem;
    }

    .checklist-preview .card-footer .btn-sm {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Badge flottant */
    .hero-image-wrapper .position-absolute {
        top: -5px !important;
        right: -5px !important;
    }

    .hero-image-wrapper .position-absolute .badge {
        font-size: 9px !important;
        padding: 0.3rem 0.5rem !important;
    }

    /* Pain Point Section */
    .pain-point .display-6 {
        font-size: 1.5rem;
    }

    .problem-stat {
        font-size: 2rem !important;
    }

    .pain-point .lead {
        font-size: 0.95rem;
    }

    .pain-point .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pain-point .fa-2x {
        font-size: 1.25rem !important;
    }

    /* Stats Section */
    .stat-item .display-5 {
        font-size: 2rem;
    }

    /* Pour Qui Section */
    .target-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }

    .target-card .card-body {
        padding: 1rem !important;
    }

    .target-card h5 {
        font-size: 1rem;
    }

    /* Features Section */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-card .card-body {
        padding: 1rem !important;
    }

    .feature-card h5 {
        font-size: 1rem;
    }

    /* PDF Preview Section */
    .pdf-preview {
        padding: 1rem !important;
    }

    .pdf-mockup .p-4 {
        padding: 1rem !important;
    }

    .pdf-mockup .display-6 {
        font-size: 1.5rem;
    }

    .pdf-mockup .row.text-center .col-4 {
        padding: 0 0.25rem;
    }

    /* How it Works */
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Pricing Section */
    #tarifs .display-4 {
        font-size: 2.5rem;
    }

    .pricing-card .card-body {
        padding: 1.25rem !important;
    }

    .pricing-card .list-unstyled li {
        font-size: 0.9rem;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 3px 15px;
    }

    /* Testimonials */
    #temoignages .card-body {
        padding: 1rem !important;
    }

    #temoignages p {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq-button {
        font-size: 0.95rem;
        padding: 1rem 0;
    }

    .faq-content {
        font-size: 0.9rem;
    }

    /* CTA Section */
    .bg-primary.text-white .display-5 {
        font-size: 1.5rem;
    }

    .bg-primary.text-white .lead {
        font-size: 1rem;
    }

    .bg-primary.text-white .row.justify-content-center {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    footer .row > div {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    footer h5, footer h6 {
        font-size: 1rem;
    }

    /* General spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }

    section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet (577px - 991px) */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-section .display-4 {
        font-size: 2.25rem;
    }

    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
    }

    /* Mockup */
    .checklist-preview {
        transform: none !important;
    }

    .checklist-preview .checklist-item .fw-medium {
        font-size: 0.85rem;
    }

    .checklist-preview .checklist-item .btn-sm {
        font-size: 10px !important;
        padding: 0.3rem 0.6rem !important;
    }

    /* Pain Point */
    .problem-stat {
        font-size: 2.5rem !important;
    }

    /* Stats */
    .stat-item .display-5 {
        font-size: 2.25rem;
    }

    /* Pricing */
    #tarifs .display-4 {
        font-size: 3rem;
    }

    /* Step numbers */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* iPad specific (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section .row {
        align-items: center;
    }

    .checklist-preview .card-body {
        padding: 1rem !important;
    }

    .checklist-preview .checklist-item .d-flex.gap-2 {
        gap: 0.35rem !important;
    }

    /* Two-column grids */
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #pour-qui .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Navbar mobile */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav .btn {
        margin: 0.25rem 0 !important;
        display: inline-block;
    }
}

/* Print styles */
@media print {
    .sidebar, .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }
}
