/* ============================================================
   LIBOTA - projets.css
   Styles propres à la page « Projets » : cartes de pôles et
   fenêtre de détail d'un pôle.
   ============================================================ */

/* Carte d'un pôle */
.pole {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: var(--ivoire-carte);
    border: 1px solid rgba(23, 61, 45, 0.1);
    border-radius: 6px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pole:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-carte);
}

.pole-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pole-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pole:hover .pole-image img {
    transform: scale(1.06);
}

.pole-corps {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px 30px 34px;
}

.pole-num {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--ambre);
}

.pole-corps h3 {
    margin-top: 10px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--encre-titre);
}

.pole-corps p {
    flex: 1;
    margin-top: 12px;
    color: var(--gris-texte);
    font-size: 0.97rem;
    line-height: 1.7;
}

.pole-lien {
    margin-top: 20px;
    color: var(--vert-profond);
    font-weight: 600;
    font-size: 0.9rem;
}


/* Fenêtre de détail d'un pôle */
.pole-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 37, 27, 0.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pole-overlay.affiche {
    display: flex;
}

.pole-overlay.visible {
    opacity: 1;
}

.pole-modal {
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--ivoire-carte);
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(13, 37, 27, 0.4);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.4s var(--ease-doux);
}

.pole-overlay.visible .pole-modal {
    transform: none;
}

.pole-modal-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.pole-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pole-modal-voile {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(13, 37, 27, 0.5));
}

.pole-modal-titre {
    position: absolute;
    bottom: 20px;
    left: 28px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2rem;
    color: #fdfbf4;
}

.pole-modal-fermer {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    background: rgba(13, 37, 27, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    backdrop-filter: blur(4px);
}

.pole-modal-corps {
    padding: 28px;
}

.pole-modal-corps > p {
    color: #3f4641;
    font-size: 1.02rem;
    line-height: 1.8;
}

.pole-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.pole-stat {
    padding: 16px 14px;
    text-align: center;
    background: var(--vert-profond);
    border-radius: 8px;
}

.pole-stat-num {
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ambre-clair);
}

.pole-stat-label {
    margin-top: 5px;
    color: rgba(244, 241, 233, 0.8);
    font-size: 0.78rem;
}

.pole-modal-projets {
    margin-top: 26px;
}

.pole-modal-projets .titre {
    margin-bottom: 12px;
    color: var(--vert-moyen);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pole-projet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-top: 1px solid rgba(23, 61, 45, 0.1);
}

.pole-projet .puce {
    flex: none;
    margin-top: 3px;
    color: var(--ambre);
    background: none;
    width: auto;
    height: auto;
}

.pole-projet span:last-child {
    color: #3f4641;
    font-size: 0.96rem;
}
