/* =========================================================
   GLOBAL
========================================================= */

section {
    width: 100%;
    background: url('../images/background-mwp.png');
    padding: 50px 20px;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}


/* =========================================================
   HERO REFERENCES
========================================================= */

.hero-ref {
    padding: 140px 20px 90px;
    text-align: center;
}

.hero-ref h1 {
    font-size: clamp(2.8em, 6vw, 5em);
    line-height: 1;
    color: #13212f;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-ref .subtitle {
    max-width: 920px;
    margin: 0 auto;
    font-size: 1.12em;
    line-height: 1.9;
    color: #4b5563;
}


/* =========================================================
   RUBAN NAVIGATION
========================================================= */

.explore-ribbon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 45px;
}

.explore-ribbon a {
    text-decoration: none;
    color: #111827;
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.92em;
    transition: 0.2s;
    backdrop-filter: blur(6px);
}

.explore-ribbon a:hover {
    transform: translateY(-2px);
    background: rgba(198,211,0,0.16);
}


/* =========================================================
   GROUPES
========================================================= */

.portfolio-group {
    padding-top: 20px;
}

.group-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.group-line {
    width: 70px;
    height: 2px;
    background: #c6d300;
}

.group-head h2 {
    font-size: clamp(1.9em, 3vw, 2.8em);
    color: #13212f;
    line-height: 1.1;
}


/* =========================================================
   GRID
========================================================= */

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* =========================================================
   CARDS
========================================================= */

.reference-card {
    background: rgba(255,255,255,0.58);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.3s;
    backdrop-filter: blur(5px);
    position: relative;
}

.reference-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}


/* =========================================================
   LARGE CARD
========================================================= */

.reference-card.large {
    grid-column: span 2;
}

.reference-card.large .thumb {
    height: 560px;
}


/* =========================================================
   IMAGE
========================================================= */

.reference-card .thumb {
    display: block;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #f3f4f6;
}

.reference-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    display: block;
}

.reference-card:hover img {
    transform: scale(1.04);
}


/* =========================================================
   INFOS
========================================================= */

.reference-card .infos {
    padding: 30px;
}


/* =========================================================
   BADGES
========================================================= */

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.badge,
.reference-hero .badges span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge.ville {
    background: rgba(0,0,0,0.05);
    color: #374151;
}

.badge.type {
    background: rgba(198,211,0,0.16);
    color: #111;
}

.badge.categorie {
    background: rgba(0,112,211,0.14);
    color: #111;
}


/* =========================================================
   TITRES
========================================================= */

.reference-card h3 {
    font-size: clamp(1.5em, 2vw, 2.2em);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.reference-card h3 a {
    color: #13212f;
    text-decoration: none;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.reference-card .desc {
    font-size: 1em;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 28px;
}


/* =========================================================
   CTA
========================================================= */

.ref-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    transition: 0.2s;
}

.ref-link .icon {
    transition: transform 0.2s;
}

.ref-link:hover .icon {
    transform: translateX(6px);
}


/* =========================================================
   PAGE DETAIL HERO
========================================================= */

.reference-hero {
    padding: 140px 20px 80px;
    text-align: center;
}

.reference-hero h1 {
    font-size: clamp(2.8em, 5vw, 4.8em);
    line-height: 1;
    color: #13212f;
    margin: 25px auto;
    max-width: 1000px;
    letter-spacing: -2px;
}

.reference-hero .subtitle {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.08em;
    line-height: 1.9;
    color: #4b5563;
}


/* =========================================================
   IMAGE DETAIL
========================================================= */

.reference-image {
    padding-top: 0;
}

.reference-image .mockup {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.08);
}

.reference-image img {
    width: 100%;
    display: block;
}


/* =========================================================
   CONTENT DETAIL
========================================================= */

.reference-content {
    padding: 90px 20px;
}

.reference-content .content {
    max-width: 950px;
    margin: 0 auto;
    text-align: left;
    color: #374151;
    font-size: 1.05em;
    line-height: 1.95;
}


/* =========================================================
   TYPOGRAPHIE LONG_DESC
========================================================= */

.reference-content h2 {
    font-size: clamp(1.8em, 3vw, 2.6em);
    line-height: 1.15;
    color: #13212f;
    margin-top: 70px;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.reference-content h3 {
    font-size: 1.5em;
    color: #13212f;
    margin-top: 50px;
    margin-bottom: 20px;
}

.reference-content p {
    margin-bottom: 28px;
}

.reference-content strong {
    color: #111827;
    font-weight: 700;
}

.reference-content a {
    color: #13212f;
    font-weight: 700;
}

.reference-content ul,
.reference-content ol {
    margin: 30px 0;
    padding-left: 25px;
}

.reference-content li {
    margin-bottom: 14px;
    line-height: 1.8;
}

.reference-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-left: 4px solid #c6d300;
    background: rgba(255,255,255,0.55);
    border-radius: 16px;
    font-style: italic;
}


/* =========================================================
   CTA SITE
========================================================= */

.reference-content .btn-site {
    margin-top: 40px;
}

.btn-site {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c6d300;
    color: #111;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(198,211,0,0.25);
}


/* =========================================================
   CTA FINAL
========================================================= */

.reference-mwp {
    text-align: center;
    padding: 110px 20px;
}

.reference-mwp h2 {
    font-size: clamp(2em, 4vw, 3.4em);
    line-height: 1.1;
    color: #13212f;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.reference-mwp p {
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.9;
    color: #4b5563;
    font-size: 1.05em;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #13212f;
    color: #fff;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(19,33,47,0.18);
}


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

@media(max-width:900px) {

    .references-grid {
        grid-template-columns: 1fr;
    }

    .reference-card.large {
        grid-column: span 1;
    }

    .reference-card.large .thumb,
    .reference-card .thumb {
        height: 320px;
    }

    .reference-card .infos {
        padding: 25px;
    }

    .reference-content {
        padding: 70px 20px;
    }

}

@media(max-width:600px) {

    section {
        padding: 40px 18px;
    }

    .hero-ref,
    .reference-hero {
        padding: 120px 20px 60px;
    }

    .reference-card.large .thumb,
    .reference-card .thumb {
        height: 240px;
    }

    .reference-card .infos {
        padding: 22px;
    }

    .reference-card .desc,
    .reference-content .content {
        line-height: 1.8;
    }

    .group-head {
        margin-bottom: 28px;
    }

    .group-line {
        width: 40px;
    }

    .btn-site,
    .btn-main {
        width: 100%;
    }

}