:root {
    --gallimea-primary:   #1e40af;
    --gallimea-secondary: #303030;
    --gpo-bg:             #f8fafc;
    --gpo-border:         #e2e8f0;
    --gpo-text:           #1d2327;
    --gpo-radius:         10px;
}

.gpo-wrap { max-width: 780px; margin: 0 auto; padding: 0; }

/* ── Carte ─────────────────────────────────────────────── */
.gpo-card {
    background: #fff;
    border: 1px solid var(--gpo-border);
    border-radius: var(--gpo-radius);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.gpo-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gallimea-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gpo-border);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
}

/* ── Header profil ──────────────────────────────────────── */
.gpo-profil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gpo-border);
}

.gpo-profil-header .gpo-title { margin: 0; font-size: 22px; }

/* ── Onglets ────────────────────────────────────────────── */
.gpo-onglets {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--gpo-bg);
    border: 1px solid var(--gpo-border);
    border-radius: var(--gpo-radius);
    padding: 4px;
}

.gpo-onglet {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gallimea-secondary);
    text-decoration: none;
    border-radius: 7px;
    transition: all .15s;
    white-space: nowrap;
}

.gpo-onglet:hover { color: var(--gallimea-primary); background: #fff; text-decoration: none; }

.gpo-onglet--actif {
    background: #fff;
    color: var(--gallimea-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── Grille infos ───────────────────────────────────────── */
.gpo-info-grid { display: flex; flex-direction: column; }
.gpo-info-row {
    display: flex;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--gpo-bg);
}
.gpo-info-row:last-child { border-bottom: none; }
.gpo-info-label { min-width: 140px; font-size: 13px; color: var(--gallimea-secondary); }
.gpo-info-value { flex: 1; font-size: 14px; color: var(--gpo-text); font-weight: 500; }

/* ── Formulaires login / activation ───────────────────── */
.gpo-wrap.gpo-login-wrap,
.gpo-wrap.gpo-activation-wrap { max-width: 440px; }

.gpo-logo { text-align: center; margin-bottom: 20px; }
.gpo-logo img { max-height: 60px; width: auto; }

.gpo-title { font-size: 20px; font-weight: 700; color: var(--gpo-text); margin: 0 0 20px; }

.gpo-field { margin-bottom: 14px; }
.gpo-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.gpo-field input[type="text"],
.gpo-field input[type="password"],
.gpo-field input[type="email"] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.gpo-field input:focus {
    border-color: var(--gallimea-primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gallimea-primary) 12%, transparent);
}
.gpo-field--inline { display: flex; justify-content: space-between; align-items: center; }
.gpo-field-hint { display: block; font-size: 12px; color: var(--gallimea-secondary); margin-top: 4px; }

/* ── Boutons ───────────────────────────────────────────── */
.gpo-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--gallimea-primary);
    color: #fff !important;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: .01em;
}
.gpo-btn:hover { opacity: .87; text-decoration: none; }
.gpo-btn--outline {
    background: transparent;
    color: var(--gallimea-primary) !important;
    border: 1.5px solid var(--gallimea-primary);
    padding: 8px 18px;
    font-size: 13px;
}
.gpo-btn--full { width: 100%; }

/* ── Liens / erreurs ───────────────────────────────────── */
.gpo-link { font-size: 13px; color: var(--gallimea-secondary); text-decoration: none; }
.gpo-link:hover { text-decoration: underline; }

.gpo-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Nav ───────────────────────────────────────────────── */
.gpo-nav { display: inline-flex; gap: 12px; align-items: center; }
.gpo-nav__link { font-size: 14px; color: var(--gallimea-primary); text-decoration: none; }
.gpo-nav__link:hover { text-decoration: underline; }
.gpo-nav__link--logout { color: var(--gallimea-secondary); }

/* ── Layout profil deux colonnes ───────────────────────── */
.gpo-profil-wrap { max-width: 100%; }

.gpo-profil-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gpo-border);
}

.gpo-profil-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: flex-start;
}

.gpo-profil-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 80px;
}

.gpo-profil-nav__item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gallimea-secondary);
    text-decoration: none;
    border-radius: 7px;
    transition: all .15s;
}

.gpo-profil-nav__item:hover {
    background: var(--gpo-bg);
    color: var(--gallimea-primary);
    text-decoration: none;
}

.gpo-profil-nav__item--actif {
    background: color-mix(in srgb, var(--gallimea-primary) 8%, white);
    color: var(--gallimea-primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .gpo-profil-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gpo-profil-nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
}
