/* Impré'son — styles propres à la page partenaires.html */

html,
body {
    min-height: 100vh;
    margin: 0;
    background-color: #f1f5f9;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
    color: #334155;
}

main {
    flex: 1 0 auto;
}

/* Pied de page calé en bas */
footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

/* Modale d'authentification Pro */
.modal-auth-fond {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-auth-boite {
    background: #ffffff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- PAGE PARTENAIRES */
.page-partenaires {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    box-sizing: border-box;
}

.pp-entete {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.pp-entete h1 {
    margin: 0 0 0.9rem;
    color: #0a2540;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pp-intro {
    margin: 0;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.65;
}

/* Liste en un seul panneau : une ligne par partenaire */
.pp-liste {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
}

.pp-partenaire {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 2.5rem;
    padding: 2rem 2.25rem;
}

.pp-partenaire+.pp-partenaire {
    border-top: 1px solid #eef2f6;
}

/* Logos des partenaires : même zone pour tous, calés à gauche */
.pp-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.1rem;
}

.pp-logo img {
    display: block;
    width: auto;
    max-width: 230px;
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

/* Logo plus haut que large : un peu plus grand pour le même poids visuel */
.pp-logo .pp-logo-vertical {
    height: 108px;
}

/* Logo carré avec texte (Quimper Bretagne Occidentale) : plus grand pour que le texte reste lisible */
.pp-logo .pp-logo-carre {
    height: 136px;
}

/* Logo typographique très contrasté (In Extenso) : un peu plus petit pour un poids visuel égal */
.pp-logo .pp-logo-sobre {
    max-width: 190px;
}

.pp-nom h2 {
    margin: 0 0 0.6rem;
    color: #0a2540;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

/* Rôle : bleu accompagnement, orange financement, vert parcours, gris fournisseur */
.pp-role {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pp-role-accompagnement {
    background: #eff6ff;
    color: #1d4ed8;
}

.pp-role-financement {
    background: #fff4ed;
    color: #c2410c;
}

.pp-role-fournisseur {
    background: #f1f5f9;
    color: #334155;
}

.pp-role-parcours {
    background: #ecfdf5;
    color: #047857;
}

.pp-detail p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
}

.pp-lien {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0a2540;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 4px;
}

.pp-lien:hover {
    color: #c2410c;
    text-decoration-color: currentColor;
}

.pp-lien svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Appel à l'action */
.pp-appel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.75rem 2.25rem;
    border-radius: 18px;
    background: #0a2540;
    color: #cbd5e1;
}

.pp-appel h2 {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.pp-appel p {
    margin: 0;
    line-height: 1.6;
}

.pp-bouton {
    flex-shrink: 0;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: #c2410c;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pp-bouton:hover {
    background: #9a3412;
}

.pp-lien:focus-visible,
.pp-bouton:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .page-partenaires {
        padding: 2rem 0.75rem 3rem;
    }

    .pp-entete {
        padding: 0 0.5rem;
        margin-bottom: 1.75rem;
    }

    .pp-intro {
        font-size: 1rem;
    }

    .pp-partenaire {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 1.5rem 1.25rem;
    }

    .pp-logo img {
        max-width: 200px;
        height: 64px;
    }

    .pp-logo .pp-logo-vertical {
        height: 88px;
    }

    .pp-logo .pp-logo-carre {
        height: 112px;
    }

    .pp-logo .pp-logo-sobre {
        max-width: 170px;
    }

    .pp-nom h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .pp-appel {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.25rem;
    }

    .pp-bouton {
        align-self: stretch;
        text-align: center;
    }
}
