/* projet-2.css */

@font-face { font-family: 'OwnersWide-Regular'; src: url('ressources/owners/OwnersWide-Regular.ttf'); }
@font-face { font-family: 'OwnersXWide-Bold'; src: url('ressources/owners/OwnersXWide-Bold.ttf'); }
@font-face { font-family: 'OwnersWide-Medium'; src: url('ressources/owners/OwnersWide-Medium.ttf'); }

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    font-family: 'OwnersWide-Regular', sans-serif;
    color: #2E294E;
    overflow-x: hidden;
}

/* --- FIX FOOTER EN BAS --- */
#smooth-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wide-masonry-project {
    flex: 1;
    padding-top: 0;
    padding-bottom: 40px;
    width: 100%;
}

/* --- BOUTON RETOUR --- */
.btn-retour-inline {
    display: inline-block;
    margin-top: 80px; 
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    text-decoration: none;
    color: #2E294E;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-retour-inline:hover { background: white; transform: translateY(-2px); }

/* --- TITRE --- */
.project-title {
    text-align: center; 
    font-family: 'OwnersXWide-Bold';
    font-size: 1.6rem;
    color: #2E294E;
    background-color: #D1D3FF;
    display: inline-block;
    line-height: 0.1; 
    padding-bottom: 1rem;
    padding-left: 2%;
    padding-right: 2%;
    word-wrap: break-word;
}

/* --- MASONRY GRID --- */
.masonry-wide {
    column-count: 3;
    column-gap: 40px;
    width: 100%;
    padding: 0 40px;
}

.masonry-brick {
    break-inside: avoid;
    margin-bottom: 40px;
    width: 100%;
    display: inline-block;
}

/* --- GLASS CARD --- */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.glass-card:hover { transform: translateY(-3px); }

/* --- TYPO --- */
.text-brick { padding: 2rem; }

.project-year {
    display: block;
    font-family: 'OwnersWide-Medium';
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.separator {
    width: 20px;
    height: 1px;
    background: #2E294E;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.sub-title {
    font-family: 'OwnersXWide-Bold';
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #2E294E;
}

.label-text {
    font-family: 'OwnersWide-Medium';
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: #555;
}

.text-content p {
    font-size: 0.75rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.8rem;
    text-align: justify;
    font-weight: 400;
}

.credits-mini {
    font-size: 0.6rem;
    color: #777;
    margin-top: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 8px;
}

/* --- MEDIA --- */
.brick-img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.img-zoom-container { position: relative; cursor: pointer; }
.icon-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1); opacity: 0; transition: opacity 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.icon-overlay span {
    color: white; font-size: 1.5rem;
    background: rgba(255,255,255,0.2); width: 40px; height: 40px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
.img-zoom-container:hover .icon-overlay { opacity: 1; }
.img-zoom-container:hover .brick-img { transform: scale(1.02); }
.video-brick iframe { width: 100%; height: 100%; border: none; }


/* --- BOUTON LIEN PROJET --- */
.btn-project-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #2E294E; /* Votre violet foncé */
    color: #ffffff;
    font-family: 'OwnersWide-Medium';
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid #2E294E;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 41, 78, 0.2);
}

.btn-project-link:hover {
    background-color: transparent;
    color: #2E294E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 41, 78, 0.15);
}

/* --- SECTION PROJETS SIMILAIRES --- */

/* La div enveloppe globale demandée */
.similar-section-wrapper {
    width: 100%;
    margin-top: 1.8rem; /* Grand espace avant cette section */
    padding-bottom: 1rem;
}

/* Le conteneur interne pour centrer et réduire la taille */
.similar-container {
    max-width: 1000px; /* Largeur contenue (plus petite que le reste) */
    margin: 0 auto;    /* Centré */
    padding: 0 20px;
}

.separator-line {
    width: 60px;
    height: 2px;
    background: #909cdb;
    opacity: 0.6;
}

.similar-title {
    font-family: 'OwnersWide-Medium';
    font-size: 1rem;
    text-transform: uppercase;
    color: #2E294E;
    margin-bottom: 2rem;
}

.similar-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.similar-card:hover { transform: translateY(-5px); }

.similar-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background-color: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.similar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-card:hover .similar-img-wrapper img { transform: scale(1.05); }

.similar-info { text-align: center; }

.similar-date {
    font-family: 'OwnersWide-Regular';
    font-size: 0.65rem;
    color: #909cdb;
    display: block;
    margin-bottom: 4px;
}

.similar-name {
    font-family: 'OwnersXWide-Bold';
    font-size: 0.85rem;
    color: #2E294E;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .masonry-wide { column-count: 2; column-gap: 30px; padding: 0 30px; }
}
@media (max-width: 768px) {
    .masonry-wide { column-count: 1; padding: 0 15px; }
    .project-title { font-size: 1.2rem; }
    .text-brick { padding: 1.5rem; }
    .btn-retour-inline { margin-top: 100px; margin-left: 0; }
    .similar-container { width: 90%; max-width: 100%; } /* S'adapte sur mobile */
}

/* --- LIGHTBOX --- */
.lightbox-modal { display: none; position: fixed; z-index: 9000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.lightbox-content { max-width: 85%; max-height: 85%; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }

.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 9005; transition: color 0.3s; }
.close-btn:hover { color: #ccc; }

.lightbox-nav {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px;
    color: white; font-weight: bold; font-size: 40px; transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none; text-decoration: none; z-index: 9005;
}
.lightbox-nav:hover { background-color: rgba(0,0,0,0.4); color: #D1D3FF; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.next { right: 0; border-radius: 3px 0 0 3px; }

/* FORCE LE CURSEUR AU-DESSUS DE TOUT (Sécurité) */
.custom-cursor, .custom-cursor-follower {
    z-index: 10000 !important;
}

/* --- FOOTER ORIGINAL --- */
#footer {
    background: rgba(249, 249, 249, 0.75);
    box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.25);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: auto; 
    position: relative;
    z-index: 10;
}
#footer .container { margin-left: auto; margin-right: auto; }
.footer-icon { width: 40%; transition: transform 0.2s; }
.footer-icon:hover { transform: scale(1.1); }
.footer-credits { font-family: 'OwnersWide-Regular'; font-size: 0.6rem; color: #2E294E; margin: 0; }