/* Style général pour la section des projets */
.page-kicker {
    display: inline-flex;
    margin: 8px auto 16px auto;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 197, 255, 0.45);
    background: rgba(10, 23, 40, 0.65);
    color: #cbe8ff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro {
    max-width: 840px;
    margin: -2px auto 22px auto;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(9, 20, 34, 0.6);
    border: 1px solid rgba(156, 215, 255, 0.24);
    text-align: center;
    color: #f0f7ff;
    line-height: 1.7;
    font-size: 1.03rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.page-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto 30px auto;
    max-width: 920px;
}

.page-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 28, 46, 0.78);
    border: 1px solid rgba(87, 179, 232, 0.35);
    color: #d9ecff;
    font-size: 0.88rem;
}

.projets-section {
    margin: 40px auto;
    padding: 24px;
    background: linear-gradient(160deg, rgba(7, 14, 24, 0.88), rgba(14, 22, 36, 0.82));
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
}

.projets-section h2 {
    color: #007bff;
    text-align: center;
    font-size: clamp(1.45rem, 1.4vw + 0.9rem, 2rem);
}

.projets-section p {
    color: white;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
}

/* Grille 2 colonnes pour les projets */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Carte projet */
.projet-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.projet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(24, 160, 251, 0.16);
    border-color: rgba(24, 160, 251, 0.28);
}

/* Style commun pour toutes les images zoomables */
.zoomable-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: #222;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: zoom-in;
}

/* Correction pour le screenshot vertical du projet 4 */
.portrait-img {
    aspect-ratio: 9/16 !important;   /* Format téléphone vertical */
    object-fit: cover;
    max-width: 220px;
    max-height: 400px;
    background: #222;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: zoom-in;
}

/* Titres et textes */
.projet-card h3 {
    margin: 0.5rem 0;
    color: #007bff;
    text-align: center;
    line-height: 1.35;
}

.projet-card p {
    margin: 0.5rem 0 0 0;
    text-align: left;
    color: #f2f2f2;
    line-height: 1.65;
}

.projets-grid-futur {
    grid-template-columns: minmax(280px, 760px);
    justify-content: center;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 900px) {
    .projets-grid {
        grid-template-columns: 1fr;
    }

    .page-highlights {
        justify-content: flex-start;
    }

    .zoomable-image,
    .portrait-img {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .page-intro {
        font-size: 0.97rem;
    }

    .page-highlights span {
        font-size: 0.82rem;
    }

    .zoomable-image,
    .portrait-img {
        max-width: 90vw;
        max-height: 60vh;
    }
}

/* Lightbox styles */
#lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.lightbox-visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img,
#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 24px 4px rgba(0, 0, 0, 0.8);
    background: #222;
}

#lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    padding: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.55);
    transition: background 0.3s ease;
}

#lightbox-close:hover {
    background: #0056b3;
}

/* Styles pour l'Écosystème Precoluma */
.precoluma-intro {
    max-width: 820px;
    margin: 0.8rem auto 2.2rem auto;
    color: #cbe8ff;
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.7;
}

.precoluma-hierarchy {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Carte Maison Mère (Precoluma) */
.precoluma-parent-card {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(155deg, rgba(16, 35, 64, 0.85), rgba(8, 18, 33, 0.9));
    border: 1px solid rgba(71, 197, 255, 0.45);
    box-shadow: 0 10px 28px rgba(0, 123, 255, 0.16);
}

.precoluma-parent-card:hover {
    border-color: rgba(71, 197, 255, 0.7);
    box-shadow: 0 14px 34px rgba(0, 123, 255, 0.25);
}

.parent-header-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

/* Logos des entités Precoluma */
.entity-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem auto 1rem auto;
    padding: 0.4rem;
}

.precoluma-entity-logo {
    max-height: 85px;
    max-width: 165px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(71, 197, 255, 0.28));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.parent-logo {
    max-height: 110px;
    max-width: 200px;
    filter: drop-shadow(0 6px 16px rgba(71, 197, 255, 0.42));
}

.projet-card:hover .precoluma-entity-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 22px rgba(71, 197, 255, 0.55));
}

.parent-lead {
    font-size: 1.05rem;
    text-align: center !important;
    color: #e2f0fd !important;
    max-width: 800px;
    line-height: 1.65;
    margin-bottom: 1.2rem !important;
}

/* Badges spécifiques */
.badge-parent {
    background: rgba(0, 123, 255, 0.28);
    border-color: #38a5ff;
    color: #c0e3ff;
    font-weight: 700;
}

.badge-ape {
    background: rgba(46, 204, 113, 0.18);
    border-color: rgba(46, 204, 113, 0.6);
    color: #84f2bb;
    font-weight: 600;
}

.badge-studio {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(187, 143, 206, 0.6);
    color: #e8daef;
}

.badge-shop {
    background: rgba(243, 156, 18, 0.2);
    border-color: rgba(245, 176, 65, 0.65);
    color: #fdebd0;
}

/* Connecteur d'arborescence */
.tree-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 2.2rem auto;
    max-width: 700px;
    width: 100%;
}

.tree-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(71, 197, 255, 0.5), transparent);
}

.tree-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9cd4ff;
    padding: 0.38rem 1rem;
    border-radius: 999px;
    background: rgba(10, 23, 40, 0.95);
    border: 1px solid rgba(71, 197, 255, 0.35);
    white-space: nowrap;
}

/* Grille des branches (Studio & Shop) */
.precoluma-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 0;
}

.precoluma-branch-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.branch-lead {
    font-size: 0.97rem;
    color: #eaf2f8 !important;
    line-height: 1.65;
    margin-bottom: 1rem !important;
}

/* Blocs de rôles et listes */
.card-role-block {
    width: 100%;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.9rem;
}

.role-title {
    font-weight: 700;
    color: #70baff !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
}

.projet-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.18);
    border: 1px solid rgba(0, 123, 255, 0.48);
    color: #79c0ff;
    margin-bottom: 0.85rem;
}

.projet-features {
    width: 100%;
    margin: 0.5rem 0 0.5rem 0;
    padding-left: 1.25rem;
    color: #d8e5f2;
    text-align: left;
    font-size: 0.93rem;
    line-height: 1.65;
}

.projet-features li {
    margin-bottom: 0.45rem;
}

.projet-features strong {
    color: #ffffff;
}

.precoluma-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    background: rgba(14, 28, 46, 0.82);
    border: 1px solid rgba(87, 179, 232, 0.38);
    color: #d9ecff;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .precoluma-branches-grid {
        grid-template-columns: 1fr;
    }
}



