
/* ==========================================
   SUBTOMEK — L'ESPRIT SUBTOMEK
   BLOC 2 DE L'INDEX
========================================== */

#univers .bridge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, .7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 28px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b4355, #062b3e 65%, #083f50);
    border: 1px solid #9adbe733;
}

#univers .bridge-part {
    min-width: 0;
    text-align: center;
    padding: 14px 6px;
}

#univers .bridge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    margin-bottom: 8px;
}

#univers .bridge-visual img {
    display: block;
    max-width: 110px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.25));
}

#univers .bridge-part h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--sand);
    margin: 10px 0;
}

#univers .bridge-part p {
    color: #d2e8ec;
    font-size: .88rem;
    line-height: 1.65;
    margin: 0;
}

/* LOGICIELS ET CARNET */

#univers .bridge-tools {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.14);
}

#univers .bridge-tools-label {
    display: block;
    color: #9edee7;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

#univers .bridge-tool-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

#univers .bridge-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 75px;
}

#univers .bridge-tool img {
    display: block;
    width: 48px;
    height: 52px;
    object-fit: contain;
}

#univers .bridge-tool span {
    color: #e9e0cc;
    font-size: .65rem;
    line-height: 1.3;
    text-align: center;
}

#univers .bridge-tool-list-diver .bridge-tool {
    width: 130px;
}

/* CENTRE SUBTOMEK */

#univers .bridge-center {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

#univers .bridge-line {
    height: 2px;
    flex: 1;
    min-width: 8px;
    background: linear-gradient(90deg, transparent, var(--cyan));
}

#univers .bridge-line:last-child {
    transform: rotate(180deg);
}

#univers .bridge-core-button {
    flex-shrink: 0;
    max-width: 100%;
    padding: 15px 12px;
    border: 1px solid #e6c68c88;
    border-radius: 18px;
    background: #062233;
    box-shadow: 0 0 30px #29b8d31c;
    color: var(--sand);
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}

#univers .bridge-core-button:hover,
#univers .bridge-core-button[aria-expanded="true"] {
    background: #0c4054;
    border-color: var(--sand);
}

#univers .bridge-core-button small {
    display: block;
    font-size: .59rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #b8e7ed;
    margin-top: 5px;
}

#univers .bridge-core-more {
    display: block;
    margin-top: 11px;
    color: #9edee7;
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: 0;
}

/* PANNEAU DÉPLIANT */

#univers .bridge-details[hidden] {
    display: none;
}

#univers .bridge-details {
    margin-top: 16px;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(223,193,143,.3);
    background: linear-gradient(145deg, #0b3548, #052536);
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

#univers .bridge-details > h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--sand);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

#univers .bridge-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#univers .bridge-detail {
    min-width: 0;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.1);
}

#univers .bridge-detail-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

#univers .bridge-detail h4 {
    color: #f0d5a5;
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 9px;
}

#univers .bridge-detail p {
    color: #d2e8ec;
    font-size: .8rem;
    line-height: 1.65;
    margin: 0;
}

#univers .bridge-note {
    max-width: 780px;
    text-align: center;
    margin: 23px auto 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
}

/* TABLETTE */

@media (max-width: 950px) {
    #univers .bridge {
        grid-template-columns: minmax(0,1fr) minmax(125px,.55fr) minmax(0,1fr);
        gap: 6px;
        padding: 22px 12px;
    }

    #univers .bridge-core-button {
        font-size: .76rem;
        padding: 13px 8px;
    }

    #univers .bridge-tool {
        width: 65px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    #univers .bridge {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 18px;
    }

    #univers .bridge-part {
        padding: 12px 6px;
    }

    #univers .bridge-center {
        min-height: 100px;
        flex-direction: column;
        justify-content: center;
    }

    #univers .bridge-line {
        width: 2px;
        height: 20px;
        min-height: 20px;
        flex: none;
        background: linear-gradient(transparent, var(--cyan));
    }

    #univers .bridge-line:last-child {
        transform: rotate(180deg);
    }

    #univers .bridge-details {
        padding: 22px 18px;
    }

    #univers .bridge-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #univers .bridge-detail {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #univers .bridge-core-button {
        transition: none;
    }
}


/* ==========================================
   SUBTOMEK — AJUSTEMENT DES VISUELS
   CLUB / PLONGEUR / LOGICIELS
========================================== */

/* CLUB : image principale légèrement agrandie */

#univers .bridge-part-club .bridge-visual img {
    max-width: 125px;
    max-height: 100px;
    border-radius: 12px;
}

/* CLUB : les trois logiciels légèrement agrandis */

#univers .bridge-part-club .bridge-tool {
    width: 85px;
}

#univers .bridge-part-club .bridge-tool img {
    width: 58px;
    height: 62px;
    border-radius: 9px;
}

/* PLONGEUR : image principale plus présente */

#univers .bridge-part-diver .bridge-visual img {
    max-width: 155px;
    max-height: 115px;
    border-radius: 12px;
}

/* PLONGEUR : carnet sensiblement agrandi */

#univers .bridge-part-diver .bridge-tool {
    width: 150px;
}

#univers .bridge-part-diver .bridge-tool img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
}

/* Les images restent proportionnelles */

#univers .bridge-visual img,
#univers .bridge-tool img {
    object-fit: contain;
}

/* Un peu plus de place pour les grandes images */

#univers .bridge-visual {
    height: 120px;
}

/* Ajustement mobile */

@media (max-width: 760px) {

    #univers .bridge-part-club .bridge-visual img {
        max-width: 120px;
        max-height: 95px;
    }

    #univers .bridge-part-diver .bridge-visual img {
        max-width: 145px;
        max-height: 110px;
    }

    #univers .bridge-part-diver .bridge-tool img {
        width: 80px;
        height: 80px;
    }
}


/* ==========================================
   SUBTOMEK — LOGOS DU PANNEAU EXPLICATIF
========================================== */

#univers .bridge-detail-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 65px;
    height: 65px;
    margin-bottom: 12px;
    font-size: inherit;
}

#univers .bridge-detail-icon img {
    display: block;
    width: 58px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 760px) {
    #univers .bridge-detail-icon {
        width: 60px;
        height: 60px;
    }

    #univers .bridge-detail-icon img {
        width: 54px;
        height: 54px;
    }
}


/* ==========================================
   SUBTOMEK — AJUSTEMENT FINAL DES 2 LOGOS
   BLOC 2 : L'ESPRIT SUBTOMEK
========================================== */

/* 1. MON CARNET DE PLONGÉE
   Agrandir uniquement le logo du plongeur */

#univers .bridge-part-diver .bridge-tool img {
    width: 115px;
    height: 105px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* 2. DES CARNETS QUI COMMUNIQUENT
   Agrandir uniquement le logo du troisième encadré */

#univers .bridge-detail:nth-child(3) .bridge-detail-icon {
    width: 110px;
    height: 85px;
}

#univers .bridge-detail:nth-child(3) .bridge-detail-icon img {
    width: 105px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Adaptation téléphone */

@media (max-width: 760px) {

    #univers .bridge-part-diver .bridge-tool img {
        width: 105px;
        height: 100px;
    }

    #univers .bridge-detail:nth-child(3) .bridge-detail-icon {
        width: 100px;
        height: 80px;
    }

    #univers .bridge-detail:nth-child(3) .bridge-detail-icon img {
        width: 95px;
        height: 75px;
    }
}


/* ==========================================
   SUBTOMEK — AJUSTEMENT FINAL DES 2 LOGOS
   BLOC 2 : L'ESPRIT SUBTOMEK
========================================== */

/* 1. MON CARNET DE PLONGÉE
   Agrandir uniquement le logo du plongeur */

#univers .bridge-part-diver .bridge-tool img {
    width: 115px;
    height: 105px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* 2. DES CARNETS QUI COMMUNIQUENT
   Agrandir uniquement le logo du troisième encadré */

#univers .bridge-detail:nth-child(3) .bridge-detail-icon {
    width: 110px;
    height: 85px;
}

#univers .bridge-detail:nth-child(3) .bridge-detail-icon img {
    width: 105px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Adaptation téléphone */

@media (max-width: 760px) {

    #univers .bridge-part-diver .bridge-tool img {
        width: 105px;
        height: 100px;
    }

    #univers .bridge-detail:nth-child(3) .bridge-detail-icon {
        width: 100px;
        height: 80px;
    }

    #univers .bridge-detail:nth-child(3) .bridge-detail-icon img {
        width: 95px;
        height: 75px;
    }
}
