/* ============================================
   REALISATIONS.CSS — Page réalisations
   ============================================ */

/* --- HERO RÉALISATIONS --- */
.hero-small {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                #1a252f;
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
}

.hero-small h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.8;
}

/* --- GALERIE --- */
.gallery {
    padding: 70px 0;
    background: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 10px 0;
}

/* Carte projet */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(44,95,158,0.15);
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px 22px;
}

.project-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}

.project-info p {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- TABS NAVIGATION --- */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e4ea;
    padding-bottom: 0;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
    border-radius: 4px 4px 0 0;
}

.gallery-tab:hover {
    color: #2c5f9e;
}

.gallery-tab.active {
    color: #2c5f9e;
    border-bottom-color: #2c5f9e;
    background: rgba(44,95,158,0.05);
}

/* --- SECTION LABEL --- */
.section-label {
    margin-bottom: 32px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(44,95,158,0.1);
    border: 1px solid rgba(44,95,158,0.25);
    color: #2c5f9e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.videos-badge {
    background: rgba(180,30,30,0.08);
    border-color: rgba(180,30,30,0.25);
    color: #c0392b;
}

.section-sub-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1d23;
    margin: 0;
}

/* --- VIDEOS SECTION --- */
.videos-section {
    background: #eef0f3;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(44,95,158,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.video-hint {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.video-hint code {
    background: #e8ecf0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #2c5f9e;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-small {
        padding: 65px 0 50px;
    }

    .hero-small h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .gallery { padding: 45px 0; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .project-card img { height: 180px; }

    .project-info { padding: 14px 16px; }

    .project-info h3 { font-size: 15px; }

    .project-info p { font-size: 12px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .project-card img { height: 200px; }
    .hero-small h1 { font-size: 22px; }
}