:root {
    --primary-color: #D63384;
    --primary-hover: #B02A5A; 
    --background-color: #FEF7F7; 
    --text-color: #2D1B1F; 
    --border-color: #D63384;
    --success-color: #B02A5A;
    --block-bg: #FFF; 
    --shadow: 0 4px 6px -1px rgb(214 51 132 / 12%), 0 2px 4px -2px rgb(214 51 132 / 12%);
    --gradient-start: #D63384;
    --gradient-end: #B02A5A;
    --peach-accent: #B02A5A;
    --coral-light: #F8D7DA;
    --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(214 51 132 / 8%) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgb(176 42 90 / 8%) 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%);
}

.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, var(--primary-color), var(--gradient-end));
    color: #FFF;
    text-shadow: 0 1px 2px rgb(0 0 0 / 15%);
    box-shadow: 0 2px 4px rgb(247 168 184 / 25%);
    transition: all 0.3s ease;
}

.demo-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgb(247 168 184 / 35%);
}

/* Styles de badges spécialisés par type */
.demo-badge.badge-frontend {
    background: linear-gradient(135deg, var(--primary-color), var(--peach-accent));
}

.demo-badge.badge-backend {
    background: linear-gradient(135deg, var(--gradient-end), var(--coral-light));
}

.demo-badge.badge-dossier {
    background: linear-gradient(135deg, var(--success-color), var(--primary-hover));
    font-weight: 800;
}

.demo-badge.badge-presentation {
    background: linear-gradient(135deg, var(--peach-accent), var(--coral-light));
}

.demo-badge.badge-entretien {
    background: linear-gradient(135deg, var(--primary-hover), var(--success-color));
}

.demo-badge.badge-questionnaire {
    background: linear-gradient(135deg, var(--coral-light), var(--peach-accent));
}

.demo-badge.badge-obligatoire {
    background: linear-gradient(135deg, #E891A0, #F7A8B8);
    animation: pulse-subtle 2s infinite;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.demo-badge.badge-optionnel {
    background: linear-gradient(135deg, var(--peach-accent), var(--coral-light));
    opacity: 0.85;
    font-style: italic;
}

@keyframes pulse-subtle {
    0%, 100% { 
        box-shadow: 0 2px 4px rgb(247 168 184 / 25%);
    }
    50% { 
        box-shadow: 0 4px 8px rgb(247 168 184 / 40%);
    }
}

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

.help-text {
    display: block;
    font-size: 0.9rem;
    color: #8B4A5C;
    background: linear-gradient(135deg, var(--background-color), var(--coral-light));
    padding: 8px 12px;
    margin: 8px 0 12px 0;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-style: italic;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(247, 168, 184, 0.1);
}


.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(214 51 132 / 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(214 51 132 / 3%);
}

.checklist label:hover {
            background-color: rgb(214 51 132 / 6%);
    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(214 51 132 / 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(214 51 132 / 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(214 51 132 / 40%);
}

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

.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: #B02A5A;
        --text-color: #000;
        --border-color: #B02A5A;
    }
}

.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: var(--coral-light);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    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: var(--success-color);
    color: #fff;
}

.reset-btn {
    background-color: var(--peach-accent);
    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: var(--primary-hover);
}

.reset-btn:hover {
    background-color: var(--coral-light);
}

main {
    padding-top: 20px;
}

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

.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 var(--border-color);
    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(214 51 132 / 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(214 51 132 / 20%);
}

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

.clear-search-btn:hover {
    background: var(--coral-light);
    color: #8B4A5C;
}

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

.checklist li.search-highlight {
    background: linear-gradient(90deg, var(--background-color), var(--background-color));
    border-left: 4px solid var(--border-color);
    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: var(--background-color);
    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: var(--border-color);
    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;
}

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

    .progress-container {
        padding: 10px;
    }

    .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) {
  .checklist li {
    margin-bottom: 0.7rem;
    font-size: 0.98em;
  }

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

@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;
  }
}

/* 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;
}

/* Responsive pour le panneau d'information */
@media (width <= 768px) {
  .info-panel {
    padding: 16px;
    margin: 16px 0;
  }
  
  .info-content h3 {
    font-size: 16px;
  }
  
  .info-list li {
    font-size: 13px;
    padding: 6px 0;
  }
  
  .github-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}

