/* ============================================================
   project.css — Page Projets + Détail projet
   ============================================================ */

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.proj-hero {
    background: linear-gradient(155deg, #0B1F3A 0%, #1B3A6B 55%, #1A6B5A 100%);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.proj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 60%, rgba(26,107,90,.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 40%, rgba(245,166,35,.06) 0%, transparent 50%);
    pointer-events: none;
}

.proj-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.proj-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,107,90,.25);
    border: 1px solid rgba(26,107,90,.5);
    color: #4ECDC4;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 20px;
}

.proj-hero-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.proj-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.75;
    margin-bottom: 36px;
}

.proj-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.proj-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.proj-hero-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #F5A623;
    line-height: 1;
}

.proj-hero-stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.proj-hero-stat-sep {
    width: 1px; height: 36px;
    background: rgba(255,255,255,.15);
}

/* ══════════════════════════════════════════════
   FILTRES STATUT
══════════════════════════════════════════════ */

.proj-filters-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(27,58,107,.08);
    padding: 14px 0;
    position: sticky;
    top: 107px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(27,58,107,.06);
}

.proj-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.proj-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    background: #F0F4F8;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
}

.proj-filter-btn:hover {
    border-color: #1B5EA7;
    color: #1B5EA7;
    background: #EBF4FF;
}

.proj-filter-btn.is-active {
    background: #1B3A6B;
    color: #ffffff;
    border-color: #1B3A6B;
}

.proj-filter-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   BADGES STATUT & RÉGION
══════════════════════════════════════════════ */

.proj-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.proj-status-dot {
    font-size: 8px;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .4; }
}

.proj-region-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.15);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════
   ÉTAT VIDE
══════════════════════════════════════════════ */

.proj-empty {
    text-align: center;
    padding: 80px 24px;
    color: #444444;
}

.proj-empty i { font-size: 56px; color: #D0DCEA; display: block; margin-bottom: 20px; }
.proj-empty h2 { font-size: 1.4rem; color: #1B3A6B; margin-bottom: 10px; }
.proj-empty p { font-size: 14px; margin: 0; }

/* ══════════════════════════════════════════════
   PROJET FEATURED
══════════════════════════════════════════════ */

.proj-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 32px rgba(27,58,107,.08);
    border: 1px solid rgba(27,58,107,.06);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.proj-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(27,58,107,.12);
}

.proj-featured-img {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.proj-featured-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 400ms ease;
}

.proj-featured:hover .proj-featured-img img { transform: scale(1.04); }

.proj-featured-badges {
    position: absolute;
    top: 20px; left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.proj-featured-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proj-featured-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: 16px;
    line-height: 1.3;
}

.proj-featured-title a {
    color: #1B3A6B;
    text-decoration: none;
    transition: color 200ms ease;
}

.proj-featured-title a:hover { color: #1A6B5A; }

.proj-featured-excerpt {
    font-size: 14px;
    color: #111;
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

.proj-featured-dates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 12px;
    color: #444;
    font-weight: 600;
}

.proj-featured-dates span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.proj-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1A6B5A;
    text-decoration: none;
    transition: gap 200ms ease;
    align-self: flex-start;
}

.proj-featured-link:hover { gap: 12px; }

/* ══════════════════════════════════════════════
   GRILLE PROJETS
══════════════════════════════════════════════ */

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proj-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(27,58,107,.07);
    transition: all 250ms ease;
    display: flex;
    flex-direction: column;
}

.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(27,58,107,.12);
}

.proj-card-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
}

.proj-card-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 400ms ease;
}

.proj-card:hover .proj-card-img { transform: scale(1.05); }

.proj-card-status {
    position: absolute;
    top: 12px; left: 12px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.proj-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.proj-card-region {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #1A6B5A;
    margin-bottom: 8px;
}

.proj-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1B3A6B;
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.proj-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.proj-card-title a:hover { color: #1A6B5A; }

.proj-card-excerpt {
    font-size: 13px;
    color: #111;
    line-height: 1.65;
    margin-bottom: 14px;
}

.proj-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(27,58,107,.06);
}

.proj-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #444;
    font-weight: 600;
}

.proj-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #1A6B5A;
    text-decoration: none;
    transition: gap 200ms ease;
}

.proj-card-link:hover { gap: 9px; }

/* ── Placeholders ─────────────────────────── */

.proj-img-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, #E8F5F2, #C8E6E0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-img-placeholder--lg {
    aspect-ratio: unset;
    height: 100%;
    min-height: 360px;
}

.proj-img-placeholder i { font-size: 48px; color: #1A6B5A; opacity: .3; }

/* ── Pagination ───────────────────────────── */

.proj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.proj-page-btn {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #1B3A6B;
    background: #ffffff;
    border: 1.5px solid #D0DCEA;
    text-decoration: none;
    transition: all 200ms ease;
}

.proj-page-btn:hover { border-color: #1A6B5A; color: #1A6B5A; background: #E8F5F2; }
.proj-page-btn.is-active { background: #1A6B5A; color: #ffffff; border-color: #1A6B5A; }

/* ── Fade-in ──────────────────────────────── */

.proj-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 450ms ease, transform 450ms ease;
}

.proj-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   DÉTAIL PROJET
══════════════════════════════════════════════ */

.proj-detail { background: #ffffff; }

.proj-detail-header {
    background: linear-gradient(160deg, #0B1F3A 0%, #1B3A6B 60%, #1A6B5A 100%);
    padding: 60px 0 0;
}

/* Fil d'Ariane */
.proj-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.proj-breadcrumb a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color 200ms ease;
}

.proj-breadcrumb a:hover { color: #ffffff; }
.proj-breadcrumb i { color: rgba(255,255,255,.4); font-size: 11px; }
.proj-breadcrumb span { color: rgba(255,255,255,.9); font-weight: 600; }

/* Badges */
.proj-detail-badges {
    max-width: 1152px;
    margin: 0 auto 16px;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Titre */
.proj-detail-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ffffff;
    line-height: 1.2;
    max-width: 1152px;
    margin: 0 auto 20px;
    padding: 0 24px;
}

/* Meta dates header */
.proj-detail-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1152px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.proj-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proj-detail-meta-item > i {
    font-size: 20px;
    color: #4ECDC4;
    flex-shrink: 0;
}

.proj-detail-meta-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.proj-detail-meta-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

/* Cover */
.proj-detail-cover {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.proj-detail-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
}

.proj-detail-cover-placeholder {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
    height: 320px;
    background: rgba(255,255,255,.05);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-detail-cover-placeholder i { font-size: 72px; color: rgba(255,255,255,.15); }

/* Layout + sidebar */
.proj-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
    align-items: start;
}

.proj-detail-lead {
    font-size: 1.05rem;
    color: #1B3A6B;
    line-height: 1.8;
    font-weight: 500;
    border-left: 4px solid #1A6B5A;
    padding: 16px 20px;
    background: #E8F5F2;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
}

.proj-detail-body {
    font-size: 15px;
    color: #333;
    line-height: 1.85;
    margin-bottom: 40px;
}

.proj-detail-body p { margin-bottom: 1.2em; }

.proj-detail-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(27,58,107,.08);
}

.proj-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1A6B5A;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #D0DCEA;
    transition: all 200ms ease;
}

.proj-nav-back:hover { background: #E8F5F2; border-color: #1A6B5A; gap: 12px; }

/* ── Sidebar ──────────────────────────────── */

.proj-detail-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.proj-sidebar-card {
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid rgba(27,58,107,.08);
    padding: 22px;
}

.proj-sidebar-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1rem;
    color: #1B3A6B;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1A6B5A;
    display: inline-block;
}

/* DL infos */
.proj-sidebar-dl {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj-sidebar-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proj-sidebar-row dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    min-width: 90px;
    flex-shrink: 0;
}

.proj-sidebar-row dt i { font-size: 13px; color: #1A6B5A; }

.proj-sidebar-row dd {
    font-size: 13px;
    font-weight: 600;
    color: #1B3A6B;
    margin: 0;
}

.proj-status-inline { font-weight: 800; }

/* Projets similaires */
.proj-similar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj-similar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.proj-similar-item:hover { opacity: .8; }

.proj-similar-img {
    width: 72px; height: 54px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.proj-similar-img img { width: 100%; height: 100%; object-fit: cover; }

.proj-similar-ph {
    width: 100%; height: 100%;
    background: #D0DCEA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-similar-ph i { font-size: 18px; color: #8AB4D9; }

.proj-similar-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }

.proj-similar-status { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }

.proj-similar-title { font-size: 12px; font-weight: 700; color: #1B3A6B; margin: 0; line-height: 1.4; }

/* CTA sidebar */
.proj-sidebar-cta {
    background: #1B3A6B;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.proj-sidebar-cta-icon { font-size: 30px; color: #F5A623; display: block; margin-bottom: 10px; }
.proj-sidebar-cta-title { font-family: 'Montserrat', Georgia, serif; font-size: 1rem; color: #ffffff; margin-bottom: 8px; }
.proj-sidebar-cta-text { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 14px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-detail-layout { grid-template-columns: 1fr; }
    .proj-detail-sidebar { position: static; }
}

@media (max-width: 768px) {
    .proj-featured { grid-template-columns: 1fr; }
    .proj-featured-img { min-height: 240px; }
    .proj-featured-body { padding: 24px; }
}

@media (max-width: 575px) {
    .proj-grid { grid-template-columns: 1fr; }
    .proj-detail-nav { flex-direction: column; align-items: flex-start; }
}
