/* ── shared-project.css ── Sellami Siham Portfolio ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --navy: #0b1120;
    --navy-mid: #131d32;
    --teal: #00c9b1;
    --teal-dim: rgba(0,201,177,0.1);
    --white: #f0f4ff;
    --muted: #7a90b8;
    --card-bg: #111827;
    --border: rgba(0,201,177,0.18);
    --green: #214531;
    --transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.7;
}

/* NAV */
header {
    background: rgba(11,17,32,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%; top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.logo span { color: var(--teal); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
}

.back-btn:hover { color: var(--teal); border-color: var(--teal); }

/* HERO */
.project-hero {
    padding: 9rem 6% 5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(11,17,32,0.75) 0%, rgba(11,17,32,0.92) 100%);
}

.project-hero .inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-dim);
    border: 1px solid var(--border);
    color: var(--teal);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.project-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-hero p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto; margin-right: auto;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-size: 0.83rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-pill i { color: var(--teal); }
.meta-pill a { color: var(--teal); text-decoration: none; }
.meta-pill a:hover { text-decoration: underline; }

/* CONTENT */
.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 6%;
}

/* OVERVIEW */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.section-label {
    display: block;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.overview-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.overview-text p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

.tech-stack { margin-top: 1.8rem; }

.tech-stack h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tech-tag {
    background: var(--teal-dim);
    color: var(--teal);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.project-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-image img { width: 100%; height: 350px; object-fit: cover; display: block; }

/* DIVIDER */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4rem 0;
}

/* SECTION HEADING */
.content-section { margin: 5rem 0; }

.content-section > h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px; height: 48px;
    background: var(--teal-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-card p { color: var(--muted); font-size: 0.88rem; }

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item:hover { transform: translateY(-4px); border-color: var(--teal); }

.gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; }

/* IMPACT STATS */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
}

.stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label { color: var(--muted); font-size: 0.9rem; }

/* IMPL */
.impl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.impl-block h3 {
    color: var(--teal);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.impl-list { list-style: none; }

.impl-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.impl-list li:last-child { border-bottom: none; }
.impl-list li i { color: var(--teal); margin-top: 3px; flex-shrink: 0; }

/* WORKFLOW (demandeachat) */
.workflow-steps {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-right: none;
    position: relative;
}

.step:first-child { border-radius: 12px 0 0 12px; }
.step:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid var(--border); }

.step::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    z-index: 1;
    background: var(--navy);
    padding: 2px;
    font-size: 0.8rem;
}

.step:last-child::after { display: none; }

.step-number {
    width: 36px; height: 36px;
    background: var(--teal);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .overview-grid { grid-template-columns: 1fr; }
    .project-image { order: -1; }
    .project-image img { height: 260px; }
}

@media (max-width: 600px) {
    .project-hero h1 { font-size: 2rem; }
    .project-meta { flex-direction: column; align-items: center; }
    .workflow-steps { flex-direction: column; }
    .step { border-right: 1px solid var(--border); border-bottom: none; border-radius: 0; }
    .step:first-child { border-radius: 12px 12px 0 0; }
    .step:last-child { border-radius: 0 0 12px 12px; border-bottom: 1px solid var(--border); }
    .step::after { display: none; }
}
