/* ============================================================
   portfolio.css — styles propres à la page « Réalisations »
   Chargé uniquement par portfolio.php. La base, la barre de
   navigation, le pied de page et le bouton WhatsApp viennent
   de msm.css.
   ============================================================ */

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

.page-hero{
    min-height:60vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
    padding-top:160px;
    padding-bottom:60px;
}

.page-hero::before{
    content:'';
    position:absolute;
    width:600px;
    height:600px;
    background:#2563eb;
    filter:blur(250px);
    opacity:.15;
    top:-200px;
    right:-200px;
}

.page-hero .container{
    position:relative;
    z-index:1;
    text-align:center;
    max-width:800px;
}

.page-hero h1{
    font-size:48px;
    line-height:1.3;
    margin-bottom:20px;
    font-weight:800;
}

.page-hero h1 span{
    color:#2563eb;
}

.page-hero p{
    font-size:19px;
    color:#cbd5e1;
    line-height:1.8;
}

/* ================= GALLERY SLIDER ================= */

.gallery-section{
    padding:40px 0 120px;
}

.gallery-slider-wrap{
    position:relative;
}

.gallery-slider{
    display:flex;
    gap:24px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:20px;
    scrollbar-width:none;
}

.gallery-slider::-webkit-scrollbar{
    display:none;
}

.gallery-slide{
    flex:0 0 auto;
    width:340px;
    scroll-snap-align:start;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(148,163,184,.16);
    background:rgba(30,41,59,.6);
    box-shadow:0 20px 50px rgba(2,6,23,.35);
    cursor:pointer;
    transition:transform .3s ease,border-color .3s ease;
}

.gallery-slide:hover{
    transform:translateY(-8px);
    border-color:rgba(96,165,250,.5);
}

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

.gallery-nav{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-top:30px;
}

.gallery-nav button{
    width:50px;
    height:50px;
    border-radius:50%;
    border:1px solid rgba(148,163,184,.25);
    background:rgba(30,41,59,.7);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    transition:.25s;
}

.gallery-nav button:hover{
    background:#2563eb;
    border-color:#2563eb;
}

.gallery-empty{
    text-align:center;
    color:#94a3b8;
    padding:60px 20px;
    border:1px dashed rgba(148,163,184,.3);
    border-radius:20px;
}

/* ================= FEATURED PROJECT ================= */

.featured-section{
    padding:0 0 60px;
}

.featured-card{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:0;
    border-radius:24px;
    overflow:hidden;
    background:rgba(30,41,59,.55);
    border:1px solid rgba(148,163,184,.16);
    box-shadow:0 30px 80px rgba(2,6,23,.4);
}

.featured-media{
    position:relative;
    min-height:340px;
    overflow:hidden;
}

.featured-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

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

.featured-badge{
    position:absolute;
    top:20px;
    inset-inline-start:20px;
    background:#2563eb;
    color:#fff;
    font-size:12px;
    font-weight:800;
    padding:6px 14px;
    border-radius:999px;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.featured-body{
    padding:44px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:16px;
}

.featured-body h3{
    font-size:28px;
    font-weight:800;
}

.featured-body h3 span{
    color:#2563eb;
}

.featured-body p{
    color:#cbd5e1;
    line-height:1.8;
    font-size:15px;
}

.featured-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:4px;
}

.featured-tags span{
    background:rgba(37,99,235,.12);
    border:1px solid rgba(37,99,235,.3);
    color:#93c5fd;
    font-size:12px;
    padding:6px 14px;
    border-radius:999px;
}

.featured-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    background:#2563eb;
    color:#fff;
    padding:14px 26px;
    border-radius:999px;
    font-weight:700;
    font-size:14px;
    width:fit-content;
    transition:.25s;
}

.featured-cta:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.featured-card + .featured-card{
    margin-top:32px;
}

@media(max-width:900px){

.featured-card{
    grid-template-columns:1fr;
}

.featured-media{
    min-height:260px;
}

.featured-body{
    padding:30px;
}

}

@media(max-width:700px){

.page-hero h1{
    font-size:32px;
}

.gallery-slide{
    width:260px;
}

.gallery-slide img{
    height:320px;
}

}

/* ================= LIGHTBOX ================= */

.portfolio-lightbox{
    display:none;
    position:fixed;
    inset:0;
    z-index:2000;
    justify-content:center;
    align-items:center;
    padding:40px;
    background:rgba(2,6,23,.92);
    backdrop-filter:blur(8px);
}

.portfolio-lightbox.active{
    display:flex;
}

.portfolio-lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:16px;
    box-shadow:0 30px 90px rgba(0,0,0,.55);
}

.portfolio-lightbox-close{
    position:absolute;
    top:30px;
    right:40px;
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.2);
    font-size:28px;
    color:#fff;
    cursor:pointer;
    line-height:1;
    transition:.25s;
}

.portfolio-lightbox-close:hover{
    background:#2563eb;
    border-color:#2563eb;
}

/* L'espaceur de header.php réserve déjà la hauteur de la barre :
   ici on ne gère plus que la respiration propre à la page. */
.page-hero{ padding-top:56px; }

@media(max-width:700px){
  .page-hero{ padding-top:34px; padding-bottom:40px; min-height:auto; }
}