@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background-color: #F1F1F1;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

/* =====================
   LOGO
===================== */

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    width: 60px;
    height: 60px;
    text-decoration: none;
}

.logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.logo .logo-default {
    opacity: 0;
}

.logo .logo-inverted {
    opacity: 1;
}

/* =====================
   HEADER
===================== */

.page-header {
    background: #0e0e0e;
    color: #fff;
    padding: 48px 60px 56px 100px;
    position: relative;
}

.retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    margin-bottom: 40px;
}

.retour:hover {
    color: #fff;
}

.retour i {
    transition: transform 0.2s ease;
}

.retour:hover i {
    transform: translateX(-3px);
}

.header-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #005AD8;
    margin: 0 0 12px;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -2px;
    line-height: 1;
    color: #fff;
}

.header-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    max-width: 480px;
    line-height: 1.7;
}

/* =====================
   GRILLE
===================== */

.projets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 40px 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =====================
   CARTE
===================== */

.projet {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #0e0e0e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.projet:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 90, 216, 0.13);
}

/* === IMAGE === */

.projet .image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #e4e4e4;
}

.projet .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    will-change: transform;
    display: block;
}

.projet:hover .image img {
    transform: scale(1.05);
}

/* Badge date */
.projet .date {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #005AD8;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(0, 90, 216, 0.18);
}

/* === CONTENU === */

.projet .containInfo {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.projet .containInfo h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0e0e0e;
    line-height: 1.3;
}

.projet .containInfo > p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    line-height: 1.65;
    flex: 1;
}

/* Footer de carte */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.duree {
    font-size: 0.75rem;
    font-weight: 500;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.voir {
    font-size: 0.78rem;
    font-weight: 600;
    color: #005AD8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.projet:hover .voir {
    gap: 10px;
}

/* =====================
   PAGE PROJET
===================== */

.page-header {
    display: flex;
    flex-direction: column;
}

.page-header .cta-projet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #005AD8;
    padding: 10px 20px;
    border-radius: 24px;
    transition: background 0.2s ease, gap 0.2s ease;
}

.page-header .cta-projet:hover {
    background: #0048b3;
    gap: 12px;
}

.projet-cover {
    width: 100%;
    max-width: 580px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.projet-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 60px 100px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.projet-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.projet-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #005AD8;
}

.projet-section p {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

.projet-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 32px;
}

.points-forts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.points-forts li {
    font-size: 0.83rem;
    color: #444;
    line-height: 1.6;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {
    .page-header {
        padding: 32px 24px 40px 90px;
    }

    .projets {
        grid-template-columns: 1fr;
        padding: 24px 20px 60px;
        gap: 16px;
    }

    .projet-cover {
        max-width: 100%;
        height: 200px;
    }

    .projet-body {
        grid-template-columns: 1fr;
        padding: 40px 24px 60px;
        gap: 48px;
    }

    .projet-aside {
        position: static;
    }
}
