/* --------------------------------------------------
   PROJECT PAGES — shared stylesheet
   Palette héritée du portfolio principal
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --orange:    #ff5722;
  --orange-lt: #ff9800;
  --blue:      #4fc3f7;
  --green:     #8bc34a;
  --bg:        #f4f7f2;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --text-muted:#666;
  --radius:    12px;
  --shadow:    0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------
   NAV (identique au portfolio)
-------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.navbar .brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.navbar .brand:hover { color: var(--orange-lt); }
.navbar .back-link {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.navbar .back-link:hover { color: var(--blue); }

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.project-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,87,34,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.project-hero .hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.project-hero .tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.project-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}
.project-hero .subtitle {
  font-size: 1.1rem;
  color: #bbb;
  margin: 0 0 1.5rem;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-chips .chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ddd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.hero-chips .chip.accent { background: rgba(255,87,34,0.25); border-color: var(--orange); color: #ffb89a; }
.hero-chips .chip.blue   { background: rgba(79,195,247,0.2); border-color: var(--blue); color: #a8ddf5; }

/* --------------------------------------------------
   CONTENT AREA
-------------------------------------------------- */
.project-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* --------------------------------------------------
   SECTION TITLES
-------------------------------------------------- */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.card p { margin: 0 0 0.8rem; line-height: 1.7; font-family: 'Source Serif 4', serif; }
.card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------
   TECH PILLS
-------------------------------------------------- */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.tech-pill {
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.tech-pill:hover { background: var(--orange); color: #fff; }
.tech-pill.blue  { border-color: var(--blue); color: #0288d1; }
.tech-pill.blue:hover { background: var(--blue); color: #fff; }
.tech-pill.green { border-color: var(--green); color: #558b2f; }
.tech-pill.green:hover { background: var(--green); color: #fff; }

/* --------------------------------------------------
   FEATURE GRID
-------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card.blue  { border-left-color: var(--blue); }
.feature-card.green { border-left-color: var(--green); }
.feature-card h4 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 700; }
.feature-card p  { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* --------------------------------------------------
   TEAM TABLE
-------------------------------------------------- */
.team-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-table th {
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}
.team-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.team-table tr:last-child td { border-bottom: none; }
.team-table tr:nth-child(even) td { background: #f9f9f9; }

/* --------------------------------------------------
   CALLOUT
-------------------------------------------------- */
.callout {
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.callout.info    { background: #e3f2fd; border-left: 4px solid var(--blue); }
.callout.warn    { background: #fff3e0; border-left: 4px solid var(--orange-lt); }
.callout.success { background: #f1f8e9; border-left: 4px solid var(--green); }
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.05rem; }
.callout p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}
footer a { color: #fff; }

/* --------------------------------------------------
   DARK MODE
-------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1e1e1e;
    --surface: #2a2a2a;
    --text:    #f0f0f0;
    --text-muted: #aaa;
    --shadow:  0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 32px rgba(0,0,0,0.45);
  }
  .card p { color: #ddd; }
  .team-table tr:nth-child(even) td { background: #2f2f2f; }
  .team-table td { border-bottom-color: #333; color: #ddd; }
  .feature-card p { color: #bbb; }
  .callout.info    { background: #1a2e3b; }
  .callout.warn    { background: #2e2318; }
  .callout.success { background: #1e2a14; }
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 600px) {
  .project-hero { padding: 2.5rem 1.2rem 2rem; }
  .project-content { padding: 1.5rem 1.2rem 3rem; }
}

/* --------------------------------------------------
   CAROUSEL
-------------------------------------------------- */
#project-carousel {
  margin: 1.5rem 0 2rem;
}
.carousel-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carousel-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease;
  user-select: none;
}
.carousel-img.carousel-fade {
  opacity: 0;
}
.carousel-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.carousel-btn:hover { background: rgba(255,87,34,0.4); }
.carousel-btn:disabled { opacity: 0.2; cursor: default; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0 0.2rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}
.carousel-counter {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-bottom: 0.4rem;
}