/* =============================================
   SAM EMPIRE — PATCH CSS
   - Couleur vert clair à la place du bleu
   - Navbar centrée
   - Logo sans cadre
   - Pages séparées (padding-top pour navbar fixe)
   ============================================= */

/* ===== THÈME VERT CLAIR ===== */
:root {
    --primary-blue: #01AEB4 !important;
    --primary-blue-light: #15C5CB !important;
    --primary-blue-dark: #018F94 !important;
    --gradient-blue: linear-gradient(135deg, #01AEB4 0%, #15C5CB 50%, #018F94 100%) !important;
    --shadow-blue: 0 0 40px rgba(1, 174, 180, .15) !important;
}

/* ===== NAVBAR CENTRÉE ===== */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center !important;
    position: relative;
}
.nav-logo {
    position: absolute;
    left: 2rem;
}
.nav-links {
    margin: 0 auto;
    justify-content: center;
}
.nav-burger {
    position: absolute;
    right: 2rem;
}

/* ===== LOGO SANS CADRE ===== */
.nav-logo img {
    height: 60px;
    width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
}

/* ===== PAGES SÉPARÉES — padding pour navbar fixe ===== */
.page-section {
    padding-top: 120px !important;
    min-height: 100vh;
}
.page-section:first-child {
    padding-top: 120px !important;
}

/* ===== ARTICLES LINK STYLES ===== */
.actu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.actu-card-link:hover .actu-card {
    border-color: rgba(1, 174, 180, .3);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}
.actu-read-more {
    display: inline-block;
    margin-top: .8rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all .3s;
}
.actu-card-link:hover .actu-read-more {
    padding-left: 5px;
}

/* ===== GESTION PAGES ===== */
.page-gestion .navbar {
    background: rgba(10, 10, 15, .98) !important;
}

/* ===== HERO FIX — centrer avec padding ===== */
.hero {
    padding-top: 80px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
    .nav-logo {
        position: relative;
        left: 0;
    }
    .nav-container {
        justify-content: space-between !important;
    }
    .page-section {
        padding-top: 100px !important;
    }
}
.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.pm-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pm-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}
.pm-img.pm-img-tall {
    height: 380px;
}
.pm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .4s;
}
.pm-img:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}
.pm-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.pm-img:hover .pm-img-overlay {
    transform: translateY(0);
}
.pm-img-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    margin-bottom: .3rem;
}
.pm-img-title {
    display: block;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 900px) {
    .portfolio-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 550px) {
    .portfolio-masonry {
        grid-template-columns: 1fr;
    }
    .pm-img, .pm-img.pm-img-tall {
        height: 220px;
    }
}

/* ===== PARTENAIRES — LOGOS UNIFORMES SANS CADRE ===== */
.pm-logo {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pas de bordure, pas de fond, pas de carré */
}
.pm-logo img {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all .4s;
}
/* .pm-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
} */

/* Cacher les anciens .pm-item si encore présents */
.pm-item {
    display: none !important;
}