/* ============================================================
   Fichier : site/assets/css/projet-individual-03-realisation.css
   Section Réalisation - Projet Individual
   3 types : bloc-video | bloc-image | bloc-texte
   ============================================================ */


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

.realisation-blocs-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem 0;
}


/* ===== BASE COMMUNE À TOUS LES BLOCS ===== */

/* overflow:hidden supprimé — il cassait le ratio 16:9 de la vidéo */
.realisation-bloc {
    border-radius: 16px;
    transition: border-color 0.3s ease;
}

.realisation-bloc.colored-bg {
    background: rgba(42, 42, 42, 0.3);
    border: 1px solid rgba(238, 121, 0, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.realisation-bloc.colored-bg:hover {
    border-color: rgba(238, 121, 0, 0.2);
}


/* ===== TITRE ===== */

.bloc-titre h3 {
    color: #EE7900;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}


/* ===== DESCRIPTION — mise en avant ===== */

.bloc-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f9f9f9;
    opacity: 1;
}

.bloc-description p {
    margin: 0 0 1rem;
}

.bloc-description p:last-child {
    margin-bottom: 0;
}


/* ===== INFOS SUPPLÉMENTAIRES — volontairement discret ===== */

.bloc-infossup {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(249, 249, 249, 0.45);
    border-top: 1px solid rgba(238, 121, 0, 0.1);
    padding-top: 1.25rem;
    font-style: italic;
}

.bloc-infossup p {
    margin: 0 0 0.4rem;
}

.bloc-infossup p:last-child {
    margin-bottom: 0;
}

/* Le "Intervenants :" en bold reste lisible mais pas dominant */
.bloc-infossup strong {
    font-style: normal;
    font-weight: 600;
    color: rgba(238, 121, 0, 0.5);
}


/* ===== BLOC VIDÉO ===== */

/* Wrapper explicitement en block + largeur forcée */
.bloc-video-player {
    display: block;
    width: 100%;
}

/* Technique padding-bottom pour ratio 16:9 fiable */
.video-ratio-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    background: #111;
    overflow: hidden; /* ici c'est OK : contient l'iframe, pas le bloc parent */
}

.video-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Aperçus : 3 images côte à côte */
.bloc-apercus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.apercu-item {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.apercu-item img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}


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

.bloc-images-grille {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.images-ligne {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.images-ligne.col-1 {
    grid-template-columns: 1fr;
}

.images-ligne.col-2 {
    grid-template-columns: 1fr 1fr;
}

.images-ligne.col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.image-item {
    overflow: visible;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain; 
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.images-ligne.col-1 .image-item img {
    max-height: 700px; 
}

.image-item img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}


/* ===== BLOC TEXTE ===== */

.bloc-texte .bloc-description {
    font-size: 1.1rem;
    line-height: 1.85;
}


/* ===== RESPONSIVE — TABLETTE ===== */

@media (max-width: 900px) {
    .realisation-bloc.colored-bg {
        padding: 2rem;
        gap: 1.75rem;
    }

    .bloc-titre h3 {
        font-size: 1.35rem;
    }

    .image-item img {
        max-height: 500px;
    }

    .images-ligne.col-1 .image-item img {
        max-height: 600px;
    }

    .apercu-item img {
        height: 130px;
    }
}


/* ===== RESPONSIVE — MOBILE ===== */

@media (max-width: 768px) {
    .realisation-blocs-container {
        gap: 2.5rem;
    }

    .realisation-bloc.colored-bg {
        padding: 1.5rem;
        gap: 1.5rem;
        border-radius: 12px;
    }

    /* Aperçus : 1 colonne sur mobile */
    .bloc-apercus {
        grid-template-columns: 1fr;
    }

    .apercu-item img {
        height: 200px;
    }

    /* Lignes d'images : tout en 1 colonne */
    .images-ligne.col-2,
    .images-ligne.col-3 {
        grid-template-columns: 1fr;
    }

    .image-item img,
    .images-ligne.col-1 .image-item img {
        max-height: 500px;
    }

    .bloc-titre h3 {
        font-size: 1.2rem;
    }

    .bloc-description {
        font-size: 0.98rem;
    }

    .bloc-infossup {
        font-size: 0.8rem;
    }
}