:root {
    --primary-color: #7C3AED;
    --primary-hover: #6D28D9; 
    --background-color: #FDF4FF; 
    --text-color: #1F2937; 
    --border-color: #E9D5FF;
    --success-color: #860b70;
    --block-bg: #FFF; 
    --shadow: 0 4px 6px -1px rgb(124 58 237 / 10%), 0 2px 4px -2px rgb(124 58 237 / 10%);
    --gradient-start: #7C3AED;
    --gradient-end: #C026D3;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(at 0% 0%, rgb(124 58 237 / 10%) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgb(192 38 211 / 10%) 0, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgb(255 255 255 / 10%) 25%, transparent 25%),
                linear-gradient(-45deg, rgb(255 255 255 / 10%) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(255 255 255 / 95%);
    letter-spacing: -0.01em;
}

.description {
    color: rgb(255 255 255 / 90%);
    font-size: 1.125rem;
    max-width: 800px;
}

.description-bold {
    color: rgb(255 255 255 / 95%);
    font-weight: bold;
    max-width: 800px;
}

.project-name-container {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 20px;
    margin: 0 auto 20px;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.project-name-label {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}

.project-name-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid rgb(255 255 255 / 30%);
    border-radius: 8px;
    background: rgb(255 255 255 / 95%);
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.project-name-input::placeholder {
    color: #666;
    font-weight: 400;
}

.project-name-input:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 30%), 0 4px 12px rgb(0 0 0 / 15%);
    transform: translateY(-1px);
}

.project-name-input:hover {
    border-color: rgb(255 255 255 / 60%);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

@media (width <= 768px) {
    .project-name-container {
        margin: 10px 15px 15px;
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .project-name-label {
        text-align: center;
        font-size: 1em;
    }
    
    .project-name-input {
        min-width: auto;
        width: 100%;
    }
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent,
        rgb(255 255 255 / 30%),
        rgb(255 255 255 / 50%),
        rgb(255 255 255 / 30%),
        transparent
    );
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: rgb(255 255 255 / 80%);
    border-radius: 50%;
    box-shadow: 
        -20px 0 0 rgb(255 255 255 / 80%),
        20px 0 0 rgb(255 255 255 / 80%);
}

.block {
    background-color: var(--block-bg);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgb(124 58 237 / 20%);
}

.block:hover::before {
    opacity: 1;
}

.block-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 1.5rem;
    letter-spacing: -0.01em;
}

.block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section {
    margin-bottom: 2.5rem;
}

.section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.checklist {
    list-style: none;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background-color: rgb(124 58 237 / 2%);
}

.checklist label:hover {
    background-color: rgb(124 58 237 / 5%);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.checklist input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(124 58 237 / 30%);
    transform: scale(1.1);
}

.checklist input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgb(124 58 237 / 20%);
}

.checklist input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checklist input[type="checkbox"]:checked:focus {
    box-shadow: 0 0 0 3px rgb(124 58 237 / 40%);
}

.checklist input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: 0.75rem;
    background: linear-gradient(135deg, #5B21B6, #9D174D);
    color: #FFF;
    text-shadow: 0 1px 2px rgb(0 0 0 / 10%);
    box-shadow: 0 2px 4px rgb(91 33 182 / 20%);
    transition: all 0.3s ease;
}

.demo-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgb(91 33 182 / 30%);
}

.checklist span:not(.demo-badge) {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text-color);
    display: inline-block;
    margin-left: 8px;
}

.footer {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgb(255 255 255 / 10%) 25%, transparent 25%),
                linear-gradient(-45deg, rgb(255 255 255 / 10%) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

/* Menu de navigation dans le footer */
.footer-nav {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 20%);
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    background: rgb(255 255 255 / 20%);
    border-color: rgb(255 255 255 / 30%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.nav-menu a.active {
    background: rgb(255 255 255 / 25%);
    border-color: rgb(255 255 255 / 40%);
}

.footer-content {
    position: relative;
    z-index: 1;
}

@media (width <= 768px) {
    .nav-menu {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (width <= 768px) {
    .header h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .block {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .block-title {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.25rem;
    }

    .checklist label {
        padding: 0.75rem;
    }

    .checklist span {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --primary-color: #5B21B6;
        --text-color: #000;
        --border-color: #000;
    }
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto 2rem;
    text-align: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--background-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-color: transparent;
}

.checklist li {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.checklist li.hidden {
    display: none;
}

.progress-sticky {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    margin: 0 auto 20px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 1.5rem;
}

.progress-container {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: rgb(175 76 149);
    transition: width 0.3s ease;
    border-radius: 12px;
}

#progress-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.export-import-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.export-btn, .import-btn, .reset-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.export-btn {
    background-color: rgb(175 76 149);
    color: #fff;
}

.reset-btn {
    background-color: #8836f4;
    color: #fff;
}


.export-btn,
.reset-btn {
    padding: 16px 32px;
    font-size: 1.15em;
    min-width: 180px;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.export-btn:hover {
    background-color: #8836f4;
}

.reset-btn:hover {
    background-color: rgb(175 76 149);
}

main {
    padding-top: 20px;
}

.version-tag {
    display: block;
    text-align: right;
    color: #FFF;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.demo-progress {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.demo-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.demo-badge-progress {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e28ef1;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.notes-container {
    margin-top: 8px;
    margin-left: 30px;
}


.notes-content {
    display: none;
    margin-top: 8px;
}

.notes-content.active {
    display: block;
}

.notes-content textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.9em;
    resize: vertical;
}

.notes-content textarea:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 2px rgb(99 102 241 / 20%);
}

.search-container {
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 20%);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.checklist li.search-hidden {
    display: none;
}

.checklist li.search-highlight {
    background: linear-gradient(90deg, #FDF4FF,  #FDF4FF);
    border-left: 4px solid #FDF4FF;
    padding-left: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Styles pour les graphiques */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.chart-item {
    text-align: center;
}

.chart-item h4 {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #333;
    font-weight: 600;
}

.chart-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.5s ease;
    border-radius: 6px;
}

.chart-text {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Panneau d'information sur le stockage des données */
.info-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #d1e7ff;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
  }
  
  .info-content h3 {
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgb(0 0 0 / 5%);
  }
  
  .info-list li:last-child {
    border-bottom: none;
  }
  
  .info-list li strong {
    color: #1e293b;
    font-weight: 600;
  }

  /* Lien GitHub dans le footer */
.github-link-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    text-align: center;
  }
  
  .github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .github-link:hover {
    color: #fff;
    background: rgb(255 255 255 / 10%);
    transform: translateY(-1px);
  }
  
  .github-icon {
    width: 20px;
    height: 20px;
    fill: currentcolor;
  }

@media (width <= 768px) {
    .progress-sticky {
        max-width: 100%;
        padding: 8px;
        border-radius: 0;
        box-shadow: none;
    }

    .progress-container {
        padding: 10px;
    }

    .demo-progress {
        flex-direction: column;
        gap: 6px;
        padding: 0;
    }

    .demo-progress-item {
        padding: 0;
        font-size: 0.95em;
    }

    .charts-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }
}

@media (width <= 768px) {
  .container {
    padding: 0 5px;
    max-width: 100vw;
  }

  main.container {
    padding-top: 10px;
  }
}

@media (width <= 768px) {
  .filters {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.95em;
  }
}

@media (width <= 768px) {
  .checklist li {
    margin-bottom: 0.7rem;
    font-size: 0.98em;
  }

  .notes-container {
    margin-left: 0;
  }
}

@media (width <= 768px) {
  .demo-progress {
    flex-direction: column;
    gap: 6px;
    padding: 0;
    align-items: flex-start;
  }

  .demo-progress-item {
    width: 100%;
    padding: 0;
    font-size: 0.98em;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }

  .demo-badge-progress {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (width <= 768px) {
  .checklist li {
    flex-direction: column;
    align-items: stretch;
  }

  .checklist label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .notes-container,
  .checklist label textarea,
  .checklist label input[type="text"] {
    width: 100%;
    margin-top: 8px;
    min-width: 0;
    box-sizing: border-box;
  }
}

