/**
 * Style de la page réalisation — Redesign Premium
 * @author Shawn Dutil
 */

/* ===========================
   LAYOUT PRINCIPAL
=========================== */
.container_contenu_NousJoindre {
    display: flex;
    justify-content: center;
    padding: 64px 32px;
    background: var(--creme);
    min-height: calc(100vh - var(--navbar-h));
    width: 100%;
    margin: 0%;
}

.sous_container_contenu_realisation {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===========================
   EN-TÊTE
=========================== */
.titre_realisation {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-profond);
    text-align: center;
    margin: 0 0 16px 0;
    width: 100%;
}

/* Séparateur décoratif sous le titre */
.titre_realisation::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
    margin: 16px auto 0;
}

.intro_realisation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin: 0 0 52px 0;
    max-width: 560px;
    line-height: 1.7;
}

/* ===========================
   MESSAGE ERREUR
=========================== */
.message_erreur_produit_indisponible {
    width: 100%;
    text-align: center;
}

.message_erreur_produit_indisponible p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #999;
}

/* ===========================
   GALERIE
=========================== */
.galerie_realisation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

/* ===========================
   CARTE RÉALISATION
=========================== */
.carte_realisation {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    cursor: pointer;

    /* Animation d'entrée au scroll */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out,
                box-shadow 0.3s ease, border-color 0.3s ease;
}

.carte_realisation.visible {
    opacity: 1;
    transform: translateY(0);
}

.carte_realisation:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.13);
    border-bottom-color: var(--or);
}

/* ===========================
   IMAGE / VIDÉO
=========================== */
.image_realisation {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carte_realisation:hover .image_realisation {
    transform: scale(1.05);
}

/* ===========================
   NOM DU PRODUIT
=========================== */
.nom_produit_realisation {
    padding: 14px 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: #fff;
}

.form_lien_nom {
    display: inline;
}

.btn-lien-nom {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vert-profond);
    background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
    border: none;
    border-radius: 2px;
    padding: 9px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.28);
    position: relative;
    overflow: hidden;
}

.btn-lien-nom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--or-clair) 0%, var(--or) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-lien-nom span { position: relative; z-index: 1; }

.btn-lien-nom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(201, 168, 76, 0.42);
}

.btn-lien-nom:active { transform: translateY(0); }

/* ===========================
   VISIONNEUSE PLEIN ÉCRAN
=========================== */
.container_plein_ecran_image {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(10, 18, 10, 0.92);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(6px);
    animation: fadeOverlay 0.25s ease;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.image_plein_ecran,
.media-plein-ecran {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 2px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.container_plein_ecran_image .fermer {
    position: absolute;
    top: 20px;
    right: 28px;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.container_plein_ecran_image .fermer:hover {
    color: var(--or-clair);
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.08);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .galerie_realisation { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .container_contenu_NousJoindre { padding: 40px 16px; }
    .galerie_realisation { grid-template-columns: 1fr; }
    .titre_realisation { font-size: 2rem; }
    .intro_realisation { font-size: 1.05rem; margin-bottom: 36px; }
    .image_realisation { height: 200px; }
}