/* Project Simple - Design épuré et cohérent */
:root {
  --bg: #0a0a0b;
  --bg1: #111113;
  --bg2: #18181c;
  --bg3: #1e1e24;
  --bdr: rgba(255, 255, 255, 0.08);
  --txt: #f9f8f5;
  --txt2: #b8b5ad;
  --txt3: #88868e;
  --ac: #cc785c;
  --acl: #e8956e;
  --acd: rgba(204, 120, 92, 0.14);
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header simple */
.project-header-simple {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
}

.project-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--txt2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.project-back:hover {
  color: var(--txt);
}

.project-back i {
  font-size: 0.85rem;
}

.project-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  margin-left: auto;
}

/* Container principal - même marges que store.html */
.project-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Section vignette/image - EN PREMIER sur mobile */
.project-hero-simple {
  margin-bottom: 2rem;
}

.project-image-main {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
  position: relative;
  border: 2px solid var(--bdr);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Sur PC: vignette petite en haut à gauche */
@media (min-width: 768px) {
  .project-hero-simple {
    margin-bottom: 1.5rem;
  }

  .project-image-main {
    width: 280px;
    aspect-ratio: 16/10;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--bdr);
  }
}

.project-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image-main:hover img {
  transform: scale(1.02);
}

.project-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--ok);
}

.project-status-badge.danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.project-status-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warn);
}

/* Info principale */
.project-info-simple {
  margin-bottom: 2rem;
}

.project-title-simple {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-subtitle-simple {
  font-size: 1.05rem;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag-simple {
  padding: 0.4rem 0.75rem;
  background: var(--bg2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--txt2);
  font-weight: 500;
}

/* Stats simples */
.project-stats-simple {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 500px) {
  .project-stats-simple {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-stat-item {
  background: var(--bg2);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.project-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ac);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.project-stat-label {
  font-size: 0.75rem;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Sections de contenu */
.project-section {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.project-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-section-title i {
  color: var(--ac);
  font-size: 1rem;
}

.project-section-content {
  color: var(--txt2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-section-content p {
  margin-bottom: 0.75rem;
}

.project-section-content p:last-child {
  margin-bottom: 0;
}

/* Toggle À propos / Problèmes résolus */
.project-about-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--bg3);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  width: fit-content;
}

.project-about-toggle button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--txt3);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: inherit;
}

.project-about-toggle button.active {
  background: var(--ac);
  color: white;
}

.project-about-content,
.project-problems-content {
  display: none;
}

.project-about-content.active,
.project-problems-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.project-problems-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.project-problems-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--txt2);
  padding: 0.75rem;
  background: var(--bg3);
  border-radius: var(--radius-md);
}

.project-problems-list li i {
  color: var(--ac);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.project-highlight-box {
  background: var(--acd);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.project-highlight-box p {
  margin: 0;
  color: var(--txt);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Liste de fonctionnalités */
.project-features-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.project-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--txt2);
}

.project-features-list li i {
  color: var(--ok);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Alertes */
.project-alert-simple {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  margin-top: 1rem;
}

.project-alert-simple.danger {
  background: rgba(239, 68, 68, 0.1);
}

.project-alert-simple i {
  color: var(--warn);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.project-alert-simple.danger i {
  color: var(--danger);
}

.project-alert-simple span {
  font-size: 0.9rem;
  color: var(--txt2);
}

/* Actions */
.project-actions-section {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.project-actions-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--txt);
}

.project-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-btn-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.project-btn-simple.primary {
  background: var(--ac);
  color: white;
}

.project-btn-simple.primary:hover {
  background: var(--acl);
  transform: translateY(-1px);
}

.project-btn-simple.secondary {
  background: var(--bg3);
  color: var(--txt);
}

.project-btn-simple.secondary:hover {
  background: var(--bdr);
}

.project-btn-simple:disabled,
.project-btn-simple.disabled {
  background: var(--bg3);
  color: var(--txt3);
  cursor: not-allowed;
}

/* Info rapide */
.project-quick-info {
  display: grid;
  gap: 0.75rem;
}

.project-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--txt2);
}

.project-info-item i {
  color: var(--ac);
  width: 1.25rem;
  text-align: center;
}

/* ===========================
   THEME CLAIR SUPPORT
   =========================== */
body.theme-light .project-container {
  background: #f5f5f5;
}

body.theme-light .project-section,
body.theme-light .project-actions-section,
body.theme-light .project-stat-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .project-tag-simple {
  background: #f0f0f0;
  color: #666;
}

body.theme-light .project-title-simple,
body.theme-light .project-section-title,
body.theme-light .project-actions-title {
  color: #1a1a1a;
}

body.theme-light .project-subtitle-simple,
body.theme-light .project-section-content,
body.theme-light .project-features-list li,
body.theme-light .project-info-item {
  color: #555;
}

body.theme-light .project-header-simple {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .project-back,
body.theme-light .project-header-title {
  color: #333;
}

body.theme-light .project-image-main {
  border: 2px solid var(--ac);
  box-shadow: 0 4px 20px rgba(204, 120, 92, 0.15);
}

body.theme-light .project-about-toggle {
  background: #e8e8e8;
}

body.theme-light .project-about-toggle button {
  color: #666;
}

body.theme-light .project-problems-list li {
  background: #f0f0f0;
}

body.theme-light .project-highlight-box {
  background: rgba(204, 120, 92, 0.1);
  border-radius: var(--radius-md);
}

/* Responsive PC */
@media (min-width: 768px) {
  .project-container {
    padding: 2rem 1rem 4rem;
  }

  body.theme-light .project-image-main {
    border: 2px solid var(--ac);
    box-shadow: 0 4px 20px rgba(204, 120, 92, 0.15);
  }

  /* Clear float after info section */
  .project-info-simple {
    overflow: hidden;
  }

  .project-stats-simple {
    clear: both;
  }

  .project-two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    clear: both;
  }

  .project-main-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .project-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .project-section,
  .project-actions-section {
    margin-bottom: 0;
  }
}

/* Animation douce */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-hero-simple,
.project-info-simple,
.project-stats-simple,
.project-section,
.project-actions-section {
  animation: fadeInUp 0.4s ease-out forwards;
}

.project-info-simple { animation-delay: 0.05s; }
.project-stats-simple { animation-delay: 0.1s; }
.project-section:nth-child(1) { animation-delay: 0.15s; }
.project-section:nth-child(2) { animation-delay: 0.2s; }

/* ===========================
   MODAL (pour Mise à jour)
   =========================== */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.download-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.download-modal-content {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.download-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg3);
    color: var(--txt2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.download-modal-close:hover {
    background: var(--ac);
    color: #fff;
}

.download-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--acd);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.download-modal-icon i {
    font-size: 1.75rem;
    color: var(--ac);
}

.download-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--txt);
}
